/* Version B: closer to the original agreektutor.com look, normal scrolling. */
:root {
  --navy: #011222;
  --terra: #9e4734;
  --terra-dark: #833a2a;
  --paper: #f7f7f5;
  --white: #ffffff;
  --ink: #111111;
  --muted: #5f6368;
  --line: rgba(0, 0, 0, .1);
  --dark-card: #121212;
  --on-dark: #f5f5f3;
  --on-dark-muted: #b9bec4;
  --sidebar: 248px;
  --bar: calc(56px + env(safe-area-inset-top)); /* height of the fixed mobile bar */
  --sans: 'Commissioner', 'Avenir Next', system-ui, -apple-system, sans-serif;
  --serif: 'PT Serif', Georgia, serif;
  --display: 'GFS Didot', 'PT Serif', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: #fff; padding: 8px 12px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Shell: desktop sidebar / mobile top bar ---------- */
.sidebar { display: none; }
.main { min-width: 0; }

@media (min-width: 1024px) {
  :root { --bar: 0px; }
  .sidebar {
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
    background: var(--paper); border-right: 1px solid var(--line); padding: 28px 28px 32px;
  }
  .main { margin-left: var(--sidebar); }
  .mbar { display: none !important; }
}
.lang-pill { display: inline-flex; align-self: flex-start; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); padding: 3px; gap: 2px; }
.lang-pill a, .lang-pill span { display: inline-grid; place-items: center; min-width: 40px; min-height: 32px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; }
.lang-pill span { background: var(--navy); color: #fff; }
.side-nav { margin-top: 44px; display: grid; gap: 4px; }
.side-nav a { display: block; padding: 6px 0; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.side-nav a:hover, .side-nav a.active { color: var(--terra); }
.side-cta { display: block; margin-top: 4px; padding: 6px 0; font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--terra); }
.side-cta:hover { color: var(--terra-dark); }
.side-logo { margin-top: auto; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.side-logo svg { width: 40px; height: 40px; }
.side-logo span { font: 400 22px/1 var(--serif); white-space: nowrap; }

/* Mobile top bar. Full width, no pill: transparent with light text over the navy hero,
   paper-coloured once past it (class .light). */
.mbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: var(--bar);
  display: flex; align-items: center; gap: 8px; padding: env(safe-area-inset-top) 8px 0 20px;
  color: var(--on-dark); background: transparent;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.mbar.light { color: var(--navy); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.mbar .icon-btn { color: inherit; }
.mbar .btn { transition: opacity .25s, transform .25s, visibility .25s; }
.mbar .btn.away { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.mbar .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; margin-right: auto; min-height: 44px; }
.mbar .logo svg { width: 26px; height: 26px; }
.mbar .logo span { font: 400 18px/1 var(--serif); white-space: nowrap; }
@media (max-width: 350px) { .mbar .logo span { display: none; } }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; }

.sheet { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom)); }
.sheet[hidden] { display: none; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.sheet nav { margin-top: 16px; display: grid; }
.sheet nav a { display: block; padding: 12px 0; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; max-width: 100%;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; text-align: center;
  font: 600 14px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: background-color .15s;
}
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-dark); }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); color: var(--ink); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; white-space: nowrap; }

/* ---------- Sections ---------- */
.sec { padding: 25px 0 0; }
.sec-title { font-size: clamp(17px, 2.4vw, 20px); text-align: center; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.prompt { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 23px; padding: 8px 20px; text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #555; }
.prompt:hover { color: var(--terra); }
.prompt svg { width: 18px; height: 18px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@media (min-width: 1024px) { .sec { padding: 37px 0 0; } .prompt { margin-top: 33px; } }

/* Hero */
.hero { background: var(--navy); color: var(--on-dark); padding: calc(var(--bar) + 10px) 0 0; }
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.glyph { width: 64px; height: 96px; cursor: pointer; filter: drop-shadow(0 0 24px rgba(255, 255, 255, .12)); }
.glyph path { fill: none; stroke: #f5f5f3; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.glyph text { font: 400 120px/1 var(--display); fill: #f5f5f3; }
.glyph-cap { margin-top: 6px; font-size: 13px; line-height: 1.4; }
.glyph-cap { align-self: stretch; }
.glyph-cap > span { display: block; height: 18px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glyph-cap .script { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.glyph-cap .meaning { color: var(--on-dark-muted); }
.glyph-cap .gnote { font-style: italic; color: var(--on-dark-muted); }
.phx { font-family: 'Noto Sans Phoenician', var(--sans); }
.hero-center { container-type: inline-size; width: 100%; }
/* Always two lines: each line is nowrap and main.js sizes the font so the longer one fits (max 60px).
   The --fit estimate (container width / longer line in em) avoids a jump before the script runs. */
.hero h1 { margin-top: 32px; font: 400 min(60px, calc(100cqi / var(--fit, 15.4)))/1.1 var(--display); }
.hero h1:lang(el) { --fit: 17.6; }
.hero h1 { align-self: stretch; }
.hero h1 span { display: block; width: fit-content; margin: 0 auto; white-space: nowrap; }
/* The hero fills the screen. Equal flexible space above the content and below the tagline;
   the button is centred in the space between the tagline and the bottom of the screen. */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero > .wrap { flex: 1; display: flex; flex-direction: column; }
.hero > .wrap::before { content: ''; flex: 1; }
.hero-bottom { flex: 1; margin-top: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-go { flex: 1; display: grid; place-items: center; min-height: 96px; }
@media (max-width: 1023px) { .hero-go { align-items: end; padding-bottom: 32px; } } /* mobile: button near the bottom of the hero */
.hero-tagline { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; max-width: 30em; }
@media (max-height: 640px) and (max-width: 1023px) {
  .glyph { width: 52px; height: 78px; }
  .hero h1 { margin-top: 20px; }
  .hero-bottom { margin-top: 18px; }
  .hero-tagline { font-size: 12px; }
}
@media (min-width: 1024px) {
  .hero { padding: 40px 0 0; }
  .glyph { width: 104px; height: 156px; }
  .glyph path { stroke-width: 4.5; }
  .hero h1 { margin-top: 24px; }
  .hero-bottom { margin-top: 24px; }
  /* Desktop: button a third of the way down the space below the tagline, not halfway */
  .hero-go { grid-template-rows: 1fr auto 2fr; }
  .hero-go .btn { grid-row: 2; }
  .hero-tagline { max-width: none; white-space: nowrap; }
}

/* About */
.about-box { max-width: 720px; margin: 0 auto; }
.about-title { font-size: clamp(16px, 2.2vw, 18px); text-align: center; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid #222; }
.tabs { display: flex; align-items: center; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; color: var(--muted); cursor: pointer; }
.tab b { font-weight: 600; margin-right: 6px; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab-count { margin-left: auto; padding-left: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tab-panel { margin-top: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; align-items: center; font-size: 17px; }
.tab-panel[hidden] { display: none; }
.tab-panel.vision { justify-content: center; text-align: center; font: 400 26px/1.3 var(--display); }
@media (min-width: 640px) { .tab-panel { padding: 28px 36px; min-height: 180px; font-size: 18px; } }

/* Services */
.svc-grid { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 600px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc { position: relative; min-height: 240px; border-radius: 16px; overflow: hidden; background: var(--dark-card); color: var(--on-dark); display: flex; align-items: flex-end; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.55); }
.svc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .9) 25%, rgba(0, 0, 0, .25)); }
.svc-body { position: relative; z-index: 1; padding: 18px 20px; }
.svc h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.svc ul { margin-top: 10px; display: grid; gap: 5px; font-size: 15px; color: #e4e4e2; }
.svc li { display: flex; gap: 10px; line-height: 1.4; }
.svc li::before { content: ''; flex: none; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: #d07a63; }
@media (min-width: 1200px) { .svc { min-height: 400px; } }

/* Craft band */
.craft { position: relative; overflow: hidden; padding: 17px 0 0; }
.marquee { display: flex; width: max-content; font-size: clamp(30px, 6vw, 56px); line-height: 1.2; white-space: nowrap; animation: marq 45s linear infinite; }
.marquee.rev { animation-direction: reverse; }
.marquee span { padding-right: .6em; }
@keyframes marq { to { transform: translateX(-50%); } }
.craft-img { width: min(78%, 720px); aspect-ratio: 16 / 10; margin: -12px auto; clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%); overflow: hidden; position: relative; z-index: -1; }
.craft-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .5; }

/* Lessons */
.lessons-title { text-align: center; text-transform: uppercase; font: 600 clamp(26px, 5vw, 48px)/1.1 var(--sans); letter-spacing: -.01em; max-width: 16em; margin: 0 auto; }
.acc { max-width: 760px; margin: 16px auto 0; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 10px 0; font-size: 17px; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { flex: none; width: 22px; height: 22px; transition: transform .25s; }
.acc details[open] summary { color: var(--terra); }
.acc details[open] summary svg { transform: rotate(180deg); }
.acc-body { padding: 0 0 16px; display: grid; gap: 8px; font-size: 16px; color: #333; }
.acc-body .sub { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.acc-body ul { display: grid; gap: 6px; }
.acc-body li { display: flex; gap: 10px; }
.acc-body li::before { content: '•'; color: var(--terra); }
.acc-body .goal { padding-left: 14px; border-left: 2px solid var(--terra); }

/* Methodology */
.meth-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.meth-head h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.seg { display: inline-flex; max-width: 100%; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--white); }
.seg button { flex: 1 1 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--terra); color: #fff; }
.meth-grid { display: grid; gap: 12px; margin-top: 16px; }
.meth-grid[hidden] { display: none; }
@media (min-width: 720px) { .meth-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .meth-grid { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.step-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.step-label i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(158, 71, 52, .1); font: 400 15px/1 var(--display); font-style: normal; }
.step h3 { margin-top: 12px; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.step p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.step ul { margin-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.step li { display: flex; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--paper); }
.step li::before { content: ''; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--terra); }

/* Roots */
.roots-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .roots-grid { grid-template-columns: 300px 1fr; align-items: start; gap: 40px; } }
.roots-intro h2 { font: 500 clamp(26px, 4vw, 32px)/1.2 var(--sans); }
.roots-intro p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.roots-intro .btn { margin-top: 14px; }
.notes { display: grid; gap: 12px; }
@media (min-width: 600px) { .notes { grid-template-columns: 1fr 1fr; } }
.note { position: relative; display: flex; align-items: flex-end; min-height: 200px; border-radius: 16px; overflow: hidden; background: var(--dark-card); color: #fff; text-decoration: none; }
.note img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.note:hover img { transform: scale(1.03); }
.note::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1, 18, 34, .92) 30%, rgba(1, 18, 34, .1)); }
.note-time { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.note-body { position: relative; z-index: 1; padding: 16px 18px; }
.note h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.note p { margin-top: 4px; font-size: 14px; color: #d5d9de; }
.note .read { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #e08c74; }

/* Contact */
.contact { background: var(--white); padding-bottom: 24px; }
.contact-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.photo-card { position: relative; border-radius: 20px; overflow: hidden; background: var(--navy); display: flex; align-items: flex-end; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.9); display: none; }
.photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent 70%); }
@media (min-width: 900px) { .photo-card { min-height: 460px; } .photo-card img { display: block; } }
.session { position: relative; z-index: 1; margin: 10px; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.session-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.session h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.session h3::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.session .pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); white-space: nowrap; }
.session p { margin-top: 6px; font-size: 15px; color: #e6e6e6; }
.contact h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-lead { margin-top: 6px; font-size: 16px; color: var(--muted); }
.form { margin-top: 16px; display: grid; gap: 12px; }
@media (min-width: 560px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #444; }
.field label small { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid rgba(0, 0, 0, .14); border-radius: 10px; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); background: #fff; }
.form .btn { width: 100%; text-transform: none; letter-spacing: 0; font-size: 16px; }
.form-status { font-size: 15px; }
.form-status:empty { display: none; }
.form-status.err { color: #a12a17; }
.form-done { text-align: center; padding: 24px 8px; font-size: 18px; border-radius: 14px; background: var(--paper); }
.contact-alt { margin-top: 12px; font-size: 15px; color: var(--muted); }
.contact-alt a { color: var(--ink); font-weight: 600; word-break: break-all; }
.signoff { margin-top: 20px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #555; }

/* Footer */
.footer { padding: 36px 0 16px; text-align: center; }
.footer-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.footer-logo svg { width: 64px; height: 64px; }
.footer-logo span { font: 400 clamp(40px, 8vw, 64px)/1 var(--serif); }
.footer-tag { margin-top: 12px; font-size: 16px; color: #444; letter-spacing: .02em; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 44px; text-decoration: none; font-weight: 500; }
.footer-mail svg { width: 18px; height: 18px; color: var(--terra); }
.footer .btn { margin-top: 6px; }
.footer-legal { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; font-size: 13px; color: var(--muted); }
.footer-legal a, .footer-legal button, .footer-legal span { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: none; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--terra); }

/* Cookie card */
.cookie { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto; background: #f0f0ee; border: 1px solid rgba(0, 0, 0, .08); border-radius: 18px; box-shadow: 0 12px 34px rgba(0, 0, 0, .2); padding: 14px 16px; display: grid; gap: 10px; font-size: 15px; }
.cookie[hidden] { display: none; }
.cookie .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie .btns > * { min-width: 0; }
.cookie .btn { min-height: 42px; padding: 6px 10px; font-size: 12px; }
.cookie a { color: var(--muted); font-size: 13px; }
@media (min-width: 1024px) { .cookie { left: 24px; right: auto; bottom: 24px; width: 400px; } }

/* Sub pages */
.page { padding: calc(var(--bar) + 8px) 0 32px; }
.page .wrap { max-width: 760px; }
.page .wrap > *, .page-cta { min-width: 0; max-width: 100%; }
.crumb { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); text-decoration: none; }
.page h1 { margin-top: 4px; font: 400 clamp(32px, 6vw, 48px)/1.15 var(--serif); }
.page .lede { margin-top: 10px; font-size: 19px; color: var(--muted); }
.page .meta { margin-top: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.page-img { margin-top: 20px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #ddd; }
.prose { margin-top: 20px; display: grid; gap: 16px; font-size: 18px; line-height: 1.7; }
.prose h2 { margin-top: 12px; font: 400 26px/1.2 var(--serif); }
.prose ul { display: grid; gap: 8px; }
.prose li { display: flex; gap: 10px; }
.prose li::before { content: '•'; color: var(--terra); flex: none; }
.page-cta { margin-top: 32px; padding: 22px 20px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; justify-items: start; gap: 12px; }
.page-cta h2 { font: 400 26px/1.25 var(--serif); }
.pager { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; }
.pager a:last-child { text-align: right; }
.pager small { display: block; color: var(--muted); }
.notes-page { margin-top: 20px; }
.cv-block { margin-top: 28px; }
.cv-block h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.cv-item { padding: 12px 0; border-top: 1px solid var(--line); }
.cv-item h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.cv-item .sub { margin-top: 2px; font-size: 15px; color: var(--muted); }
.cv-item p { margin-top: 6px; font-size: 16px; }
.cv-list { display: grid; gap: 8px; margin-top: 8px; font-size: 16px; }
.cv-list li { display: flex; gap: 10px; }
.cv-list li::before { content: '•'; color: var(--terra); flex: none; }
@media (min-width: 1024px) { .page { padding: 48px 0 56px; } }
