/* Palette drawn from the Godwick watercolour: brick, sage, sky, rose on warm paper.
   Text colours are checked for WCAG AA on --paper. */
:root {
  --paper: #faf6ef;
  --paper-deep: #f3ece1;
  --ink: #3a2e28;
  --muted: #6b5d55;
  --brick: #a44c30;
  --brick-dark: #86391f;
  --sage: #6f7d5c;
  --sky: #e8eff4;
  --rose: #e9c7c0;
  --line: #e2d6c7;

  --serif-display: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --serif-body: Lora, Georgia, 'Times New Roman', serif;

  --measure: 38rem;
  --gutter: 1.25rem;
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 6vw, 2.6rem); color: var(--brick-dark); }
h3 { font-size: 1.5rem; margin-top: 1.75rem; }
h4 { font-size: 1.25rem; margin: 0; }

p { margin: 0 0 1em; }

a {
  color: var(--brick);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--brick-dark); text-decoration-thickness: 2px; }

/* One clear focus style everywhere */
:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---------- Hero ---------- */

.hero, .gate {
  text-align: center;
  padding: 0 var(--gutter) 2rem;
}

.hero-art img {
  display: block;
  width: 100%;
  max-width: 56rem;
  height: auto;
  margin: 0 auto;
  /* The painting sits on pure white; multiply lets it melt into the paper colour */
  mix-blend-mode: multiply;
}

.eyebrow {
  font-family: var(--serif-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--sage);
  margin: -0.5rem 0 0.25rem;
}

.names {
  font-size: clamp(3rem, 13vw, 5.5rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.amp {
  font-style: italic;
  color: var(--brick);
}

.date-line {
  font-family: var(--serif-display);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 600;
  margin: 0;
}
.place-line {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

/* ---------- Jump links ---------- */

.jump {
  border-block: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}
.jump ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.6rem var(--gutter);
  display: flex;
  gap: 1.1rem;
  /* One line always; scrolls sideways on narrow phones rather than wrapping */
  justify-content: safe center;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 56rem;
}
.jump ul::-webkit-scrollbar { display: none; }
.jump a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.25rem 0;
  display: inline-block;
  white-space: nowrap;
}
.jump a:hover { color: var(--brick); text-decoration: underline; }

/* ---------- Sections ---------- */

main { display: block; }

.section {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 3rem var(--gutter);
  /* Keep headings clear of the sticky jump bar */
  scroll-margin-top: 2rem;
}
.section + .section { border-top: 1px solid var(--line); }

.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 0.75rem; }

.note { color: var(--muted); font-style: italic; }
.small { font-size: 0.9rem; color: var(--muted); }
.tbc { color: var(--muted); font-style: italic; }
.disclaimer { margin-top: 1.5rem; }

.callout {
  background: var(--sky);
  border-left: 4px solid var(--brick);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Timeline: a sage dot per day, joined dot-to-dot by a line (nothing above the
   first dot or below the last) */
.timeline {
  --dot: 12px;
  --dot-top: 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.75rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--dot-top);
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--sage);
}
/* Connector from the bottom of this dot to the top of the next one */
.timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(var(--dot) / 2 - 1px);
  width: 2px;
  top: calc(var(--dot-top) + var(--dot));
  bottom: calc(-1 * var(--dot-top));
  background: var(--line);
}
.timeline .when {
  font-family: var(--serif-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}
.timeline .what { margin: 0; }
.timeline .tbc::before { content: '· '; }

.details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.5rem;
  margin: 0;
}
.details dt { font-weight: 600; margin-top: 0.75rem; }
.details dd { margin: 0; }
@media (min-width: 34rem) {
  .details { grid-template-columns: max-content 1fr; }
  .details dt, .details dd { margin-top: 0.5rem; }
}

/* ---------- Accommodation cards ---------- */

.stay-group h3 { color: var(--sage); }

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 34rem) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.card .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.1rem 0 0.4rem;
}
.card .offers { margin: 0 0 0.4rem; }
.card .link { margin: 0; font-size: 0.95rem; word-break: break-word; }

.fold {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.1rem;
  background: var(--paper-deep);
}
.fold summary {
  cursor: pointer;
  padding: 0.9rem 0;
  font-weight: 600;
  color: var(--brick);
}
.fold[open] { padding-bottom: 1.1rem; }

/* ---------- Buttons ---------- */

.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button, button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--brick);
  background: var(--brick);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover {
  background: var(--brick-dark);
  border-color: var(--brick-dark);
  color: #fff;
  text-decoration: none;
}
.button--quiet {
  background: transparent;
  color: var(--brick);
}
.button--quiet:hover { background: var(--brick); color: #fff; }
button:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 3rem var(--gutter) 4rem;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}
.copyright { margin: 3rem 0 0; }
.footer-lead {
  font-family: var(--serif-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--brick-dark);
}

/* ---------- Gate ---------- */

.gate-page { min-height: 100vh; }
.gate { max-width: 40rem; margin: 0 auto; padding-bottom: 4rem; }
.gate .hero-art img { max-width: 34rem; }

.gate-form {
  margin: 2rem auto 0;
  max-width: 24rem;
  text-align: left;
}
.gate-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}
.gate-row { display: flex; gap: 0.5rem; }
.gate-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.1rem; /* >=16px stops iOS zooming on focus */
  padding: 0.7rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.gate-row input:focus-visible { border-color: var(--brick); outline-offset: 2px; }
.gate-row input[aria-invalid='true'] { border-color: var(--brick); }

.gate-msg {
  min-height: 1.65em;
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
}
.gate-msg.is-error { color: var(--brick-dark); font-weight: 600; }
