:root {
  --black: #17110d;
  --clay: #c9692c;
  --clay-light: #e3a462;
  --cream: #f4ead8;
  --ink: #2a1f17;
  --muted: #6e5a48;
  --purple: #b794f6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body:has(main.hero) { height: 100svh; overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.05; }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--clay); margin: 0 0 12px; }

/* Text links and text buttons: white, purple on hover */
.nav nav a, .nav nav button, .hero-links button, .foot a {
  background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: none; cursor: pointer; transition: color .2s;
}
.nav nav a:hover, .nav nav button:hover, .hero-links button:hover, .foot a:hover,
.nav nav a:focus-visible, .nav nav button:focus-visible, .hero-links button:focus-visible, .foot a:focus-visible { color: var(--purple); outline: none; }

.nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; justify-content: flex-end; align-items: center; padding: 22px clamp(16px, 4vw, 48px); }
.nav nav { display: flex; gap: clamp(18px, 3vw, 36px); align-items: center; font-size: 15px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.wordmark { font-family: var(--serif); font-size: 30px; font-weight: 600; text-decoration: none; color: #fff; line-height: 1; margin-right: auto; }

.hero { position: relative; height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; overflow: hidden; background: var(--black); }
.hero-canvas, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { object-fit: cover; object-position: center 10%; }
.hero.live .hero-fallback { visibility: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(23,17,13,.55) 0%, rgba(23,17,13,.25) 60%, rgba(23,17,13,.45) 100%); }
.hero-inner { position: relative; z-index: 1; pointer-events: none; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero h1 { font-size: clamp(72px, 14vw, 168px); letter-spacing: -.01em; line-height: .9; }
.hero-sub { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 38px); margin: 12px 0 36px; }
.hero-links { display: flex; gap: clamp(24px, 4vw, 48px); justify-content: center; flex-wrap: wrap; }
.hero-links button { pointer-events: auto; font-size: 17px; letter-spacing: .02em; }
.foot { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 18px clamp(16px, 4vw, 48px); font-size: 13px; color: rgba(255,255,255,.75); text-shadow: 0 1px 10px rgba(0,0,0,.6); }

/* Overlays: dark glass over the mosaic */
dialog { background: rgba(18, 14, 11, .72); color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: clamp(28px, 4vw, 40px); width: min(calc(100% - 32px), 440px); max-height: calc(100svh - 32px); overflow: auto; box-shadow: 0 40px 100px rgba(0,0,0,.5); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }
dialog::backdrop { background: rgba(10,8,6,.35); }
dialog[open] { animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.99); } }
dialog .eyebrow { color: rgba(255,255,255,.55); font-size: 11px; }
dialog h2 { font-size: clamp(36px, 5vw, 44px); margin-bottom: 14px; padding-right: 28px; }
dialog p { margin: 0 0 12px; color: rgba(255,255,255,.78); font-size: 15px; }
.meta { color: rgba(255,255,255,.55) !important; font-size: 14px !important; margin-top: -6px !important; }
.close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 26px; line-height: 1; color: rgba(255,255,255,.5); cursor: pointer; padding: 4px 8px; transition: color .2s; }
.close:hover { color: #fff; }
.lede { margin: -4px 0 22px !important; }
.link { background: none; border: 0; padding: 0; margin-top: 8px; font: 500 15px var(--sans); color: #fff; cursor: pointer; transition: color .2s; }
.link::after { content: " \2192"; }
.link:hover { color: var(--purple); }

.btn { display: block; width: 100%; padding: 13px 20px; border-radius: 10px; font: 500 15px var(--sans); border: 0; cursor: pointer; background: #fff; color: var(--black); margin-top: 8px; transition: background .2s, color .2s; }
.btn:hover { background: var(--purple); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

form label { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.65); margin-bottom: 14px; }
form input { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: 15px var(--sans); color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; transition: border-color .2s, background .2s; }
form input::placeholder { color: rgba(255,255,255,.3); }
form input:hover { border-color: rgba(255,255,255,.22); }
form input:focus { outline: none; border-color: var(--purple); background: rgba(255,255,255,.09); }
form input[aria-invalid="true"] { border-color: #f08a7a; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req { font-weight: 400; color: rgba(255,255,255,.4); margin-left: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.4em; font-size: 14px !important; margin: 12px 0 0 !important; }
.form-msg.err { color: #f08a7a !important; }
.form-msg.ok { color: #a7e3a0 !important; }
.fineprint { font-size: 12px !important; color: rgba(255,255,255,.45) !important; margin: 4px 0 0 !important; }
.fineprint a:hover { color: var(--purple); }

/* Join: one sentence with fill-in blanks */
#join { width: min(calc(100% - 32px), 540px); }
.sentence .prose { font-family: var(--serif); font-size: clamp(21px, 2.6vw, 25px); line-height: 2; color: rgba(255,255,255,.82); margin: 0 0 18px; }
.sentence input { display: inline-block; width: 6ch; min-width: 4ch; max-width: 100%; margin: 0; padding: 0 1px 1px; text-align: center; font: inherit; color: #fff; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); border-radius: 0; vertical-align: baseline; transition: border-color .2s; }
.sentence input::placeholder { color: rgba(255,255,255,.32); }
.sentence input:hover { border-bottom-color: rgba(255,255,255,.6); background: none; }
.sentence input:focus { outline: none; border-bottom-color: var(--purple); background: none; }
.sentence input[aria-invalid="true"] { border-bottom-color: #f08a7a; }
.sentence .nw { white-space: nowrap; }
.sentence .link { font-size: 16px; }
.sentence .link[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 0; }
}
