/* ==========================================================================
   Olde Nassau Cafe
   Palette from the blue storefront and mural. Fonts self-hosted.
   ========================================================================== */

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

:root {
  /* Colour */
  --sky: #6598B8;          /* panels and bands, never body text */
  --sky-wash: #E3EEF5;     /* light blue section background */
  --sky-pale: #B8D4E6;
  --deep: #183B4B;         /* text, dark sections */
  --deep-hover: #0F2A36;
  --deep-active: #0A1E27;
  --cream: #FAF7F1;
  --ochre: #A57435;        /* rules and small accents */
  --ochre-ink: #7A501F;    /* ochre text on cream, 6.5:1 */
  --ochre-light: #D9B27A;  /* ochre text on deep blue, 6:1 */
  --muted: #3F5B68;        /* secondary text on cream */
  --on-deep: #DCE9F1;      /* secondary text on deep blue */

  /* Type: six sizes */
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: 1.125rem;
  --fs-title: 1.5rem;
  --fs-h2: clamp(2.25rem, 5vw, 3rem);
  --fs-h1: clamp(2.75rem, 7.5vw, 4.5rem);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing, 4pt grid */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;

  --radius: 8px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-2));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--deep);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--s-4); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-title); }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
}
.hero :focus-visible,
.site-footer :focus-visible,
.quickbar :focus-visible {
  outline-color: var(--cream);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -80px;
  z-index: 100;
  padding: var(--s-3) var(--s-6);
  background: var(--deep);
  color: var(--cream);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.wrap {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ochre-light);
}
.eyebrow--ink { color: var(--ochre-ink); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 52ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-6);
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.icon { width: 24px; height: 24px; flex: none; }

.btn--primary { background: var(--deep); color: var(--cream); }
.btn--primary:hover { background: var(--deep-hover); }
.btn--primary:active { background: var(--deep-active); }

.btn--cream { background: var(--cream); color: var(--deep); }
.btn--cream:hover { background: var(--sky-wash); }
.btn--cream:active { background: var(--sky-pale); }

.btn--outline-light { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--outline-light:hover { background: rgba(250, 247, 241, 0.14); }
.btn--outline-light:active { background: rgba(250, 247, 241, 0.24); }

.btn--outline { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn--outline:hover { background: var(--deep); color: var(--cream); }
.btn--outline:active { background: var(--deep-active); color: var(--cream); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-8);
}
@media (max-width: 520px) {
  .btn-row .btn { flex: 1 1 100%; }
}

.text-link {
  display: inline-block;
  padding-block: var(--s-2);
  font-weight: 600;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: var(--deep); }

/* ---------- Demo notice ---------- */

.demo-bar {
  background: var(--sky-pale);
  color: var(--deep);
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
  padding: var(--s-2) var(--s-4);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(24, 59, 75, 0.14);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--deep);
  cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

.site-nav { flex-basis: 100%; padding-bottom: var(--s-4); }
.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--s-2) 24px var(--s-6);
  background: var(--cream);
  border-bottom: 1px solid rgba(24, 59, 75, 0.14);
  box-shadow: 0 12px 24px rgba(24, 59, 75, 0.12);
}
.js .is-open .site-nav { display: block; }

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: var(--fs-lead);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 59, 75, 0.12);
}
.site-nav__cta { width: 100%; margin-top: var(--s-6); }

@media (min-width: 900px) {
  .nav-toggle,
  .js .nav-toggle { display: none; }
  .site-nav,
  .js .site-nav {
    display: flex;
    position: static;
    flex-basis: auto;
    align-items: center;
    gap: var(--s-8);
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav__list { display: flex; gap: var(--s-6); }
  .site-nav__list a {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    padding-inline: var(--s-1);
    font-size: var(--fs-base);
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
  }
  .site-nav__list a:hover { border-bottom-color: var(--ochre); }
  .site-nav__list a[aria-current] { border-bottom-color: var(--ochre); }
  .site-nav__cta { width: auto; margin-top: 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--s-16); }
@media (min-width: 900px) {
  .section { padding-block: var(--s-24); }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--deep);
  color: var(--cream);
  padding-block: var(--s-16) var(--s-12);
}
.hero__inner {
  display: grid;
  gap: var(--s-12);
}
.hero__panel .lead { color: var(--on-deep); }
.hero h1 em { font-style: italic; color: var(--ochre-light); }

.hero__photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  /* Gable outline echoes the storefront roofline. Nothing visible is cut. */
  clip-path: polygon(55% 0, 100% 26%, 100% 100%, 0 100%, 0 28%);
}
.hero__photo img { width: 100%; height: auto; }

@media (min-width: 900px) {
  .hero { padding-block: var(--s-24) var(--s-16); }
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--s-16);
    align-items: center;
  }
  .hero__photo {
    max-width: none;
    margin-block: 0 calc(-1 * var(--s-24));
    z-index: 2;
  }
}

/* ---------- Menu highlights ---------- */

.menu__inner {
  display: grid;
  gap: var(--s-12);
  align-items: center;
}
.menu__text { max-width: 560px; }
.menu__text .lead { color: var(--muted); }
.menu__photo img {
  width: 100%;
  border-radius: var(--radius);
}
.menu__photo figcaption {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
}
.menu-list { margin: var(--s-8) 0; }
.menu-cat {
  position: relative;
  padding: var(--s-4) 0 var(--s-4) var(--s-6);
  border-top: 1px solid rgba(24, 59, 75, 0.2);
}
.menu-cat:last-child { border-bottom: 1px solid rgba(24, 59, 75, 0.2); }
.menu-cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
}
.menu-cat h3 { margin: 0; }
.menu-items { margin-top: var(--s-3); }
.menu-items li + li { margin-top: var(--s-3); }
.menu-item__top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  font-weight: 600;
}
.menu-item__desc { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.menu-fallback li {
  padding: var(--s-4) 0;
  border-top: 1px solid rgba(24, 59, 75, 0.2);
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 600;
}

@media (min-width: 900px) {
  .menu__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-16);
  }
  .menu__photo { order: -1; }
}

/* ---------- Our cafe ---------- */

.our-cafe { background: var(--sky); }
.our-cafe__inner {
  display: grid;
  gap: var(--s-8);
  align-items: center;
}
.our-cafe__photo {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  overflow: hidden;
  /* Arch echoes the archway in the interior mural. */
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 6px solid var(--cream);
}
.our-cafe__panel {
  background: var(--cream);
  padding: var(--s-8) var(--s-6);
  border-radius: var(--radius);
}
.our-cafe__panel .lead { color: var(--muted); }
.our-cafe__panel .btn { margin-top: var(--s-4); }

@media (min-width: 900px) {
  .our-cafe__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: var(--s-16);
  }
  .our-cafe__photo { margin-inline: 0; }
  .our-cafe__panel { padding: var(--s-16); }
}

/* ---------- Gallery ---------- */

.gallery__grid {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.g {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sky-wash);
}
.g img { width: 100%; height: auto; }
.g figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s-8) var(--s-4) var(--s-3);
  background: linear-gradient(to top, rgba(24, 59, 75, 0.94) 0%, rgba(24, 59, 75, 0.94) 40%, rgba(24, 59, 75, 0));
  color: var(--cream);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.g-stack { display: grid; gap: var(--s-4); }

@media (min-width: 600px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .g-stack { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-stack { grid-column: auto; grid-template-columns: 1fr; align-content: start; }
  .g--storefront,
  .g--interior { height: 100%; }
  .g--storefront img,
  .g--interior img { height: 100%; object-fit: cover; }
}

/* ---------- Visit ---------- */

.visit { background: var(--sky-wash); }
.visit__inner {
  display: grid;
  gap: var(--s-8);
  align-items: stretch;
}
.visit__panel {
  background: var(--cream);
  padding: var(--s-8) var(--s-6);
  border-radius: var(--radius);
}
.details { margin: var(--s-6) 0 0; }
.details__row {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) 0;
  border-top: 1px solid rgba(24, 59, 75, 0.16);
}
.details__row:last-child { border-bottom: 1px solid rgba(24, 59, 75, 0.16); }
.details dt {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre-ink);
}
.details dd { margin: 0; font-size: var(--fs-lead); }

.locator {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--deep);
  color: var(--cream);
  border-radius: var(--radius);
  text-decoration: none;
}
.locator__art { width: 100%; height: auto; min-height: 220px; flex: 1 1 auto; }
.locator__text {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-6);
}
.locator__title {
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.locator__sub { color: var(--on-deep); }
.locator__link {
  margin-top: var(--s-3);
  padding-block: var(--s-2);
  font-weight: 600;
  color: var(--ochre-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.locator:hover .locator__link { color: var(--cream); }
.locator:focus-visible { outline-color: var(--deep); }

@media (min-width: 900px) {
  .visit__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-12); }
  .visit__panel { padding: var(--s-12); }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--deep);
  color: var(--cream);
  padding-block: var(--s-16);
  /* Clears the fixed mobile quick bar */
  padding-bottom: calc(var(--s-16) + 56px + env(safe-area-inset-bottom, 0px));
}
.site-footer__inner { display: grid; gap: var(--s-8); }
.site-footer__name {
  margin: 0 0 var(--s-2);
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.site-footer address { color: var(--on-deep); }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration-color: var(--ochre-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.site-footer a:hover { text-decoration-color: var(--cream); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.site-footer__social[hidden],
.site-footer__credit[hidden] { display: none; }
.site-footer__credit { margin: 0; font-size: var(--fs-sm); color: var(--on-deep); }

@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .site-footer__social,
  .site-footer__credit { grid-column: 1 / -1; }
}

/* ---------- Mobile quick actions ---------- */

.quickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  background: var(--deep);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(250, 247, 241, 0.2);
}
.quickbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.quickbar__btn + .quickbar__btn { border-left: 1px solid rgba(250, 247, 241, 0.2); }
.quickbar__btn:hover { background: var(--deep-hover); }
.quickbar__btn:active { background: var(--deep-active); }

@media (min-width: 768px) {
  .quickbar { display: none; }
  .site-footer { padding-bottom: var(--s-16); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:active { transform: none; }
}
