/* The site around the vase: a dark museum room, the figures in clay, type from the experience itself. */
:root {
  --night: #14100d; --night-2: #1c1612; --line: #3a2e25; --clay: #cd7f4b; --clay-hi: #e09a66; --paper: #efe1cb; --soft: #b9a68d;
  --glaze: #1a1512;
  color-scheme: dark;
}
/* the colour pass (?palette=a|b, site.js; branch trial): the same accents as world/core/tokens.css, fallbacks = today */
:root[data-palette="a"] { --acc-fillet: #b8472c; --acc-cta: #c9563a; --acc-cta-mark: #e3b155; }
:root[data-palette="c"] { --acc-fillet: #b8432a; --acc-cta: #c9563a; --acc-cta-bg: #a93c25; --acc-cta-hover: #bf4a2e; --acc-cta-ink: #fbeedd;
  --acc-cta-mark: #f3cf7a; --acc-trust: #e6b450; --acc-star: #f6d7a0; --acc-band: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='16'%20viewBox='0%200%2028%2016'%3E%3Crect%20width='28'%20height='16'%20fill='%23160a06'/%3E%3Crect%20width='28'%20height='2.2'%20fill='%23b8432a'/%3E%3Crect%20y='13.8'%20width='28'%20height='2.2'%20fill='%23b8432a'/%3E%3Cpath%20d='M0%2011.6%20H23%20V4.4%20H5%20V9.2%20H17%20V6.8'%20fill='none'%20stroke='%23e0ab4e'%20stroke-width='1.6'%20stroke-linecap='square'/%3E%3C/svg%3E"); }
:root[data-palette="b"] { --acc-fillet: #b8472c; --acc-cta: #c9563a; --acc-cta-mark: #e3b155; --acc-trust: #e3b155; --acc-star: #f6d7a0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--paper); font: var(--fs-md)/var(--lh-read) var(--serif); -webkit-font-smoothing: antialiased; }
a { color: var(--clay-hi); }
:focus-visible { outline: 2px solid var(--clay-hi); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; left: -9999px; }
.skiplink { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--glaze); padding: 8px 12px; z-index: 10; }
.skiplink:focus { left: 8px; }
section, .top, .foot { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

.top { display: flex; align-items: center; gap: 18px; padding-top: 16px; padding-bottom: 16px; max-width: 1100px; margin: 0 auto; }
/* the logo scales with the screen, the same rule as the visit's .hub-logo (world/hub.css) */
.mark { font: clamp(1.15rem, min(3.2svh, 1.4vw + .55rem), 1.9rem) var(--greek); color: var(--paper); text-decoration: none; letter-spacing: .02em; margin-right: auto; }
.mark span { color: var(--clay); }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--soft); text-decoration: none; font-size: 1rem; }
.top nav a:hover { color: var(--paper); }
.langs button, .langs a { background: none; border: 0; display: inline-flex; align-items: center; min-height: var(--ctl-h); color: var(--soft); font: 400 var(--fs-sm) var(--serif); padding: 0 6px; cursor: pointer; text-decoration: none; }
.mute { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--soft); cursor: pointer; display: grid; place-items: center; }
.mute:hover, .mute:focus-visible { color: var(--paper); }
.mute svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.mute .spk { fill: currentColor; stroke: none; }
.mute .bar { display: none; }
.mute.off .wave { display: none; }
.mute.off .bar { display: inline; }
.langs button:not(.mute)[aria-pressed="true"], .langs a[aria-pressed="true"] { color: var(--clay); box-shadow: inset 0 -2px 0 currentColor; }   /* not by hue alone (WCAG 1.4.1) */
@media (max-width: 640px) { .top nav { display: none; } }

.hero { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 30px; padding-bottom: 50px; }
.hero-art { aspect-ratio: 635 / 585; background: radial-gradient(70% 60% at 50% 70%, #241a14, transparent 70%); border-radius: 20px; position: relative; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art .glaze, .who-art .glaze { fill: var(--clay); }
.hero-art .eye-white, .who-art .eye-white { fill: var(--night); } .hero-art .eye-iris, .who-art .eye-iris { fill: var(--clay); }
.hero-art::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 2%; height: 3px; background: var(--clay); opacity: .8; }
.motto { font: italic 1.25rem var(--greek); color: var(--clay-hi); margin: 0 0 10px; }
h1 { font: 400 clamp(2.4rem, 5.4vw, 4rem)/1.05 var(--greek); margin: 0 0 18px; text-wrap: balance; }
.lede { font-size: 1.18rem; color: #e3d2b8; max-width: 34ch; margin: 0 0 26px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ctl-h); padding: 0 22px; border-radius: var(--r-pill); font: 400 var(--fs-sm) var(--serif);
       text-decoration: none; border: 0; cursor: pointer; }
/* the way in: terracotta, cream text (the entry pill, used only where the visitor enters) */
.btn.primary { background: var(--clay); color: var(--glaze); }
.btn.primary:hover { background: var(--clay-hi); }
/* everything else: dark glaze, a clay edge */
.btn.ghost { background: var(--glaze); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--clay); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 4px; } .hero-art { max-width: 520px; width: 100%; margin: 0 auto; } }

h2 { font: 400 var(--fs-2xl)/1.15 var(--greek); margin: 0 0 14px; text-wrap: balance; }
h3 { font: 500 1.2rem var(--serif); margin: 0 0 6px; color: var(--paper); }
.band { max-width: 1100px; margin: 0 auto 30px; }
.status { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; padding-top: 24px; padding-bottom: 24px; max-width: 1060px; }
.status p { max-width: 70ch; margin: 0; color: #e3d2b8; }
.features { max-width: 1100px; margin: 50px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.features p { color: var(--soft); margin: 0; }
.features article { border-top: 2px solid var(--clay); padding-top: 14px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.scenes { max-width: 1100px; margin: 0 auto 60px; }
.scenes ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; }
.scenes li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.scenes li span { color: var(--soft); }
@media (max-width: 700px) { .scenes ul { grid-template-columns: 1fr; } }
.who { max-width: 1100px; margin: 0 auto 60px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.who-art svg { width: 100%; height: auto; }
.who p { color: #e3d2b8; max-width: 66ch; }
.small { font-size: .95rem; color: var(--soft) !important; font-style: italic; }
@media (max-width: 700px) { .who { grid-template-columns: 1fr; } .who-art { max-width: 200px; } }
.list { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.list > p { color: var(--soft); }
.faq { max-width: 860px; margin: 0 auto 60px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font: 500 1.1rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--clay); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--soft); margin: 10px 0 0; }
.foot { border-top: 1px solid var(--line); padding-top: 26px; padding-bottom: 40px; color: var(--soft); font-size: .92rem; max-width: 1100px; margin: 0 auto; }
.foot p { max-width: 80ch; } .foot .links a { color: var(--paper); }
.credit { font-style: italic; }

/* legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 10px max(20px, env(safe-area-inset-left)) 60px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 34px; }
.doc p, .doc li { color: #e3d2b8; }
.doc .todo { color: var(--clay-hi); font-style: italic; }
.doc .updated { color: var(--soft); font-style: italic; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ================================================================ shared by the landing and the quiet pages */
.btn.big { min-height: 58px; padding: 0 34px; font-size: 1.2rem; letter-spacing: .02em; white-space: nowrap; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #e09a66, #c8743f); box-shadow: 0 10px 30px rgba(200, 116, 63, .35), inset 0 1px 0 rgba(255, 235, 210, .5); }
.btn.big b { font-weight: 400; margin-left: 10px; transition: transform .25s ease; display: inline-block; }
.btn.big:hover b { transform: translateX(5px); }
.btn.big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 240, 220, .35) 50%, transparent 65%);
  transform: translateX(-120%); animation: shimmer 5s ease-in-out 2.5s infinite; }
@keyframes shimmer { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes drawx { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.orn { height: 10px; width: 180px; margin: 0 auto 18px; opacity: .75;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'><path d='M0 9 H16 V1 H4 V6 H12 V4' fill='none' stroke='%23e09a66' stroke-width='1.2'/></svg>") repeat-x left center / 20px 10px;
  animation: drawx 1.2s ease .5s both; }
.foot-min { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; padding: 6px 20px max(18px, env(safe-area-inset-bottom)); font-size: .95rem; }
.foot-min a, .foot-min .linkish { color: var(--soft); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 4px 0; }
.foot-min a:hover, .foot-min .linkish:hover { color: var(--paper); }
@media (min-width: 900px) { .btn.big { min-height: 62px; font-size: 1.28rem; padding: 0 40px; } .foot-min { font-size: 1.02rem; } }
@media (prefers-reduced-motion: reduce) { .orn, .btn.big::after { animation: none; } }
/* a phone-width .btn.big (the /learn/ "ask him yourself" CTA) wraps instead of pushing the page wide (WALKTHROUGH item 14) */
@media (max-width: 480px) { .btn.big { white-space: normal; max-width: 100%; text-align: center; padding: 10px 20px; } }
/* the waitlist dialog: a small cave tablet (cave.css .man figcaption: plaster, the #a8402a double inset), ink on
   plaster #1d0f08 (~12.8:1), terracotta on plaster #862c18 (6.0:1); a real checkbox, 24px (WCAG 2.5.8) */
.news-d { border: 0; border-radius: 3px; color: #1d0f08; padding: 26px 26px 20px; width: min(92vw, 460px);
  background: linear-gradient(170deg, #f4e6cb, #dfc398);
  box-shadow: inset 0 0 0 2px #a8402a, inset 0 0 0 5px #f1e2c6, inset 0 0 0 6px #a8402a, 0 24px 60px -20px rgba(0, 0, 0, .85); }
.news-d::backdrop { background: rgba(5, 4, 3, .72); backdrop-filter: blur(3px); }
.news-d h2 { font: 400 1.55rem / 1.2 var(--greek); color: #862c18; margin: 0 0 6px; }
.news-d h2::after { content: ""; display: block; width: 46px; margin: 10px 0 0; border-top: 2px solid #c0823a; }
.news-d p { color: #1d0f08; margin: 10px 0 14px; font-size: 1rem; line-height: 1.5; }
.news-d form { display: block; }
.news-d input[type=email] { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 4px; border: 1px solid rgba(29, 15, 8, .45); background: #fbf3e4; color: #1d0f08; font: 1.05rem var(--serif); }
.news-d input[type=email]::placeholder { color: #6b4a36; }
.news-d input[type=email]:focus-visible { outline: 2px solid #862c18; outline-offset: 2px; }
.news-d .consent { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; margin: 14px 0 0; font-size: .95rem; color: #1d0f08; cursor: pointer; }
.news-d .consent input { margin: 0; accent-color: #862c18; flex: none; width: 24px; height: 24px; }
.news-d .consent a { color: #862c18; text-underline-offset: 3px; }
.news-d .row { display: flex; gap: 10px; margin-top: 18px; }
.news-d .msg { margin: 10px 0 0; min-height: 1.2em; color: #862c18; }

/* ================================================================ the quiet pages: a museum catalogue */
body.docpage { background: radial-gradient(60% 40% at 50% 0%, #2a1d15 0%, var(--night) 70%) no-repeat, var(--night); }
body.docpage .top { max-width: 1180px; }
.docpage .doc { max-width: 1180px; padding: 0 max(24px, env(safe-area-inset-left)) 70px; display: block; }
.doc-hero { text-align: center; padding: 30px 0 34px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.doc-hero .kicker { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0 0 14px; font: 400 var(--fs-xs) var(--serif); color: var(--clay-hi); }
.doc-hero .kicker i { width: 34px; height: 1px; background: rgba(224, 154, 102, .6); }
.doc-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 0 0 14px; background: linear-gradient(180deg, #f6ead8 30%, #d9b48c);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc-hero .orn { margin: 0 auto 12px; }
.doc-hero .updated { margin: 0; }
.doc > :not(.doc-hero):not(.toc) { max-width: 740px; margin-left: auto; margin-right: auto; }
.doc.with-toc { display: grid; grid-template-columns: 1fr minmax(0, 740px) 1fr; column-gap: 40px; }
.doc.with-toc > * { grid-column: 2; }
.doc.with-toc > .doc-hero { grid-column: 1 / -1; }
.doc .toc { grid-column: 3; grid-row: 2 / span 40; align-self: start; position: sticky; top: 24px; max-width: 240px; margin: 6px 0 0;
  font-size: .92rem; border-left: 1px solid var(--line); padding-left: 16px; }
.toc p { margin: 0 0 8px; font: 400 var(--fs-xs) var(--serif); color: var(--soft); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--soft); text-decoration: none; } .toc a:hover, .toc a.on { color: var(--clay-hi); }
@media (max-width: 1100px) { .doc.with-toc { display: block; } .doc .toc { display: none; } }
.doc h2 { display: flex; align-items: baseline; gap: 14px; margin-top: 44px; scroll-margin-top: 20px; }
.doc h2 .num { font: 500 .95rem var(--greek); color: var(--clay-hi); min-width: 2.2em; letter-spacing: .05em; }
.doc p, .doc li { font-size: 1.08rem; line-height: 1.7; }
/* /learn/ on a phone: the kicker and the Greek-numeral section markers stay readable (WALKTHROUGH item 13) */
@media (max-width: 480px) { .doc-hero .kicker { font-size: 14px; } .doc h2 .num { font-size: 1rem; } }
.doc a { color: var(--clay-hi); text-underline-offset: 3px; }
/* about */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.about-intro .big { font: 1.45rem/1.45 var(--serif); color: var(--paper); }
.about-art svg, .lost-art svg { width: 100%; height: auto; display: block; }
.about-art .glaze, .lost-art .glaze { fill: var(--clay); } .about-art .eye-white, .lost-art .eye-white { fill: var(--night); }
.about-art .eye-iris, .lost-art .eye-iris { fill: var(--clay); }
.about-art { filter: drop-shadow(0 0 40px rgba(200, 116, 63, .18)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px !important; }
.cards article { border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px; background: linear-gradient(180deg, rgba(255, 236, 210, .04), rgba(255, 236, 210, .01)); }
.cards svg { width: 30px; height: 30px; color: var(--clay-hi); }
.cards h3 { margin: 10px 0 6px; font: 400 1.35rem var(--greek); }
.cards p { margin: 0; color: var(--soft); font-size: 1rem !important; }
.cta-line { text-align: center; margin-top: 46px !important; }
@media (max-width: 800px) { .about-intro { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr; } }
/* /learn/ */
.doc .crumb { margin: 0 0 6px; font-size: .85rem; }
.doc .crumb a { color: var(--soft); }
.doc img.learn-art { display: block; width: 100%; max-width: 420px; margin: 18px auto; border-radius: 6px; }
.doc .learn-index { list-style: none; padding: 0; margin: 10px 0 26px; }
.doc .learn-index li { padding: 8px 0; border-bottom: 1px solid var(--line); }
/* inline-block (not inline): the generated list has no whitespace between </li><li>, and bare Greek words
   (no closing parenthesis to break after, unlike the English "word (translit)" pairing) never wrap without
   each item's own break opportunity - they ran off the right edge of a phone screen instead (WALKTHROUGH item 14) */
.doc .learn-index-compact li { display: inline-block; padding: 0; border: 0; margin-right: 14px; }
.doc .learn-related, .doc .learn-sources { padding-left: 20px; }
.doc .learn-story { margin-top: 18px; }
/* 404 */
main.lost { min-height: calc(100dvh - 140px); display: grid; place-content: center; justify-items: center; text-align: center; padding: 10px 24px 40px; }
.lost-art { width: min(340px, 70vw); opacity: .9; margin-bottom: 8px; filter: drop-shadow(0 0 40px rgba(200, 116, 63, .2)); animation: rise 1s ease both; }
main.lost .motto { font: italic 1.5rem var(--greek); color: var(--clay-hi); margin: 0 0 6px; }
main.lost h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 10px; }
main.lost .sub { color: var(--soft); margin: 0 0 24px; font-size: 1.12rem; }
main.lost .ways { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
body.docpage .foot-min { background: none; justify-content: center; padding-left: 20px; }
.doc.with-toc > :not(.doc-hero):not(.toc) { margin-left: 0; margin-right: 0; max-width: none; }
.doc.with-toc > .doc-hero { margin-left: 0; margin-right: 0; max-width: none; }
.lost-art { margin-bottom: 22px; }
.doc-hero .orn { width: 160px; height: 10px; }
