/* GATHERED & VOWED — Vol. I, the Vine.
   A 70s-warm magazine edited by two farmer chicks.
   Cream sampled from the suite paper; night cover, golden-hour issue. */
:root {
  --cream: #FBE7C4;
  --ink: #3E463C;
  --ink-soft: #5C6456;
  --sage: #7A8574;
  --text: #3A392F;
  --night: #14120C;
  --candle: #F6E7C6;
  --display: "Fraunces", "Georgia", serif;
  --body: "EB Garamond", Georgia, serif;
  --card-serif: "Cormorant Garamond", "Times New Roman", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.58;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- the cover ---------- */
.cover { position: relative; height: 100svh; background: var(--night); overflow: hidden; }
.cover video { width: 100%; height: 100%; object-fit: cover; }
.cover .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,12,0.55), rgba(20,18,12,0) 38%); }
.cover .masthead {
  position: absolute; left: 0; right: 0; bottom: clamp(30px, 7vh, 72px);
  text-align: center; color: var(--candle);
}
.cover .masthead h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 4vw, 46px);
  letter-spacing: 0.34em; text-transform: uppercase; text-indent: 0.34em;
  text-shadow: 0 2px 26px rgba(10,8,4,0.7);
}
.cover .masthead .vol {
  margin-top: 12px; font-family: var(--body); font-style: italic;
  font-size: clamp(14px, 1.6vw, 18px); letter-spacing: 0.08em; opacity: 0.9;
}
.cover .down {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  color: var(--candle); opacity: 0.7; font-size: 22px; text-decoration: none;
  animation: drift 3.2s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
@media (prefers-reduced-motion: reduce) { .cover .down { animation: none; } }

/* ---------- the film landing (images ARE the page) ---------- */
body.film { background: var(--night); }
.plate { position: relative; display: block; }
.plate img { width: 100%; height: auto; }
.plate.link { text-decoration: none; }
.plate .fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,12,0.62), rgba(20,18,12,0) 42%); }
.plate .lines {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vh, 64px);
  text-align: center; color: var(--candle); padding: 0 20px;
}
.plate .kicker { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; text-indent: 0.34em; opacity: 0.85; margin-bottom: 10px; }
.plate .big {
  font-family: var(--display); font-weight: 450;
  font-size: clamp(26px, 4.4vw, 54px); line-height: 1.1;
  text-shadow: 0 2px 24px rgba(10,8,4,0.7); text-wrap: balance;
}
.plate .big em { font-style: italic; font-weight: 400; }
.plate .cta { margin-top: 14px; font-family: var(--body); font-style: italic; font-size: clamp(16px, 1.9vw, 21px); opacity: 0.95; }
.plate.link:hover .cta { text-decoration: underline; text-underline-offset: 4px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo figure { position: relative; margin: 0; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo figcaption {
  position: absolute; left: 0; right: 0; bottom: 16px; text-align: center;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(16px, 2vw, 22px); color: var(--candle);
  text-shadow: 0 2px 18px rgba(10,8,4,0.75);
}
@media (max-width: 600px) { .duo { grid-template-columns: 1fr; } }
.endlinks { margin-top: 22px; display: flex; gap: clamp(16px, 3vw, 34px); justify-content: center; flex-wrap: wrap; }
.endlinks a { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--candle); text-decoration: none; }
.endlinks a:hover { text-decoration: underline; text-underline-offset: 4px; }
.plate .sign { margin-top: 16px; font-family: var(--body); font-style: italic; font-size: 14.5px; color: var(--candle); opacity: 0.75; }

/* ---------- issue chrome ---------- */
.pagebar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px clamp(20px, 5vw, 64px) 0;
}
.pagebar .mark { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.pagebar .folio { font-style: italic; font-size: 15px; color: var(--ink-soft); }

section.text { padding: clamp(56px, 10vh, 120px) clamp(24px, 7vw, 96px); }
.measure { max-width: 620px; margin: 0 auto; }
.eyebrow { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--sage); }
h2 {
  font-family: var(--display); font-weight: 480; font-variation-settings: "opsz" 90;
  font-size: clamp(34px, 5.2vw, 62px); line-height: 1.06; color: var(--ink);
  margin: 14px 0 22px; text-wrap: balance; letter-spacing: 0.01em;
}
h2 .it { font-style: italic; font-weight: 400; }
.lede { font-size: clamp(20px, 2.1vw, 23px); }
.lede em, .letter em { color: var(--ink-soft); }

/* editor's letter */
.letter p { margin-bottom: 1.1em; }
.letter .sig { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 24px; color: var(--ink); margin-top: 28px; }
.letter .sigline { font-size: 15px; font-style: italic; color: var(--ink-soft); letter-spacing: 0.05em; }

/* ---------- spreads ---------- */
.spread { position: relative; }
.spread img { width: 100%; height: auto; }
.caption {
  padding: 14px clamp(20px, 5vw, 64px) 0;
  font-style: italic; font-size: 15.5px; color: var(--ink-soft);
  letter-spacing: 0.04em; text-align: right;
}
.pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.5vw, 32px);
  padding: 0 clamp(14px, 2.5vw, 32px);
}
.pair figure { margin: 0; }
.pair figcaption { padding-top: 12px; font-style: italic; font-size: 15.5px; color: var(--ink-soft); letter-spacing: 0.04em; }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } }

/* ---------- the wedding year ---------- */
.year { max-width: 760px; margin: 0 auto; }
.year .stage { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: clamp(16px, 3vw, 40px); padding: 26px 0; border-top: 1px solid rgba(62,70,60,0.22); }
.year .stage:last-of-type { border-bottom: 1px solid rgba(62,70,60,0.22); }
.year .when { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); padding-top: 4px; }
.year .what { font-size: 19px; }
.year .what em { color: var(--ink-soft); }
@media (max-width: 600px) { .year .stage { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- renderer feature ---------- */
.feature-names { text-align: center; }
.feature-names .wreathart { width: min(300px, 55%); margin: 0 auto 8px; opacity: 0.92; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--display); font-weight: 500; font-size: 14px;
  letter-spacing: 0.24em; text-transform: uppercase; text-indent: 0.24em;
  padding: 16px 30px; border: 1.5px solid var(--ink); color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn.solid { background: var(--ink); color: var(--cream); }
.btn.solid:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

/* ---------- stockists ---------- */
.stockists { max-width: 680px; margin: 0 auto; }
.stockists .row {
  padding: 20px 0; border-top: 1px solid rgba(62,70,60,0.22);
  text-decoration: none; color: var(--text); display: block;
}
.stockists .row:last-of-type { border-bottom: 1px solid rgba(62,70,60,0.22); }
.stockists .top { display: flex; align-items: baseline; gap: 14px; }
.stockists .name { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: 0.06em; color: var(--ink); white-space: nowrap; }
.stockists .dots { flex: 1; border-bottom: 1px dotted rgba(62,70,60,0.5); transform: translateY(-4px); }
.stockists .price { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--ink); }
.stockists .line { font-style: italic; font-size: 16px; color: var(--ink-soft); margin-top: 2px; }
.stockists .row:hover .name { color: var(--sage); }
.stockists .note { margin-top: 22px; font-style: italic; font-size: 16px; color: var(--ink-soft); text-align: center; }

/* ---------- night close + footer ---------- */
.close-line { position: absolute; inset: auto 0 clamp(24px, 6vh, 56px); text-align: center; color: var(--candle); font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(20px, 2.6vw, 30px); text-shadow: 0 2px 22px rgba(10,8,4,0.7); }
footer { padding: 56px clamp(20px, 6vw, 80px) 44px; text-align: center; }
footer .orn { width: min(280px, 55%); margin: 0 auto 20px; opacity: 0.9; }
footer .sign { font-style: italic; font-size: 18px; color: var(--ink-soft); }
footer .links { margin-top: 16px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
footer .links a { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; }
footer .links a:hover { color: var(--sage); }

/* ============ personalize (the card keeps the Vine's engraved serif) ============ */
.studio {
  display: grid; grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: start;
  max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) clamp(20px, 5vw, 64px) 80px;
}
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
.pane h1 { font-family: var(--display); font-weight: 480; font-size: clamp(30px, 4vw, 44px); color: var(--ink); line-height: 1.1; text-wrap: balance; }
.pane .note { font-style: italic; color: var(--ink-soft); margin: 14px 0 30px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sage); margin-bottom: 7px; }
.field input {
  width: 100%; background: transparent; border: none; outline: none;
  border-bottom: 1.5px solid rgba(62,70,60,0.45);
  font-family: var(--body); font-size: 21px; color: var(--text);
  padding: 6px 2px;
}
.field input:focus { border-bottom-color: var(--ink); }
.buyline { margin-top: 36px; }
.buyline .small { margin-top: 14px; font-size: 16px; font-style: italic; color: var(--ink-soft); }

.cardwrap { display: grid; justify-items: center; }
.card {
  width: min(560px, 100%); aspect-ratio: 5 / 7;
  background: var(--cream);
  box-shadow: 0 18px 60px rgba(50,44,26,0.28), 0 2px 10px rgba(50,44,26,0.16);
  outline: 1px solid rgba(62,70,60,0.14);
  display: flex; flex-direction: column; align-items: center;
  padding: 7% 7% 6%;
  text-align: center; color: var(--ink);
  container-type: inline-size;
}
.card .wreath {
  position: relative; width: 78%; aspect-ratio: 585 / 690;
  background: url("../assets/wreath.png") center / contain no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14% 16%;
}
.card .eyeline { font-family: var(--card-serif); font-weight: 600; font-size: clamp(8px, 1.55cqw, 13px); letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); }
.card .name {
  font-family: var(--card-serif); font-weight: 600;
  font-size: clamp(14px, 6.2cqw, 44px);
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.12;
  max-width: 100%;
}
.card .amp { font-family: var(--card-serif); font-style: italic; font-weight: 500; font-size: clamp(12px, 3.6cqw, 26px); color: var(--sage); margin: 2px 0; }
.card .invite { font-family: var(--body); font-style: italic; font-size: clamp(10px, 2.5cqw, 18px); color: var(--ink-soft); margin-top: 3.5%; }
.card .when { font-family: var(--card-serif); font-weight: 600; font-size: clamp(10px, 2.5cqw, 18px); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 2.5%; line-height: 1.5; }
.card .where { font-family: var(--card-serif); font-weight: 600; font-size: clamp(9px, 2.2cqw, 16px); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 2%; color: var(--ink-soft); }
.card .town { font-family: var(--body); font-style: italic; font-size: clamp(9px, 2.2cqw, 16px); color: var(--ink-soft); margin-top: 0.8%; }
.card .hr { width: 42%; margin-top: 3.2%; opacity: 0.85; }
.card .after { font-family: var(--body); font-style: italic; font-size: clamp(9px, 2.1cqw, 15px); color: var(--ink-soft); margin-top: 2.6%; }
