/* Dinner Sounds Good — site styles
   Colours and fonts are set here in one place. */
/* Headings font: DM Serif Display (SIL Open Font License, see fonts/OFL.txt) */
@font-face {
  font-family: "DM Serif Display";
  src: url("/fonts/DMSerifDisplay-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("/fonts/DMSerifDisplay-Italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --ink: #1c1512;
  --ink-2: #251b16;
  --cream: #f3e6d3;
  --cream-dim: #cbbba6;
  --line: rgba(243, 230, 211, .14);
  --amber: #bd8d3c; /* brand gold, from the DSG logo */
  --serif: "DM Serif Display", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bar-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--amber); }
a:hover { color: var(--cream); }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; }

/* ---------- Top bar & burger ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw; transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-solid { background: rgba(28, 21, 18, .92); backdrop-filter: blur(8px); border-color: var(--line); }
.topbar__name { display: block; opacity: 0; transition: opacity .3s; }
.topbar__name img { height: 40px; width: auto; }
.hero .eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.hero__logo { width: clamp(110px, min(16vw, 20vh), 200px); height: auto; margin: 0 0 28px; }
.topbar.is-solid .topbar__name { opacity: 1; }
.burger {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; margin-right: -10px;
  position: relative; z-index: 60;
}
.burger span { display: block; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.burger:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; padding: 0 10vw;
  opacity: 0; transition: opacity .3s;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: inline-block; font-family: var(--serif); font-size: clamp(38px, 8vw, 72px);
  line-height: 1.25; color: var(--cream); text-decoration: none;
}
.menu li a:hover, .menu li a[aria-current="true"] { color: var(--amber); }
.menu__venues { margin: 28px 0 0; }
.menu__venues a { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.5vw, 30px); text-decoration: none; }
.menu__foot { margin-top: 48px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.menu__foot a { text-decoration: none; }

/* ---------- Home (hero) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; padding: calc(var(--bar-h) + 24px) 6vw 12vh; overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 40% 30% at 30% 55%, rgba(189,141,60,.35), transparent 70%),
    radial-gradient(ellipse 30% 25% at 70% 45%, rgba(189,141,60,.22), transparent 70%),
    linear-gradient(160deg, #3a2a20 0%, #1c1512 70%);
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.5) 60%, var(--ink) 100%);
}
.hero__inner { max-width: 1080px; width: 100%; margin: 0 auto; }
.eyebrow, .kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin: 0 0 18px; }
h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(52px, min(10vw, 13vh), 124px);
  line-height: .95; margin: 0 0 22px; max-width: 10ch;
}
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 32px); color: var(--cream-dim); margin: 0 0 36px; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; text-decoration: none;
  background: var(--amber); color: var(--ink); font-weight: 600;
}
.btn:hover { background: var(--cream); color: var(--ink); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 48px; background: var(--line); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--amber);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- Sections ---------- */
.section { padding: 120px 6vw; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 22px; }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.5vw, 38px); margin: 0 0 12px; }
.lead { color: var(--cream-dim); max-width: 52ch; margin: 0 0 40px; }

/* About */
.about__grid { display: grid; gap: 48px; }
@media (min-width: 860px) { .about__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
#aboutText p { color: var(--cream-dim); max-width: 48ch; margin: 0 0 16px; }
.about__image { margin: 0 0 32px; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.pillars li { border-top: 1px solid var(--line); padding-top: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.pillars li { align-items: baseline; }
@media (max-width: 600px) { .pillars li { grid-template-columns: 1fr; gap: 4px; } }
.pillars strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--amber); }
.pillars span { color: var(--cream-dim); }

/* Events */
.events { background: var(--ink-2); }
.event-list { display: grid; gap: 20px; }
.event {
  display: grid; gap: 20px; border: 1px solid var(--line); border-radius: 8px; padding: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .event { grid-template-columns: 110px 1fr auto; align-items: center; gap: 32px; } }
.event__date { font-family: var(--serif); line-height: 1; }
.event__date .day { font-size: 52px; color: var(--cream); display: block; }
.event__date .month { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.event__title { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; }
.event__meta { font-size: 15px; color: var(--amber); margin: 0 0 8px; }
.event__desc { color: var(--cream-dim); margin: 0; }
.event__action { text-align: left; }
@media (min-width: 760px) { .event__action { text-align: right; } }
.event__price { display: block; font-size: 15px; color: var(--cream-dim); margin-bottom: 10px; }
.tag {
  display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(189,141,60,.5); color: var(--amber); padding: 6px 14px; border-radius: 999px;
}
.empty {
  border: 1px dashed var(--line); border-radius: 8px; padding: 32px; color: var(--cream-dim); text-align: center;
}

/* Sign-up */
.signup { margin-top: 80px; max-width: 640px; text-align: center; }
.signup > p { color: var(--cream-dim); margin: 0 auto 28px; max-width: 44ch; }
.formkit-form { margin: 0 auto; max-width: 520px; }
.formkit-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.formkit-field { flex: 1 1 260px; }
.formkit-input {
  width: 100%; font: inherit; font-size: 16px; padding: 15px 18px; border-radius: 999px;
  border: 1px solid rgba(243,230,211,.25); background: rgba(0,0,0,.25); color: var(--cream);
}
.formkit-input::placeholder { color: var(--cream-dim); opacity: .7; }
.formkit-input:focus { outline: 2px solid var(--amber); outline-offset: 2px; border-color: transparent; }
.formkit-submit {
  flex: 0 0 auto; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; border: 0; background: var(--amber); color: var(--ink);
}
.formkit-submit:hover, .formkit-submit:focus-visible { background: var(--cream); }
@media (max-width: 600px) { .formkit-submit { flex: 1 1 100%; } }
.formkit-spinner { display: none; }
.formkit-submit[data-active] span { opacity: .5; }
.formkit-alert { list-style: none; padding: 12px 16px; margin: 0 0 16px; border-radius: 12px; }
.formkit-alert:empty { display: none; }
.formkit-alert-error { background: rgba(234,65,16,.15); color: #ffb39b; }
.formkit-alert-success { background: rgba(16,191,122,.15); color: #9ff0cc; }
.consent { font-size: 13px; color: var(--cream-dim); margin: 16px auto 0; max-width: 46ch; }
.consent a { color: var(--cream); }

/* Memories */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery .empty { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; transition: opacity .2s; }
.gallery figure:hover img { opacity: .85; }
.gallery figcaption { font-size: 14px; color: var(--cream-dim); padding: 10px 2px 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; color: var(--cream); }
.lightbox::backdrop { background: rgba(10, 8, 7, .92); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox p { text-align: center; color: var(--cream-dim); margin: 12px 0 0; }
.lightbox__close {
  position: fixed; top: 16px; right: 20px; font-size: 36px; line-height: 1; color: var(--cream);
  background: none; border: 0; cursor: pointer;
}

/* Footer */
.footer { padding: 56px 6vw; border-top: 1px solid var(--line); font-size: 15px; color: var(--cream-dim); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.places { font-family: var(--serif); font-size: 22px; color: var(--cream); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.small { width: 100%; font-size: 13px; opacity: .7; margin: 0; }

/* ---------- Information for venues ---------- */
.v-hero { padding-top: calc(var(--bar-h) + 72px); }
.v-hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .v-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.v-title { font-size: clamp(44px, 6.5vw, 80px); line-height: 1; max-width: 12ch; }
.v-intro { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: var(--cream-dim); margin: 0 0 36px; max-width: 34ch; }
.v-hero__image { margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; }
.v-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.v-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(243,230,211,.35); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.narrow { max-width: 760px; }
.v-body { color: var(--cream-dim); font-size: 18px; margin: 0 0 16px; }
.v-cols { display: grid; gap: 56px; }
@media (min-width: 860px) { .v-cols { grid-template-columns: 1fr 1fr; gap: 80px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); color: var(--cream-dim); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.v-note { color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; margin: 24px 0 0; padding-left: 20px; border-left: 2px solid var(--amber); }
.options { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 760px) { .options { grid-template-columns: 1fr 1fr; } }
.option { border: 1px solid var(--line); border-radius: 8px; padding: 32px; background: rgba(0,0,0,.15); }
.option .kicker { margin-bottom: 10px; }
.option h3 { margin-bottom: 10px; }
.option p:last-child { color: var(--cream-dim); margin: 0; }
.v-cta { text-align: center; }
.v-cta .v-actions { justify-content: center; margin-top: 28px; }
.v-email { margin: 20px 0 0; font-size: 15px; }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero__inner > * { animation: rise .9s ease-out both; }
  .hero__inner > *:nth-child(2) { animation-delay: .1s; }
  .hero__inner > *:nth-child(3) { animation-delay: .2s; }
  .hero__inner > *:nth-child(4) { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
