/* ==========================================================================
   Maddie & Ryan — August 21, 2027
   Backdrops: Cloud, Clay or Cream. Harbor is the title page backdrop only,
   and the lettering color everywhere else.
   Type: Old Money Font Trio. Headers in Regular, all caps. Subtext in Italic.
   Names in Script.
   ========================================================================== */

/* Drop the purchased .otf files into /fonts with these names and the whole
   site picks them up. Until then: Instrument Serif and Pinyon Script. */
@font-face {
  font-family: "Old Money"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/oldmoney-regular.woff2") format("woff2"), url("../fonts/oldmoney-regular.otf") format("opentype");
}
@font-face {
  font-family: "Old Money"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/oldmoney-italic.woff2") format("woff2"), url("../fonts/oldmoney-italic.otf") format("opentype");
}
@font-face {
  font-family: "Old Money Script"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/oldmoney-script.woff2") format("woff2"), url("../fonts/oldmoney-script.otf") format("opentype");
}

:root {
  --harbor: #16305a;
  --harbor-deep: #0f2344;
  --cloud: #a6c3ff;
  --clay: #c2521d;
  --clay-ink: #a64415;    /* clay, a touch darker, for small type on cream */
  --cream: #faf5e9;
  --ink: #14284b;

  --serif: "Old Money", "Instrument Serif", Georgia, "Times New Roman", serif;
  --script: "Old Money Script", "Pinyon Script", "Snell Roundhand", cursive;

  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 11vw, 150px);
  --header-h: 72px;

  --boat: url("../images/sailboat.svg");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.home { padding-top: 0; }

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay-ink); }

/* Headers: Regular, all caps */
h1, h2, h3 {
  font-family: var(--serif); font-style: normal; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.08; margin: 0;
}
h2 { font-size: clamp(38px, 5.2vw, 68px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: 0.06em; }
.lower { text-transform: none; font-style: italic; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.center { text-align: center; }
.section--ruled { border-top: 1px solid rgba(22,48,90,.2); }

.eyebrow { font-style: normal; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; margin: 0 0 20px; }
.eyebrow--clay { color: var(--clay-ink); }

.lede { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.5; }

/* Little runabout --------------------------------------------------------- */
.boat {
  display: inline-block; width: 1.75em; height: 1.45em; vertical-align: -0.3em;
  background: currentColor;
  -webkit-mask: var(--boat) center / contain no-repeat;
          mask: var(--boat) center / contain no-repeat;
}
.boat-rule { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--clay); font-size: 26px; margin: 0 0 28px; }
.boat-rule::before, .boat-rule::after { content: ""; width: 54px; height: 1px; background: var(--harbor); opacity: .45; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--clay); color: var(--cream); padding: 10px 16px; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: inherit; font-style: normal; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  padding: 15px 34px;
  border: 1px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: var(--cream); }
.btn--solid { background: var(--clay); border-color: var(--clay); color: var(--cream); }
.btn--solid:hover { background: var(--cloud); border-color: var(--cloud); color: var(--harbor); }
.field--clay .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--clay); }

/* Fixed header: monogram stays put ---------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: var(--cream); color: var(--harbor);
  border-bottom: 1px solid rgba(22, 48, 90, .18);
  transition: background-color .35s, color .35s, border-color .35s;
}
/* Over the title page, until you scroll */
.home .site-header:not(.is-scrolled) { background: transparent; color: var(--cream); border-bottom-color: transparent; }

.monogram {
  grid-column: 2; display: inline-flex; align-items: center; gap: 7px;
  font-style: normal; font-size: 34px; line-height: 1; letter-spacing: 0.02em; text-decoration: none; text-transform: uppercase;
}
.oyster {
  display: inline-block; height: 1.18em; aspect-ratio: 100 / 130; margin-top: -0.08em;
  background: var(--clay);
  -webkit-mask: url("../images/oyster.svg") center / contain no-repeat;
          mask: url("../images/oyster.svg") center / contain no-repeat;
}
.monogram:hover { color: inherit; }
.monogram--lg { font-size: clamp(60px, 8vw, 96px); gap: 12px; }

.menu-btn {
  grid-column: 3; justify-self: end; position: relative; z-index: 31;
  font: inherit; font-style: normal; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase;
  color: inherit; background: none; border: 0; padding: 10px 0; cursor: pointer;
}
.menu-btn:hover { color: var(--clay); }
.home .site-header:not(.is-scrolled) .menu-btn:hover { color: var(--cloud); }

.nav {
  position: fixed; inset: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.nav__photo { position: relative; background: var(--cloud); }
.nav__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nav__panel { background: var(--clay); color: var(--cream); display: grid; align-items: center; padding: 90px clamp(32px, 7vw, 110px); overflow-y: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; text-decoration: none; text-transform: lowercase;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; padding: 7px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); border-bottom-color: currentColor; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { opacity: 1; visibility: visible; }
body.menu-open .menu-btn, body.menu-open .menu-btn:hover { color: var(--cream); }
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr; }
  .nav__photo { display: none; }
  .nav__panel { text-align: center; }
}

/* Title page -------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  background: var(--harbor); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 130px var(--gutter) 110px;
  position: relative;
}
.hero__names {
  font-family: var(--serif); font-style: normal; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(50px, 9.2vw, 150px); line-height: 1.05; color: var(--cream);
  margin: 0 0 clamp(30px, 4.5vw, 60px);
}
.hero__names span { display: inline; }
.hero__names .amp { font-family: var(--script); text-transform: none; letter-spacing: 0; font-size: 1.05em; padding-inline: .08em; }
@media (max-width: 760px) { .hero__names span { display: block; } .hero__names .amp { font-size: .8em; line-height: 1; } }
.hero__date { font-style: normal; text-transform: uppercase; letter-spacing: 0.3em; font-size: clamp(17px, 1.9vw, 24px); color: var(--cloud); margin: 0 0 14px; }
.hero__place { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.3; margin: 0; }
.hero__place .boat { color: var(--clay); margin-inline: .3em; font-size: .85em; }
.hero__scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 32px; font-style: normal; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--cloud); }
.hero__scroll:hover { color: var(--cream); }

/* Postcard intro ---------------------------------------------------------- */
.venue-line { margin-top: 30px; font-size: 19px; line-height: 1.5; }
.postcard-wrap { position: relative; max-width: 980px; margin: clamp(56px, 8vw, 96px) auto 0; }
.postcard { background: var(--cream); border: 1px solid rgba(22,48,90,.12); padding: clamp(10px, 1.6vw, 18px); box-shadow: 0 1px 0 rgba(20,40,75,.12), 0 28px 60px -28px rgba(20,40,75,.45); }
.postcard figcaption { text-align: right; font-size: 16px; letter-spacing: .03em; padding: 14px 4px 4px; }
.postmark { position: absolute; right: clamp(-10px, -2vw, -34px); top: clamp(-46px, -5vw, -70px); width: clamp(150px, 22vw, 250px); color: var(--harbor); transform: rotate(11deg); opacity: .9; pointer-events: none; }

.postmark text { font-style: normal; }

.countdown { margin-top: clamp(56px, 8vw, 96px); }
.countdown__num { font-style: normal; font-size: clamp(70px, 10vw, 136px); line-height: 1; color: var(--clay); }
.countdown__label { font-style: normal; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; margin-top: 10px; }

/* Half color, half photo -------------------------------------------------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; min-height: min(80vh, 760px); }
.duo__text { display: grid; place-items: center; text-align: center; padding: clamp(64px, 8vw, 120px) var(--gutter); }
.duo__text > div { max-width: 28em; }
.duo__text h2 { margin-bottom: 20px; }
.duo__text .btn { margin-top: 14px; }
.duo__img { position: relative; min-height: 340px; overflow: hidden; }
.duo__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo--flip .duo__img { order: -1; }
.page-head { min-height: min(62vh, 600px); }
.page-head--solo { grid-template-columns: 1fr; min-height: min(46vh, 440px); }
.page-head h1 { font-size: clamp(48px, 6.6vw, 96px); }
.page-head .eyebrow { margin-bottom: 16px; }
@media (max-width: 820px) {
  .duo { grid-template-columns: 1fr; min-height: 0; }
  .duo .duo__img { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
}

.bw { filter: grayscale(1) brightness(1.2) contrast(.96); }
.wide-img img { width: 100%; max-height: 70vh; object-fit: cover; }

/* Icon columns, no photos ------------------------------------------------- */
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 48px); }
@media (max-width: 900px) { .notes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .notes { grid-template-columns: 1fr; } }
.note { display: block; text-align: center; text-decoration: none; color: var(--harbor); }
.note h3 { margin: 14px 0 10px; font-size: clamp(24px, 2.3vw, 30px); transition: color .25s; }
.note p { font-size: 19px; line-height: 1.45; margin: 0; }
.note:hover { color: var(--harbor); }
.note:hover h3 { color: var(--clay); }
.icon { display: inline-block; width: 44px; height: 44px; background: var(--clay); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: transform .4s cubic-bezier(.2,.6,.2,1); }
.note:hover .icon { transform: translateY(-4px); }
.icon--boat { width: 52px; height: 44px; -webkit-mask-image: var(--boat); mask-image: var(--boat); }
.icon--oyster { height: 44px; -webkit-mask-image: url("../images/oyster.svg"); mask-image: url("../images/oyster.svg"); }
.icon--light { width: 42px; -webkit-mask-image: url("../images/lighthouse.svg"); mask-image: url("../images/lighthouse.svg"); }
.icon--sun { width: 58px; -webkit-mask-image: url("../images/sun.svg"); mask-image: url("../images/sun.svg"); }

/* Color fields: cloud carries harbor lettering, clay carries cream */
.field--cloud { background: var(--cloud); color: var(--harbor); }
.field--clay { background: var(--clay); color: var(--cream); }
.field--cloud .boat-rule, .field--clay .boat-rule { color: var(--cream); }
.field--cloud a:hover { color: var(--clay-ink); }
.field--clay a:hover { color: var(--harbor-deep); }

/* Generic content blocks -------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(22,48,90,.25); }
.split:first-of-type { border-top: 0; padding-top: 0; }
.split__label h2 { font-size: clamp(30px, 3.4vw, 44px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; padding: 1px; }
.card { background: var(--cream); box-shadow: 0 0 0 1px var(--harbor); padding: clamp(24px, 3vw, 38px); }
.cards--plain { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(20px, 3vw, 44px); padding: 0; }
.cards--plain .card { box-shadow: none; background: transparent; text-align: center; padding: 0; }
.card h3 { margin-bottom: 12px; }
.card .eyebrow { margin-bottom: 12px; color: var(--clay-ink); }
.card p { font-size: 19px; line-height: 1.5; }

.tbd { display: inline-block; font-style: normal; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-ink); border: 1px solid currentColor; border-radius: 999px; padding: 3px 12px; }
a.tbd--link { text-decoration: none; transition: background-color .25s, color .25s; }
a.tbd--link:hover { background: var(--clay); border-color: var(--clay); color: var(--cream); }

/* Schedule */
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: grid; grid-template-columns: 200px 1fr auto; align-items: start; gap: 28px; padding-block: 34px; border-top: 1px solid rgba(22,48,90,.25); }
.schedule li:last-child { border-bottom: 1px solid rgba(22,48,90,.25); }
.schedule__when { font-style: normal; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.9; padding-top: 4px; color: var(--clay-ink); }
.schedule h3 { margin-bottom: 8px; }
.schedule .schedule__sub { margin-top: 30px; }
.schedule__tag { justify-self: end; padding-top: 4px; white-space: nowrap; }
@media (max-width: 640px) { .schedule li { grid-template-columns: 1fr; gap: 6px; } .schedule__tag { justify-self: start; padding-top: 8px; } }

/* Photo grids */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 22px); }
.trio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 640px) { .trio { grid-template-columns: 1fr 1fr; } .trio > :first-child { grid-column: 1 / -1; } }

.gallery { columns: 3; column-gap: clamp(10px, 1.6vw, 22px); }
.gallery figure { margin: 0 0 clamp(10px, 1.6vw, 22px); break-inside: avoid; }
.gallery img { width: 100%; }
@media (max-width: 700px) { .gallery { columns: 2; } }

.cta__big { font-style: normal; text-transform: uppercase; letter-spacing: .04em; line-height: 1.08; font-size: clamp(46px, 7vw, 100px); margin: 0 0 34px; }

/* FAQ */
.faq details { border-top: 1px solid rgba(22,48,90,.3); }
.faq details:last-child { border-bottom: 1px solid rgba(22,48,90,.3); }
.faq summary { font-style: normal; text-transform: uppercase; letter-spacing: .06em; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.2; padding: 24px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--clay); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 30px; max-width: 60ch; }

/* Forms */
.form { display: grid; gap: 26px; }
.form label, .form legend { display: block; font-style: normal; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; padding: 0; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--harbor); border-radius: 0; padding: 10px 0;
}
.form textarea { min-height: 96px; resize: vertical; border: 1px solid var(--harbor); padding: 12px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form .choices { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.form .choices label { display: flex; align-items: center; gap: 10px; margin: 0; font-style: italic; letter-spacing: 0; text-transform: none; font-size: 20px; }
.form input[type="radio"] { accent-color: var(--clay); width: 18px; height: 18px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--cream); color: var(--harbor); border-top: 1px solid rgba(22,48,90,.2); text-align: center; padding: clamp(64px, 9vw, 110px) var(--gutter) 44px; }
.site-footer .monogram { margin-bottom: 26px; }
.site-footer__meta { font-size: 19px; line-height: 1.55; }
.site-footer__meta b { display: block; font-weight: 400; font-style: normal; text-transform: uppercase; letter-spacing: .24em; font-size: 14px; margin-bottom: 8px; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin: 38px 0 0; font-style: normal; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.site-footer__nav a { text-decoration: none; }
.site-footer a:hover { color: var(--clay-ink); }

/* Reveal on scroll -------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.6,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
