/* Writethought · The Reading Room
   Full-site design system. Target for the Wix Studio build; see wix/build-playbook.md
   for the token and component mapping. */

:root {
  --paper:      #FAF7F2;
  --paper-alt:  #F2EDE4;
  --ink:        #1C1A17;
  --ink-muted:  #57534C;
  --accent:     #7A4E3B;
  --accent-deep:#4A2E22;
  --sage:       #6E7A63;
  --line:       #DDD5C8;
  --logo-red:   #AA1A1E;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type:  "Special Elite", "Courier New", monospace;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;      /* 17px floor */
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 52rem; }
.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0 0 .6em; text-wrap: balance; }
.display { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.04; font-weight: 300; }
.display em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1.15em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-muted); max-width: 38rem; }
.tbd { color: var(--ink-muted); font-style: italic; opacity: .8; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block; font-family: var(--sans); font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
  background: var(--accent-deep); color: var(--paper);
  padding: .95rem 1.6rem; border-radius: 2px; border: none; cursor: pointer;
  text-decoration: none; transition: background .18s ease;
}
.btn:hover { background: var(--ink); }
.btn-sm { padding: .6rem 1.05rem; font-size: .875rem; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.link-arrow { font-family: var(--sans); font-size: .9375rem; font-weight: 500; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .18s ease; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { opacity: .65; }
.link-light { color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; max-width: none; margin-top: 2.25rem; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
/* Wordmark: Anjana's logo, live text. Typewriter face, red tittle on the i. */
.wordmark { font-family: var(--type); font-size: 1.1rem; font-weight: 400; letter-spacing: .02em; text-decoration: none; white-space: nowrap; color: var(--ink); }
.wordmark .ti, .wordmark-footer .ti { position: relative; }
.wordmark .ti i, .wordmark-footer .ti i { font-style: normal; position: absolute; left: 50%; top: .02em; transform: translateX(-50%); width: .16em; height: .16em; border-radius: 50%; background: var(--logo-red); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-family: var(--sans); font-size: .875rem; }
.nav a { text-decoration: none; color: var(--ink-muted); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Heroes ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero .lede { margin-top: 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.4fr minmax(0, 23rem); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero-portrait { margin: 0; aspect-ratio: 5 / 5.6; background: var(--paper-alt); border: 1px solid var(--line); overflow: hidden; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-media { position: relative; }

/* Interior page hero: quieter */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; font-weight: 300; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lede { margin-top: 1.75rem; }

/* Rotating stamp */
.stamp { position: absolute; left: -2.4rem; bottom: -2.4rem; width: 8.5rem; height: 8.5rem; color: var(--accent); animation: spin 30s linear infinite; pointer-events: none; }
.stamp text { fill: currentColor; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .22em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Credibility bar ---------- */

.credbar { border-block: 1px solid var(--line); background: var(--paper-alt); padding-block: 1.05rem; }
.credbar p { margin: 0; max-width: none; font-family: var(--sans); font-size: .8125rem; line-height: 1.7; color: var(--ink-muted); text-align: center; }
.credbar i, .post-meta i, .footer-legal i { font-style: normal; color: var(--accent); padding-inline: .35rem; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band { background: var(--paper-alt); }
.section-title { margin-bottom: 3rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 3rem; }

/* ---------- Three doors ---------- */

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.door { display: flex; flex-direction: column; align-items: flex-start; background: var(--paper); padding: 2.5rem 2rem 2.25rem; text-decoration: none; transition: background .2s ease; }
.door:hover { background: var(--paper-alt); }
.door-icon { display: block; width: 2rem; height: 2rem; color: var(--accent); margin-bottom: 1.4rem; }
.door-icon svg { width: 100%; height: 100%; }
.door h3 { margin-bottom: .75rem; }
.door p { color: var(--ink-muted); font-size: 1rem; flex: 1; margin-bottom: 1.75rem; }

/* ---------- Split layouts ---------- */

.split { display: grid; grid-template-columns: 1fr minmax(0, 22rem); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.split-portrait { grid-template-columns: minmax(0, 22rem) 1fr; }
.split-text p { color: var(--ink-muted); }
.split-text h2 { color: var(--ink); }

.pullquote { padding-top: 3.5rem; }
.pullquote blockquote { margin: 0; border-left: 2px solid var(--accent); padding-left: 1.75rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-style: italic; font-weight: 300; line-height: 1.35; color: var(--ink); }

.portrait { margin: 0; aspect-ratio: 1 / 1; background: var(--paper-alt); border: 1px solid var(--line); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* Typographic quote panel */
.quote-panel { margin: 0; background: var(--paper-alt); border: 1px solid var(--line); padding: 2.6rem 2.2rem 2.3rem; }
.quote-panel blockquote { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-style: italic; font-weight: 300; line-height: 1.3; }
.quote-panel blockquote em { color: var(--accent); }
.quote-panel figcaption { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-muted); margin-top: 1.5rem; }

/* ---------- Feature (dark band) ---------- */

.feature { background: var(--ink); color: var(--paper); padding-block: var(--section-y); }
.feature-title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 300; line-height: 1.08; max-width: 16ch; }
.feature-lede { color: rgba(250, 247, 242, .72); max-width: 40rem; font-size: 1.0625rem; }
.feature p { color: rgba(250, 247, 242, .72); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: rgba(250, 247, 242, .16); border: 1px solid rgba(250, 247, 242, .16); margin: 3rem 0 0; max-width: 46rem; padding: 0; }
.stats > div { background: var(--ink); padding: 1.5rem 1.4rem; }
.stats dt { font-family: var(--sans); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(250, 247, 242, .55); margin-bottom: .6rem; }
.stats dd { margin: 0; font-size: 1.65rem; font-weight: 300; line-height: 1; }
.feature-note { font-family: var(--sans); font-size: .8125rem; color: rgba(250, 247, 242, .5); margin-top: 2rem; }
.feature-note em { color: rgba(250, 247, 242, .38); }

/* ---------- Prompt widget ---------- */

.prompt-card { border: 1px solid var(--line); background: var(--paper-alt); padding: 2.75rem clamp(1.5rem, 4vw, 3rem) 2.4rem; max-width: 44rem; }
.prompt-card blockquote { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-style: italic; font-weight: 300; line-height: 1.4; min-height: 3em; }
.prompt-actions { display: flex; align-items: baseline; gap: 2rem; margin-top: 1.75rem; }
.prompt-next { background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: .9375rem; font-weight: 500; color: var(--accent); border-bottom: 1px solid currentColor; padding: 0 0 2px; }
.prompt-next::after { content: " \21BB"; }
.prompt-next:hover { opacity: .65; }
.prompt-num { font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Cards: packages, foundations, topics ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem); }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem); }
.card { background: var(--paper); border: 1px solid var(--line); padding: 2.25rem 1.9rem 2rem; display: flex; flex-direction: column; }
.band .card { background: var(--paper); }
.card h3 { margin-bottom: .35rem; }
.card .price { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--accent); margin: 0 0 1.25rem; }
.card .price b { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.card p, .card li { color: var(--ink-muted); font-size: 1rem; }
.card ul { margin: 0 0 1.25rem; padding-left: 1.1rem; }
.card li { margin-bottom: .4rem; }
.card .card-kicker { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 1rem; }
.card .best-if { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; font-style: italic; }
.card .actions { margin-top: 1.5rem; }

/* ---------- Comparison table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table.compare { border-collapse: collapse; width: 100%; min-width: 42rem; font-family: var(--sans); font-size: .9rem; }
table.compare th, table.compare td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
table.compare thead th { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; background: var(--paper-alt); }
table.compare tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.compare td { color: var(--ink-muted); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: none; }

/* ---------- Pathway (training) ---------- */

.pathway { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; margin-block: 1.5rem 0; max-width: 56rem; }
.pathway li { list-style: none; position: relative; padding: 0 2rem 0 0; }
.pathway li::before { counter-increment: step; content: counter(step); font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--paper); background: var(--accent); width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.pathway li:not(:last-child)::after { content: ""; position: absolute; top: .8rem; left: 2.4rem; right: .8rem; height: 1px; background: var(--line); }
.pathway h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.pathway p { font-size: .95rem; color: var(--ink-muted); margin: 0; }

/* ---------- Steps (numbered process) ---------- */

.steps { counter-reset: n; margin: 0; padding: 0; max-width: 40rem; }
.steps li { list-style: none; position: relative; padding: 0 0 1.6rem 3.1rem; }
.steps li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: .1rem; font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); width: 1.7rem; height: 1.7rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: .85rem; top: 2.1rem; bottom: .2rem; width: 1px; background: var(--line); }
.steps b { font-family: var(--serif); font-weight: 500; }
.steps p { color: var(--ink-muted); margin: .2rem 0 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 44rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.2rem 0; font-size: 1.1rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-muted); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Lists ---------- */

.checklist { margin: 0; padding: 0; max-width: 38rem; }
.checklist li { list-style: none; position: relative; padding: 0 0 .7rem 1.7rem; color: var(--ink-muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: 1px; background: var(--accent); }

.cred-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .4rem 3rem; margin: 0; padding: 0; max-width: 48rem; }
.cred-list li { list-style: none; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.cred-list .tbd { display: block; font-size: .875rem; }

/* ---------- Notices ---------- */

.notice { border: 1px solid var(--line); background: var(--paper-alt); padding: 1.75rem 1.9rem; max-width: 44rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-title { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem; }

.crisis { border: 1px solid var(--accent); background: var(--paper); padding: 1.75rem 1.9rem; max-width: 44rem; }
.crisis .notice-title { color: var(--accent-deep); }
.crisis strong { color: var(--ink); }

/* ---------- Forms ---------- */

.form { max-width: 34rem; display: grid; gap: 1.2rem; font-family: var(--sans); }
.form label { display: grid; gap: .45rem; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: .8rem .9rem; width: 100%;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .btn { justify-self: start; }
.form-note { font-family: var(--sans); font-size: .8125rem; color: var(--ink-muted); }
.form-inline { display: flex; flex-wrap: wrap; gap: .8rem; max-width: 34rem; font-family: var(--sans); }
.form-inline input { flex: 1 1 14rem; font-size: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: .8rem .9rem; }
.feature .form-inline input { border-color: rgba(250, 247, 242, .3); background: rgba(250, 247, 242, .96); }

/* ---------- Reflections ---------- */

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.post { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.post a { text-decoration: none; }
.post a:hover h3 { color: var(--accent); }
.post-meta { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1rem; }
.post h3 { margin-bottom: .55rem; transition: color .15s ease; }
.post p { color: var(--ink-muted); font-size: 1rem; margin: 0; }
.placeholder-note { font-family: var(--sans); font-size: .8125rem; color: var(--ink-muted); opacity: .7; margin-top: 3rem; max-width: none; }

/* Single post */
.article { max-width: 42rem; margin-inline: auto; }
.article-header { text-align: left; margin-bottom: 3rem; }
.article-header h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; font-weight: 300; }
.article-body p { max-width: none; color: var(--ink); }
.article-body h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.article-body blockquote { margin: 2.25rem 0; border-left: 2px solid var(--accent); padding-left: 1.75rem; font-size: 1.35rem; font-style: italic; font-weight: 300; line-height: 1.4; }
.article-footer { border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 2rem; display: flex; align-items: center; gap: 1.25rem; }
.article-footer .avatar { width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.article-footer p { margin: 0; font-size: .95rem; color: var(--ink-muted); }
.article-footer b { font-family: var(--serif); font-weight: 500; color: var(--ink); display: block; }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; max-width: 42rem; margin: 2.5rem auto 0; font-family: var(--sans); font-size: .875rem; }
.post-nav a { color: var(--ink-muted); text-decoration: none; }
.post-nav a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */

.legal h2 { font-size: 1.45rem; margin-top: 2.75rem; }
.legal p, .legal li { color: var(--ink-muted); max-width: none; }
.legal .updated { font-family: var(--sans); font-size: .8125rem; color: var(--ink-muted); border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.25rem; }

/* ---------- Invitation ---------- */

.invitation { background: var(--accent-deep); color: var(--paper); padding-block: clamp(5rem, 10vw, 8.5rem); text-align: center; }
.invitation-title { margin-bottom: 1.5rem; }
.invitation p { margin-inline: auto; color: rgba(250, 247, 242, .78); max-width: 36rem; }
.invitation .actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-alt); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-family: var(--sans); font-size: .875rem; color: var(--ink-muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem 3rem; }
.site-footer p { max-width: 30rem; }
.wordmark-footer { font-family: var(--type); font-size: 1.05rem; color: var(--ink); margin-bottom: .5rem; }
.footer-name { color: var(--ink); margin-bottom: .5rem; }
.footer-label { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: none; }
.site-footer a { color: var(--ink-muted); text-decoration-color: var(--line); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent); }
.footer-note p { font-size: .8125rem; line-height: 1.6; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; font-size: .8125rem; }
.footer-legal p { margin: 0; max-width: none; }

/* ---------- Dynamics ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 62rem) {
  .nav { display: none; }          /* prototype only; the build needs a real mobile menu */
  .hero-grid, .split, .split-portrait { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 20rem; }
  .split-portrait .portrait { max-width: 20rem; }
  .pullquote { padding-top: 0; }
  .stamp { width: 6.5rem; height: 6.5rem; left: -1rem; bottom: -1rem; }
  .pathway { grid-template-columns: 1fr; gap: 1.5rem; }
  .pathway li { padding-right: 0; }
  .pathway li:not(:last-child)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Mobile navigation
   Below 62rem the six nav links collapse behind a three-bar button and the
   header CTA moves into the panel. Above it, nothing here applies.
   ========================================================================== */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle:hover { border-color: var(--line); }

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 0.75rem;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars span:nth-child(3) { bottom: 0; }

/* Bars fold into an X while the panel is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(250, 247, 242, .98);
  backdrop-filter: blur(8px);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding-block: 1.25rem 1.75rem;
}

.mobile-nav-inner a {
  font-family: var(--type);
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  padding-block: .85rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-inner a.active { color: var(--accent); }

.mobile-nav-inner a:last-of-type { border-bottom: none; }

.mobile-nav-cta {
  margin-top: 1.5rem;
  text-align: center;
  border-bottom: none !important;
  color: var(--paper) !important;
  font-family: var(--sans) !important;
  font-size: .9375rem !important;
}

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-inner { justify-content: space-between; }
  .mobile-nav { display: block; }
  .mobile-nav[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars span { transition: none; }
}
