/* Gourmet Barbara — site styles. No external dependencies; fonts self-hosted (SIL OFL). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  --navy: #1b2a6b;
  --navy-deep: #111b47;
  --brass: #7d5e2a; /* 5.65:1 on --paper (WCAG AA) */
  --paper: #fbf8f3;
  --paper-2: #f2ece2;
  --ink: #1f2433;
  --muted: #5d6273;
  --line: #e2d9ca;
  --surface: #ffffff;
  --ok: #1f6b4a;
  --warn: #9a3412;
  --focus: #2f6fed;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #9fb0ff;
    --navy-deep: #0b1130;
    --brass: #d2b07a;
    --paper: #12141c;
    --paper-2: #1a1d28;
    --ink: #ece8e1;
    --muted: #a7abb8;
    --line: #2c3040;
    --surface: #191c26;
    --ok: #6fd3a5;
    --warn: #f3a37a;
    color-scheme: dark;
  }
}

*, *::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 { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h1 em, h2 em { color: var(--navy); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow {
  font: 600 .78rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass); margin-bottom: .9em;
}

.button {
  display: inline-block; font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05em 1.7em; border-radius: var(--radius); text-decoration: none;
  background: var(--navy); color: var(--paper); border: 1px solid var(--navy); cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.button:hover { background: transparent; color: var(--navy); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button--light { background: #fff; color: #1b2a6b; border-color: #fff; }
.button--light:hover { background: transparent; color: #fff; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand img { width: clamp(180px, 20vw, 250px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) 
.site-header .brand img { filter: brightness(0) invert(1); } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 30px); }
.site-nav li { white-space: nowrap; }
.site-nav a {
  font: 500 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: .6em 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav-toggle { display: none; }


@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0;
    font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: inherit; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a { display: block; padding: 1em 0; color: var(--ink); border-bottom: 1px solid var(--line); }
  html:not(.js) .site-nav { position: static; display: block; background: transparent; border: 0; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
}

/* ---------- hero (split: keeps 2013 photos near native resolution) ---------- */
.hero { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); }
.hero__title { font-size: clamp(3rem, 6.4vw, 5.4rem); font-weight: 400; line-height: 1.02; margin-bottom: .35em; }
.hero__title em { display: block; }
.hero__sub { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 1.8em; }
.hero__link { font-weight: 600; text-decoration: none; }
.hero__link:hover { text-decoration: underline; }
.hero__media { position: relative; padding: 0 0 12% 12%; }
.hero__main img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -30px rgba(17,27,71,.45); }
.hero__inset { position: absolute; left: 0; bottom: 0; width: 42%; }
.hero__inset img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; border: 6px solid var(--paper); box-shadow: 0 20px 40px -20px rgba(17,27,71,.5); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { padding: 0 0 18% 14%; }
}

/* ---------- tiles (modern take on the original flip boxes) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 3 / 2; } }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; background: #111b47; }
.tile__media, .tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,40,0) 40%, rgba(10,16,40,.82) 100%); transition: background .4s; }
.tile:hover .tile__media img, .tile:focus-visible .tile__media img { transform: scale(1.05); }
.tile:hover::after { background: linear-gradient(180deg, rgba(27,42,107,.25) 0%, rgba(10,16,40,.88) 100%); }
.tile__label { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 4px; }
.tile__num { font: 600 .74rem/1 var(--sans); letter-spacing: .2em; color: #e7cf9f; }
.tile__name { font: italic 500 clamp(1.7rem, 2.4vw, 2.1rem)/1.1 var(--serif); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(64px, 10vw, 128px); }
.about__media img { border-radius: var(--radius); }
.about__text p:not(.eyebrow) { font-size: 1.12rem; max-width: 56ch; }
.about__text .button { margin-top: .6em; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- inner page head ---------- */
.page-head { padding-block: clamp(56px, 9vw, 104px) clamp(32px, 5vw, 56px); max-width: 1200px; }
.page-head h1 { max-width: 18ch; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }

/* ---------- gallery (CSS columns masonry) ---------- */
.gallery { columns: 3 300px; column-gap: 18px; }
.gallery__item { break-inside: avoid; margin: 0 0 18px; }
.gallery__link { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; }
.gallery__link img { transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.gallery__link:hover img { transform: scale(1.03); }
.gallery__item figcaption { font: italic 400 1.08rem/1.3 var(--serif); color: var(--muted); padding: .55em 2px 0; }

.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px 96px; border-top: 1px solid var(--line); margin-top: 48px; }
.next__link { text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 14px; }
.next__link .eyebrow { margin: 0; }
.next__name { font: italic 500 clamp(1.6rem, 3vw, 2.2rem)/1 var(--serif); }
.next__link:hover .next__name { color: var(--navy); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(8,11,26,.94); color: #fff; }
.lightbox::backdrop { background: rgba(8,11,26,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 56px 72px; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { font: italic 400 1.2rem/1.3 var(--serif); opacity: .9; text-align: center; }
.lightbox__btn { position: fixed; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 48px; height: 48px; border-radius: 50%; font: 300 1.8rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 16px; top: 16px; }
@media (max-width: 640px) { .lightbox__figure { padding: 64px 12px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 80px); padding-bottom: 104px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__aside { order: 2; } }
.contact__aside img { border-radius: var(--radius); }
.contact__details { margin: 24px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.contact__details dt { font: 600 .74rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.contact__details dd { margin: 0; }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--warn); }
.opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .8em .9em; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--warn); }
.field__error { color: var(--warn); font-size: .92rem; margin: 0; }
.form__note { color: var(--muted); font-size: .92rem; margin: 0; }
.form .button { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid; }
.alert--ok { color: var(--ok); border-color: currentColor; background: color-mix(in srgb, var(--ok) 8%, transparent); }
.alert--warn { color: var(--warn); border-color: currentColor; background: color-mix(in srgb, var(--warn) 8%, transparent); }
.alert--info { color: var(--ink); border-color: var(--line); background: var(--paper-2); }

/* ---------- sample menu card (Event Planning) ---------- */
.menu-card { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: clamp(48px, 7vw, 88px); scroll-margin-top: 24px; }
.menu-card__media img { border-radius: var(--radius); }
.menu-card__body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); text-align: center; }
.menu-card__body h2 { font-style: italic; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.menu-card__course { font: 600 .76rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin: 1.9em 0 .6em; }
.menu-card__course::before, .menu-card__course::after { content: "—"; margin: 0 .7em; opacity: .5; }
.menu-card__dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; font: 400 1.18rem/1.35 var(--serif); }
@media (max-width: 900px) { .menu-card { grid-template-columns: 1fr; } .menu-card__media { max-width: 360px; } }

/* ---------- regatta sandwich order (Sailing Events) ---------- */
.order { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.order > * { max-width: 880px; }
.order__head { margin-bottom: 28px; }
.order__head p:not(.eyebrow) { color: var(--muted); max-width: 60ch; }
.order__group { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px clamp(16px, 3vw, 28px) 26px; margin: 0; min-width: 0; background: var(--surface); }
.order__group legend { font: italic 500 1.5rem/1 var(--serif); padding: 0 .4em; margin-left: -.4em; }
.order__group > .form__row + .form__row { margin-top: 22px; }
.order__items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.order__items--compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 28px; }
.order__item { display: grid; grid-template-columns: 1fr 96px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order__item:last-child { border-bottom: 0; }
.order__item label { font-weight: 500; }
.order__price { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.order__item input { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .6em .7em; min-height: 46px; text-align: right; }
.order__item input:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.order__item input[aria-invalid="true"] { border-color: var(--warn); }
.order__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 20px 0; border-top: 2px solid var(--ink); }
.order__total-label { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.order__total-value { font: 500 2.2rem/1 var(--serif); color: var(--navy); }
.order__total-note { color: var(--muted); font-size: .95rem; flex-basis: 100%; }
.field__help { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- error ---------- */
.page-head--error { padding-bottom: 120px; }
.error-links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #dfe3f2; padding-top: 64px; }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__brand img { width: 220px; }
.tagline { font: italic 400 1.35rem/1.3 var(--serif); margin-top: .6em; color: #e7cf9f; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px 28px; font-size: .88rem; color: #aab1cc; }
.site-footer__legal p { margin: 0; }

@media print {
  .site-header, .site-footer, .lightbox, .next, .hero__cta { display: none; }
  .hero__media { display: none; }
}
