/* ==========================================================================
   thephilosophycoach.com — shared styles for every page

   Direction (chosen by Akshat, 7 Oct 2026): navy page, stone menu bar,
   your P mark in the background. No pure white anywhere.
   Questions are set in NeverMind; everything else in Literata.
   ========================================================================== */


/* ---------- Fonts (self-hosted, all SIL Open Font License) ---------- */

/* Literata: running text. Variable font, weights 400–700. */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/literata-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/literata-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/literata-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* NeverMind (by Xmind): questions. */
@font-face {
  font-family: "NeverMind";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/nevermind-medium.ttf") format("truetype");
}
@font-face {
  font-family: "NeverMind";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nevermind-demibold.ttf") format("truetype");
}


/* ---------- Colours and type ---------- */

:root {
  color-scheme: dark;

  --navy:      #29294A;  /* brand navy: the page */
  --navy-deep: #1F1F3B;  /* footer */
  --stone:     #DED9D0;  /* menu bar */
  --mist:      #EDEAE4;  /* text and button on navy (our "white"; never pure white) */
  --mist-soft: #CFCCD9;  /* quieter text on navy */
  --pencil:    #5A5A70;  /* quieter text on stone */

  /* NeverMind has no ₹ sign, so Literata supplies that one character */
  --question-font: "NeverMind", "Literata", "Helvetica Neue", Arial, sans-serif;
  --text-font: "Literata", Georgia, "Times New Roman", serif;

  --gutter: 20px;
  --max: 1440px;
}


/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy-deep);
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--mist);
  font-family: var(--text-font);
  font-size: 1.125rem;          /* 18px on phones */
  line-height: 1.55;
  font-optical-sizing: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }

p { margin: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

/* Visible keyboard focus everywhere: mist on navy, navy on stone */
:focus-visible {
  outline: 3px solid var(--mist);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* ---------- Menu bar (same on every page) ---------- */

.site-head {
  background: var(--stone);
  color: var(--navy);
}
.site-head :focus-visible { outline-color: var(--navy); }
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 16px;
}
.site-head .logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.site-head .logo img { height: 22px; width: auto; }
/* "| Akshat Kapur" after the logo, echoing the divider inside the logo */
.logo-name {
  border-left: 1.5px solid currentColor;
  padding-left: 10px;
  line-height: 22px;
  font-family: var(--question-font);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.9375rem;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
/* Menu items for pages that don't exist yet */
.site-nav .soon { color: var(--pencil); cursor: default; }
.site-nav .soon small { font-size: 0.75em; font-style: italic; }


/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  background: var(--mist);
  color: var(--navy);
  border: 2px solid var(--mist);
  border-radius: 2px;
  font-family: var(--text-font);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.btn:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* A link that has not been supplied yet: visibly disabled, labelled [LINK TO COME].
   assets/js/links.js removes .is-pending once the address is filled in. */
.btn.is-pending {
  background: transparent;
  color: var(--mist-soft);
  border-style: dashed;
  border-color: var(--mist-soft);
  cursor: not-allowed;
}
.btn.is-pending:hover { text-decoration: none; }
.btn.is-pending { flex-direction: column; gap: 2px; }
.btn.is-pending .when-pending { font-size: 0.75em; font-weight: 400; letter-spacing: 0.02em; }
.btn:not(.is-pending) .when-pending { display: none; }

.text-link.is-pending { text-decoration: none; cursor: not-allowed; }
.text-link:not(.is-pending) .when-pending { display: none; }

/* Small pause/play icon for the rolling questions */
.pause {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--mist-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
}
.pause:hover { color: var(--mist); border-color: var(--mist-soft); }
.pause svg { width: 14px; height: 14px; fill: currentColor; }
.pause .icon-play { display: none; }
.pause[aria-pressed="true"] .icon-pause { display: none; }
.pause[aria-pressed="true"] .icon-play { display: block; }


/* ---------- Home: the hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-content: start;
  padding-block: 40px 72px;    /* phones: room below the button for the pause icon */
}

/* Your P mark, faint. Phones: behind the top right of the questions. Wider screens: fills the right side. */
.hero-mark {
  position: absolute;
  z-index: 0;
  right: 12px;
  top: 20px;
  width: 112px;
  height: auto;
  opacity: 0.09;
}

/* Pause/play icon: bottom right corner of the navy section */
.hero .pause {
  position: absolute;
  z-index: 2;
  right: calc(var(--gutter) - 8px);
  bottom: 12px;
}

/* The questions. Without the rolling script (or with reduced motion) they
   simply stand one under another. With it (class "is-rolling"), they all sit
   in the same grid cell, so the box is as tall as the longest, and take turns. */
.questions {
  font-family: var(--question-font);
  font-weight: 600;
  color: var(--mist);
  font-size: clamp(2rem, 1rem + 4vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  display: grid;
  gap: 0.3em;
}
.questions span { text-wrap: balance; }

.questions.is-rolling { gap: 0; align-items: end; overflow: hidden; }
.questions.is-rolling span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(70%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.questions.is-rolling span.is-current { opacity: 1; transform: none; }
.questions.is-rolling span.is-leaving { opacity: 0; transform: translateY(-70%); }

.hero .sub {
  color: var(--mist-soft);
  max-width: 44ch;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.hero .actions .btn { flex: 1 1 auto; }
.pause[hidden] { display: none; }



/* ---------- Bands: the sections below the hero, alternating stone and navy ---------- */

/* Each band sets its own text colours, so pricing, the FAQ and forms read on either background */
.band--stone { background: var(--stone); color: var(--navy); --soft: var(--pencil); --line: rgba(41, 41, 74, 0.2); --panel: var(--navy); --panel-text: var(--mist); }
.band--stone :focus-visible { outline-color: var(--navy); }
.band--navy { background: var(--navy); color: var(--mist); --soft: var(--mist-soft); --line: rgba(237, 234, 228, 0.22); --panel: var(--navy-deep); --panel-text: var(--mist-soft); }

.band .wrap {
  display: grid;
  gap: 20px;
  padding-block: 44px 52px;
}
.band h2 {
  font-family: var(--text-font);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}
.band-body { display: grid; gap: 14px; max-width: 62ch; min-width: 0; }
.band .small { font-size: 0.875rem; }
.band--navy .small { color: var(--mist-soft); }
.band--stone .small { color: var(--pencil); }

/* Bands that open as they come into view (assets/js/reveal.js adds "has-reveal").
   Closed: only the heading shows. Open: the content slides open and fades in. */
.has-reveal .js-reveal .reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.has-reveal .js-reveal .reveal-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.7s ease 0.2s;
}
.has-reveal .js-reveal.is-open .reveal { grid-template-rows: 1fr; }
.has-reveal .js-reveal.is-open .reveal-inner { opacity: 1; }

/* About me: heading with the photo underneath it */
.band-side { display: grid; gap: 20px; align-content: start; min-width: 0; }
.portrait {
  width: 78%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Pricing */
.pricing { max-width: none; gap: 28px; }
.price-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}
.price-list > div { display: grid; gap: 2px; align-content: start; }
.price-list dt { font-weight: 600; font-size: 0.9375rem; }
.price-list dd { margin: 0; font-size: 0.9375rem; color: var(--soft); }
.price-list .figure {
  font-family: var(--question-font);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
  white-space: nowrap;
  color: inherit;
  letter-spacing: -0.01em;
  margin-block: 4px 2px;
  font-variant-numeric: tabular-nums;
}

/* FAQ: questions in the question voice, answers open on click */
.faq { max-width: 70ch; gap: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 18px;
  font-family: var(--question-font);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--text-font);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--soft);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { display: grid; gap: 12px; padding-bottom: 22px; }
.faq .todo { font-style: italic; }
.scope {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  background: var(--panel);
  color: var(--panel-text);
  font-size: 0.9375rem;
}


/* ---------- Reading pages (Sessions, About, Appointments, policies) ---------- */

/* Navy title band under the menu bar, with the P mark faint on the right */
.page-title {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--mist);
}
.page-title .wrap { position: relative; z-index: 1; padding-block: 40px 44px; }
.page-title h1 {
  font-family: var(--question-font);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.page-mark {
  position: absolute;
  z-index: 0;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  width: auto;
  opacity: 0.12;
}

/* Stone reading area, navy text */
.reading { background: var(--stone); color: var(--navy); }
.reading :focus-visible { outline-color: var(--navy); }
.reading .wrap { display: grid; gap: 20px; padding-block: 44px 56px; }
.reading h2 {
  font-family: var(--text-font);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}
.reading-body { display: grid; gap: 16px; max-width: 62ch; min-width: 0; }

/* A page split into sections, each headed by a question (set in NeverMind) */
.reading--sections .wrap { row-gap: 16px; }
.reading .reading-question {
  font-family: var(--question-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.reading--sections .reading-question:not(:first-child) { margin-top: 32px; }

.reading .todo { font-style: italic; color: var(--pencil); }

/* Policy pages: smaller section headings, tidy lists */
.reading--policy h2 { font-size: 1.25rem; }
.reading-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* [CONFIRM: …] marks in drafts: a choice Akshat still has to make. Visible on purpose. */
.confirm {
  font-style: italic;
  font-size: 0.9em;
  border-bottom: 1px dashed currentColor;
  opacity: 0.85;
}

/* Contact: the message box */
.contact-form { margin-block: 12px 8px; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.contact-form .form-status { margin: 0 0 12px; font-size: 0.9375rem; font-weight: 600; }
.contact-form .form-status:empty { display: none; }
.contact-form.is-pending .form-status { color: var(--soft, var(--pencil)); letter-spacing: 0.02em; }
/* Spam trap: kept off-screen and out of the tab order */
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Buttons on the stone bands: navy, so they stand out */
.band--stone .btn { background: var(--navy); color: var(--mist); border-color: var(--navy); }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-weight: 600; font-size: 0.9375rem; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--pencil);
  border-radius: 2px;
  padding: 12px 14px;
  width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 9em; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.contact-form button { justify-self: start; }
/* Not set up yet: greyed out, clearly labelled */
.contact-form.is-pending fieldset { opacity: 0.6; cursor: not-allowed; }

/* Appointments: Google's booking calendar shown inside the page */
.booking-embed {
  margin-top: 8px;
  border: 1px solid var(--pencil);
  border-radius: 2px;
  background: var(--mist);
  overflow: hidden;
}
.booking-embed iframe { display: block; width: 100%; height: 900px; border: 0; }
.booking-embed.is-pending { display: none; }

/* About page: photo beside the text */
.reading--about .credentials { margin-top: 8px; color: var(--pencil); }
.reading .small { font-size: 0.9375rem; }
.inline-question { font-family: var(--question-font); font-weight: 600; }

.reading .actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 16px; }
.reading .actions .btn { flex: 1 1 100%; }
.reading .btn { background: var(--navy); color: var(--mist); border-color: var(--navy); }
.reading .btn-secondary { background: transparent; color: var(--navy); }
.reading .btn.is-pending { background: transparent; color: var(--pencil); border-color: var(--pencil); }

/* Scope and crisis line at the foot of a reading page */
.scope-band { background: var(--navy); color: var(--mist-soft); }
.scope-band .wrap { padding-block: 32px 36px; }
.scope-text { display: grid; gap: 10px; max-width: 70ch; font-size: 0.9375rem; }


/* ---------- Footer (same on every page) ---------- */

.site-foot {
  background: var(--navy-deep);
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.site-foot .wrap {
  display: grid;
  gap: 28px;
  padding-block: 40px 48px;
}
.site-foot .logo img { height: 22px; width: auto; }
.foot-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot-small { font-size: 0.8125rem; color: var(--mist-soft); }


/* ---------- Wider screens ---------- */

@media (min-width: 900px) {
  :root { --gutter: clamp(40px, 5vw, 80px); }

  body { font-size: 1.21875rem; }   /* 19.5px */

  /* The menu stays on one line; if logo + menu don't fit side by side, the whole menu moves under the logo */
  .site-head .wrap { padding-block: 20px; flex-wrap: wrap; }
  .site-nav { margin-left: auto; }
  .site-head .logo img { height: 26px; }
  .site-head .logo { gap: 14px; }
  .logo-name { line-height: 26px; padding-left: 14px; font-size: 0.9375rem; }
  .site-nav ul { font-size: 1rem; gap: 6px 28px; flex-wrap: nowrap; white-space: nowrap; }

  .hero .wrap {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 32px;
    padding-block: 64px 88px;
  }
  .questions { grid-column: 1 / 11; }
  .hero .sub { grid-column: 1 / 7; font-size: 1.25rem; }
  .hero .actions { grid-column: 1 / 8; }
  .hero .actions .btn { flex: 0 0 auto; }

  /* Centred top-to-bottom on the right of the navy section (faint, so text can pass over it) */
  .hero-mark {
    right: calc(var(--gutter) + 5vw);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    height: 56%;
    width: auto;
    opacity: 0.12;
  }
  .hero .pause { bottom: 16px; }

  .band .wrap {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    padding-block: 64px 72px;
    align-items: start;
  }
  .band h2 { grid-column: 1 / 4; font-size: 1.75rem; }
  .band-body { grid-column: 4 / 11; }
  .reveal { grid-column: 4 / 13; }
  .reveal .band-body { grid-column: auto; }

  .band-side { grid-column: 1 / 4; gap: 28px; }
  .band-side h2 { grid-column: auto; }
  .band-side .portrait { width: 100%; max-width: none; }

  .price-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .price-list .figure { font-size: 2.5rem; }

  .page-title .wrap { padding-block: 64px 72px; }
  .reading .wrap, .scope-band .wrap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .reading .wrap { padding-block: 64px 80px; }
  .reading h2 { grid-column: 1 / 4; font-size: 1.75rem; }
  .reading-body { grid-column: 4 / 11; }
  .reading--sections .wrap { row-gap: 56px; }
  .reading--policy .wrap { row-gap: 40px; }
  .reading--policy h2 { font-size: 1.375rem; }
  .reading--about .portrait { grid-column: 1 / 5; width: 100%; max-width: none; }
  .booking-embed iframe { height: 660px; }   /* fits Google's booking page on desktop without a gap */
  .reading--about .reading-body { grid-column: 6 / 12; }
  .reading--sections .reading-question:not(:first-child) { margin-top: 0; }
  .reading-question { padding-top: 4px; }
  .reading .actions .btn { flex: 0 0 auto; }
  .scope-text { grid-column: 4 / 11; }

  .faq { grid-column: 4 / 12; }
  .faq summary { font-size: 1.5rem; padding-block: 22px; }

  .site-foot .wrap {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    padding-block: 56px 64px;
  }
  .site-foot .foot-brand { grid-column: 1 / 4; }
  .site-foot .foot-nav { grid-column: 5 / 8; }
  .site-foot .foot-contact { grid-column: 9 / 13; }
}


/* ---------- Motion safety net ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
