/* DIGBY's — digby.club
   Colours and type follow the DIGBY's brand deck. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/lexend-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/lexend-latin-500-normal.woff2") format("woff2"); }

:root {
  --linen: #f5f2de;
  --ink: #231f20;
  --purple: #9b4f96;      /* screen stand-in for Pantone 254 U; replace with the official value */
  --stone: #e6e1c9;
  --muted: #6b655a;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 3.4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--linen); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--linen); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.link { display: inline-block; padding: 12px 0; border-bottom: 1px solid currentColor; font-weight: 400; font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; border: 1px solid var(--ink); background: var(--ink); color: var(--linen); font: 400 15px var(--sans); cursor: pointer; }
.btn--light { background: var(--linen); color: var(--ink); border-color: var(--linen); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--purple { background: var(--purple); border-color: var(--purple); color: var(--linen); }

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--pad); font-size: 15px; font-weight: 400; position: relative; z-index: 5; }
.nav__logo { display: flex; align-items: center; min-height: 44px; }
.nav__logo img { width: 46px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 12px 0; }
.nav__links a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.nav__toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: flex-end; }
.nav--solid { border-bottom: 1px solid var(--ink); }
.nav--over { color: var(--linen); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__right .link { display: none; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); color: var(--linen); padding: 8px var(--pad) 24px; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid rgba(245, 242, 222, .25); font-family: var(--serif); font-size: 28px; }
  .nav.is-open .nav__links { display: flex; }
}

/* Hero */
.hero { position: relative; min-height: min(860px, 100svh); background: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(35, 31, 32, .3); }
.hero > * { position: relative; z-index: 2; }
.hero > .hero__img { position: absolute; z-index: 0; }
.hero__foot { padding: 0 var(--pad) clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; color: var(--linen); }
.hero__tag { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1; }
.hero__word { width: 100%; height: auto; }
.hero__cta { display: none; }
@media (max-width: 900px) { .hero__cta { display: flex; } }

/* Info strip */
.strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; padding: 24px var(--pad); border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: 22px; line-height: 1.25; }

/* Sections */
.section { padding: clamp(64px, 8vw, 120px) var(--pad); }
.section--rule { border-top: 1px solid var(--ink); }
.display { font-size: clamp(44px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.title { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.page-title { font-size: clamp(64px, 9.2vw, 132px); line-height: .92; letter-spacing: -.01em; }

.story { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.story__lead { flex: 1 1 480px; display: flex; flex-direction: column; gap: 28px; }
.story__body { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 24px; padding-top: clamp(0px, 3vw, 44px); }
.toast-line { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.1; }

/* Menu */
.menu { display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 5vw, 72px); }
.menu__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.menu__groups { width: 100%; max-width: 1180px; display: flex; flex-direction: column; gap: 56px; }
.menu__group h3 { text-align: center; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; margin-bottom: 24px; }
.menu__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.menu__items li { padding: 14px 0; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.menu__items small { display: block; font-family: var(--sans); font-size: 13px; line-height: 1.55; margin-top: 4px; }
@media (max-width: 900px) { .menu__items { grid-template-columns: 1fr; } }

/* Split panels */
.split { display: flex; flex-wrap: wrap; }
.split__panel { flex: 1 1 480px; min-height: clamp(520px, 50vw, 720px); background: var(--purple); color: var(--linen); padding: clamp(48px, 5vw, 72px) var(--pad); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; text-align: center; }
.split__media { flex: 1 1 480px; min-height: clamp(320px, 50vw, 720px); position: relative; background: var(--ink); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; max-width: 520px; }
.choices .btn { flex: 1 1 220px; }

/* Find us (home) */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; margin-top: 48px; }
.place { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.place h3 { font-size: clamp(34px, 3.2vw, 44px); line-height: 1.1; }
@media (max-width: 700px) { .places { grid-template-columns: 1fr; } }

/* Club */
.club { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.club img { width: min(520px, 100%); height: auto; }
.club__line { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
.club p { max-width: 520px; }

/* Footer */
.footer { padding: clamp(48px, 5vw, 72px) var(--pad) 32px; display: flex; flex-direction: column; gap: 56px; border-top: 1px solid var(--ink); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px 120px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer__word { width: 100%; height: auto; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; margin-top: 24px; }
.footer--dark { background: var(--ink); color: var(--linen); border-top: 0; }
.footer--dark .footer__cols { gap: 32px 72px; }
.footer--dark .footer__word { width: min(300px, 100%); }

/* Page header */
.page-head { padding: clamp(40px, 4vw, 56px) var(--pad) 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; }
.page-head__text { display: flex; flex-direction: column; gap: 20px; }
.page-head p.lede { max-width: 400px; padding-bottom: 10px; }

/* Reservations */
.book { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 32px; text-align: left; }
.book fieldset { margin: 0; padding: 0; border: 0; }
.book legend, .book h2 { padding: 0; margin-bottom: 14px; font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.loc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.loc-option { position: relative; }
.loc-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.loc-option span { display: block; min-height: 84px; padding: 14px 18px; border: 1px solid var(--linen); }
.loc-option b { display: block; font: 400 26px/1.1 var(--serif); }
.loc-option small { font-size: 13px; }
.loc-option input:checked + span { background: var(--linen); color: var(--ink); }
.loc-option input:focus-visible + span { outline: 2px solid var(--linen); outline-offset: 3px; }
.book__box { border: 1px solid var(--linen); padding: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.book__box .btn { width: 100%; }
@media (max-width: 520px) { .loc-options { grid-template-columns: 1fr; } }

.facts { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.fact { flex: 1 1 260px; border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fact h2 { font-size: 32px; line-height: 1.1; }

/* Locations */
.locs { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; padding: 0 var(--pad) clamp(56px, 6vw, 88px); }
.locs__list { flex: 1 1 400px; }
.loc { border-top: 1px solid var(--ink); }
.loc:last-child { border-bottom: 1px solid var(--ink); }
.loc__head { width: 100%; min-height: 96px; padding: 20px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.loc__name { display: flex; align-items: center; gap: 18px; }
.loc__dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.loc__name b { display: block; font: 400 clamp(34px, 3.2vw, 44px)/1.05 var(--serif); }
.loc__sign { font-family: var(--serif); font-size: 34px; line-height: 1; }
.loc__body { padding: 0 0 28px 34px; display: flex; flex-direction: column; gap: 16px; }
.loc__facts { display: flex; flex-wrap: wrap; gap: 16px 56px; }
.loc__facts > div { display: flex; flex-direction: column; gap: 4px; }
.loc__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.js .loc:not(.is-active) .loc__body { display: none; }
.loc.is-active .loc__dot { background: var(--purple); border-color: var(--purple); }

.map { flex: 1 1 480px; max-width: 760px; aspect-ratio: 1000 / 606; position: relative; overflow: hidden; border: 1px solid var(--ink); background: #e3ddc6; }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__town { position: absolute; font-size: 12px; font-weight: 400; line-height: 1; color: var(--muted); white-space: nowrap; pointer-events: none; }
.map__town--r { transform: translate(9px, -50%); }
.map__town--l { transform: translate(calc(-100% - 9px), -50%); }
.map__label { position: absolute; font-family: var(--serif); font-style: italic; font-size: clamp(15px, 1.5vw, 20px); color: var(--muted); white-space: nowrap; pointer-events: none; }
.map__label--sea { left: 36%; top: 91%; }
.pin { position: absolute; height: 44px; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 0; transform: translate(-22px, -22px); z-index: 2; }
.pin.is-active { z-index: 3; }
.pin__dot { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.pin__dot i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--linen); background: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.pin__chip { display: flex; align-items: baseline; gap: 8px; height: 34px; padding: 0 12px; line-height: 34px; background: var(--linen); color: var(--ink); border: 1px solid var(--ink); font-size: 12px; font-weight: 300; white-space: nowrap; }
.pin__chip b { font: 400 19px/34px var(--serif); }
.pin.is-active .pin__dot i { width: 24px; height: 24px; background: var(--purple); box-shadow: 0 0 0 1.5px var(--purple); }
.pin.is-active .pin__chip { background: var(--purple); border-color: var(--purple); color: var(--linen); }
@media (max-width: 1300px) { .pin__chip span { display: none; } }
@media (max-width: 600px) { .map__town { font-size: 10px; } .pin__chip { height: 28px; padding: 0 8px; } .pin__chip b { font-size: 15px; line-height: 28px; } }

/* 404 */
.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
