/* Gamu & Prince · an EverVow wedding website. Modern, formal, sage. */

:root {
  --forest: #173c2a;
  --sage-deep: #4f6b58;
  --sage: #8a9f86;
  --mist: #c4d0bd;
  --mist-soft: #e6ece2;
  --ivory: #f6f3ec;
  --paper: #faf8f1;
  --ink: #1f2a23;
  --muted: #5d6a60;
  --gold: #b9984e;
  --line: rgb(47 74 59 / 0.14);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--forest);
}
h2 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}
h3 {
  font-size: 1.6rem;
}
p {
  margin: 0;
}
strong {
  font-weight: 500;
}

.wrap {
  width: min(1080px, 100% - 40px);
  margin: 0 auto;
}
.narrow {
  width: min(680px, 100% - 40px);
}
.eyebrow {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.muted {
  color: var(--muted);
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.3;
  color: var(--forest);
  font-style: italic;
}
.link {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.section-head {
  text-align: center;
  display: grid;
  gap: 14px;
  margin-bottom: 56px;
}
.section-head .muted {
  max-width: 560px;
  margin: 0 auto;
}
section {
  padding: clamp(80px, 12vw, 130px) 0;
  position: relative;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 34px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn-solid {
  background: var(--forest);
  color: var(--ivory);
  border: 1px solid var(--forest);
}
.btn-solid:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}
.btn-wide {
  width: 100%;
}

/* ---------- nav ---------- */
.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgb(251 250 246 / 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.nav-mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.nav-mark span {
  font-style: italic;
  color: var(--sage);
}
.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
}
.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--forest);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.nav-links a:hover {
  border-color: var(--sage);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--forest);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 20px;
    box-shadow: 0 18px 40px rgb(31 42 35 / 0.12);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
}

/* ---------- ornaments ---------- */
.sprig {
  position: absolute;
  color: var(--sage);
  pointer-events: none;
}
.sprig-tl {
  width: clamp(170px, 22vw, 300px);
  height: clamp(94px, 12vw, 166px);
  top: 56px;
  left: -50px;
  transform: rotate(180deg) scaleX(-1);
  opacity: 0.55;
}
.sprig-br {
  width: clamp(200px, 30vw, 380px);
  height: clamp(110px, 16vw, 210px);
  bottom: 30px;
  right: -40px;
  opacity: 0.55;
}
.sprig-center {
  position: static;
  display: block;
  width: 150px;
  height: 80px;
  margin: 0 auto 26px;
  opacity: 0.8;
}
.sprig-day {
  width: 280px;
  height: 150px;
  top: 40px;
  right: -60px;
  color: var(--mist);
  opacity: 0.5;
}
.sprig-foot {
  position: static;
  display: block;
  width: 140px;
  height: 76px;
  margin: 0 auto 18px;
  color: var(--mist);
  opacity: 0.7;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 20px 90px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 40%, rgb(196 208 189 / 0.35), transparent 70%),
    var(--ivory);
}
.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.28em;
  font-size: clamp(4rem, 13vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 6px 0 0;
}
.names .amp {
  font-style: italic;
  color: var(--sage);
  font-size: 0.7em;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--sage-deep);
}
.hero-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 14px 0 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest);
}
.hero-date strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.hero-date .rule {
  width: 34px;
  height: 1px;
  background: var(--sage);
}
.countdown {
  display: flex;
  gap: clamp(14px, 4vw, 34px);
  margin: 8px 0 22px;
}
.countdown div {
  display: grid;
  justify-items: center;
  min-width: 58px;
}
.countdown b {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown small {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  width: 22px;
  height: 36px;
  border: 1px solid var(--sage);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--sage);
  animation: cue 2s infinite;
}

/* ---------- welcome ---------- */
.welcome {
  text-align: center;
  background: var(--paper);
}
.welcome .narrow {
  display: grid;
  gap: 20px;
}
.signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sage-deep);
}

/* ---------- story ---------- */
.story {
  background: var(--ivory);
}
.timeline {
  list-style: none;
  margin: 0 auto 90px;
  padding: 0;
  max-width: 760px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--mist), var(--sage), var(--mist));
}
.timeline li {
  position: relative;
  padding: 0 0 44px 46px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--sage);
}
.timeline li.highlight::before {
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: 0 0 0 5px rgb(138 159 134 / 0.25);
}
.timeline .when {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 6px;
}
.timeline h3 {
  margin-bottom: 10px;
}
.timeline p {
  color: var(--muted);
}
@media (min-width: 900px) {
  .timeline {
    max-width: none;
  }
  .timeline::before {
    left: 50%;
  }
  .timeline li {
    width: 50%;
    padding: 0 56px 56px 0;
    text-align: right;
  }
  .timeline li::before {
    left: auto;
    right: -8px;
  }
  .timeline li:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 56px 56px;
    text-align: left;
  }
  .timeline li:nth-child(even)::before {
    right: auto;
    left: -7px;
  }
}
.words {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .words {
    grid-template-columns: 1fr 1fr;
  }
}
.word {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  position: relative;
}
.word::before {
  content: '“';
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--mist);
}
.word-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 16px;
  position: relative;
}
.word blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--forest);
}

/* ---------- the day ---------- */
.day {
  background: var(--forest);
  color: var(--ivory);
  overflow: hidden;
}
.day h2,
.day h3 {
  color: var(--ivory);
}
.day .eyebrow {
  color: var(--mist);
}
.day .muted {
  color: rgb(246 243 236 / 0.7);
}
.events {
  display: grid;
  gap: 1px;
  background: rgb(246 243 236 / 0.16);
  border: 1px solid rgb(246 243 236 / 0.16);
  margin-bottom: 64px;
}
@media (min-width: 820px) {
  .events {
    grid-template-columns: repeat(3, 1fr);
  }
}
.event {
  background: var(--forest);
  padding: 40px 30px;
  text-align: center;
  display: grid;
  gap: 10px;
  align-content: start;
}
.event-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
}
.event h3 {
  font-size: 1.55rem;
}
.event-time {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--mist);
}
.event-address {
  font-size: 0.92rem;
  color: rgb(246 243 236 / 0.72);
}
.event .link {
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  justify-self: center;
}
.dress {
  display: grid;
  gap: 30px;
  align-items: center;
  padding-top: 48px;
  border-top: 1px solid rgb(246 243 236 / 0.16);
}
.dress > div {
  display: grid;
  gap: 10px;
}
@media (min-width: 820px) {
  .dress {
    grid-template-columns: 1fr auto;
  }
}
.swatches {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.swatches li {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(246 243 236 / 0.7);
}
.swatches li::before {
  content: '';
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgb(246 243 236 / 0.4);
}

/* ---------- RSVP ---------- */
.rsvp {
  background: var(--ivory);
}
.rsvp-form {
  display: grid;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 48px);
}
.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice label {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice span {
  display: block;
  text-align: center;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.choice input:checked + span {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--ivory);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
.field {
  display: grid;
  gap: 8px;
}
.field > span {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}
.field em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 300;
}
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--mist);
  border-radius: 0;
  padding: 8px 2px;
  transition: border-color 0.2s;
}
.field textarea {
  resize: vertical;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-error {
  color: #9b3b2e;
  font-size: 0.92rem;
}
.fine {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}
.rsvp-closed {
  text-align: center;
  display: grid;
  gap: 10px;
}
[data-when][hidden] {
  display: none;
}

/* ---------- gifts ---------- */
.gifts {
  background: var(--paper);
}
.zelle {
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}
@media (min-width: 620px) {
  .zelle {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
  }
}
.qr {
  width: 230px;
  min-height: 230px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}
.qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-placeholder {
  display: none;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.qr.qr-missing img {
  display: none;
}
.qr.qr-missing {
  background: var(--paper);
  border-style: dashed;
}
.qr.qr-missing .qr-placeholder {
  display: block;
}
.zelle-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--forest);
  margin-bottom: 6px;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--ivory);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 2px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--forest);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--sage);
  transition: transform 0.25s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  padding: 0 2px 24px;
  color: var(--muted);
}

/* ---------- footer ---------- */
.footer {
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
  padding: 80px 20px 60px;
}
.footer-names {
  font-family: var(--serif);
  font-size: 2.4rem;
}
.footer-date {
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--mist);
  margin: 6px 0 34px;
}
.footer-credit {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(246 243 236 / 0.55);
}
.footer-credit a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgb(246 243 236 / 0.4);
}

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-inner {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .scroll-cue span {
    animation: none;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  /* Phones: names stacked, the ampersand between them. */
  .names {
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: clamp(3.6rem, 19vw, 5rem);
  }
  .names .amp {
    font-size: 0.55em;
    line-height: 1.1;
  }
  .sprig-tl {
    width: 120px;
    height: 66px;
    top: 60px;
    left: -30px;
  }
  .hero-date .rule {
    display: none;
  }
  .row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .swatches {
    gap: 8px;
  }
  .swatches li::before {
    width: 42px;
    height: 42px;
  }
}

/* ?static (screenshots): the hero at one normal screen tall. */
.static .hero {
  min-height: 820px;
}

/* ---------- order of the day ---------- */
.schedule {
  margin-bottom: 64px;
  text-align: center;
}
.schedule ol {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
.schedule li {
  display: grid;
  gap: 2px;
  padding: 18px 10px;
  border-top: 1px solid rgb(246 243 236 / 0.16);
}
.schedule li:first-child {
  border-top: 0;
}
.schedule time {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ivory);
}
.schedule span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.schedule small {
  font-size: 0.86rem;
  color: rgb(246 243 236 / 0.6);
}
@media (min-width: 820px) {
  .schedule ol {
    grid-template-columns: repeat(5, 1fr);
  }
  /* A thin line through the dots, left to right. */
  .schedule ol::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgb(246 243 236 / 0.25);
  }
  .schedule li {
    border-top: 0;
    padding: 30px 8px 0;
    position: relative;
  }
  .schedule li::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    border-radius: 50%;
    background: var(--forest);
    border: 1px solid var(--mist);
  }
}

/* ---------- photos: a framed collage between the welcome and the story ---------- */
.photos {
  background: var(--paper);
  padding-top: 0;
}
.photo-collage {
  display: grid;
  gap: 18px;
}
.photo {
  margin: 0;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgb(31 42 35 / 0.12);
}
.photo img {
  width: 100%;
  height: auto;
}
.photo-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--sage-deep);
  text-align: center;
}
@media (min-width: 820px) {
  .photo-collage {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
    gap: 0;
  }
  .photo-wide {
    grid-column: 1 / 9;
    grid-row: 1;
  }
  /* The garden photo overlaps the corner of the formal one, a little lower. */
  .photo-tall {
    grid-column: 8 / 13;
    grid-row: 1;
    margin-top: 90px;
    position: relative;
    z-index: 1;
  }
  .photo-caption {
    grid-column: 1 / 13;
    margin-top: 42px;
  }
}
