/* The Chocolate Works — Castle Street, Clitheroe
   Static stylesheet. No build step. No JS. Mobile-first. */

:root {
  --ink: #1B3A4F;
  --ink-soft: #2E4D63;
  --ink-mute: #5A7388;
  --cream: #F4EAD0;
  --paper: #FAF6EC;
  --paper-deep: #F2EBD8;
  --amber: #D69426;
  --amber-deep: #B57918;
  --blush: #E89A8C;
  --blush-soft: #F4C9BF;
  --line: #DCD3BC;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 56px);
  --gap-section: clamp(72px, 10vw, 128px);
}

* { box-sizing: border-box; }

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

/* Sticky header offset for in-page anchors so the section heading
   doesn't slide under the fixed top bar. */
section[id], #top { scroll-margin-top: 88px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }

p { margin: 0 0 1em; max-width: 65ch; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
h2 { font-size: clamp(28px, 4.4vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); letter-spacing: -0.005em; }

.eyebrow {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 14px;
  font-weight: 600;
}

.lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; outline: 2px solid var(--amber); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(120%) blur(4px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-the {
  font-family: var(--display);
  font-size: 12px; color: var(--amber-deep);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.brand-name {
  font-family: var(--display);
  font-size: 18px; color: var(--ink); margin-top: 2px;
}
.site-nav { display: none; gap: 26px; }
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }
@media (min-width: 760px) { .site-nav { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 22px;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  text-decoration: none; border-radius: 2px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-deep); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 11px 20px; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 6vw, 64px) 0 clamp(32px, 6vw, 64px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}
.hero-headline {
  font-family: var(--display);
  font-size: clamp(36px, 6.2vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.hero-headline span { display: block; }
.hero-headline-soft { color: var(--ink-soft); font-size: 0.62em; line-height: 1.2; margin-top: 0.4em; letter-spacing: -0.005em; }
.hero-meta { color: var(--ink-mute); font-size: 15px; letter-spacing: 0.01em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

.hero-figure {
  margin: 0;
  position: relative;
}
.hero-figure img {
  width: 100%;
  border-radius: 2px;
  box-shadow:
    0 1px 0 var(--line),
    0 30px 60px -30px rgba(27, 58, 79, 0.35);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 440px;
}
@media (min-width: 900px) {
  .hero-figure img { aspect-ratio: 5 / 4; max-height: 460px; }
}

/* ---------- section dividers ---------- */
.rule {
  display: flex; justify-content: center;
  color: var(--amber);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) 0;
}

/* ---------- generic section ---------- */
.section { padding: 0 0 8px; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(30px, 4.8vw, 48px); margin-bottom: 18px; }

/* ---------- menu cards ---------- */
.menu-card {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.menu-thumb { margin: 0; overflow: hidden; }
.menu-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.menu-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.menu-body h3 { margin-top: 4px; margin-bottom: 10px; }
.menu-body p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }

.menu-tag {
  display: inline-block;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.tag-blush { background: var(--blush); color: var(--ink); }

/* hero callout (popstar) — full width, dark, image+text two-column at desktop */
.menu-card-hero {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  margin-bottom: 32px;
}
.menu-card-hero .menu-body { padding: 32px 28px; }
.menu-card-hero h3 { color: var(--cream); font-size: clamp(24px, 3vw, 32px); }
.menu-card-hero p { color: var(--blush-soft); font-size: 17.5px; max-width: 56ch; }
@media (min-width: 720px) {
  .menu-card-hero { display: grid; grid-template-columns: 1fr 1.25fr; align-items: stretch; }
  .menu-card-hero .menu-thumb { height: 100%; }
  .menu-card-hero .menu-thumb img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .menu-card-hero .menu-body { padding: 40px 40px 40px 36px; justify-content: center; }
}

/* photo grid — 3 columns on desktop, all cards equal-content (image + ~3-line body) */
.menu-grid {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 640px) { .menu-grid-photos { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* text grid — 2 columns on desktop, both items text-only on cream background */
@media (min-width: 720px) { .menu-grid-text { grid-template-columns: 1fr 1fr; gap: 28px; } }
.menu-card-text {
  background: var(--cream);
  border-color: var(--line);
}
.menu-card-text .menu-body { padding: 32px 30px; justify-content: center; }
.menu-card-text h3 { color: var(--ink); }
.menu-card-text p { color: var(--ink); font-size: 17px; }

.menu-footnote {
  margin-top: 32px; color: var(--ink-mute); font-size: 14.5px; font-style: italic;
}

/* ---------- the shop section (full bleed image) ---------- */
.section-shop { padding: 0; }
.shop-figure { margin: 0; }
.shop-figure img {
  width: 100%; max-height: 560px; object-fit: cover;
  filter: saturate(1.05);
}
.shop-copy {
  margin-top: clamp(32px, 5vw, 56px);
  max-width: 760px;
}

/* ---------- xanthe note ---------- */
.section-note { padding: 0; }
.note-wrap {
  max-width: 720px;
  background: var(--cream);
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 56px);
  border-left: 4px solid var(--amber);
  border-radius: 2px;
}
.note-wrap h2 { font-size: clamp(26px, 3.6vw, 36px); }
.note-wrap p { color: var(--ink); font-size: 18px; max-width: 60ch; }
.note-sign { font-family: var(--display); font-size: 22px; margin-top: 16px; color: var(--ink-soft); }

.note-ps {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 16.5px;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 58ch;
}

.editorial-note {
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px dashed var(--amber-deep);
  background: rgba(214, 148, 38, 0.08);
  border-radius: 3px;
  font-family: var(--body);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  color: var(--amber-deep);
  letter-spacing: 0.005em;
  max-width: none;
}

/* ---------- find us ---------- */
.section-find { padding-bottom: clamp(72px, 10vw, 128px); }
.find-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start;
}
@media (min-width: 880px) {
  .find-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
}
.find-address {
  font-style: normal; font-size: 18px; line-height: 1.55; margin: 18px 0 28px;
}
.find-meta {
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.find-meta dt { font-weight: 600; color: var(--ink); font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; padding-top: 4px; }
.find-meta dd { margin: 0; color: var(--ink-soft); font-size: 16.5px; }
.find-note { color: var(--ink-mute); font-size: 15px; margin-bottom: 26px; max-width: 50ch; }
.find-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.find-map {
  margin: 0;
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  aspect-ratio: 4 / 3;
}
.find-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--ink); color: var(--cream);
  padding: 36px 0 40px;
}
.site-footer p { margin: 0 0 6px; font-size: 14.5px; max-width: none; }
.footer-meta { color: var(--blush-soft); font-style: italic; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .find-map, .hero-actions, .find-actions { display: none; }
  body { background: white; color: black; }
}
