/* Alcove — meetalcove.com
   Warm containment, brought to the web. Self-contained: no external requests
   (a privacy site shouldn't phone home — system fonts, inline SVG, first-party
   art only). Dark-first, theme-aware, motion-respectful. */

:root {
  /* ground + ink */
  --ground:    #14100c;
  --ground-2:  #1b150f;
  --ground-3:  #211a12;
  --card:      #241b12;
  --card-2:    #2b2016;
  --ink:       #f5ecdd;
  --ink-2:     #cdbaa4;
  --ink-3:     #9c8770;
  /* warmth */
  --amber:     #e3ab6b;
  --amber-2:   #f4d09a;
  --amber-deep:#c07f38;
  /* chest materials */
  --wood-1:    #7a5433;
  --wood-2:    #543720;
  --wood-3:    #3a2517;
  --brass:     #d0a862;
  --brass-2:   #8f6c39;
  --seam:      #ffe6b0;
  /* lines + glow */
  --line:      rgba(245, 236, 221, 0.09);
  --line-2:    rgba(245, 236, 221, 0.17);
  --glow:      rgba(227, 171, 107, 0.22);
  --glow-soft: rgba(227, 171, 107, 0.12);
  /* elevation */
  --e1: 0 1px 2px rgba(0,0,0,.4);
  --e2: 0 8px 30px rgba(0,0,0,.45);
  --e3: 0 30px 80px rgba(0,0,0,.55), 0 4px 16px rgba(0,0,0,.4);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --read: 720px;
  --r-sm: 12px; --r: 18px; --r-lg: 26px;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground:    #f4ede1;
    --ground-2:  #efe6d6;
    --ground-3:  #e8ddc9;
    --card:      #fcf7ee;
    --card-2:    #f7efe1;
    --ink:       #2a2017;
    --ink-2:     #5c4c3c;
    --ink-3:     #8a7460;
    --amber:     #b7742e;
    --amber-2:   #9c5f22;
    --amber-deep:#8a5620;
    --line:      rgba(42, 32, 24, 0.12);
    --line-2:    rgba(42, 32, 24, 0.22);
    --glow:      rgba(183, 116, 46, 0.16);
    --glow-soft: rgba(183, 116, 46, 0.09);
    --e2: 0 8px 30px rgba(120,90,60,.14);
    --e3: 0 30px 80px rgba(120,90,60,.20), 0 4px 16px rgba(120,90,60,.12);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* faint warm vignette + grain for depth */
  background-image:
    radial-gradient(120% 80% at 50% -10%, var(--glow-soft), transparent 60%);
  background-attachment: fixed;
}

a { color: var(--amber); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--amber-2); }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 24px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  background: color-mix(in srgb, var(--ground) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); }
.brand .name { font-size: 22px; letter-spacing: 0.02em; color: var(--ink); }
.brand .mark { width: 27px; height: 27px; flex: none; filter: drop-shadow(0 0 10px var(--glow)); }
.nav { display: flex; align-items: center; }
.nav a { color: var(--ink-2); font-size: 15px; margin-left: 26px; }
.nav a:hover { color: var(--amber); }
.nav .nav-cta { color: var(--amber); border: 1px solid var(--line-2); padding: 8px 16px; border-radius: 30px; }
.nav .nav-cta:hover { border-color: var(--amber); }
@media (max-width: 620px) { .nav a:not(.nav-cta) { display: none; } .nav .nav-cta { margin-left: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: -80px; transform: translateX(-50%);
  width: 1100px; max-width: 150vw; height: 760px;
  background: radial-gradient(46% 46% at 50% 42%, var(--glow), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--amber); background: var(--glow-soft); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 30px; margin: 0 0 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(50px, 7.4vw, 84px); line-height: 1.0; letter-spacing: -0.015em; margin: 0 0 18px; }
.hero h1 .soft { display: block; color: var(--ink-2); font-size: clamp(21px, 3vw, 30px); font-style: italic; letter-spacing: 0; margin-top: 14px; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 3.2vw, 26px); color: var(--amber); margin: 0 0 20px; }
.hero .pitch { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-2); max-width: 520px; margin: 0 0 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 560;
  padding: 14px 26px; border-radius: 40px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, filter .2s ease, border-color .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: #241605; box-shadow: 0 6px 20px var(--glow); }
.btn-primary:hover { color: #241605; transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.coming { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13.5px; letter-spacing: 0.06em; color: var(--ink-3); }
.coming svg { width: 16px; height: 16px; color: var(--amber); }
.hero-art { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero .pitch { margin-left: auto; margin-right: auto; }
  .cta-row, .coming { justify-content: center; }
  .hero-art { order: -1; margin-bottom: 20px; }
}

/* ---------- device mockup ---------- */
.device {
  width: 300px; flex: none; aspect-ratio: 300 / 620; position: relative;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(155deg, #2c2c30, #101012 60%);
  box-shadow: var(--e3), inset 0 0 0 1px rgba(255,255,255,.06);
}
.device::after { /* side glow */
  content:""; position:absolute; inset:0; border-radius:46px; pointer-events:none;
  box-shadow: 0 0 60px var(--glow-soft);
}
.device .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--ground-2); }
.device .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; background: #050506; border-radius: 20px; z-index: 5; }
.device.small { width: 240px; }

/* ---------- app screen: home ---------- */
.app { display: flex; flex-direction: column; height: 100%; background:
  radial-gradient(120% 55% at 50% 22%, var(--glow-soft), transparent 60%), var(--ground-2); }
.app-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 44px 16px 10px; }
.app-bar .glyphs { position: absolute; display: flex; gap: 16px; width: calc(100% - 40px); justify-content: space-between; }
.app-bar .g { width: 15px; height: 15px; color: var(--ink-3); }
.app-bar .word { font-family: var(--serif); font-size: 17px; color: var(--ink); letter-spacing: .02em; }
.app-chest { display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; }
.app-chest .invite { font-family: var(--serif); font-style: italic; font-size: 11.5px; color: var(--ink-2); margin: 10px 0 0; text-align: center; max-width: 190px; line-height: 1.4; }
.chest-svg { width: 148px; height: auto; filter: drop-shadow(0 10px 26px rgba(0,0,0,.5)); }
.chest-holder { position: relative; display: flex; align-items: center; justify-content: center; }
.chest-glow { position: absolute; width: 150%; height: 130%; background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%); pointer-events: none; }
.stage .chest-svg { width: 210px; }
.app-rail { margin-top: auto; padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.day-label { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 2px 0; }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; display: flex; gap: 9px; align-items: center; }
.tl-card .tl-ic { width: 22px; height: 22px; border-radius: 7px; background: var(--glow-soft); color: var(--amber); display: flex; align-items: center; justify-content: center; flex: none; }
.tl-card .tl-ic svg { width: 13px; height: 13px; }
.tl-card .tl-body { min-width: 0; }
.tl-card .tl-title { font-size: 10.5px; color: var(--ink); font-family: var(--serif); }
.tl-card .tl-sub { font-size: 9px; color: var(--ink-3); }
.tl-card.photo { padding: 0; overflow: hidden; height: 46px; border: 1px solid var(--line); }
.tl-photo { width: 100%; height: 100%; background:
  linear-gradient(120deg, #3a4a52, #26333a 45%, #402e22); position: relative; }
.tl-photo::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 90% at 78% 30%, rgba(243,208,154,.35), transparent 60%); }

/* ---------- sections ---------- */
section { padding: 76px 0; position: relative; }
.section-tag { display: inline-block; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; font-weight: 600; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 660px; }
.band { background: var(--ground-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* promises */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin-top: 44px; }
.promise { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; transition: transform .25s ease, border-color .25s ease; }
.promise:hover { transform: translateY(-3px); border-color: var(--line-2); }
.promise .glyph { width: 40px; height: 40px; border-radius: 11px; background: var(--glow-soft); color: var(--amber); display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.promise .glyph svg { width: 22px; height: 22px; }
.promise h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0 0 8px; }
.promise p { color: var(--ink-2); font-size: 15.5px; margin: 0; line-height: 1.6; }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature:nth-child(even) .feature-art { order: 2; }
.feature-art { display: flex; justify-content: center; }
.stage {
  width: 100%; max-width: 440px; aspect-ratio: 4 / 3.2; border-radius: var(--r-lg);
  background: radial-gradient(90% 90% at 50% 30%, var(--card-2), var(--ground-2) 78%);
  border: 1px solid var(--line); box-shadow: var(--e2); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.feature .kicker { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin: 0 0 12px; }
.feature h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 3.4vw, 34px); margin: 0 0 14px; line-height: 1.15; }
.feature p { color: var(--ink-2); margin: 0; font-size: 17px; }
@media (max-width: 780px) {
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 26px 0; }
  .feature:nth-child(even) .feature-art { order: 0; }
}

/* --- fog atlas vignette --- */
.atlas { position: absolute; inset: 0; background:
  linear-gradient(160deg, #1a2a30, #14100c 70%); }
.atlas .fog { position: absolute; inset: 0; background:
  radial-gradient(40% 34% at 38% 60%, rgba(20,16,12,0) 0, rgba(20,16,12,.0) 30%, rgba(28,34,38,.7) 62%, rgba(24,30,34,.92) 100%); }
.atlas .trail { position: absolute; inset: 0; }
.atlas .dot { position: absolute; left: 38%; top: 58%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #6db2ff; box-shadow: 0 0 0 4px rgba(109,178,255,.25), 0 0 14px rgba(109,178,255,.6); }
.atlas .stat { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: var(--ink-2); font-family: var(--serif); font-style: italic; }

/* --- ask vignette --- */
.ask { width: 84%; display: flex; flex-direction: column; gap: 12px; }
.ask .q { align-self: flex-end; background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: #241605; padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 13.5px; max-width: 82%; }
.ask .a { align-self: flex-start; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); padding: 12px 15px; border-radius: 16px 16px 16px 4px; font-size: 13.5px; max-width: 90%; line-height: 1.55; }
.ask .a .em { color: var(--amber); font-style: italic; }

/* --- day card vignette --- */
.daycard { width: 80%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--e2); }
.daycard .map { height: 88px; background: linear-gradient(150deg, #2a3a40, #1c1610 75%); position: relative; }
.daycard .map::after { content:""; position:absolute; inset:0; background: radial-gradient(50% 70% at 30% 55%, rgba(243,208,154,.25), transparent 60%); }
.daycard .body { padding: 13px 15px; }
.daycard .body .dl { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.daycard .body .nr { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 14px; margin-top: 5px; line-height: 1.45; }

/* ---------- seal moment ---------- */
.seal-moment { text-align: center; }
.seal { width: 120px; height: 120px; margin: 0 auto 26px; position: relative; }
.seal .ring { width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid var(--amber); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px var(--glow); }
.seal .kept { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--amber); }
.seal-moment .big { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4vw, 40px); max-width: 720px; margin: 0 auto 10px; line-height: 1.25; }
.seal-moment .sub { color: var(--ink-2); max-width: 540px; margin: 0 auto; }

/* ---------- closing ---------- */
.close-cta { text-align: center; }
.close-cta h2 { margin-bottom: 12px; }
.close-cta .tagline { margin-bottom: 26px; }

/* ---------- animations ---------- */
@keyframes breathe { 0%,100% { opacity:.75; transform: scale(1); } 50% { opacity:1; transform: scale(1.04); } }
.breathe { animation: breathe 5.5s ease-in-out infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .breathe { animation: none; } }

/* ---------- legal / reading pages ---------- */
.doc { padding: 60px 0 40px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 50px); margin: 0 0 6px; letter-spacing: -0.015em; }
.doc .updated { color: var(--ink-3); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(23px, 3.2vw, 30px); margin: 46px 0 14px; }
.doc h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 30px 0 8px; color: var(--ink); }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 14px; color: var(--amber); }
.doc blockquote { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--amber); border-left: 2px solid var(--amber); margin: 0 0 30px; padding: 4px 0 4px 22px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 22px; margin: 24px 0; }
.callout p { margin: 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 52px 0 44px; margin-top: 30px; background: var(--ground-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-brand { font-family: var(--serif); font-size: 20px; display: flex; align-items: center; gap: 10px; }
.foot-brand .mark { width: 23px; height: 23px; }
.foot-links a { color: var(--ink-2); margin-left: 22px; font-size: 15px; }
.foot-links a:first-child { margin-left: 0; }
.foot-links a:hover { color: var(--amber); }
.foot-note { width: 100%; color: var(--ink-3); font-size: 13px; margin-top: 24px; }
.foot-note .italic { font-family: var(--serif); font-style: italic; color: var(--amber); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  section { padding: 56px 0; }
  .foot-links a { margin: 0 18px 0 0; }
}
