/* Layout: invitation-like editorial page; the hero photo sits in a wedding-arch frame,
   everything else is calm columns on a sea-fog ground. Single light theme by choice. */
:root {
  --fog: #f2f5f4;
  --paper: #ffffff;
  --ink: #1c2a33;
  --muted: #586970;
  --harbor: #23465a;
  --harbor-deep: #172f3d;
  --seaglass: #8db3a6;
  --seaglass-soft: #e2ede9;
  --brass: #9c7631;
  --line: #d5e0dc;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.0625rem/1.7 var(--body); color: var(--ink); background: var(--fog); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--harbor); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; color: var(--harbor-deep); }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); letter-spacing: -.015em; }
h1 em { font-style: normal; color: inherit; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 .9rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(242, 245, 244, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.wordmark { display: grid; text-decoration: none; color: var(--ink); line-height: 1.2; }
.wordmark-name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--harbor-deep); }
.wordmark-role { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--harbor); }
.nav .nav-cta { border: 1px solid var(--harbor); padding: 7px 18px; border-radius: 999px; color: var(--harbor); }
.nav .nav-cta:hover { background: var(--harbor); color: var(--paper); }

/* Buttons */
.btn { display: inline-block; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--harbor); color: var(--paper); }
.btn-primary:hover { background: var(--harbor-deep); }
.btn-quiet { border-color: var(--seaglass); color: var(--harbor-deep); }
.btn-quiet:hover { background: var(--seaglass-soft); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-text { min-width: 0; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 34ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-arch { margin: 0; position: relative; }
.hero-arch::before {
  content: ""; position: absolute; inset: -14px -14px 0 14px;
  border: 1px solid var(--seaglass); border-radius: 999px 999px 0 0;
}
.hero-arch img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% center;
  border-radius: 999px 999px 0 0;
}

/* Personal note */
.note { background: var(--harbor-deep); color: #e4eeea; padding-block: clamp(56px, 8vw, 96px); }
.note-inner { max-width: 820px; }
.note-text { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.45; margin: 0; }
.note-sign { font-family: var(--display); font-style: italic; font-size: 1.8rem; color: var(--seaglass); margin: 1.2rem 0 0; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }

.ceremonies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 2.5rem; }
.ceremony { min-width: 0; }
.ceremony img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 1.25rem; }
.ceremony p { color: var(--muted); }
.text-link { font-weight: 600; }

.town { background: var(--seaglass-soft); padding-block: clamp(64px, 9vw, 112px); }
.town-head { max-width: 640px; margin-bottom: 2.5rem; }
.town-head p:last-child { color: var(--muted); }
.town-photos { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 16px; align-items: end; }
.town-photos figure { margin: 0; min-width: 0; }
.town-photos img { width: 100%; height: 300px; object-fit: cover; border-radius: 4px; }
.town-photos figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; letter-spacing: .04em; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.about-text { min-width: 0; max-width: 60ch; }
.about-text p { color: var(--muted); }

.words { background: var(--paper); border-block: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px); }
.words-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.words blockquote { margin: 0; min-width: 0; }
.quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.35; color: var(--harbor-deep); }
.testimonial { border-left: 2px solid var(--seaglass); padding-left: 24px; }
.testimonial p { font-size: 1.15rem; }
.words cite { font-style: normal; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.fact { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fact dt { font-family: var(--display); font-size: 1.5rem; color: var(--harbor-deep); margin-bottom: .4rem; }
.fact-big { font-size: 2.6rem; color: var(--harbor); font-variant-numeric: lining-nums; }
.fact dd { margin: 0; color: var(--muted); font-size: 1rem; }
.facts-link { margin-top: 1.75rem; font-weight: 600; }

.vows-teaser { background: var(--harbor); color: #e4eeea; padding-block: clamp(56px, 8vw, 96px); }
.vows-teaser h2 { color: var(--paper); }
.vows-teaser .label { color: #d9b878; }
.vows-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.vows-grid > div { min-width: 0; max-width: 52ch; }
.vows-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.vows-teaser .btn-primary { background: var(--paper); color: var(--harbor-deep); margin-top: .5rem; }
.vows-teaser .btn-primary:hover { background: var(--seaglass-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-intro { min-width: 0; }
.contact-intro > p { color: var(--muted); }
.contact-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.contact-list span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; padding-top: 4px; }
.contact-extras { font-size: .95rem; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; min-width: 0; }
.optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: 1rem var(--body); color: var(--ink); width: 100%; min-width: 0;
  padding: 12px 14px; border: 1px solid #c3d1cc; border-radius: 4px; background: var(--fog);
}
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; padding: 12px 14px; border-radius: 4px; background: var(--seaglass-soft); color: var(--harbor-deep); font-size: .95rem; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--harbor-deep); color: #b7cbc5; padding-block: 36px; font-size: .9rem; }
.footer-inner { display: grid; gap: 6px; }
.footer-inner p { margin: 0; }
.credits { font-size: .8rem; color: #8ea9a2; }

/* Sample ceremony page */
.script { max-width: 760px; margin: 0 auto; padding-block: clamp(48px, 8vw, 96px); }
.script h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.script h2 { font-size: 1.9rem; margin-top: 2.6em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.script p { font-size: 1.12rem; }
.script .intro { color: var(--muted); font-size: 1.2rem; }
.line { display: grid; grid-template-columns: 100px 1fr; gap: 16px; margin-bottom: 1rem; }
.line .who { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; padding-top: 6px; }
.line p { margin: 0; }
.blank { display: inline-block; min-width: 5.5em; border-bottom: 1px solid var(--seaglass); }
.direction { font-style: italic; color: var(--muted); margin-left: 116px; }

/* Thank-you page */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 960px) {
  .nav a:not(.nav-cta):not([href="vows.html"]) { display: none; }
  .ceremonies { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .hero-grid, .about-grid, .words-grid, .vows-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-arch { max-width: 420px; margin-inline: auto; width: 88%; }
  .ceremonies, .facts, .field-row { grid-template-columns: 1fr; }
  .town-photos { grid-template-columns: 1fr 1fr; }
  .town-photos figure:first-child { grid-row: span 2; }
  .town-photos figure:first-child img { height: 100%; min-height: 300px; }
  .town-photos img { height: 160px; }
  .nav a[href="vows.html"] { display: none; }
  .wordmark-name { font-size: 1.2rem; }
  .line { grid-template-columns: 1fr; gap: 2px; }
  .direction { margin-left: 0; }
}

/* Larger text on desktop and laptop screens */
@media (min-width: 1100px) { html { font-size: 112.5%; } }
@media (min-width: 1600px) { html { font-size: 125%; } }
