/* Dede & Nene. The look comes from Armenian illuminated manuscripts: warm vellum, cochineal red
   (vordan karmir), lapis and gold, canon-table arches, illuminated initials, and chapters
   numbered with Armenian letter-numerals. Shared by the home page and the kitchen pages. */
:root {
  --vellum: #F1E6D2;
  --leaf: #F8F0E2;
  --ink: #2B1D16;
  --muted: #6E5A4B;
  --rule: rgba(43, 29, 22, .16);
  --red: #A3262A;
  --lapis: #1F3A6B;
  --gold: #B08A3E;
  --apricot: #D9783F;
  --on-dark: #F4E9D6;
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Literata", Georgia, serif;
  --f-hy: "Noto Serif Armenian", "Sylfaen", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --vellum: #18110D; --leaf: #221813; --ink: #F1E6D4; --muted: #B4A08B; --rule: rgba(241, 230, 212, .14);
    --red: #E0645A; --lapis: #8EA9DA; --gold: #D8B467; --apricot: #F0A56B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --vellum: #18110D; --leaf: #221813; --ink: #F1E6D4; --muted: #B4A08B; --rule: rgba(241, 230, 212, .14);
  --red: #E0645A; --lapis: #8EA9DA; --gold: #D8B467; --apricot: #F0A56B; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--vellum); color: var(--ink);
  font: 17px/1.65 var(--f-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; }
[hidden] { display: none !important; }
[lang="hy"] { font-family: var(--f-hy); }
img { max-width: 100%; }

/* ---- Masthead: centered wordmark between double rules, chapter nav ---- */
.masthead { max-width: 1160px; margin: 0 auto; padding-top: 28px; text-align: center; position: relative; }
.theme-toggle { position: absolute; top: 22px; right: 0; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.theme-toggle:hover { color: var(--red); border-color: currentColor; }
.theme-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.rosette { width: 30px; height: 30px; color: var(--red); margin-bottom: 6px; }
.wm-hy { font-size: 19px; letter-spacing: .1em; color: var(--red); }
.wm-en { font-family: var(--f-display); font-style: italic; font-size: 34px; line-height: 1.1; font-variation-settings: "SOFT" 100; }
.chapters { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; margin-top: 20px; padding-block: 10px; border-block: 3px double var(--rule); font-size: 15px; }
.chapters a { text-decoration: none; color: var(--muted); display: inline-flex; align-items: baseline; gap: 6px; padding-block: 4px; }
.chapters a:hover { color: var(--ink); }
.chapters b { color: var(--red); font-weight: 500; font-size: 14px; }

main, .colophon { max-width: 1160px; margin: 0 auto; }

/* ---- Khoran: the canon-table arch around the opening page ---- */
.khoran {
  position: relative; max-width: 920px; margin: 56px auto 24px; padding: 22px;
  border-radius: 460px 460px 10px 10px / 300px 300px 10px 10px;
  background-color: var(--lapis);
  background-image:
    radial-gradient(circle, rgba(216, 180, 103, .5) 0 1.6px, transparent 2px),
    linear-gradient(45deg, transparent 45%, rgba(216, 180, 103, .2) 46% 54%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(216, 180, 103, .2) 46% 54%, transparent 55%);
  background-size: 22px 22px;
  box-shadow: inset 0 0 0 4px var(--lapis), inset 0 0 0 6px #C9A456;
}
:root[data-theme="dark"] .khoran { background-color: #22355C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .khoran { background-color: #22355C; } }
.pom { position: absolute; top: -34px; left: 50%; width: 60px; height: 60px; transform: translateX(-50%); }
.khoran-page {
  background: var(--leaf); text-align: center;
  border-radius: 440px 440px 4px 4px / 280px 280px 4px 4px;
  padding: clamp(96px, 14vw, 140px) clamp(20px, 6vw, 72px) clamp(40px, 6vw, 64px);
  box-shadow: 0 0 0 2px #C9A456;
}
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-family: var(--f-body); }
.khoran h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 350; margin-top: 18px; letter-spacing: -.01em; font-variation-settings: "SOFT" 50; }
.khoran h1 [lang="hy"] { font-size: .82em; font-weight: 500; color: var(--red); }
.khoran h1 em { color: var(--lapis); }
.lede { max-width: 56ch; margin: 22px auto 0; color: var(--muted); font-size: 18px; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; font: 600 15px var(--f-body); padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--red); background: var(--red); color: #FBF1E4; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--red); }
.btn:hover { filter: brightness(1.06); }

/* ---- Chapters: illuminated initial, Armenian title, English title ---- */
.chapter { padding-block: 80px 24px; scroll-margin-top: 12px; }
.chapter + .chapter { border-top: 3px double var(--rule); }
.ch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 40px; max-width: 820px; }
.ch-num {
  width: 84px; height: 84px; display: grid; place-items: center; font-size: 50px; line-height: 1; font-weight: 500;
  color: #FBF1E4; background: var(--red); border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 5px #D8B467;
}
.ch-hy { font-size: 18px; color: var(--red); }
.ch-hy span { font-family: var(--f-body); font-style: italic; font-size: 14px; color: var(--muted); margin-left: 8px; }
.ch h2 { font-size: clamp(32px, 4.4vw, 50px); margin-top: 4px; font-variation-settings: "SOFT" 50; }
.ch-dek { color: var(--muted); margin-top: 10px; max-width: 58ch; text-wrap: pretty; }
.fine { font-size: 14px; color: var(--muted); margin-top: 20px; }
.sub { font-size: 28px; margin-top: 48px; }
.sub [lang="hy"] { font-size: .7em; color: var(--red); margin-left: 8px; }
.sub-dek { color: var(--muted); margin-top: 6px; max-width: 62ch; }

/* ---- Ա Sayings: cards that turn over ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { position: relative; min-height: 250px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; perspective: 1200px; touch-action: manipulation; }
.card .face { position: absolute; inset: 0; border-radius: 8px; padding: 26px 24px; display: flex; flex-direction: column; backface-visibility: hidden; transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.card .front { background: var(--leaf); border: 1px solid var(--rule); justify-content: space-between; }
.card .front [lang="hy"] { font-size: 25px; line-height: 1.4; font-weight: 500; }
.card .front small { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.card .front small b { font-weight: 400; color: var(--red); }
.card .back { background: var(--lapis); color: var(--on-dark); transform: rotateY(180deg); gap: 10px; }
:root[data-theme="dark"] .card .back { background: #22355C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .back { background: #22355C; } }
.card .back .tr { font-style: italic; color: #E7CF95; font-size: 14px; }
.card .back .en { font-family: var(--f-display); font-size: 22px; line-height: 1.25; }
.card .back .note { font-size: 14.5px; opacity: .85; margin-top: auto; }
.card[aria-pressed="true"] .front { transform: rotateY(-180deg); }
.card[aria-pressed="true"] .back { transform: rotateY(0); }
.card:hover .front { border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .card .face { transition: none; transform: none !important; backface-visibility: visible; }
  .card .back { visibility: hidden; }
  .card[aria-pressed="true"] .back { visibility: visible; }
  .card[aria-pressed="true"] .front { visibility: hidden; }
}
.words { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px 48px; }
.words h3 { font-size: 26px; font-style: italic; }
.words dl { margin: 0; }
.words dl div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px dotted var(--rule); }
.words dt { font-size: 19px; color: var(--red); }
.words dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.words dd i { color: var(--ink); }

/* ---- Բ The road ---- */
.road-search { max-width: 520px; margin-bottom: 28px; }
.road-search label, .namer-in label { display: block; font-weight: 600; font-size: 15px; }
.road-search input, .namer-in input { width: 100%; min-width: 0; margin-top: 6px; font: 17px var(--f-body); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--leaf); color: var(--ink); }
.road-none { font-size: 15px; color: var(--muted); margin-top: 10px; }
.road-none button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.road { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px; align-items: start; }
.road-map { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 64px; }
.road-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.road-lines path { fill: none; stroke: var(--muted); stroke-opacity: .22; stroke-width: 1.2; transition: stroke-opacity 200ms, stroke 200ms; }
.road-lines path.on { stroke: var(--red); stroke-opacity: .95; stroke-width: 2; }
.road-col h3 { font-family: var(--f-body); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; min-height: 2.6em; }
.road-col h3 [lang="hy"] { display: block; letter-spacing: .04em; text-transform: none; font-size: 15px; color: var(--red); }
.stops { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.stop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; font: 15px var(--f-body); text-align: left; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--leaf); color: var(--ink); cursor: pointer; touch-action: manipulation; transition: background-color 150ms, border-color 150ms, opacity 150ms; }
.stop [lang="hy"] { font-size: 13px; color: var(--muted); white-space: nowrap; }
.stop:hover { border-color: var(--ink); }
.road.focused .stop:not(.lit) { opacity: .45; }
.stop.lit { border-color: var(--red); }
.stop[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #FBF1E4; opacity: 1; }
.stop[aria-pressed="true"] [lang="hy"] { color: inherit; opacity: .85; }
.stop-card { position: sticky; top: 16px; background: var(--leaf); border-radius: 8px; padding: 28px 26px; border-top: 4px solid var(--gold); box-shadow: 0 1px 0 var(--rule), 0 0 0 1px var(--rule); }
.sc-kind { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sc-hy { font-size: clamp(38px, 5vw, 52px); line-height: 1.15; color: var(--red); margin-top: 6px; }
.stop-card h3 { font-size: 30px; }
.sc-where { font-style: italic; color: var(--muted); font-size: 15px; margin-top: 2px; }
.sc-body { margin-top: 14px; font-size: 15.5px; text-wrap: pretty; }
.sc-facts { margin: 18px 0 0; display: grid; gap: 12px; padding-top: 14px; border-top: 1px dotted var(--rule); }
.sc-facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sc-facts dd { margin: 2px 0 0; font-size: 15px; }
.sc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sc-links button { font: 14px var(--f-body); padding: 3px 12px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.sc-links button:hover { border-color: var(--red); color: var(--red); }

.road-left { min-width: 0; display: grid; gap: 40px; }
.sc-fam { display: block; margin-top: 12px; font: 600 14px var(--f-body); padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--apricot); background: transparent; color: var(--ink); cursor: pointer; }
.sc-fam:hover { background: color-mix(in srgb, var(--apricot) 18%, transparent); }
.sc-fam.on { background: var(--apricot); color: #2B1D16; }

/* Your family's road */
.family { margin-bottom: 28px; padding: 18px 22px; border-radius: 8px; border: 1.5px dashed var(--apricot); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fam-h { font-family: var(--f-display); font-style: italic; font-size: 21px; }
.fam-h [lang="hy"] { font-style: normal; font-size: 14px; color: var(--red); margin-left: 6px; }
.fam-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; counter-reset: f; }
.fam-list li { display: inline-flex; align-items: center; counter-increment: f; }
.fam-list li + li::before { content: "→"; color: var(--apricot); margin: 0 6px 0 0; font-weight: 600; }
.fam-list button[data-go] { font: 600 14.5px var(--f-body); padding: 5px 12px; border-radius: 999px 0 0 999px; border: 1.5px solid var(--apricot); border-right: 0; background: color-mix(in srgb, var(--apricot) 16%, transparent); color: var(--ink); cursor: pointer; }
.fam-list button[data-go]::before { content: counter(f) ". "; color: var(--apricot); }
.fam-x { font: 16px var(--f-body); line-height: 1; padding: 5px 10px 5px 6px; border-radius: 0 999px 999px 0; border: 1.5px solid var(--apricot); border-left: 0; background: color-mix(in srgb, var(--apricot) 16%, transparent); color: var(--muted); cursor: pointer; }
.fam-x:hover { color: var(--red); }
.fam-hint { color: var(--muted); font-size: 15px; flex: 1 1 320px; }
.fam-hint button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline dotted var(--apricot); text-underline-offset: 4px; cursor: pointer; }
.fam-clear { margin-left: auto; font: 14px var(--f-body); background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* The geographic map */
.atlas { margin: 0; }
.atlas-frame { position: relative; }
.atlas svg#atlas-svg { touch-action: pan-y; cursor: grab; }
.atlas.zoomed svg#atlas-svg { touch-action: none; }
.atlas svg#atlas-svg:active { cursor: grabbing; }
.atlas .c { vector-effect: non-scaling-stroke; }
.atlas-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 2px 6px rgba(43, 29, 22, .12); background: var(--leaf); }
.atlas-zoom button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); font: 500 22px/1 var(--f-body); cursor: pointer; }
.atlas-zoom button + button { border-top: 1px solid var(--rule); }
.atlas-zoom button:hover:not(:disabled) { color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--leaf)); }
.atlas-zoom button:disabled { color: var(--muted); opacity: .4; cursor: default; }
.atlas-zoom button:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.atlas-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.atlas-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--leaf); font-size: 14px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 200ms; }
.atlas-hint.on { opacity: .92; }
.atlas svg { display: block; width: 100%; height: auto; aspect-ratio: 800 / 540; border-radius: 8px; box-shadow: 0 0 0 1px var(--rule); background: var(--leaf); }
.atlas .sea { fill: color-mix(in srgb, var(--lapis) 9%, var(--vellum)); }
.atlas .c { fill: var(--leaf); stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: .6; }
.atlas .c.turkey { fill: color-mix(in srgb, var(--red) 6%, var(--leaf)); }
.atlas .c.armenia { fill: color-mix(in srgb, var(--gold) 30%, var(--leaf)); }
.atlas .wash { color: var(--red); }
.atlas .country { font: 600 11px var(--f-body); letter-spacing: .22em; fill: var(--muted); text-anchor: middle; opacity: .8; }
.atlas .region { font: italic 500 20px var(--f-display); fill: var(--red); text-anchor: middle; }
.atlas .region-sub { font: italic 11.5px var(--f-body); fill: var(--red); text-anchor: middle; opacity: .8; }
.atlas .route { fill: none; stroke: var(--red); stroke-width: 2; stroke-opacity: .85; }
.atlas .fam-line { fill: none; stroke: var(--apricot); stroke-width: 3.5; stroke-dasharray: 7 5; stroke-linecap: round; }
.atlas .fam-num { fill: var(--apricot); stroke: var(--leaf); stroke-width: 2; }
.atlas .fam-num-t { font: 700 10.5px var(--f-body); fill: #2B1D16; text-anchor: middle; }
#atlas-badges { pointer-events: none; }
.atlas .dot { cursor: pointer; }
.atlas .dot circle { stroke: var(--leaf); stroke-width: 1.5; transition: r 150ms; }
.atlas .dot.yergir circle { fill: var(--red); }
.atlas .dot.hub circle { fill: var(--lapis); }
.atlas .dot.dest circle { fill: var(--gold); }
.atlas .dot text { font: 12px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--leaf); stroke-width: 3px; stroke-linejoin: round; }
.atlas .dot:hover circle, .atlas .dot:focus-visible circle, .atlas .dot.lit circle { r: 7; }
.atlas .dot.sel circle { r: 9; stroke: var(--ink); stroke-width: 2; }
.atlas .dot.sel text, .atlas .dot.lit text { font-weight: 600; }
.atlas .dot:focus { outline: none; }
.atlas .dot:focus-visible text { text-decoration: underline; }
.atlas figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--muted); }
.key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.key.yergir::before { background: var(--red); } .key.hub::before { background: var(--lapis); } .key.dest::before { background: var(--gold); }
.atlas-beyond { color: var(--ink); font-style: italic; flex-basis: 100%; }
.atlas-names { margin-left: auto; font: 600 14px var(--f-body); padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--lapis); background: transparent; color: var(--lapis); cursor: pointer; }
.atlas-names[aria-pressed="true"] { background: var(--lapis); color: var(--leaf); }
.atlas .fine { margin-top: 6px; }
.atlas.failed svg { display: none; }
@media (max-width: 760px) {
  /* The map scales to about 45%, so its text sizes go up and only the active route is labeled */
  .atlas .dot text { font-size: 24px; stroke-width: 5px; }
  .atlas:not(.zoomed) .dot:not(.sel):not(.lit) text { display: none; }
  .atlas-zoom { flex-direction: row; top: 8px; right: 8px; }
  .atlas-zoom button { width: 36px; height: 36px; font-size: 20px; }
  .atlas-zoom button + button { border-top: 0; border-left: 1px solid var(--rule); }
  .atlas .country { font-size: 18px; }
  .atlas .region { font-size: 26px; }
  .atlas .region-sub { display: none; }
  .atlas .dot circle { r: 8; }
  .atlas .dot.lit circle { r: 10; }
  .atlas .dot.sel circle { r: 12; }
}

/* ---- Գ The year ---- */
.year { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }
.window {
  background: var(--lapis); color: var(--on-dark); text-align: center;
  border-radius: 190px 190px 8px 8px / 150px 150px 8px 8px; padding: 72px 28px 32px;
  box-shadow: inset 0 0 0 6px var(--lapis), inset 0 0 0 8px #C9A456;
}
:root[data-theme="dark"] .window { background: #22355C; box-shadow: inset 0 0 0 6px #22355C, inset 0 0 0 8px #C9A456; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .window { background: #22355C; box-shadow: inset 0 0 0 6px #22355C, inset 0 0 0 8px #C9A456; } }
.w-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #E7CF95; }
.w-label [lang="hy"] { letter-spacing: .02em; text-transform: none; }
.w-days { font-family: var(--f-display); font-size: clamp(72px, 10vw, 112px); line-height: 1; margin-top: 10px; color: #F3D9A0; font-variant-numeric: lining-nums tabular-nums; }
.w-unit { font-family: var(--f-display); font-style: italic; font-size: 20px; }
.w-text { font-size: 14.5px; opacity: .85; margin-top: 18px; text-align: left; }
.w-greet { font-size: 18px; margin-top: 14px; text-align: left; }
.w-tr { font-size: 13px; font-style: italic; color: #E7CF95; text-align: left; }
.feasts { list-style: none; margin: 0; padding: 0; }
.feasts li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding-block: 18px; border-bottom: 1px dotted var(--rule); }
.feasts li:first-child { padding-top: 0; }
.feasts time { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.feasts time b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 40px; letter-spacing: 0; line-height: 1; color: var(--ink); }
.feasts h3 { font-size: 22px; }
.feasts h3 [lang="hy"] { font-size: 15px; color: var(--red); margin-left: 6px; }
.feasts p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.feasts li.remember { border-left: 3px solid var(--ink); padding-left: 14px; }
.feasts li.remember time, .feasts li.remember h3 [lang="hy"] { color: var(--ink); }

/* ---- Դ Your name and the alphabet ---- */
.namer { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--leaf); border-radius: 8px; padding: 32px; box-shadow: 0 0 0 1px var(--rule); }
.namer-in input { font-size: 20px; }
.name-big { font-size: clamp(48px, 8vw, 88px); line-height: 1.15; color: var(--red); min-height: 1.15em; overflow-wrap: anywhere; }
.name-big::first-letter { color: var(--lapis); }
.name-letters { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.name-letters li { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.name-letters li [lang="hy"] { font-size: 22px; color: var(--ink); line-height: 1.3; }
.abc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; align-items: start; margin-top: 20px; }
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.letter { font: 500 24px var(--f-hy); aspect-ratio: 1; border: 1px solid var(--rule); background: var(--leaf); color: var(--ink); border-radius: 6px; cursor: pointer; display: grid; place-items: center; line-height: 1; touch-action: manipulation; transition: background-color 150ms, color 150ms; }
.letter:hover { border-color: var(--ink); }
.letter.swap { color: var(--lapis); }
.letter[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #FBF1E4; }
.letter-card { background: var(--leaf); border-radius: 8px; padding: 24px; box-shadow: 0 0 0 1px var(--rule); position: sticky; top: 16px; }
.lc-glyph { font-size: 96px; line-height: 1; color: var(--red); }
.lc-glyph small { font-size: .45em; color: var(--muted); margin-left: 8px; }
.letter-card h3 { font-size: 26px; margin-top: 8px; }
.lc-sound { font-size: 15px; color: var(--muted); margin-top: 4px; }
.lc-sound b { color: var(--ink); }
.lc-word { margin-top: 14px; padding-top: 12px; border-top: 1px dotted var(--rule); font-size: 15px; color: var(--muted); }
.lc-word [lang="hy"] { font-size: 24px; color: var(--ink); margin-right: 8px; }

/* ---- Ե The table: plates on a cloth, jars on a shelf ---- */
.cloth {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(16px, 3vw, 32px); padding: clamp(24px, 4vw, 48px);
  border-radius: 8px; background-color: color-mix(in srgb, var(--red) 9%, var(--vellum));
  background-image: radial-gradient(circle at 12px 12px, color-mix(in srgb, var(--red) 22%, transparent) 0 2px, transparent 2.5px), radial-gradient(circle at 0 0, color-mix(in srgb, var(--red) 14%, transparent) 0 1.2px, transparent 1.6px);
  background-size: 24px 24px, 12px 12px;
}
.plate {
  aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 14%;
  background: radial-gradient(circle, var(--leaf) 0 58%, color-mix(in srgb, var(--lapis) 12%, var(--leaf)) 58.5% 61%, var(--leaf) 61.5% 100%);
  box-shadow: 0 0 0 1px var(--rule), 0 10px 24px -14px rgba(43, 29, 22, .45); text-decoration: none; transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .plate:hover { transform: translateY(-3px) rotate(-2deg); } }
.p-hy { font-size: clamp(18px, 2.6vw, 28px); color: var(--red); line-height: 1.25; }
.p-en { font-family: var(--f-display); font-size: clamp(16px, 2vw, 22px); }
.p-meta { font-size: 12.5px; color: var(--muted); }
.shelf { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.jars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-bottom: 10px; border-bottom: 6px solid color-mix(in srgb, var(--gold) 45%, var(--vellum)); }
.jar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 92px; padding: 14px 12px 10px; border-radius: 14px 14px 8px 8px; border: 1px solid var(--rule); border-top: 6px solid var(--gold); background: var(--leaf); color: var(--ink); font: 13px var(--f-body); cursor: pointer; touch-action: manipulation; }
.jar [lang="hy"] { font-size: 16px; }
.jar:hover { border-color: var(--ink); border-top-color: var(--gold); }
.jar[aria-pressed="true"] { background: var(--red); color: #FBF1E4; border-color: var(--red); border-top-color: #D8B467; }
.jar-card { background: var(--leaf); border-radius: 8px; padding: 24px; box-shadow: 0 0 0 1px var(--rule); margin-top: 48px; }
.jc-hy { font-size: 30px; color: var(--red); }
.jc-tr { font-style: italic; color: var(--muted); }
.jar-card h4 { font-family: var(--f-display); font-weight: 400; font-size: 24px; margin: 6px 0 0; }
.jar-card p { font-size: 15.5px; color: var(--muted); margin-top: 8px; }
.jar-card .buy { color: var(--ink); }

.dishes { margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 40px; }
.dishes div { padding-block: 12px; border-bottom: 1px dotted var(--rule); }
.dishes dt { font-family: var(--f-display); font-size: 19px; font-style: italic; }
.dishes dt [lang="hy"] { font-style: normal; color: var(--red); font-size: 18px; margin-right: 8px; }
.dishes dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.drinks { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.drinks article { background: var(--leaf); border-radius: 8px 8px 40px 40px; padding: 22px 22px 28px; box-shadow: 0 0 0 1px var(--rule); text-align: center; }
.d-hy { font-size: 28px; color: var(--red); }
.drinks h4 { font-family: var(--f-display); font-weight: 400; font-size: 21px; margin: 2px 0 0; }
.drinks h4 i { font-size: 15px; color: var(--muted); }
.drinks article > p:last-child { font-size: 15px; color: var(--muted); margin-top: 8px; }
.toast-line { margin-top: 20px; font-family: var(--f-display); font-style: italic; font-size: 20px; text-align: center; }
.toast-line [lang="hy"] { font-style: normal; color: var(--red); }

/* ---- Զ Music ---- */
.instruments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.instruments div { border-top: 3px double var(--gold); padding-top: 12px; }
.instruments [lang="hy"] { font-size: 24px; color: var(--red); }
.instruments h4 { font-family: var(--f-display); font-weight: 400; font-size: 20px; margin: 0; }
.instruments div > p:last-child { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.kef { margin: 28px 0; max-width: 70ch; padding: 16px 20px; border-left: 3px solid var(--apricot); background: color-mix(in srgb, var(--apricot) 9%, transparent); border-radius: 0 6px 6px 0; }
.artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.artist { background: var(--leaf); border-radius: 8px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--rule); display: flex; flex-direction: column; gap: 4px; }
.a-era { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lapis); }
.artist h3 { font-size: 23px; }
.a-hy { color: var(--red); font-size: 16px; }
.a-listen { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 14px; }
.a-listen span { color: var(--ink); font-style: italic; }
.a-listen a { font-weight: 600; color: var(--red); }
.a-listen a::after { content: " ↗"; }

/* ---- Your name: traditional form and the names list ---- */
.trad { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dotted var(--rule); }
.trad-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trad-hy { font-size: clamp(40px, 6vw, 64px); line-height: 1.15; color: var(--lapis); }
.trad-tr { font-size: 15.5px; color: var(--ink); }
.trad:not([hidden]) ~ .name-big { font-size: clamp(30px, 4vw, 44px); }
.namelist { margin-top: 16px; }
.ntabs { display: flex; gap: 6px; }
.ntabs button { font: 600 15px var(--f-body); padding: 7px 20px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.ntabs button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #FBF1E4; }
.ngroup { font-family: var(--f-body); font-weight: 400; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ngrid button { display: grid; gap: 0; align-content: start; text-align: left; font: 14px var(--f-body); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--rule); background: var(--leaf); color: var(--muted); cursor: pointer; }
.ngrid button:hover { border-color: var(--red); }
.ngrid button.native > span:first-child { color: var(--ink); font-weight: 600; }
.ngrid [lang="hy"] { font-size: 19px; color: var(--ink); }
.ngrid small { font-size: 13px; color: var(--red); font-style: italic; }

/* ---- Է Customs: illuminated initials ---- */
.customs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 40px; }
.initial { font-size: 22px; color: var(--muted); display: flex; align-items: flex-end; gap: 4px; }
.initial b { font-weight: 500; font-size: 40px; line-height: 1; width: 58px; height: 58px; display: grid; place-items: center; color: var(--gold); background: var(--lapis); border-radius: 4px; box-shadow: inset 0 0 0 2px var(--lapis), inset 0 0 0 3px #D8B467; }
:root[data-theme="dark"] .initial b { background: #22355C; box-shadow: inset 0 0 0 2px #22355C, inset 0 0 0 3px #D8B467; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .initial b { background: #22355C; box-shadow: inset 0 0 0 2px #22355C, inset 0 0 0 3px #D8B467; } }
.customs h3 { font-size: 22px; margin-top: 12px; }
.customs article > p:last-child { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

.sc-ask { display: block; margin-top: 8px; font: 600 14px var(--f-body); padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--red); background: transparent; color: var(--red); cursor: pointer; }
.sc-ask:hover:not(:disabled) { background: var(--red); color: #FBF1E4; }
.sc-ask:disabled { border-color: var(--rule); color: var(--muted); cursor: default; }

/* ---- Ը Ask them: pick questions on the left, your list on a ruled page on the right ---- */
.kit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: start; }
.kit-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-themes button { font: 15px var(--f-body); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.kit-themes button[aria-selected="true"] { background: var(--ink); color: var(--vellum); border-color: var(--ink); }
.kit-qs { list-style: none; margin: 18px 0 0; padding: 0; }
.kit-qs li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px dotted var(--rule); }
.kit-add { flex: none; font: 600 14px var(--f-body); padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--red); background: transparent; color: var(--red); cursor: pointer; }
.kit-add:hover:not(:disabled) { background: var(--red); color: #FBF1E4; }
.kit-add:disabled { border-color: var(--rule); color: var(--muted); cursor: default; }
.kit-own { margin-top: 24px; }
.kit-own label { display: block; font-weight: 600; font-size: 15px; }
.kit-own div { display: flex; gap: 8px; margin-top: 6px; }
.kit-own input { flex: 1; min-width: 0; font: 16px var(--f-body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--leaf); color: var(--ink); }
.kit-list {
  position: sticky; top: 16px; background: var(--leaf); border-radius: 8px; padding: 28px 28px 24px;
  border-left: 4px double var(--red); box-shadow: 0 0 0 1px var(--rule), 0 14px 30px -20px rgba(43, 29, 22, .5);
}
.kit-title { color: var(--red); font-size: 15px; letter-spacing: .08em; }
.kit-list h3 { font-size: 26px; font-style: italic; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.kit-list h3 input { font: inherit; color: var(--red); border: 0; border-bottom: 1px dashed var(--rule); background: transparent; padding: 0; min-width: 0; width: 9em; }
.kit-list ol { margin: 16px 0 0; padding-left: 1.4em; }
.kit-list ol li { padding-block: 8px; font-size: 16px; line-height: 1.5; border-bottom: 1px dotted var(--rule); }
.kit-list ol li label { display: inline-flex; gap: 10px; align-items: baseline; cursor: pointer; }
.kit-list ol li input { accent-color: var(--red); }
.kit-list ol li.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); }
.kit-x { font-size: 18px; line-height: 1; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 6px; margin-left: 4px; }
.kit-x:hover { color: var(--red); }
.kit-empty { color: var(--muted); font-style: italic; margin-top: 16px; }
.kit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; }
.kit-actions .btn { padding: 9px 18px; font-size: 14px; }
.kit-status { font-size: 14px; color: var(--muted); }

/* ---- Թ People ---- */
.pfilter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.pfilter button { font: 15px var(--f-body); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.pfilter button[aria-pressed="true"] { background: var(--ink); color: var(--vellum); border-color: var(--ink); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.person { background: var(--leaf); border-radius: 8px; padding: 22px 22px 20px; box-shadow: 0 0 0 1px var(--rule); border-top: 3px solid var(--red); display: flex; flex-direction: column; gap: 6px; }
.person h3 { font-size: 24px; }
.born { font-size: 14px; color: var(--red); font-style: italic; }
.yrs { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.proute { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13.5px; margin-top: 4px; }
.proute i { font-style: normal; color: var(--apricot); }
.proute span { color: var(--muted); }
.proute button { font: 13.5px var(--f-body); padding: 1px 10px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.proute button:hover { border-color: var(--red); color: var(--red); }
.pstory { font-size: 15px; color: var(--muted); margin-top: 6px; text-wrap: pretty; }

/* ---- Ժ Reading: a table of contents ---- */
.toc { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.toc li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding-block: 14px; border-bottom: 1px dotted var(--rule); }
.toc-n { font-size: 22px; color: var(--red); }
.toc-t { font-family: var(--f-display); font-size: 23px; line-height: 1.25; }
.toc-t small { display: block; font-family: var(--f-body); font-size: 15px; color: var(--muted); margin-top: 2px; }
a.toc-t { text-decoration: none; }
a.toc-t:hover { color: var(--red); }
.toc li.ready .toc-k { color: var(--red); font-weight: 600; }
.toc li:not(.ready) .toc-t { color: var(--muted); }
.toc-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---- Colophon ---- */
.colophon { margin-top: 72px; padding: 48px 0 64px; border-top: 3px double var(--rule); text-align: center; }
.colophon > * { max-width: 60ch; margin-inline: auto; }
.col-hy { color: var(--red); font-size: 17px; letter-spacing: .1em; }
.colophon h2 { font-style: italic; font-size: 30px; margin-top: 2px; }
.colophon p:not(.col-hy) { color: var(--muted); font-size: 15px; margin-top: 12px; }
.col-end { font-size: 13px !important; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--vellum); font-size: 14px; padding: 10px 18px; border-radius: 999px; z-index: 10; }

@media (max-width: 960px) {
  .road, .kit { grid-template-columns: minmax(0, 1fr); }
  .stop-card, .kit-list { position: static; }
}

/* Printing prints only your question list */
@media print {
  body { background: #fff; color: #000; padding: 0; }
  .masthead, .khoran, .chapter:not(#ask), .colophon, #ask .ch, .kit-pick, .kit-actions, .kit-x, .kit-empty { display: none !important; }
  .chapter { padding: 0; border: 0; }
  .kit { display: block; }
  .kit-list { position: static; box-shadow: none; background-image: none; padding: 0; }
  .kit-list h3 input { border: 0; color: #000; }
  .kit-list ol li { padding-block: 0 56px; break-inside: avoid; }
}
@media (max-width: 760px) {
  .wm-en { font-size: 28px; }
  .chapters { gap: 2px 16px; font-size: 14px; }
  .khoran { margin-top: 48px; padding: 12px; border-radius: 300px 300px 8px 8px / 170px 170px 8px 8px; }
  .khoran-page { border-radius: 290px 290px 4px 4px / 160px 160px 4px 4px; padding-top: 84px; }
  .chapter { padding-top: 56px; }
  .ch { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
  .ch-num { width: 60px; height: 60px; font-size: 34px; }
  .words, .year, .namer, .abc, .shelf { grid-template-columns: minmax(0, 1fr); }
  .words dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .road-map { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .road-lines { display: none; }
  .road-col h3 { min-height: 0; }
  .stops { flex-direction: row; flex-wrap: wrap; }
  .stop { width: auto; }
  .stop [lang="hy"] { display: none; }
  .namer { padding: 22px; gap: 20px; }
  .letter-card { position: static; }
  .cloth { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 12px; }
  .plate { padding: 10%; }
  .p-meta { display: none; }
  .jar-card { margin-top: 0; }
  .toc li { grid-template-columns: 32px minmax(0, 1fr); }
  .instruments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc-k { display: none; }
}
