/* Self-hosted fonts (Cormorant Garamond, Source Sans 3; SIL Open Font License). Files in /fonts. */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-500-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-500-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorant-garamond-600-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorant-garamond-600-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/cormorant-garamond-600-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/cormorant-garamond-600-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/source-sans-3-400-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/source-sans-3-400-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/source-sans-3-400-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/source-sans-3-400-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Wild Hog Vineyard — site stylesheet
   Edit colors in :root. Everything is plain CSS, no build step. */

:root {
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --text: #2b2420;
  --muted: #6d635a;
  --wine: #6a1c1c;
  --wine-strong: #4e1414;
  --leaf: #2f5a40;
  --gold: #b8861c;
  --line: #e2d9ca;
  --shadow: 0 10px 30px rgba(60, 40, 20, .10);
  --radius: 14px;
  --maxw: 1100px;
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1714; --surface: #251f1b; --text: #efe8dd; --muted: #b4a898;
    --wine: #d2807f; --wine-strong: #e9a3a2; --leaf: #86b797; --gold: #d4a743;
    --line: #3b322c; --shadow: 0 10px 30px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --bg: #1b1714; --surface: #251f1b; --text: #efe8dd; --muted: #b4a898;
  --wine: #d2807f; --wine-strong: #e9a3a2; --leaf: #86b797; --gold: #d4a743;
  --line: #3b322c; --shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.06rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--maxw), 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); font-weight: 600; margin-bottom: .6rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--wine); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Black line drawings (logo, page ornaments, hog sketch) go light in dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img,
  :root:not([data-theme="light"]) .page-title .ornament,
  :root:not([data-theme="light"]) .prose .float-right.art { filter: invert(1); opacity: .9; mix-blend-mode: normal; }
}
:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .page-title .ornament,
:root[data-theme="dark"] .prose .float-right.art { filter: invert(1); opacity: .9; mix-blend-mode: normal; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 50px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; letter-spacing: .04em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .32em; color: var(--muted); margin-top: .25rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .45rem .6rem; color: var(--text); cursor: pointer; font: inherit;
}
.nav-toggle svg { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.site-nav a {
  display: block; padding: .55rem .8rem; border-radius: 8px; text-decoration: none;
  color: var(--text); font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { background: color-mix(in srgb, var(--wine) 10%, transparent); color: var(--wine-strong); }
.site-nav a[aria-current="page"] { color: var(--wine); box-shadow: inset 0 -2px 0 var(--wine); border-radius: 8px 8px 0 0; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .site-nav a { padding: .8rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; border-left: 3px solid var(--wine); padding-left: .8rem; }
  .no-js .site-nav { display: block; position: static; box-shadow: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(78vh, 680px); display: grid; place-items: end start; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,10,8,.15) 0%, rgba(20,10,8,.25) 45%, rgba(20,10,8,.78) 100%); }
.hero .wrap { padding: 3rem 0 2.5rem; }
.hero h1 { color: #fff; margin-bottom: .4rem; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 40ch; margin-bottom: 1.2rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero .eyebrow { color: #f3dca0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .9rem; opacity: .92; margin: 0; padding: 0; list-style: none; }
.hero-facts li::before { content: "◆ "; color: #f3dca0; font-size: .6em; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--wine); color: #fff; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { background: var(--wine-strong); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { margin-bottom: .3rem; }
.page-title { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; text-align: center; }
.page-title .ornament { width: 110px; margin: 0 auto .8rem; opacity: .85; }
.rule { width: 64px; height: 2px; background: var(--gold); margin: 1rem auto; border: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: .6rem; font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

.quote-block { text-align: center; max-width: 60ch; margin-inline: auto; }
.quote-block figure { margin: 0 auto 1.4rem; display: inline-block; background: #f3ecdf; border: 1px solid #e0d6c4; border-radius: 10px; padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.quote-block figure img { margin: 0 auto; max-width: 400px; width: 100%; }
.quote-block blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-style: italic; margin: 0 0 .5rem; line-height: 1.35; }

/* ---------- Prose (About) ---------- */
.prose h2 { margin-top: 2.2rem; color: var(--wine); }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 68ch; }
.prose .float-right { float: right; margin: .3rem 0 1rem 1.5rem; width: min(40%, 220px); }
.prose .float-right.art { mix-blend-mode: multiply; }
@media (max-width: 520px) { .prose .float-right { float: none; width: 60%; margin: 0 auto 1rem; } }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Wine list ---------- */
.wine-list { display: grid; gap: 1rem; }
.wine { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.4rem; align-items: start; }
.wine > * { grid-column: 2; }
.wine .vintage { grid-column: 1; grid-row: 1 / span 4; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--wine); line-height: 1; padding-top: .2rem; width: 4.2ch; }
.wine h3 { margin: 0; font-size: 1.4rem; }
.wine .region { color: var(--leaf); font-weight: 600; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; }
.wine .notes { margin: .5rem 0 .6rem; max-width: 70ch; }
.wine .stats { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.wine .stats li { border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; background: var(--bg); }
.wine .stats li.price { color: var(--wine); border-color: color-mix(in srgb, var(--wine) 40%, var(--line)); font-weight: 600; }
@media (max-width: 520px) {
  .wine { grid-template-columns: 1fr; padding: 1.1rem 1.1rem; }
  .wine > * { grid-column: 1; }
  .wine .vintage { grid-row: auto; font-size: 1.5rem; width: auto; }
}
.offer { background: linear-gradient(135deg, color-mix(in srgb, var(--wine) 10%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--wine) 30%, var(--line)); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 2.5rem 0; }
.offer h3 { color: var(--wine); margin-bottom: .4rem; }
.offer .big { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; }

/* Past releases: year nav + filter */
.year-nav { position: sticky; top: 68px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .6rem 0; }
.year-nav .wrap { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.year-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: thin; flex: 1 1 420px; }
.year-nav a { display: block; padding: .3rem .7rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--text); white-space: nowrap; border: 1px solid transparent; }
.year-nav a:hover { border-color: var(--line); background: var(--surface); }
.filter { display: flex; align-items: center; gap: .5rem; }
.filter { flex: 1 1 220px; }
.filter input { width: 100%; font: inherit; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); min-width: 180px; }
.filter input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.year-group { scroll-margin-top: 130px; margin-top: 2.5rem; }
.year-group h2 { display: flex; align-items: baseline; gap: .8rem; color: var(--wine); }
.year-group h2 .count { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 400; }
.year-group[hidden], .wine[hidden] { display: none; }
.no-results { display: none; text-align: center; color: var(--muted); padding: 3rem 0; }
.no-results.is-visible { display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; list-style: none; margin: 0; padding: 0; }
.gallery a { display: block; position: relative; border-radius: 10px; overflow: hidden; background: var(--surface); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 1.4rem .8rem .6rem; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: .5rem; } .gallery figcaption { display: none; } }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lightbox::backdrop { background: rgba(10,6,4,.92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; color: #fff; }
.lightbox-inner img { max-width: 100vw; max-height: calc(100vh - 70px); object-fit: contain; width: auto; height: auto; }
.lightbox-caption { padding: .8rem 4rem; text-align: center; font-size: .95rem; min-height: 70px; }
.lightbox button { position: absolute; background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; font: inherit; }
.lightbox button:hover { background: rgba(0,0,0,.7); }
.lightbox .close { top: .8rem; right: .8rem; }
.lightbox .prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: .6rem; top: 50%; transform: translateY(-50%); }

/* ---------- Videos ---------- */
.videos { display: grid; gap: 2rem; }
.video { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video .frame { aspect-ratio: 16/9; width: 100%; background: #000; }
.video .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video .body { padding: 1rem 1.3rem 1.2rem; }
.video h3 { margin-bottom: .2rem; }
.video p { margin: 0; color: var(--muted); }

/* ---------- Contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.contact-grid address { font-style: normal; line-height: 1.7; }
.site-footer { background: var(--wine-strong); color: #f3e9dd; padding: 3rem 0 2rem; margin-top: 3rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #140f0d; } }
:root[data-theme="dark"] .site-footer { background: #140f0d; }
.site-footer a { color: #f3dca0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.7); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.social { display: inline-flex; align-items: center; gap: .4rem; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
