/* ---------------------------------------------------------------------------
   C2 wedding site
   No web fonts, no frameworks, no third party CSS. Everything here ships from
   the same origin so the page paints on the first round trip.
--------------------------------------------------------------------------- */

:root {
  --ink: #221d19;
  --ink-soft: #5d544c;
  --ink-faint: #8b8178;
  --cream: #faf7f2;
  --cream-deep: #f2ece3;
  --sand: #e3d8c9;
  --gold: #a07b4b;
  --gold-deep: #7d5f38;
  --white: #fffdfa;
  --line: rgba(34, 29, 25, 0.12);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 2px;
  --shadow: 0 18px 50px -28px rgba(34, 29, 25, 0.5);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  letter-spacing: 0.005em;
}

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

a { color: var(--gold-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-faint); }
.center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* --------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }

.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.02em; line-height: 1; }
.brand-mark sup { font-size: 0.55em; top: -0.55em; position: relative; }
.brand-sub {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 860px) { .brand-sub { display: none; } }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.12em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--ink); padding: 9px 16px; color: var(--ink) !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--ink); color: var(--cream) !important; }
@media (max-width: 560px) {
  .site-nav { gap: 14px; }
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ----------------------------------------------------------------- hero --- */
.hero { position: relative; isolation: isolate; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(420px, 74vh, 760px); object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,16,13,0.28) 0%, rgba(20,16,13,0.12) 40%, rgba(20,16,13,0.72) 100%);
  pointer-events: none;
}
.hero .hero-copy {
  position: absolute; inset-inline: 0; bottom: clamp(36px, 7vh, 84px); z-index: 2; color: var(--white);
}
.hero .hero-copy h1 { color: var(--white); max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero .hero-copy .lede { color: rgba(255, 253, 250, 0.9); max-width: 48ch; }

.hero-plain { background: var(--cream-deep); padding-block: clamp(70px, 12vh, 140px); }
.hero-plain::after { display: none; }
.hero-plain .hero-copy { position: static; color: inherit; }
.hero-plain .hero-copy h1 { color: inherit; text-shadow: none; }
.hero-plain .hero-copy .lede { color: var(--ink-soft); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-size: 0.82rem; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold-deep); color: var(--white); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.hero .btn-ghost { color: var(--white); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------------------------------------------------------------- about --- */
.about { padding-block: clamp(56px, 9vw, 110px); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .about-inner { grid-template-columns: 1fr; } }
.about-copy p { color: var(--ink-soft); max-width: 64ch; }
.about-points { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.about-points li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 0.97rem; color: var(--ink-soft); }
.about-points li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 10px; height: 1px; background: var(--gold); }

/* -------------------------------------------------------------- sections -- */
.section-head { max-width: 60ch; margin-bottom: clamp(26px, 4vw, 46px); }

/* -------------------------------------------------------------- gallery --- */
.gallery { padding-block: clamp(40px, 7vw, 90px); background: var(--cream-deep); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item { margin: 0; background: var(--sand); overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.wide img { aspect-ratio: 16 / 10; }
@media (max-width: 620px) { .gallery-item.wide { grid-column: span 1; } .gallery-item.wide img { aspect-ratio: 4 / 5; } }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item figcaption { font-size: 0.85rem; color: var(--ink-faint); padding: 10px 2px 4px; }

.empty-note { padding: 40px 0; color: var(--ink-faint); font-style: italic; }

/* ---------------------------------------------------------------- films --- */
.films { padding-block: clamp(50px, 8vw, 100px); }
.film-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: clamp(22px, 3vw, 40px); }
.film h3 { margin-top: 0.8em; margin-bottom: 0.3em; }
.film p { color: var(--ink-soft); font-size: 0.97rem; }

.film-frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink);
  overflow: hidden; border-radius: var(--radius);
}
.film-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; }
.film-noposter { width: 100%; height: 100%; background: linear-gradient(135deg, #2c2520, #4a3f35); }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.film-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(20, 16, 13, 0.18); border: 0; cursor: pointer; color: var(--white);
  font: inherit; transition: background-color 0.2s ease;
}
.film-play:hover { background: rgba(20, 16, 13, 0.38); }
.play-icon {
  width: 66px; height: 66px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.8);
  display: grid; place-items: center; background: rgba(0,0,0,0.25);
}
.play-icon::after {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 16px solid var(--white); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.play-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; }
.film-fallback { font-size: 0.8rem; }
.film-note { margin-top: 26px; font-size: 0.85rem; color: var(--ink-faint); }

/* -------------------------------------------------------------- stories --- */
.story-index { padding-block: clamp(46px, 7vw, 90px); }
.story-teaser { padding-block: clamp(50px, 8vw, 100px); }
.story-more-weddings { padding-block: clamp(46px, 7vw, 90px); background: var(--cream-deep); }

.story-list {
  list-style: none; margin: 0; padding: 0;
  /* auto-fill, not auto-fit: with one or two weddings the cards keep their
     normal width instead of stretching across the whole page. */
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
}
@media (max-width: 660px) { .story-list { grid-template-columns: 1fr; } }

.story-card a { display: block; text-decoration: none; color: inherit; }
.story-cover { overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.story-cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.5s ease; }
.story-list.compact .story-cover img { aspect-ratio: 3 / 2; }
.story-nocover { width: 100%; aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--sand), var(--cream-deep)); }
.story-card a:hover .story-cover img { transform: scale(1.03); }
.story-card h2, .story-card h3 { margin: 0.7em 0 0.15em; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.story-card h3 { font-size: 1.2rem; }
.story-card a:hover h2, .story-card a:hover h3 { color: var(--gold-deep); }

.story-meta {
  display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0 0 0.5em;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint);
}
.story-meta span + span { position: relative; padding-left: 15px; }
.story-meta span + span::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 1px; background: var(--sand); }

/* .story-teaser is the section on the home page; .story-excerpt is the blurb
   inside a card. Keep the two names apart, they used to collide. */
.story-teaser .lede { margin-bottom: 0; }
.story-excerpt { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 0.7em; }
.story-more { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-deep); }

/* ---------------------------------------------------- a single wedding --- */
.story-hero { position: relative; isolation: isolate; }
.story-hero .hero-media img { width: 100%; height: clamp(360px, 66vh, 680px); object-fit: cover; }
.story-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,16,13,0.3) 0%, rgba(20,16,13,0.08) 38%, rgba(20,16,13,0.74) 100%);
  pointer-events: none;
}
.story-hero .story-hero-copy { position: absolute; inset-inline: 0; bottom: clamp(30px, 6vh, 70px); z-index: 2; color: var(--white); }
.story-hero .story-hero-copy h1 { color: var(--white); margin-bottom: 0.25em; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.story-hero .story-hero-copy .crumbs { color: rgba(255,253,250,0.72); }
.story-hero .story-hero-copy .crumbs a { color: rgba(255,253,250,0.9); }
.story-hero .story-hero-copy .story-meta { color: rgba(255,253,250,0.82); }
.story-hero .story-hero-copy .story-meta span + span::before { background: rgba(255,253,250,0.5); }

.story-hero-plain { background: var(--cream-deep); padding-block: clamp(46px, 8vw, 90px) clamp(20px, 3vw, 36px); }
.story-hero-plain::after { display: none; }
.story-hero-plain .story-hero-copy { position: static; color: inherit; }
.story-hero-plain .story-hero-copy h1 { color: inherit; text-shadow: none; }
.story-hero-plain .story-hero-copy .crumbs, .story-hero-plain .story-hero-copy .crumbs a { color: var(--ink-faint); }
.story-hero-plain .story-hero-copy .story-meta { color: var(--ink-faint); }

.story-words { padding-block: clamp(44px, 7vw, 86px) clamp(20px, 3vw, 40px); }
.story-words p { color: var(--ink-soft); max-width: 68ch; }
.story-words .lede { color: var(--ink); max-width: 60ch; font-size: 1.24rem; font-family: var(--serif); line-height: 1.5; }

.story-gallery { padding-block: clamp(30px, 5vw, 60px); }
.story-quote { padding-block: clamp(40px, 6vw, 80px); background: var(--cream-deep); }
.story-quote blockquote { margin: 0 auto; max-width: 60ch; text-align: center; }
.story-quote blockquote p {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.4; color: var(--ink);
}
.story-quote cite { font-style: normal; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); }
.film-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.story-film { background: var(--cream); }

/* ------------------------------------------------------------- packages --- */
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 44px); background: var(--cream-deep); }
.page-hero.narrow { padding-block: clamp(60px, 10vw, 120px); }
.crumbs { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 1.2em; letter-spacing: 0.06em; }
.crumbs a { color: var(--ink-soft); }

.packages { padding-block: clamp(46px, 7vw, 90px); }
.package-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.package-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 6px; height: 100%;
}
.package-card.popular { border-color: var(--gold); box-shadow: var(--shadow); }
.package-card .badge {
  align-self: flex-start; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em;
  background: var(--gold); color: var(--white); padding: 5px 11px; border-radius: var(--radius); margin: 0 0 6px;
}
.package-card .price { font-family: var(--serif); font-size: 1.55rem; color: var(--gold-deep); margin: 0 0 0.4em; }
.package-card .summary { color: var(--ink-soft); }
.package-card .features { list-style: none; margin: 8px 0 22px; padding: 0; }
.package-card .features li { position: relative; padding: 8px 0 8px 24px; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.package-card .features li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 9px; height: 1px; background: var(--gold); }
.package-card .btn { margin-top: auto; align-self: flex-start; }
.packages-footnote { margin-top: clamp(30px, 4vw, 50px); color: var(--ink-soft); max-width: 68ch; }

.packages-teaser { padding-block: clamp(46px, 7vw, 90px); background: var(--cream-deep); }
.package-grid.teaser .package-card { gap: 2px; }

/* -------------------------------------------------------------- contact --- */
.contact { padding-block: clamp(56px, 9vw, 110px); background: var(--ink); color: var(--cream); }
.contact h2 { color: var(--white); }
.contact .lede { color: rgba(250, 247, 242, 0.72); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(34px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-direct { list-style: none; margin: 30px 0 0; padding: 0; }
.contact-direct li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid rgba(250,247,242,0.16); }
.contact-direct .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(250,247,242,0.5); }
.contact-direct a { color: var(--cream); }

.contact-form { background: var(--cream); color: var(--ink); padding: clamp(22px, 3.2vw, 38px); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.field .req { color: var(--gold-deep); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(160,123,75,0.18); }
.field textarea { resize: vertical; min-height: 130px; }
.field-error { color: #9a2c1e; font-size: 0.85rem; }
.form-error { background: #fbe9e5; border-left: 3px solid #9a2c1e; padding: 12px 14px; font-size: 0.93rem; }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin: 14px 0 0; }
.contact-form .btn { margin-top: 6px; }
.cf-turnstile { margin-bottom: 16px; }

/* Honeypot: off canvas rather than display:none, which some bots detect. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- footer --- */
.site-footer { background: var(--cream-deep); border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 70px) 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { margin: 8px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.footer-links h2 { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-faint); margin-bottom: 0.9em; }
.footer-links a { display: block; padding: 5px 0; font-size: 0.95rem; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-base p { margin: 0; font-size: 0.82rem; }
