/* ============================================================
   ATHENS TEST PREP: design system
   Concept: a prestigious-university register. Pearl paper,
   deep navy type, and a restrained antique-gold accent used
   to mark the site's proof points. Scores and labels run in a
   mono "gradebook" face. A single heritage green is reserved
   for the one phrase we want to underline in the hero.
   ============================================================ */

:root{
  /* ---- color ---- */
  --paper: #F2F0E9;         /* page background: pearl */
  --paper-card: #FBFAF6;    /* card surface, near white */
  --paper-deep: #E7E2D5;    /* recessed / frame fill */
  --ink: #15223B;           /* primary text & dark surfaces: navy */
  --ink-soft: #545F72;      /* secondary text: slate */
  --pen: #866832;           /* antique gold: accent, marks, labels */
  --pen-dark: #644E20;      /* gold, hover / pressed */
  --crest: #866832;         /* labels track the gold accent */
  --hl: #33523F;            /* heritage green: reserved highlight */
  --gold-on-dark: #C6A96A;  /* gold that reads on navy surfaces */
  --rule: #DAD5C6;          /* hairline / border */
  --rule-strong: #726A4F;  /* WCAG: 4.73:1 on --paper — was #C6C0AD (1.6:1, failed as both border and .opt/.cal-day.past text) */

  /* ---- type ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* ---- layout ---- */
  --wrap: 1120px;
  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(18,30,54,0.06), 0 10px 28px -14px rgba(18,30,54,0.20);
  --shadow-float: 0 8px 16px rgba(18,30,54,0.18), 0 24px 48px -12px rgba(18,30,54,0.38); /* toasts/modals — same navy tint as --shadow-card, more lift */
}

/* named easing curves — extend these for new work instead of inventing
   one-off cubic-beziers; built-in ease-out/ease-in-out are too weak for
   anything deliberate */
:root{
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
@media (prefers-reduced-motion: no-preference){
  :root{ --transition: 220ms cubic-bezier(.4,0,.2,1); }
}
@media (prefers-reduced-motion: reduce){
  :root{ --transition: 0ms; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; font-size: 112.5%; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.11rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* faint paper grain + top ledger line, applied once to body */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(18,30,54,0.03) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

/* ---- eyebrow / labels ---- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crest);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content: "";
  width: 16px;
  height: 1px;
  background: var(--crest);
  display: inline-block;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 560;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.04; }
h2{ font-size: clamp(1.8rem, 3.1vw, 2.6rem); line-height: 1.12; }
h3{ font-size: 1.3rem; line-height: 1.22; }

p{ margin: 0; }
.lede{ color: var(--ink-soft); font-size: 1.16rem; line-height: 1.6; max-width: 46ch; }

/* ============ header ============ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,240,233,0.85);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0; /* let this shrink in the header's flex row instead of forcing sibling overlap */
}
.brand-mark{ height: 53px; width: auto; display: block; flex: none; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name{
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-loc{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav{ display: flex; align-items: center; gap: 26px; }
.site-nav a{
  font-size: 15.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.site-nav a:hover{ color: var(--ink); }
.site-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--pen);
  transition: right var(--transition);
}
.site-nav a:hover::after{ right: 0; }

.nav-toggle{
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-card);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.nav-toggle span{
  content: ""; position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink);
  top: 50%; transform: translateY(-50%);
}
/* the outer bars sit inside the middle bar's box, so they span it fully (left/right 0, not 9px) */
.nav-toggle span::before, .nav-toggle span::after{
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before{ top: -6px; }
.nav-toggle span::after{ top: 6px; }

/* ============ buttons ============ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn[hidden]{ display: none; } /* .btn's display:inline-flex would otherwise beat the [hidden] UA rule */
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover{ background: var(--pen-dark); }
.btn-secondary{
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-secondary:hover{ border-color: var(--ink); }
.btn-ghost{
  background: var(--paper-card);
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover{ border-color: var(--pen); color: var(--pen-dark); }
.btn-block{ width: 100%; justify-content: center; }
.header-cta{ padding: 11px 20px; font-size: 15px; }

/* ============ sections ============ */
section{ position: relative; z-index: 1; }
.section{ padding: 70px 0; }
.section-tight{ padding: 48px 0; }
.section + .section, .section + .section-tight, .section-tight + .section{
  border-top: 1px solid var(--rule);
}
.section-head{ max-width: 660px; margin-bottom: 40px; }
.section-head .eyebrow{ margin-bottom: 14px; }
.section-head h2{ margin-top: 14px; text-wrap: balance; }
.section-head .lede{ margin-top: 16px; }

/* ============ hero ============ */
.hero{
  padding: 56px 0 28px;
  /* soft gold ambient light behind the hero so it isn't flat paper */
  background: radial-gradient(55% 80% at 90% 0%, rgba(198,169,106,0.20), transparent 70%);
}
.hero-layout{
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.hero-lead{ max-width: 38rem; }
.hero-title{
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 560;
  font-size: clamp(2.2rem, 5.2vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 18px;
  text-wrap: balance;
}
.hero-title .hl{ color: var(--hl); white-space: nowrap; }
.hero-title-mobile{ display: none; }
.hero-sub{
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.24rem;
  line-height: 1.6;
  max-width: 40ch;
  text-wrap: pretty;
}
.hero-points{
  list-style: none;
  padding: 0;
  margin-top: 36px;
  max-width: 27rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
/* beats .hero-sub's wider max-width inside the tablet media query */
.hero-lead .hero-points{ max-width: 27rem; }
.hero-points li{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--rule);
}
.hero-points li::before{
  content: "";
  width: 11px;
  height: 11px;
  background: var(--pen);
  flex-shrink: 0;
}
.hero-actions{ display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn{ font-size: 17.5px; padding: 17px 30px; }
.hero-actions .btn-primary{ box-shadow: 0 10px 22px -12px rgba(21,34,59,0.55); }
.hero-actions .btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(100,78,32,0.55); }
.hero-actions .hero-buy{ display: none; } /* phone-only; see responsive block */
.hero-note{
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.hero-card{
  position: relative;
  background: var(--paper-card);
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  padding: 36px 40px 40px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--pen);
}
.hero-card-title{
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crest);
}
.hero-card-list{ list-style: none; margin: 16px 0 0; padding: 0; }
.hero-card-list li{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 0;
  border-top: 1.5px dashed var(--rule);
  font-size: 19.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero-card-list li:first-child{ border-top: none; }
.hero-card-list .check{ flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--pen); }
.hero-card .tag-clip{
  left: auto; right: -15px; bottom: -17px;
  font-size: 15.5px;
  padding: 12px 19px;
}

.hero-figure{ position: relative; }
.photo-card{
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.1deg);
}
.photo-frame{
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-deep);
}
.photo-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 18%);
  display: block;
}
.hero-figure .photo-frame{ aspect-ratio: 4 / 5; }

/* monogram shown when a portrait photo is unavailable */
.photo-monogram{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(150deg, var(--paper-deep), var(--rule));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  letter-spacing: 0.02em;
  user-select: none;
}

.tag-clip{
  position: absolute;
  bottom: -16px;
  left: -14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: var(--radius);
  transform: rotate(-2deg);
  box-shadow: var(--shadow-card);
}


/* ============ process (legit numbered sequence) ============ */
.process-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.process-item{
  border-top: 1.5px solid var(--ink);
  padding-top: 18px;
  transition: border-color var(--transition);
}
.process-item:hover{ border-top-color: var(--pen); }
.process-num{
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--pen);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.process-item h3{ margin-top: 14px; }
.process-item p{ margin-top: 12px; color: var(--ink-soft); font-size: 16.5px; }

/* ============ upcoming test dates ============ */
.test-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.test-row{
  border-bottom: 1px solid var(--rule);
}
.test-link{
  display: grid;
  grid-template-columns: 76px 1fr auto;
  grid-template-areas:
    "name date go"
    "name note go";
  column-gap: 28px;
  row-gap: 6px;
  align-items: center;
  padding: 26px 14px;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
}
.test-link::after{
  content: "\2192";
  grid-area: go;
  font-size: 22px;
  line-height: 1;
  color: var(--pen);
  transition: transform var(--transition), color var(--transition);
}
.test-link:hover{ background: rgba(231,226,213,0.45); }
.test-link:hover::after{ transform: translateX(5px); color: var(--ink); }
.test-link:focus-visible{ outline: 2px solid var(--pen); outline-offset: -2px; }
.test-name{
  grid-area: name;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pen-dark);
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 6px 12px;
}
.test-date{
  grid-area: date;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink);
}
.test-note{
  grid-area: note;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.test-sources{
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.test-sources a{ color: var(--pen); border-bottom: 1px solid currentColor; }
.test-sources a:hover{ color: var(--pen-dark); }
@media (max-width: 560px){
  .test-link{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name go"
      "date date"
      "note note";
    row-gap: 10px;
    padding: 22px 6px;
  }
  .test-date{ font-size: 1.2rem; }
  .test-note{ font-size: 14px; }
}

/* ============ tutor grid ============ */
.tutor-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* homepage currently shows two tutors; keep them centered and human-sized */
.page-home .tutor-grid{
  grid-template-columns: repeat(2, minmax(0, 366px));
  justify-content: center;
  gap: 26px;
}
.tutor-card{
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.tutor-card:hover{
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  border-color: var(--rule-strong);
}
.tutor-card .photo-frame{ aspect-ratio: 4 / 5; }
.tutor-card-body{ padding: 22px 22px 24px; position: relative; }
.tutor-headline-stat{
  position: absolute;
  top: -18px;
  right: 18px;
  max-width: calc(100% - 36px);
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--pen-dark);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tutor-name{ font-family: var(--font-display); font-size: 1.42rem; font-weight: 600; margin-top: 4px; }
.tutor-role{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crest);
  margin-top: 7px;
}
.tutor-stats{ list-style: none; margin: 18px 0 0; padding: 0; }
.tutor-stats li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 7px 0;
  border-top: 1px dashed var(--rule);
}
.tutor-stats li:first-child{ border-top: none; padding-top: 0; }
.tutor-stats .check{ flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--pen); }
.tutor-link{
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.tutor-card:hover .tutor-link{ color: var(--pen-dark); }
.tutor-link svg{ width: 12px; height: 12px; transition: transform var(--transition); }
.tutor-card:hover .tutor-link svg{ transform: translateX(3px); }

/* ============ apply / manage callouts ============ */
.callout{
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  background-image: radial-gradient(60% 120% at 100% 0%, rgba(198,169,106,0.18), transparent 65%);
}
.callout .eyebrow{ color: var(--gold-on-dark); }
.callout .eyebrow::before{ background: var(--gold-on-dark); }
.callout h2{ color: var(--paper); margin-top: 12px; }
.callout p{ color: #C3C8D3; margin-top: 12px; font-size: 16.5px; }
.callout-actions{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
/* the primary button on the dark callout needs to be gold, not navy-on-navy */
.callout .btn-primary{ background: var(--gold-on-dark); border-color: var(--gold-on-dark); color: var(--ink); }
.callout .btn-primary:hover{ background: #D8BD83; border-color: #D8BD83; }

/* ============ consultation booking page ============ */
.consult-form{ margin-top: 26px; }
.consult-fields{ display: grid; gap: 14px; max-width: 460px; margin-bottom: 24px; }
.consult-fields label{
  display: flex; flex-direction: column; gap: 5px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-soft);
}
.consult-fields label[hidden]{ display: none; } /* label's display:flex would otherwise override [hidden] */
.consult-fields input, .consult-fields textarea{
  font: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--paper-card); color: var(--ink); resize: vertical;
}
.consult-fields input:focus, .consult-fields textarea:focus{ outline: 2px solid var(--pen); outline-offset: 1px; }
.consult-form .req{ color: #b23b3b; text-transform: none; letter-spacing: 0; }
.consult-form .opt{ color: var(--rule-strong); text-transform: none; letter-spacing: 0; }
.consult-pick-hint{ font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.consult-confirm p{ margin: 0 0 12px; font-size: 15px; }
/* drops down directly under the time button just clicked — same flex-basis:100%
   trick as .slot-addr-row on the booking page, so it breaks onto its own line
   inside .book-times (display:flex; flex-wrap:wrap) right where it was chosen */
.consult-confirm-row{ flex-basis: 100%; padding-top: 4px; }

.manage-panel{
  border: 1px solid var(--rule);
  background: var(--paper-card);
  border-radius: var(--radius);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.manage-panel h2{ margin-top: 12px; }
.manage-panel .lede{ margin-top: 12px; }
.manage-actions{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ============ footer ============ */
.site-footer{
  background: var(--ink);
  color: #CDD2DC;
  margin-top: 0;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  /* longhand — same reason as .footer-bottom below: this element always
     also carries .wrap, and a shorthand here zeroes .wrap's horizontal
     padding since this rule comes later in the cascade */
  padding-top: 54px;
  padding-bottom: 36px;
}
.footer-name{ font-family: var(--font-display); font-size: 1.3rem; color: var(--paper); margin-top: 0; }
.footer-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-on-dark);
  margin-bottom: 14px;
}
.footer-col a{
  display: block;
  font-size: 16px;
  color: #CDD2DC;
  padding: 7px 0;
  transition: color var(--transition);
}
.footer-col a:hover{ color: var(--gold-on-dark); }
.footer-bottom{
  border-top: 1px solid #2B3856;
  /* longhand, not "padding: 22px 0" — this element always also carries
     .wrap (class="wrap footer-bottom" on every page), and a shorthand here
     would zero out .wrap's horizontal padding since this rule comes later
     in the cascade, running the copyright line edge-to-edge on every page */
  padding-top: 22px;
  padding-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #79839A;
}
.footer-bottom a{ color: #A9B2C4; transition: color var(--transition); }
.footer-bottom a:hover{ color: var(--gold-on-dark); }

/* ============ legal / policy pages ============ */
.legal-doc{ max-width: 68ch; }
.legal-doc h1{ margin-bottom: 4px; }
.legal-doc .legal-updated{
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.legal-doc h2{ font-size: 1.35rem; margin-top: 38px; }
.legal-doc p{ color: var(--ink-soft); font-size: 1.04rem; line-height: 1.65; margin-top: 12px; }
.legal-doc ul{ margin: 10px 0 0; padding-left: 22px; }
.legal-doc li{ color: var(--ink-soft); font-size: 1.04rem; line-height: 1.6; margin-top: 8px; }
.legal-doc strong{ color: var(--ink); font-weight: 600; }
.legal-doc a{ color: var(--pen); border-bottom: 1px solid var(--rule-strong); }
.legal-doc a:hover{ color: var(--pen-dark); }

/* ============ about page ============ */
.approach-intro{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.approach-intro .section-head{ margin-bottom: 0; }
.approach-portrait{ margin: 0; }
.approach-portrait .photo-frame{ aspect-ratio: 4 / 5; }
.approach-portrait .tag-clip{ left: auto; right: -12px; }

/* "Our approach" eyebrow doubles as a link home */
.eyebrow-link{ transition: color var(--transition); }
.eyebrow-link:hover{ color: var(--pen); }
.eyebrow-link:hover::before{ background: var(--pen); }
.eyebrow-back{ display: inline-block; transition: transform var(--transition); }
.eyebrow-link:hover .eyebrow-back{ transform: translateX(-3px); }

.approach-body{ max-width: 62ch; margin-top: 22px; font-size: 1.16rem; color: var(--ink-soft); }
.quote-block{
  margin-top: 40px;
  padding: 28px 0 28px 34px;
  border-left: 2px solid var(--pen);
  position: relative;
  max-width: 60ch;
}
.quote-mark{ font-family: var(--font-display); font-size: 3.8rem; color: var(--pen); line-height: 0; position: relative; top: 24px; }
.quote-block blockquote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.65rem;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}
.quote-cite{
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.approach-cta{ margin-top: 32px; }

/* ============ tutor profile page ============ */
/* tighter vertical rhythm on profile pages; less dead space between blocks */
.page-tutor .section{ padding: 46px 0; }
.page-tutor .section-tight{ padding: 32px 0; }
.page-tutor .closing-cta{ padding: 54px 0; }
.page-tutor .section-head{ margin-bottom: 26px; }
.page-tutor .profile-hero{ padding-bottom: 0; }

.tutor-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.tutor-back:hover{ color: var(--pen); }
.profile-hero{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 24px;
}
.profile-hero .photo-frame{ aspect-ratio: 4 / 5; }
.profile-role{ margin-top: 16px; font-size: 1.28rem; color: var(--ink-soft); font-family: var(--font-display); font-style: italic; }
.profile-pronouns{ margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--ink-soft); }
.profile-hero h1{ margin-top: 16px; }
.profile-actions{ margin-top: 30px; }

.glance-panel{
  margin-top: 8px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.glance-title{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crest);
  margin-bottom: 4px;
}
.glance-list{ list-style: none; margin: 14px 0 0; padding: 0; }
.glance-list li{
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  border-top: 1px dashed var(--rule);
  font-size: 16.5px;
}
.glance-list li:first-child{ border-top: none; }
.glance-list .check{ flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--pen); }

.bio-block{ max-width: 64ch; }
.bio-block p{ margin-top: 18px; color: var(--ink-soft); font-size: 1.14rem; }
.bio-note{
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-radius: var(--radius);
  padding: 11px 15px;
  display: inline-block;
}

.gallery-grid{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item{ position: relative; }
.gallery-item .photo-frame{ aspect-ratio: 4 / 5; }
.gallery-cap{
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.closing-cta{
  text-align: center;
  padding: 64px 0;
}
.closing-cta .eyebrow{ justify-content: center; }
.closing-cta .eyebrow::before{ display: none; }
.closing-cta h2{ margin-top: 14px; }
.closing-cta .btn{ margin-top: 28px; }

/* ============ reveal-on-scroll ============ */
.reveal{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms ease; }
  .reveal.is-visible{ opacity: 1; transform: none; }
}

/* ============ focus states ============ */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--pen);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============ skip link ============ */
.skip-link{
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius);
  transition: top var(--transition);
}
.skip-link:focus-visible{
  top: 12px;
  outline: 2px solid var(--gold-on-dark);
  outline-offset: 2px;
}

/* ============ anchor-scroll offset (sticky header) ============ */
section[id]{ scroll-margin-top: 90px; }

/* ============ responsive ============ */
@media (max-width: 900px){
  .hero-actions .hero-buy{ display: inline-flex; }
  .site-nav{
    position: fixed;
    inset: 62px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .site-nav.is-open{ opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a{ padding: 12px 0; width: 100%; }
  .nav-toggle{ display: block; }
  .header-cta{ display: none; }

  .hero-layout{ grid-template-columns: 1fr; gap: 34px; }
  .hero-lead{ max-width: none; }
  .hero-sub{ max-width: 48ch; }
  .hero-card{ order: 2; padding: 30px 26px 32px; }
  .hero-card-list li{ font-size: 18px; padding: 15px 0; }
  .hero-actions .btn{ font-size: 17px; padding: 17px 32px; }
  .process-list{ grid-template-columns: 1fr; gap: 28px; }
  .tutor-grid{ grid-template-columns: repeat(2, 1fr); }
  .callout, .manage-panel{ grid-template-columns: 1fr; padding: 34px 26px; }
  .callout-actions, .manage-actions{ justify-content: flex-start; }
  .footer-inner{ grid-template-columns: 1fr; gap: 28px; }
  .profile-hero{ grid-template-columns: 1fr; gap: 28px; }
  .profile-hero .photo-frame{ max-width: 300px; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }

  .approach-intro{ grid-template-columns: 1fr; gap: 26px; }
  .approach-portrait{ order: -1; max-width: 300px; }
}
@media (max-width: 780px){
  .page-home .tutor-grid{ grid-template-columns: minmax(0, 380px); }
}
@media (max-width: 560px){
  .tutor-grid{ grid-template-columns: 1fr; }
  /* homepage tutors on a phone: compact photo-left cards so all of them
     fit in about one screen of scrolling instead of ~700px apiece */
  .page-home .tutor-grid{ grid-template-columns: 1fr; gap: 14px; }
  .page-home .tutor-card{ flex-direction: row; align-items: stretch; }
  .page-home .tutor-card .photo-frame{ flex: 0 0 34%; aspect-ratio: auto; min-height: 100%; }
  .page-home .tutor-card-body{ flex: 1; min-width: 0; padding: 16px 16px 16px 18px; }
  .page-home .tutor-headline-stat{
    position: static; display: inline-block; margin-bottom: 8px;
    max-width: 100%; font-size: 12px; padding: 5px 10px; box-shadow: none;
  }
  .page-home .tutor-name{ font-size: 1.2rem; margin-top: 0; }
  .page-home .tutor-stats{ margin-top: 10px; }
  .page-home .tutor-stats li{ font-size: 14px; padding: 4px 0; }
  .page-home .tutor-stats li:nth-child(n+3){ display: none; }
  .page-home .tutor-link{ margin-top: 12px; padding-top: 10px; }
  .section{ padding: 50px 0; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  /* header bar on phones — smaller than its original size. The hero already
     carries "Athens Test Prep" prominently now, so the header's job is just
     quick nav: compact logo/wordmark, no repeated location line, and bigger
     Sign-in/hamburger targets since those are the only things worth tapping here. */
  .header-inner{ gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .brand{ gap: 6px; min-width: 0; }
  .brand-mark{ height: 36px; width: auto; }
  /* Chasing a font-size that fits on one line is fragile — confirmed on a
     real device (not just Chromium testing) that Safari renders Fraunces
     wider than Chromium at the same size, so a value tuned against one
     engine kept truncating on the other. Wrapping to 2 lines instead is
     robust to that: at a comfortable size it only wraps when it actually
     needs to (e.g. Sign-in button showing), and always shows the full name
     either way — no more chasing a shrinking magic number. */
  .brand-name{ font-size: 0.8rem; white-space: normal; line-height: 1.15; letter-spacing: 0.01em; }
  .brand-loc{ display: none; }
  .nav-toggle{ width: 46px; height: 46px; }
  .nav-toggle span{ left: 11px; right: 11px; }
  .nav-toggle span::before{ top: -7px; }
  .nav-toggle span::after{ top: 7px; }

  /* hero: the same promise as desktop (headline + the three bullets), just
     smaller. The brand name is already in the header, so the brand-only
     mobile title stays hidden. */
  .hero-title-mobile{ display: none; }
  .hero{ padding-top: 32px; }
  .hero-title{ font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
  .hero-points{ margin-top: 22px; font-size: 1.2rem; }
  .hero-points li{ padding: 11px 2px; }

  /* hero CTAs, Apple-style: fully rounded pill, bigger, lighter weight —
     a deliberate departure from the site's sharp --radius elsewhere,
     scoped to just these two buttons per request */
  .hero-actions .btn{
    border-radius: 980px;
    font-size: 19px;
    font-weight: 500;
    padding: 18px 36px;
  }

  /* the copyright bar's monospace type reads noticeably bigger than the same
     px size in the body font — bring it down to match the site's other
     small-print mono text (.brand-loc, .eyebrow) instead of wrapping onto 3 lines */
  .footer-bottom{ font-size: 11.5px; line-height: 1.7; }

  /* "Click a tutor below to see more!" is redundant — tapping a card to see
     more is self-evident, and the exclamation mark is the only one on the
     whole site. The heading alone carries the section. */
  #tutors .lede{ display: none; }
}
@media (max-width: 360px){
  /* smallest phones: reclaim side padding and tighten the wordmark further */
  .wrap{ padding: 0 18px; }
  .brand-mark{ height: 30px; width: auto; }
  .brand-name{ font-size: 0.72rem; }
}

/* phone tap-target and legibility pass: links at least 44px tall,
   small mono labels no smaller than 13px */
@media (max-width: 560px){
  .brand{ min-height: 44px; }
  .footer-col a{ padding: 12px 0; }
  .footer-inner{ padding-bottom: 20px; }
  .footer-label{ font-size: 13px; }
  .footer-bottom{ font-size: 13px; }
  .footer-bottom a{ display: inline-block; padding: 10px 0; }
  .test-name, .tutor-role{ font-size: 13px; }
  .test-sources{ font-size: 13px; line-height: 2; }
  .test-sources a{ display: inline-block; padding: 8px 0; line-height: 1.4; }
  .page-home .tutor-headline-stat{ font-size: 13px; }
}
