/* Everangel — boutique site styles */
:root {
  --paper: #FBF9F5;
  --box: #F3EEE6;
  --window: #F7F3EC;
  --ink: #4B433D;
  --taupe: #7A7068;
  --oat: #E8DDCF;
  --gold: #B8964F;
  --blush: #EAD5CE;
  --sage: #A3AB91;
  --bark: #6B4D3A;
  --line: #DCD2C5;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --script: "Sacramento", "Snell Roundhand", cursive;

  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--taupe); margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.6rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 60ch; }
.lede { font-size: 1.15rem; color: var(--ink); }
.script { font-family: var(--script); font-weight: 400; color: var(--taupe); line-height: 1.1; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 132px) 0; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 0.95rem/1 var(--sans); letter-spacing: 0.04em;
  padding: 17px 30px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--taupe); background: var(--taupe); color: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--taupe); }
.btn.ghost:hover { background: var(--box); color: var(--ink); }
.textlink { font-weight: 500; color: var(--taupe); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.textlink:hover { color: var(--ink); }

/* Announcement + header */
.announce { background: var(--oat); color: var(--ink); text-align: center; font-size: 0.875rem; padding: 9px var(--gutter); letter-spacing: 0.02em; }
.announce a { font-weight: 500; text-underline-offset: 3px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; }
.nav { display: flex; gap: 30px; font-size: 0.95rem; letter-spacing: 0.02em; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav.right { justify-content: flex-end; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--taupe); }
.logo img { width: 40px; height: 25px; }
.logo span { font-family: var(--serif); font-size: 1.75rem; line-height: 1; margin-top: 2px; letter-spacing: 0.01em; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); font: 500 0.95rem var(--sans); }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 70px; }
  .logo { grid-column: 2; }
  .logo span { font-size: 1.5rem; }
  .menu-btn { display: block; grid-column: 1; grid-row: 1; justify-self: start; }
  .header-join { grid-column: 3; grid-row: 1; justify-self: end; }
  .nav { display: none; }
  .site-header.open .nav { display: flex; flex-direction: column; gap: 4px; grid-column: 1 / -1; padding: 6px 0 18px; }
  .site-header.open .nav.right { justify-content: flex-start; padding-top: 0; }
  .site-header.open .nav a { padding: 10px 0; font-size: 1.05rem; }
}
@media (min-width: 861px) { .header-join { display: none; } }
.header-join { font-size: 0.95rem; font-weight: 500; color: var(--taupe); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* The keepsake box — signature element */
.box {
  --w: min(100%, 440px);
  width: var(--w); margin: 0 auto;
  background: var(--box);
  padding: 36px 34px 30px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 50px -28px rgba(75, 60, 45, .35), 0 2px 6px rgba(75, 60, 45, .06);
  position: relative;
}
.box-brand { display: flex; flex-direction: column; align-items: center; color: var(--taupe); margin-bottom: 18px; }
.box-brand img { width: 46px; height: 29px; opacity: .85; }
.box-brand span { font-family: var(--serif); font-size: 1.55rem; line-height: 1; margin-top: 3px; }
.window {
  position: relative; aspect-ratio: 3 / 3.55; border-radius: 999px 999px 0 0; overflow: hidden;
  background: var(--window) url("img/pattern-christmas.svg") 0 0 / 150px repeat;
  box-shadow: inset 0 14px 22px -10px rgba(90, 70, 50, .22), inset 10px 0 18px -14px rgba(90,70,50,.2), inset -10px 0 18px -14px rgba(90,70,50,.2), inset 0 -2px 0 rgba(90,70,50,.08);
}
.window[data-season="easter"] { background-image: url("img/pattern-easter.svg"); }
.window img {
  position: absolute; left: 50%; bottom: -2%; height: 92%; width: auto; transform: translateX(-50%);
  filter: drop-shadow(0 10px 10px rgba(80, 60, 40, .18));
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.window img[hidden] { display: block; opacity: 0; transform: translate(-50%, 14px); pointer-events: none; }
.box-name { font-family: var(--serif); font-size: 1.55rem; color: var(--taupe); margin: 20px 0 4px; line-height: 1.15; }
.box-tag { font-family: var(--script); font-size: 1.45rem; color: var(--taupe); line-height: 1.25; margin: 0 auto; max-width: 30ch; min-height: 2.5em; }
.shelf { height: 26px; margin: 0 auto; width: min(118%, 560px); max-width: 100vw; background: radial-gradient(50% 60% at 50% 0%, rgba(90,70,50,.16), transparent 70%); }

.season-switch { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.season-switch button {
  font: 500 0.9rem/1 var(--sans); letter-spacing: 0.03em; padding: 11px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--taupe); border: 1px solid var(--line);
}
.season-switch button[aria-pressed="true"] { background: var(--box); border-color: var(--taupe); color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero-copy h1 { margin-bottom: 26px; }
.hero-copy .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 26px; font-size: 0.92rem; color: var(--taupe); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
}

/* Two traditions */
.traditions { background: var(--box); }
.traditions-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.traditions-head h2 { margin-bottom: 18px; }
.tradition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.tradition { text-decoration: none; display: block; }
.tradition figure { margin: 0 0 26px; overflow: hidden; background: #e9e4dc; }
.tradition img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 40%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tradition:hover img { transform: scale(1.025); }
.tradition h3 { font-size: 2rem; margin-bottom: 4px; }
.tradition .when { color: var(--gold); font-weight: 500; font-size: 0.95rem; margin-bottom: 12px; }
.tradition p { color: var(--ink); }
.tradition .textlink { display: inline-block; margin-top: 4px; }
@media (max-width: 720px) { .tradition-grid { grid-template-columns: 1fr; gap: 56px; } }

/* Steps */
.steps-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.steps-head p { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { padding: 30px 28px 10px 0; counter-increment: step; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.steps h3 { font-size: 1.45rem; margin-bottom: 10px; }
.steps p { font-size: 1rem; margin: 0; }
@media (max-width: 900px) {
  .steps-head { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0 22px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .steps li::before { font-size: 2.4rem; margin-bottom: 10px; }
}

/* Twelve days calendar */
.days { background: var(--paper); }
.days-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.days-intro h2 { margin-bottom: 18px; }
.days-photo { margin: 30px 0 0; }
.days-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.days-photo figcaption { font-size: 0.9rem; color: var(--taupe); margin-top: 10px; }
.doors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 26px; }
.door {
  aspect-ratio: 1 / 1.3; border-radius: 999px 999px 4px 4px; cursor: pointer;
  background: var(--box); border: 1px solid var(--line); color: var(--taupe);
  font: 500 1.65rem/1 var(--serif); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, border-color .2s, color .2s;
  padding: 0;
}
.door small { font: 400 0.68rem/1.1 var(--sans); letter-spacing: .02em; color: var(--taupe); opacity: 0; max-width: 90%; text-align: center; transition: opacity .3s; }
.door.seen small { opacity: 1; }
.door:hover { border-color: var(--taupe); }
.door[aria-selected="true"] { background: var(--oat); border-color: var(--taupe); color: var(--ink); }
.note {
  background: var(--box); padding: clamp(26px, 4vw, 40px); position: relative;
  box-shadow: 0 24px 40px -30px rgba(75,60,45,.4);
}
.note-day { color: var(--gold); font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; }
.note h3 { font-size: 2.1rem; margin-bottom: 8px; }
.note .story { font-style: normal; color: var(--ink); margin-bottom: 22px; }
.note .challenge-label { font-family: var(--serif); font-size: 1.25rem; color: var(--taupe); margin: 0 0 4px; }
.note .challenge { margin-bottom: 14px; }
.note .sign { font-family: var(--script); font-size: 2rem; color: var(--taupe); margin: 0; }
.note-inner { transition: opacity .3s ease, transform .35s ease; }
.note-inner.swap { opacity: 0; transform: translateY(6px); }
@media (max-width: 900px) { .days-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .doors { grid-template-columns: repeat(4, 1fr); } .door { font-size: 1.4rem; } }

/* Easter feature */
.easter { background: #EFEAE3; }
.feature-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-grid figure { margin: 0; }
.feature-grid img { width: 100%; aspect-ratio: 1146 / 912; object-fit: cover; }
.feature-grid h2 { margin-bottom: 18px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* Promise */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.promise-grid h3 { font-size: 1.5rem; margin-bottom: 10px; }
.promise-grid p { font-size: 1rem; }
.promise-grid > div { border-top: 1px solid var(--line); padding-top: 26px; }
@media (max-width: 800px) { .promise-grid { grid-template-columns: 1fr; gap: 10px; } }

/* Inside the box list */
.inside { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.inside li { display: grid; grid-template-columns: 11rem 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.inside strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--taupe); line-height: 1.3; }
.inside span { font-size: 1rem; }
@media (max-width: 520px) { .inside li { grid-template-columns: 1fr; gap: 2px; } }

/* Waitlist */
.waitlist { background: var(--box); }
.waitlist-card { max-width: 720px; margin: 0 auto; text-align: center; }
.waitlist-card h2 { margin-bottom: 16px; }
.waitlist-card img.wing { width: 56px; height: 35px; margin: 0 auto 18px; }
.form { margin-top: 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; text-align: left; }
.form label { display: block; font-size: 0.85rem; color: var(--taupe); margin-bottom: 6px; font-weight: 500; }
.form input, .form select {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: 15px 20px; appearance: none;
}
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A7068' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 40px; }
.form input:focus, .form select:focus { outline: none; border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(184,150,79,.25); }
.form .full { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 10px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; text-align: center; min-height: 1.6em; margin: 6px 0 0; font-size: 0.98rem; }
.form-status.ok { color: #5E6B4C; }
.form-status.err { color: #9A4F3E; }
.fine { font-size: 0.85rem; color: var(--taupe); margin-top: 18px; }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

/* Product pages */
.product-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.product-grid figure { margin: 0; background: #e9e4dc; }
.product-grid figure img { width: 100%; }
.product-grid .when { color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.product-grid h1 { margin-bottom: 22px; }
.product-grid .script { font-size: 1.9rem; margin: -6px 0 22px; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }
.wide-photo { margin: 0; }
.wide-photo img { width: 100%; background: #fff; }
.wide-photo figcaption { font-size: 0.9rem; color: var(--taupe); margin-top: 12px; text-align: center; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { font-size: 1.2rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-brand .logo { align-items: flex-start; margin-bottom: 14px; }
.footer-brand p { color: var(--taupe); max-width: 34ch; }
.legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--taupe); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* fixes */
.center h2 { margin-bottom: 18px; }
.door { position: relative; }
.door small { position: absolute; left: 5%; right: 5%; bottom: 14%; margin: 0 auto; }
.shelf { width: 100%; }
@media (max-width: 900px) {
  .days-layout { row-gap: 0; }
  .days-intro { display: contents; }
  .days-photo { order: 2; margin-top: 40px; }
  .days-layout > div:last-child { margin-top: 12px; }
}
