@font-face {
  font-family: "Sycamore";
  src: url("/fonts/Sycamore.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sycamore Fill";
  src: url("/fonts/Sycamore-Fill.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --display: "Sycamore", "Comic Sans MS", cursive;       /* hand-lettered outline */
  --display-fill: "Sycamore Fill", "Comic Sans MS", cursive; /* solid variant */
  --cream: #f6f1e3;
  --cream-deep: #efe8d4;
  --ink: #000000;        /* all text is black */
  --ink-soft: #000000;
  --body: #000000;
  --green: #000000;      /* accents/buttons — no more green */
  --sky-top: #a9c6d8;
  --sky-bottom: #cfe0e6;
  --rule: #222222;
  --maxw: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: "Delius", "Comic Sans MS", cursive, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

h3 {
  font-family: var(--display-fill);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0 0 1em; }

sup { font-size: 0.6em; }

/* ---------- Hero ---------- */
.hero {
  background:
    url("/images/hero.jpg") center 32% / cover no-repeat,
    linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  min-height: 66vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 24px 0;
  text-align: center;
}

.hero__text {
  max-width: 640px;
  padding: 18px 28px 30px;
  border-radius: 24px;
  background: radial-gradient(ellipse at center,
      rgba(246,241,227,0.72) 0%,
      rgba(246,241,227,0.45) 55%,
      rgba(246,241,227,0) 78%);
}

.hero h1 {
  font-size: clamp(3.5rem, 11vw, 7rem);
  color: #000000;
  text-shadow: 0 2px 10px rgba(255,255,255,0.55);
  margin-bottom: 0.15em;
}

.hero p {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: #000000;
  max-width: 34rem;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(255,255,255,0.7);
}

/* ---------- Shared section layout ---------- */
main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
}

.script { font-family: var(--display-fill); }

/* small hand-drawn flourish under side text */
.flourish {
  display: block;
  width: 120px;
  height: 14px;
  margin: 6px auto 0;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14'%3E%3Cpath d='M2 8 C 30 2, 90 2, 118 8 M20 12 C 45 6, 75 6, 100 12' fill='none' stroke='%23000000' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: .7;
}
.flourish--big { width: 200px; height: 22px; margin: 8px 0 0; }

/* ---------- Couple ---------- */
.couple { text-align: center; max-width: 1280px; }
.couple__names {
  margin-bottom: 8px;
}
.couple__names-svg {
  display: block;
  width: min(760px, 96%);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
.couple__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}
.couple__side { flex: 1 1 210px; min-width: 160px; }
.couple__side .script { font-size: 1.5rem; color: var(--ink-soft); margin: 0; }
.couple__photo {
  margin: 0;
  flex: 0 0 auto;
  background: #fff;
  padding: 8px 8px 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.couple__photo img { display: block; width: clamp(300px, 46vw, 600px); height: auto; }
.couple__rsvp {
  font-family: var(--display-fill);
  font-size: 1.3rem;
  color: var(--ink);
  margin-top: 40px;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}
.timeline__title {
  font-size: clamp(3rem, 9vw, 5rem);
  text-align: left;
}
.timeline__art {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  margin-top: 20px;
}
.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline__list li {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 2px dashed var(--rule);
}
.timeline__list li:last-child { border-bottom: none; }
.timeline__list h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.timeline__list p { margin: 0; }

/* ---------- Details ---------- */
.details { text-align: center; }
.details__title {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  margin-bottom: 48px;
}
.details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.details__grid h3 {
  font-size: 1.9rem;
  color: var(--green);
  margin-bottom: 8px;
}
.details__icon {
  display: block;
  width: clamp(120px, 42%, 160px);
  height: auto;
  margin: 0 auto 14px;
}
.details__grid p { font-size: 0.98rem; }

/* ---------- RSVP ---------- */
.rsvp {
  background: var(--cream-deep);
  max-width: none !important;
  padding-left: 24px;
  padding-right: 24px;
}
.rsvp__head {
  max-width: var(--maxw);
  margin: 0 auto 40px;
}
.rsvp__title {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
}
.rsvp__body {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  align-items: flex-start;
}
.rsvp__art {
  flex: 0 0 auto;
  width: clamp(150px, 24vw, 250px);
  height: auto;
  margin-top: 6px;
}
.rsvp__form { flex: 1 1 auto; min-width: 0; }
.field { display: block; margin-bottom: 24px; border: none; padding: 0; }
.field__label {
  display: block;
  font-family: var(--display-fill);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 8px;
}
textarea, input[type="email"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--body);
  background: #fffdf7;
  border: none;
  border-bottom: 2px solid var(--rule);
  padding: 10px 4px;
  border-radius: 4px 4px 0 0;
}
textarea { resize: vertical; }
textarea:focus, input[type="email"]:focus {
  outline: none;
  border-bottom-color: var(--green);
  background: #fff;
}
.field--attending { display: flex; flex-direction: column; }
.radio {
  font-family: inherit;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.radio input { accent-color: var(--green); width: 18px; height: 18px; }

.rsvp__submit {
  font-family: var(--display-fill);
  font-size: 1.4rem;
  color: var(--cream);
  background: var(--green);
  border: none;
  border-radius: 40px;
  padding: 12px 40px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.rsvp__submit:hover { background: #2a2a2a; transform: translateY(-1px); }
.rsvp__submit:disabled { opacity: .55; cursor: default; transform: none; }

.rsvp__status {
  margin-top: 18px;
  font-size: 1.1rem;
  min-height: 1.4em;
}
.rsvp__status.is-error { color: #9a3b2f; }
.rsvp__status.is-ok { color: var(--green); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 40px 24px 56px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline__head { position: static; text-align: center; }
  .timeline__title { text-align: center; }
  .timeline__art { margin: 20px auto 8px; }
  .details__grid { grid-template-columns: 1fr; gap: 48px; }
  .couple__side { order: 0; }
  .rsvp__body { flex-direction: column; align-items: center; }
  .rsvp__art { width: 190px; }
  .rsvp__form { width: 100%; max-width: 480px; }
}
