/* ==========================================================================
   The Woodman Inn, Fernham — site styles
   A traditional country-inn look: black weatherboard, whitewash & parchment,
   dark oak, brass, and the deep green of the logo.
   ========================================================================== */

:root {
  --timber: #1c1916;          /* black weatherboard */
  --timber-2: #2a2622;
  --oak: #3d2b1f;
  --ink: #2b2620;
  --ink-soft: #55493f;
  --parchment: #f3eadb;
  --parchment-2: #e9dec6;
  --cream: #fbf7ee;
  --white: #fffdf8;
  --green: #3a5f46;           /* logo green */
  --green-dark: #294536;
  --sage: #a9c2b1;
  --brass: #b4914f;
  --brass-light: #d6ba7a;
  --brass-dark: #8d6f36;
  --sign-red: #7d2a24;

  --serif-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --serif-body: 'EB Garamond', Garamond, 'Times New Roman', Georgia, serif;
  --caps: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;

  --measure: 62ch;
  --wrap: 1180px;
  --shadow-frame: 0 14px 30px -12px rgba(30, 20, 10, .55), 0 2px 6px rgba(30, 20, 10, .25);
}

/* Paper grain, applied to parchment surfaces */
.grain { position: relative; }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .5  0 0 0 0 .42  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.grain > * { position: relative; z-index: 1; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--parchment);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--timber); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--serif-display); font-weight: 500; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: 1.18em; line-height: 1.55; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--caps); font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brass-dark); margin: 0 0 .9rem;
}
.dropcap::first-letter {
  font-family: var(--serif-display); font-weight: 600; font-size: 3.6em; float: left;
  line-height: .78; padding: .08em .1em 0 0; color: var(--green);
}

/* Ornamental rule: — ◆ — */
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 1.1rem auto 1.6rem; max-width: 320px; color: var(--brass); }
.rule::before, .rule::after { content: ""; flex: 1; border-top: 1px solid currentColor; }
.rule svg { width: 18px; height: 18px; display: block; flex: none; }
.rule.left { justify-content: flex-start; margin-left: 0; }
.rule.left::before { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: var(--caps); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .95em 1.9em; text-decoration: none; border: 1px solid var(--brass); color: var(--timber);
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 10px -4px rgba(0,0,0,.6);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover, .btn:focus-visible { color: var(--timber); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -6px rgba(0,0,0,.6); }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn.ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.08); }
.btn.dark { background: var(--timber); color: var(--brass-light); border-color: var(--timber); }
.btn.dark:hover { color: var(--brass-light); background: var(--timber-2); }
.btn.green { background: var(--green); color: var(--white); border-color: var(--green-dark); }
.btn.green:hover { color: var(--white); background: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; justify-content: center; margin-top: 1.6rem; }

/* ---- Notice bar ---- */
.notice {
  background: var(--sign-red); color: var(--white); text-align: center; padding: .7rem 1rem;
  font-family: var(--caps); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 3px double var(--brass-light);
}
.notice strong { color: var(--brass-light); font-weight: 600; }

/* ---- Header: black weatherboard ---- */
.site-header {
  color: var(--cream);
  background-color: var(--timber);
  background-image:
    repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #24201c, var(--timber));
  border-bottom: 4px double var(--brass);
}
.site-header .brand { display: block; text-align: center; padding: 1.9rem 1rem 1.2rem; text-decoration: none; color: inherit; }
.site-header .brand img { width: min(300px, 62vw); margin: 0 auto; }
.site-header .brand .est { display: block; margin-top: .9rem; font-family: var(--caps); font-size: .72rem; letter-spacing: .34em; color: var(--brass-light); text-transform: uppercase; }
.site-header .brand .est::before, .site-header .brand .est::after { content: " · "; color: var(--brass-dark); }

.nav { border-top: 1px solid rgba(214,186,122,.35); }
.nav ul { list-style: none; margin: 0; padding: .35rem 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .2rem; }
.nav a {
  display: inline-block; padding: .85rem 1rem; color: var(--cream); text-decoration: none;
  font-family: var(--caps); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--brass-light); border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { color: var(--brass-light); border-bottom-color: var(--brass-light); }
.nav .book a { margin-left: .6rem; border: 1px solid var(--brass); padding: .65rem 1.2rem; background: rgba(180,145,79,.12); }
.nav .book a:hover { background: var(--brass); color: var(--timber); }

/* ---- Hero ---- */
.hero { position: relative; color: var(--white); min-height: min(78vh, 760px); display: grid; place-items: center; text-align: center; isolation: isolate; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,15,10,.6) 0%, rgba(20,15,10,.38) 35%, rgba(20,15,10,.42) 65%, rgba(20,15,10,.82) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(20,15,10,.45) 100%);
}
.hero .inner { padding: 5rem 1.5rem 4.5rem; max-width: 820px; }
.hero .eyebrow { color: var(--brass-light); text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.hero h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.55); font-weight: 500; font-style: italic; text-wrap: balance; }
.hero h1 em { font-style: normal; }
.hero .lede { color: rgba(255,253,248,.9); text-shadow: 0 1px 8px rgba(0,0,0,.6); max-width: 620px; margin-inline: auto; }
.hero .rule { color: var(--brass-light); }

/* Page banner (inner pages) */
.banner { min-height: 300px; }
.banner .inner { padding: 3.5rem 1.5rem 3rem; }
.banner h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }

/* ---- Sections ---- */
.section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.section.alt { background: var(--parchment-2); border-top: 1px solid rgba(180,145,79,.35); border-bottom: 1px solid rgba(180,145,79,.35); }
.section.dark { background: var(--timber); color: var(--parchment); }
.section.dark h2, .section.dark h3 { color: var(--cream); }
.section.dark .eyebrow { color: var(--brass-light); }
.section.dark a { color: var(--brass-light); }
.section.green { background: var(--green-dark); color: var(--parchment); }
.section.green h2, .section.green h3 { color: var(--cream); }
.section.green .eyebrow { color: var(--brass-light); }
.section.green a { color: var(--brass-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head .rule { margin-bottom: 1rem; }

/* Two-column feature */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature .text { max-width: 560px; }
.feature.flip > .frame { order: -1; }
@media (min-width: 800px) { .feature.flip > .frame { order: 1; } }

/* Framed print */
.frame {
  padding: 10px; background: var(--cream); border: 1px solid var(--brass);
  box-shadow: var(--shadow-frame); position: relative;
}
.frame::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(180,145,79,.55); pointer-events: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.tall img { aspect-ratio: 4 / 5; }
.frame.wide img { aspect-ratio: 4 / 3; }
.frame figcaption { padding: .7rem .2rem 0; font-style: italic; color: var(--ink-soft); text-align: center; font-size: .95em; }
figure { margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem; }
.card { background: var(--cream); border: 1px solid rgba(180,145,79,.6); box-shadow: var(--shadow-frame); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 22px 40px -16px rgba(30,20,10,.6), 0 2px 6px rgba(30,20,10,.25); color: inherit; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 1px solid rgba(180,145,79,.5); }
.card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .35rem; }
.card .when { font-family: var(--caps); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: .8rem; }
.card p { color: var(--ink-soft); margin-bottom: 1rem; }
.card .more { margin-top: auto; font-family: var(--caps); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green-dark); }
.card:hover .more { color: var(--green); }

/* ---- Chalkboard (serving times) ---- */
.chalkboard {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(255,255,255,.05), transparent 50%),
    #1f221f;
  color: #efe9dc; border: 12px solid #4a3221;
  box-shadow: inset 0 0 0 2px #2a1c12, inset 0 0 40px rgba(0,0,0,.6), var(--shadow-frame);
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.6rem); max-width: 640px; margin-inline: auto;
  font-family: var(--serif-display);
}
.chalkboard h3 { color: #f5f0e4; text-align: center; font-size: 1.9rem; margin-bottom: .3rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.chalkboard .under { text-align: center; color: var(--brass-light); margin-bottom: 1.4rem; font-style: italic; font-size: 1.15rem; }
.chalkboard dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .55rem 1.4rem; font-size: 1.25rem; }
.chalkboard dt { font-weight: 600; letter-spacing: .04em; }
.chalkboard dd { margin: 0; text-align: right; color: #d8e6d8; }
.chalkboard .note { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px dashed rgba(255,255,255,.3); text-align: center; font-size: 1.05rem; color: #cfc8b8; font-style: italic; }
.chalkboard .cta { text-align: center; margin-top: 1.4rem; }
@media (max-width: 480px) { .chalkboard dl { grid-template-columns: 1fr; gap: .1rem; } .chalkboard dd { text-align: left; margin-bottom: .7rem; } }

/* ---- Bar list ---- */
.bar-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 2.5rem; }
.bar-lists h3 { font-family: var(--caps); font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--brass-light); border-bottom: 1px solid rgba(214,186,122,.4); padding-bottom: .6rem; margin-bottom: .9rem; }
.bar-lists ul { list-style: none; margin: 0; padding: 0; font-family: var(--serif-display); font-size: 1.2rem; line-height: 1.5; }
.bar-lists li small { display: block; font-size: .78em; color: var(--sage); font-style: italic; }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; grid-auto-flow: dense; }
.gallery a { display: block; position: relative; background: var(--cream); padding: 7px; border: 1px solid var(--brass); box-shadow: var(--shadow-frame); transition: transform .18s ease; }
.gallery a:hover { transform: translateY(-3px); }
.gallery a::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(180,145,79,.5); pointer-events: none; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: auto; height: 100%; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 600px) { .gallery .wide { grid-column: span 1; } .gallery .tall { grid-row: span 1; } .gallery .tall img { aspect-ratio: 4 / 3; } }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(15, 12, 9, .9); }
dialog.lightbox figure { margin: 0; padding: 10px; background: var(--cream); border: 1px solid var(--brass); }
dialog.lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin: 0 auto; }
dialog.lightbox figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .3rem 0; font-style: italic; color: var(--ink-soft); }
dialog.lightbox button { font-family: var(--caps); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; background: none; border: 1px solid var(--brass); color: var(--ink); padding: .5em 1em; cursor: pointer; }
dialog.lightbox button:hover { background: var(--brass); color: var(--timber); }

/* ---- Menu grid (food page) ---- */
.menu-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.2rem 1.8rem; }
.menu-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; text-align: center; transition: transform .18s ease; }
.menu-card:hover, .menu-card:focus-visible { transform: translateY(-4px); color: inherit; }
.menu-card .cover { padding: 7px; background: var(--cream); border: 1px solid var(--brass); box-shadow: var(--shadow-frame); position: relative; }
.menu-card .cover::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(180,145,79,.5); pointer-events: none; }
.menu-card .cover img { aspect-ratio: 210 / 297; width: 100%; object-fit: cover; }
.menu-card .title { margin-top: 1rem; font-family: var(--serif-display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.menu-card .when { margin-top: .25rem; font-family: var(--caps); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dark); }
.menu-card .pdf { margin-top: auto; padding-top: .6rem; font-size: .95em; font-style: italic; color: var(--green-dark); }

.fine-print { max-width: 720px; margin: 2.6rem auto 0; padding: 1.2rem 1.6rem; border: 1px solid rgba(180,145,79,.5); background: var(--cream); font-size: .93em; line-height: 1.65; color: var(--ink-soft); text-align: center; }

/* ---- Find us ---- */
.find { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; align-items: start; }
.address { font-style: normal; font-size: 1.1em; line-height: 1.75; }
.address strong { font-family: var(--caps); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-dark); display: block; margin-top: 1rem; }
.address .name { font-family: var(--serif-display); font-size: 1.8rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: .3rem; }
.section.dark .address .name, .section.dark .address strong { color: var(--brass-light); }

/* ---- Footer ---- */
.site-footer {
  background: var(--timber); color: rgba(251,247,238,.8); text-align: center; padding: 3rem 1rem 2rem;
  border-top: 4px double var(--brass);
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0 1px, transparent 1px 9px);
}
.site-footer img { width: 170px; margin: 0 auto 1.2rem; opacity: .95; }
.site-footer nav ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.6rem; }
.site-footer nav a { color: var(--parchment); text-decoration: none; font-family: var(--caps); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--brass-light); }
.site-footer .social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.6rem; }
.site-footer .social a { display: inline-flex; align-items: center; gap: .5rem; color: var(--brass-light); text-decoration: none; border: 1px solid rgba(214,186,122,.5); padding: .5rem 1rem; font-family: var(--caps); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.site-footer .social a:hover { background: var(--brass); color: var(--timber); }
.site-footer .social svg { width: 16px; height: 16px; fill: currentColor; }
.site-footer small { display: block; font-size: .85em; color: rgba(251,247,238,.55); letter-spacing: .04em; }
.site-footer small a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .notice, .hero img, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- Fixes after first review ---- */
.section.green .btn, .section.dark .btn { color: var(--timber); }
.section.green .btn:hover, .section.dark .btn:hover { color: var(--timber); }
.section.green .btn.dark, .section.dark .btn.dark { color: var(--brass-light); }
.section.green .address .name { color: var(--cream); }
.section.green .address strong { color: var(--brass-light); }
.section.green .address a, .section.dark .address a { color: var(--parchment); text-decoration-color: var(--brass-light); }

.gallery { grid-auto-rows: 230px; }
.gallery a { height: 100%; }
.gallery img, .gallery .tall img { height: 100%; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 600px) { .gallery { grid-auto-rows: 200px; } }

.menu-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 1000px; margin-inline: auto; }

/* ---- Nav underline: sit it just under the text, not at the foot of the bar ---- */
.nav a { position: relative; border-bottom: 0; }
.nav a::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .55rem; height: 2px;
  background: var(--brass); opacity: 0; transform: scaleX(.6); transform-origin: center;
  transition: opacity .15s ease, transform .18s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { opacity: 1; transform: scaleX(1); }
.nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); background: var(--brass-light); }
.nav .book a::after { display: none; }

/* ---- Framed map (Find Us) ---- */
.frame.map iframe {
  display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; border: 0;
  background: var(--parchment-2);
}
@media (max-width: 600px) { .frame.map iframe { aspect-ratio: 1 / 1; } }

/* Ghost buttons keep their light text on dark and green sections */
.section.green .btn.ghost, .section.dark .btn.ghost { color: var(--cream); }
.section.green .btn.ghost:hover, .section.dark .btn.ghost:hover { color: var(--white); }

/* ---- Wine strip on the drinks section ---- */
.wine-note {
  margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid rgba(214,186,122,.35);
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between;
}
.wine-note > div { flex: 1 1 340px; }
.wine-note h3 { font-family: var(--serif-display); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--cream); border: 0; padding: 0; margin: 0 0 .4rem; }
.wine-note p { margin: 0; color: var(--parchment); opacity: .85; max-width: 52ch; }
.wine-note .btn { flex: none; }
