/* KeptaBox — landing page
   Palette: bottle green + brass on warm paper. Archival, domestic, durable.
   Every colour is a token so light/dark resolve as complete sets. */

:root {
  --ground:      #FAFAF7;
  --surface:     #F1F2ED;
  --surface-2:   #E7E9E1;
  --ink:         #16211D;
  --ink-soft:    #4A564F;
  --ink-faint:   #78837B;
  --rule:        #DCDFD6;
  --accent:      #1F5140;
  --accent-hover:#173F32;
  --accent-ink:  #1F5140;
  --on-accent:   #FAFAF7;
  --brass:       #9A6520;
  --focus:       #1F5140;
  --shadow-sm: 0 1px 2px rgba(22,33,29,.07);
  --shadow-lg: 0 2px 4px rgba(22,33,29,.05), 0 12px 32px rgba(22,33,29,.08);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 34rem;
  --wide: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0F1512;
    --surface:     #161D19;
    --surface-2:   #1E2621;
    --ink:         #E9EDE9;
    --ink-soft:    #A5B0A8;
    --ink-faint:   #7B857E;
    --rule:        #262F29;
    --accent:      #5FA98A;
    --accent-hover:#74BC9D;
    --accent-ink:  #7FC3A4;
    --on-accent:   #0F1512;
    --brass:       #D2A059;
    --focus:       #7FC3A4;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  }
}

:root[data-theme="dark"] {
  --ground:      #0F1512;
  --surface:     #161D19;
  --surface-2:   #1E2621;
  --ink:         #E9EDE9;
  --ink-soft:    #A5B0A8;
  --ink-faint:   #7B857E;
  --rule:        #262F29;
  --accent:      #5FA98A;
  --accent-hover:#74BC9D;
  --accent-ink:  #7FC3A4;
  --on-accent:   #0F1512;
  --brass:       #D2A059;
  --focus:       #7FC3A4;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--measure); }

a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* ---------- wordmark ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
  gap: 1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.wordmark .glyph {
  width: 1.15rem; height: 1.15rem;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  position: relative;
  flex: none;
}
.wordmark .glyph::after {
  content: "";
  position: absolute;
  left: -1.5px; right: -1.5px;
  top: 45%;
  height: 1.5px;
  background: var(--brass);
}
.topbar .tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- hero ---------- */
.hero { padding: 3rem 0 3.5rem; border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 0 1.1rem;
  max-width: 18ch;
  text-wrap: balance;
}
.subhead {
  font-size: 1.13rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  max-width: var(--measure);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule);
  font-weight: 500;
}
.btn-quiet:hover { border-color: var(--ink-faint); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cta-note { font-size: .88rem; color: var(--ink-faint); }

/* ---------- sections ---------- */
section { padding: 3.4rem 0; border-bottom: 1px solid var(--rule); }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -.012em;
  font-weight: 600;
  margin: 0 0 1.4rem;
  max-width: 22ch;
  text-wrap: balance;
}
h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin: 0 0 .35rem;
  line-height: 1.3;
}
p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* ---------- moments ---------- */
.moments { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .moments { grid-template-columns: repeat(3, 1fr); } }
.moment {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.moment .when {
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: .7rem;
}
.moment p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- steps ---------- */
.steps { display: flex; flex-direction: column; gap: 1.6rem; counter-reset: step; }
.step { display: grid; grid-template-columns: 2rem 1fr; gap: .2rem 1rem; align-items: start; }
.step .n {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent-ink);
  padding-top: .22rem;
}
.step .n::before { content: counter(step, decimal-leading-zero); }
.step p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ---------- access table ---------- */
.access { width: 100%; border-collapse: collapse; font-size: .95rem; max-width: var(--measure); }
.access th, .access td { text-align: left; padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--rule); }
.access th {
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}
.access td:first-child { font-weight: 600; white-space: nowrap; padding-right: 1.5rem; }
.access td:last-child { color: var(--ink-soft); }
.access tr:last-child td { border-bottom: none; }

/* ---------- price / reserve ---------- */
#reserve { border-bottom: none; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2rem;
  max-width: 32rem;
  box-shadow: var(--shadow-lg);
}
.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 .3rem;
}
.price .per { font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.price-sub { color: var(--ink-soft); font-size: .97rem; margin: 0 0 1.5rem; }

.notice {
  background: var(--surface-2);
  border-left: 3px solid var(--brass);
  padding: .9rem 1rem;
  border-radius: 0 4px 4px 0;
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.notice strong { color: var(--ink); }

form.signup { display: flex; flex-direction: column; gap: .8rem; }
label.field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--ink-soft); }
input[type="email"], textarea {
  font: inherit;
  font-size: 1rem;
  padding: .72rem .85rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--ground);
  color: var(--ink);
  width: 100%;
}
input[type="email"]:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 4.5rem; }

.form-error { color: var(--brass); font-size: .88rem; margin: 0; }
.hidden { display: none !important; }

.thanks { display: flex; flex-direction: column; gap: .8rem; }
.thanks h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0; }
.thanks p { font-size: .97rem; color: var(--ink-soft); margin: 0; }

/* ---------- footer ---------- */
footer {
  padding: 2.5rem 0 4rem;
  font-size: .85rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
}
footer p { margin: 0; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
