/* The Copper Loon Supper Club: design concept (fictional business)
   Palette (all text pairs checked for WCAG 2.2 AA contrast):
   pine #1F3A33 · copper #9C4F26 (text/buttons on cream, 5.2:1) · copper-glow #D9925F (on pine, 4.8:1)
   cream #F6EFE3 · walnut #3B2A20 · muted #6B5A4C (5.8:1) · lake #3E6475 (cream on it 5.6:1) */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/playfair-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/playfair-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/sourcesans3-latin.woff2") format("woff2");
}

:root {
  --pine: #1f3a33;
  --pine-deep: #16302a;
  --pine-soft: #2a4a42;
  --copper: #9c4f26;
  --copper-dark: #7e3d1b;
  --glow: #d9925f;
  --glow-soft: #f3c894;
  --cream: #f6efe3;
  --paper: #fbf7f0;
  --walnut: #3b2a20;
  --muted: #6b5a4c;
  --lake: #3e6475;
  --line: #e2d6c4;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--walnut);
  background: var(--cream);
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--pine);
}
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

a { color: var(--copper); text-underline-offset: 0.18em; }
a:hover { color: var(--copper-dark); }

:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--glow-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cream); color: var(--pine); padding: 0.75rem 1rem;
  border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Sample banner ---------- */
.sample-banner {
  background: var(--walnut);
  color: var(--cream);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.45rem var(--gutter);
}
.sample-banner strong { color: var(--glow-soft); }

/* ---------- Header ---------- */
.site-header { background: var(--pine); color: var(--cream); position: relative; z-index: 20; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem; flex-wrap: wrap; padding-block: 0.5rem;
}
.wordmark {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem); line-height: 1.1;
  color: var(--glow-soft); text-decoration: none;
  text-shadow: 0 0 6px rgba(217, 146, 95, 0.55), 0 0 18px rgba(217, 146, 95, 0.35);
}
.wordmark:hover { color: #fff3e2; }
.wordmark small {
  display: block; font-family: var(--sans); font-style: normal; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream); text-shadow: none; margin-top: 0.2rem;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 0.9rem;
  background: transparent; color: var(--cream);
  border: 2px solid rgba(246, 239, 227, 0.35); border-radius: var(--radius);
  font: 600 1rem var(--sans); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { width: 100%; display: none; }
.site-nav.is-open { display: block; }
/* Menu starts collapsed on phones (no layout jump while main.js loads); footer links cover no-JS visitors */
.site-nav ul { list-style: none; margin: 0; padding: 0.25rem 0 0.75rem; }
.site-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 0.25rem;
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 1.1rem;
  border-bottom: 1px solid rgba(246, 239, 227, 0.12);
}
.site-nav a:hover { color: var(--glow-soft); }
.site-nav a[aria-current="page"] { color: var(--glow-soft); }
.site-nav a[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); margin-left: 0.6rem; }

.site-header .header-call { display: none; }

@media (min-width: 60rem) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; margin-left: auto; }
  .site-nav ul { display: flex; gap: 0.25rem; padding: 0; }
  .site-nav a { border: 0; padding: 0 0.85rem; font-size: 1.05rem; }
  .site-header .header-call { display: inline-flex; }
}

/* ---------- Hours badge ---------- */
.hours-strip { background: var(--pine-deep); color: var(--cream); font-size: 0.98rem; }
.hours-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; padding-block: 0.55rem; }
.status {
  display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600;
}
.status::before {
  content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 0 3px rgba(217, 146, 95, 0.25); flex: none;
}
.status[data-state="open"]::before { background: #8fd3a8; box-shadow: 0 0 0 3px rgba(143, 211, 168, 0.25); }
.hours-strip a { color: var(--glow-soft); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: var(--cream); }
.on-dark .btn-ghost, .site-header .btn-ghost { color: var(--cream); border-color: rgba(246, 239, 227, 0.6); }
.on-dark .btn-ghost:hover, .site-header .btn-ghost:hover { background: var(--cream); color: var(--pine); }
.btn-glow { background: var(--glow); color: var(--pine-deep); }
.btn-glow:hover { background: var(--glow-soft); color: var(--pine-deep); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Hero ---------- */
.hero { background: var(--pine); color: var(--cream); overflow: hidden; }
.hero-inner { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5rem) 0; }
.hero h1 { color: #fff8ee; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--glow-soft); }
.eyebrow {
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 0.75rem;
}
.on-dark .eyebrow { color: var(--glow); }
.hero .lede { font-size: 1.2rem; max-width: 34rem; color: #ece2d2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-art { margin-inline: calc(var(--gutter) * -1); }
.hero-art img { width: 100%; }
@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: 1fr 1.15fr; align-items: end; padding-bottom: 0; }
  .hero-copy { padding-bottom: 4rem; }
  .hero-art { margin-inline: 0 calc(var(--gutter) * -1); }
  .hero-art img { border-top-left-radius: 24px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-paper { background: var(--paper); }
.section-pine { background: var(--pine); color: var(--cream); }
.section-pine h2, .section-pine h3 { color: #fff8ee; }
.section-pine a:not(.btn) { color: var(--glow-soft); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section-pine .section-head p { color: #e2d7c6; }

/* Specials board */
.specials {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  list-style: none; padding: 0; margin: 0;
}
.special {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem; position: relative;
}
.special .day {
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper);
}
.special h3 { margin: 0.35rem 0 0.4rem; }
.special p { margin: 0; color: var(--muted); }
.special .price { font-weight: 700; color: var(--walnut); font-variant-numeric: tabular-nums; }
.special.is-today { border-color: var(--copper); box-shadow: 0 0 0 2px var(--copper) inset; }
.special.is-today .day::after { content: " · Tonight"; }
.updated { font-size: 0.95rem; color: var(--muted); margin-top: 1rem; }

/* Feature cards with illustrations */
.features { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.feature { text-align: left; }
.feature img { width: 96px; height: 96px; margin-bottom: 1rem; }
.feature p { color: var(--muted); }

/* Story split */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.pull {
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.4;
  color: var(--glow-soft); border-left: 3px solid var(--glow); padding-left: 1.25rem; margin: 1.5rem 0;
}
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--glow-soft); line-height: 1; }
.stats span { font-size: 0.95rem; color: #e2d7c6; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--pine); padding-bottom: 0.5rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 600; }
.hours-table td { text-align: right; }
.hours-table tr.is-today th, .hours-table tr.is-today td { background: #f0e2cf; font-weight: 700; }
.hours-table tr.is-today th::after { content: " (today)"; font-weight: 400; color: var(--muted); }
.season-tag {
  display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.6rem; border-radius: 999px;
  background: var(--lake); color: var(--cream); font: 700 0.75rem/1.6 var(--sans); letter-spacing: 0.08em;
  text-transform: uppercase; vertical-align: middle;
}
.season-tag[hidden] { display: none; }

/* Info cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band p { max-width: 36rem; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Menu page ---------- */
.page-head { background: var(--pine); color: var(--cream); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { color: #fff8ee; margin-bottom: 0.4rem; }
.page-head p { color: #e2d7c6; max-width: 40rem; margin: 0; font-size: 1.15rem; }

.menu-jump { position: sticky; top: 0; z-index: 10; background: var(--cream); border-bottom: 1px solid var(--line); }
.menu-jump ul {
  display: flex; gap: 0.5rem; overflow-x: auto; list-style: none; margin: 0; padding: 0.6rem 0;
  scrollbar-width: thin;
}
.menu-jump a {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--pine); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.menu-jump a:hover { border-color: var(--copper); color: var(--copper); }

.menu-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  outline: 2px solid var(--copper); outline-offset: -10px;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  max-width: 54rem; margin-inline: auto;
}
.menu-legend {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.95rem; color: var(--muted);
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem;
}
.menu-section { padding-top: 2.25rem; scroll-margin-top: 5rem; }
.menu-section > h2 { text-align: center; margin-bottom: 0.25rem; }
.menu-section > .note { text-align: center; color: var(--muted); font-style: italic; margin-bottom: 1.25rem; }
.menu-section > h2::after {
  content: ""; display: block; width: 3rem; height: 2px; background: var(--copper); margin: 0.6rem auto 0;
}
.dish { padding: 0.7rem 0; }
.dish-line { display: flex; align-items: baseline; gap: 0.5rem; }
.dish-name { font-weight: 700; font-size: 1.12rem; color: var(--walnut); }
.leader { flex: 1; border-bottom: 2px dotted #c9b79f; transform: translateY(-0.3em); min-width: 1rem; }
.dish-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-desc { margin: 0.15rem 0 0; color: var(--muted); font-size: 1rem; max-width: 40rem; }
.tag {
  display: inline-block; font: 700 0.7rem/1.5 var(--sans); letter-spacing: 0.06em; padding: 0 0.4rem;
  border: 1.5px solid var(--lake); color: var(--lake); border-radius: 4px; vertical-align: 0.15em; text-decoration: none;
}
abbr.tag { cursor: help; }
.menu-foot { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .req { color: var(--copper); }
.field .hint { display: block; font-weight: 400; font-size: 0.92rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem;
  font: 400 1.05rem var(--sans); color: var(--walnut);
  background: #fff; border: 2px solid #b9a78f; border-radius: 8px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); outline: 3px solid rgba(156, 79, 38, 0.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #a12a1e; }
.error { display: block; color: #a12a1e; font-weight: 600; font-size: 0.95rem; margin-top: 0.3rem; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  padding: 1rem 1.25rem; border-radius: var(--radius); background: #e6efe9; border: 2px solid #3d7a57; color: #1f4a32;
}
.form-status:empty { display: none; }
.form-note { font-size: 0.95rem; color: var(--muted); }

/* ---------- Map ---------- */
.map-figure { margin: 0; }
.map-figure img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.map-figure figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.5rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 0.25rem 0; }
.faq summary {
  cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; color: var(--pine);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--serif); color: var(--copper); width: 1.5rem; flex: none; font-size: 1.4rem; }
.faq details[open] summary::before { content: "–"; }
.faq details p { padding-left: 1.5rem; color: var(--muted); }

.mt-2 { margin-top: 2rem; }
.mt-0 { margin-top: 0; margin-bottom: 1rem; font-style: normal; }

/* Prose pages */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-deep); color: #e2d7c6; padding-block: 3rem 2rem; font-size: 1rem; }
.site-footer a { color: var(--glow-soft); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h2 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glow); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer address { font-style: normal; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(246, 239, 227, 0.15); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(22, 48, 42, 0.97); border-top: 1px solid rgba(246, 239, 227, 0.15);
}
.action-bar .btn { width: 100%; padding-inline: 0.75rem; }
body { padding-bottom: 5rem; }
@media (min-width: 60rem) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 5rem; }
.notfound img { width: 220px; margin: 0 auto 1.5rem; }

/* Neon flicker on load (decorative, skipped for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .wordmark { animation: neon-on 1.6s ease-out 0.2s both; }
  @keyframes neon-on {
    0% { opacity: 0.35; text-shadow: none; }
    12% { opacity: 1; }
    16% { opacity: 0.5; }
    22%, 100% { opacity: 1; }
  }
  html { scroll-behavior: smooth; }
}

@media print {
  .sample-banner, .site-header, .hours-strip, .action-bar, .menu-jump, .site-footer { display: none; }
  body { background: #fff; padding: 0; }
  .menu-card { outline: none; border: 0; }
}
