@font-face {
  font-family: "Sign That S";
  src: local("Sign That S"), local("Sign That S (kerning)"),
       url("../fonts/Sign That S (kerning).otf") format("opentype"),
       url("../fonts/Sign That S (kerning)(1).otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Infant Custom";
  src: local("Cormorant Infant"), local("CormorantInfant-Regular"),
       url("../fonts/CormorantInfant-Regular.ttf") format("truetype"),
       url("../fonts/CormorantInfant-Regular(1).ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Infant Custom";
  src: local("Cormorant Infant Medium"), local("CormorantInfant-Medium"),
       url("../fonts/CormorantInfant-Medium.ttf") format("truetype"),
       url("../fonts/CormorantInfant-Medium(1).ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@keyframes spin{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}
@keyframes pulse{
  0%{transform:scale(.8);opacity:.2;}
  50%{transform:scale(1.15);opacity:1;}
  100%{transform:scale(.8);opacity:.2;}
}

:root {
  --paper: #fbfaf7;
  --ink: #25211d;
  --muted: #000000;
  --line: rgba(37, 33, 29, 0.22);
  --soft: #efebe4;
  --accent: #6b5548;
  --accent-dark: #302017;
  --shadow: 0 24px 80px rgba(24, 18, 14, 0.12);
  --body-font: "Cormorant Infant Custom", "Cormorant Infant", Georgia, serif;
  --script-font: "Sign That S", "Snell Roundhand", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #e8e3dc;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.42;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea { font: inherit; }

a { color: inherit; }

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.72), transparent 30%),
    linear-gradient(135deg, #eee9e2, #dad2c8);
}

.invite {
  width: min(100%, 430px);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section {
  padding: 36px 26px;
  position: relative;
  background: var(--paper);
}

/*.section::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  inset: 18px 12px auto 12px;*/
/*  height: 1px;*/
/*  background: linear-gradient(90deg, transparent, rgba(37,33,29,.16), transparent);*/
/*  opacity: .55;*/
/*}*/

.script {
  font-family: var(--script-font);
  font-weight: 400;
  letter-spacing: 0;
}

.hero {
  position: relative;
  height: 610px;
  min-height: 86vh;
  overflow: hidden;
  background: #120e0b;
}

.hero__image,
.photo-section img,
.final img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image {
  object-position: 52% 50%;
  transform: scale(1.01);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.08), transparent 35%, rgba(0,0,0,.72)),
    radial-gradient(circle at 50% 78%, rgba(0,0,0,.25), transparent 34%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 48px;
  text-align: center;
  color: #fffaf5;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.hero__overline {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .72;
}

.hero__title {
  margin: 0 0 7vh 30% ;
  /*font-size: clamp(64px, 19vw, 92px);*/
  line-height: 1.4;
}

.eyebrow {
  margin: 0 0 16px;
  text-align: center;
  text-transform: uppercase;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .12em;
}

.intro { text-align: center; }
.intro__text {
  max-width: 320px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 17px;
}

.date-card {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  width: min(290px, 90%);
  margin: 0 auto 4px;
  color: var(--ink);
}

.date-card span,
.date-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.date-card strong {
  font-size: 58px;
  font-weight: 60;
}

.date-card i {
  display: block;
  height: 70px;
  width: 1px;
  background: var(--line);
}

.month {
  margin: 6px 0 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 22px;
  font-weight: 500;
}

.section-title {
  margin: 0 0 50px;
  text-align: center;
  /*font-size: clamp(56px, 16vw, 78px);*/
  line-height: .82;
  color: #000000;
}

.timeline {
  width: 100%;
  display: grid;
  gap: 24px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline__item time {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  padding-top: 5px;
  min-height: 74px;
  font-size: 30px;
  line-height: 1;
  /*font-weight: 500;*/
  letter-spacing: .02em;
  align-content: end;
}

.timeline__item h3 {
  margin: 0 0 5px;
  font-size: 23px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}

.timeline__item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.note-box {
  margin: 42px auto 0;
  padding: 20px 18px;
  border: 1px solid rgba(37, 33, 29, .55);
  text-align: center;
  max-width: 350px;
  background: rgba(255,255,255,.35);
}

.note-box p { margin: 0;}
.note-box--small { margin-top: 24px; }

.photo-section {
  height: 390px;
  padding: 0 22px;
  background: var(--paper);
}

.photo-section img {
  height: 100%;
  object-position: 54% 50%;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.location-card {
  min-width: 0;
  text-align: center;
}

.location-card h3 {
  margin: 0 0 4px;
  min-height: 46px;
  display: flex;
  align-items: end;
  justify-content: center;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: .08em;
  font-weight: 500;
}

.location-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.location-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  margin-bottom: 14px;
  filter: saturate(.92) contrast(.98);
}

.location-card a,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 16px 9px;
  border: 1px solid rgba(37,33,29,.48);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.location-card a:hover,
.btn:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.center-copy {
  max-width: 340px;
  margin: 0 auto 26px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

.locations .center-copy { margin-top: 28px; margin-bottom: 0;  font-size: 15px; }

.palette-img {
  display: block;
  width: min(100%, 350px);
  margin: 8px auto 8px;
}

.swatches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px auto 0;
}

.swatches span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(37,33,29,.15);
}

.info-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.info-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(37,33,29,.13);
}

.info-list span {
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
}

.info-list p { margin: 0; color: var(--muted); }
strong { font-weight: 500; color: var(--ink); }

.form {
  width: 100%;
  max-width: 360px;
  margin: 30px auto 0;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 15px;
  padding: 0 0 10px;
  border: 0;
  
  color: var(--ink);
}

.field span,
.field legend {
  padding: 0;
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 500;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(37,33,29,.2);
  /*background: rgba(255,255,255,.54);*/
  color: var(--ink);
  /*padding: 12px 12px;*/
  border-radius: 0;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea { resize: vertical; min-height: 86px; }

.field input[type="text"]:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(37,33,29,.62);
  box-shadow: 0 0 0 3px rgba(37,33,29,.06);
}

.fieldset label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 17px;
}

.fieldset input { accent-color: var(--accent-dark); }

.btn {
  width: 154px;
  margin: 4px auto 0;
  display: flex;
  background: var(--paper);
}

.form__status {
  min-height: 24px;
  margin: 18px 0 0;
  text-align: center;
  color: var(--accent);
  font-size: 16px;
}

.final {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #120e0b;
}

.final img { object-position: 54% 48%; }

.final__text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 42px;
  color: #fffaf5;
  text-align: center;
  text-shadow: 0 8px 24px rgba(0,0,0,.55);
}

.final__text p {
  margin: 0 0 4px;
  font-size: 62px;
  line-height: .82;
}

.final__text span {
  display: block;
  font-size: 16px;
  letter-spacing: .12em;
  /*text-transform: uppercase;*/
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(37,33,29,.2);
  background: rgba(251,250,247,.86);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.to-top.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.line-input {
  border: none !important;
  border-bottom: 2px solid #333;
  background: transparent;
  padding: 5px 0;
  font-size: 16px;
  outline: none;
  transition: border-bottom-color 0.3s;
  width: 100%;
  max-width: 300px;
}

.line-input:focus {
  border-bottom-color: #007bff;
}

.line-input::placeholder {
  color: #999;
}

@media (max-width: 360px) {
  body { font-size: 17px; }
  .section { padding: 48px 20px; }
  .hero { height: 560px; }
  .timeline__item { grid-template-columns: 60px 1fr; gap: 14px; }
  .timeline__item time { font-size: 26px; }
  .location-grid { gap: 12px; }
  .location-card a { padding-left: 10px; padding-right: 10px; font-size: 13px; }
}

@media (min-width: 760px) {
  .invite { margin: 32px 0; border-radius: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
