/* The Tasting — Napa Valley gastronomy journal */
:root {
  --ink: #141210;
  --ink-soft: #2A2622;
  --paper: #F3F1EC;
  --mist: #E4E1DA;
  --garnet: #6B2434;
  --garnet-deep: #4A1522;
  --brass: #B89A6A;
  --brass-soft: #D4C4A0;
  --mute: #6F6860;
  --line: rgba(20, 18, 16, 0.12);
  --line-strong: rgba(20, 18, 16, 0.22);
  --white: #FAF9F7;
  --shadow: 0 24px 60px rgba(20, 18, 16, 0.12);
  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
  --max: 1200px;
  --prose: 42rem;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(107, 36, 52, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(184, 154, 106, 0.1), transparent 50%),
    linear-gradient(180deg, #EAE7E0 0%, var(--paper) 28%, var(--paper) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 9999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(243, 241, 236, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 249, 247, 0.94);
}

.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark em {
  font-style: italic;
  color: var(--garnet);
  font-weight: 400;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-desktop a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--garnet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-desktop a[aria-current="page"] { color: var(--garnet); }

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  inset: var(--nav-h) 0 auto;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 1.5rem 1.75rem;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 22s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 16, 0.25) 0%, rgba(20, 18, 16, 0.15) 40%, rgba(20, 18, 16, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 18, 16, 0.45) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 3.5rem;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin-bottom: 1.25rem;
  max-width: 12ch;
}
.hero-brand em {
  font-style: italic;
  color: var(--brass-soft);
}
.hero-line {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 36ch;
  color: rgba(250, 249, 247, 0.88);
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn-primary {
  background: var(--garnet);
  color: var(--white);
  border: 1px solid var(--garnet);
}
.btn-primary:hover {
  background: var(--garnet-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid rgba(250, 249, 247, 0.45);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--brass-soft);
  color: var(--brass-soft);
}
.btn-ink {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ink:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── Sections ── */
.section {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 4.5rem 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.section-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--garnet);
  margin-bottom: 0.45rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
}
.section-link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.15rem;
}
.section-link:hover { color: var(--garnet); }

/* Featured essay */
.featured {
  display: grid;
  gap: 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
@media (min-width: 900px) {
  .featured { grid-template-columns: 1.15fr 0.85fr; min-height: 520px; }
}
.featured-media {
  min-height: 280px;
  overflow: hidden;
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.featured:hover .featured-media img { transform: scale(1.04); }
.featured-body {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  background:
    linear-gradient(160deg, #1A1614 0%, #241C1A 55%, #1A1214 100%);
}
.featured-meta {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.featured-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.featured-body p {
  color: rgba(243, 241, 236, 0.78);
  max-width: 38ch;
  font-weight: 300;
}
.featured-body .btn-primary { align-self: flex-start; margin-top: 0.5rem; }

/* Article grid — editorial rows, not cards */
.essay-grid {
  display: grid;
  gap: 0;
}
.essay-row {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background 0.35s var(--ease);
}
.essay-row:hover { background: rgba(255, 255, 255, 0.35); }
@media (min-width: 760px) {
  .essay-row {
    grid-template-columns: 4.5rem 9rem 1fr auto;
    gap: 1.75rem;
    padding: 1.85rem 0.5rem;
  }
}
.essay-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--brass);
  font-style: italic;
  line-height: 1;
}
.essay-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--mist);
}
.essay-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.essay-row:hover .essay-thumb img { transform: scale(1.06); }
.essay-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}
.essay-copy p {
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 48ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.essay-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--garnet);
  margin-bottom: 0.35rem;
  display: block;
}
.essay-more {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.essay-row:hover .essay-more { color: var(--garnet); }

/* Strip */
.quote-strip {
  background: var(--garnet-deep);
  color: var(--paper);
  padding: 3.5rem 0;
  margin: 1rem 0 0;
}
.quote-strip-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  text-align: center;
}
.quote-strip blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  max-width: 22ch;
  margin: 0 auto 1rem;
  letter-spacing: -0.02em;
}
.quote-strip cite {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 0.85rem;
}
.page-hero p {
  color: var(--mute);
  max-width: 42ch;
  font-size: 1.05rem;
}

/* Article page */
.article-hero {
  position: relative;
  min-height: min(70vh, 560px);
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.article-hero-media,
.article-hero-veil {
  position: absolute;
  inset: 0;
}
.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-veil {
  background: linear-gradient(180deg, rgba(20,18,16,0.2) 0%, rgba(20,18,16,0.75) 100%);
}
.article-hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 2.75rem;
}
.article-hero .cat {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 0.75rem;
  display: block;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 1rem;
}
.article-hero .deck {
  max-width: 42ch;
  color: rgba(250, 249, 247, 0.85);
  font-weight: 300;
  margin-bottom: 1rem;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.65);
}

.article-layout {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr 14rem;
    gap: 3.5rem;
  }
}

.prose {
  max-width: var(--prose);
}
.prose > p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.prose p {
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  line-height: 1.15;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}
.prose figure {
  margin: 2rem 0;
}
.prose figure img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.prose figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.prose .pullquote {
  margin: 2.25rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--garnet);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
}
.prose ul {
  margin: 1rem 0 1.5rem 1.1rem;
  list-style: disc;
  color: var(--ink-soft);
}
.prose li { margin-bottom: 0.45rem; }

.article-aside {
  font-size: 0.88rem;
}
.aside-block {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.aside-block h2 {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.85rem;
}
.aside-block a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  transition: color 0.25s;
}
.aside-block a:hover { color: var(--garnet); }
.aside-note {
  color: var(--mute);
  line-height: 1.55;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  max-width: 28ch;
  margin-bottom: 1.25rem;
}
.team-list {
  display: grid;
  gap: 1.5rem;
}
.team-member {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.team-member h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.team-role {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--garnet);
  margin-bottom: 0.55rem;
  display: block;
}
.team-member p { color: var(--mute); font-size: 0.95rem; }

.mission-panel {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.mission-panel h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.mission-panel p {
  color: rgba(243, 241, 236, 0.8);
  margin-bottom: 1rem;
  font-weight: 300;
}
.mission-panel p:last-child { margin-bottom: 0; }

/* Legal */
.legal {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.legal-meta {
  color: var(--mute);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}
.legal p, .legal li {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}
.legal ul {
  margin: 0 0 1rem 1.2rem;
  list-style: disc;
}
.legal a {
  color: var(--garnet);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(243, 241, 236, 0.78);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--paper);
  margin-bottom: 0.65rem;
}
.footer-brand em { font-style: italic; color: var(--brass); }
.footer-note { font-size: 0.92rem; max-width: 34ch; line-height: 1.6; }
.footer-col h3 {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--brass-soft); }
.footer-bottom {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 241, 236, 0.12);
  font-size: 0.78rem;
  color: rgba(243, 241, 236, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem 1.35rem;
  display: none;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184, 154, 106, 0.25);
}
.cookie-banner.is-visible { display: flex; }
@media (min-width: 720px) {
  .cookie-banner {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(420px, calc(100% - 3rem));
  }
}
.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(243, 241, 236, 0.82);
  flex: 1 1 100%;
}
.cookie-banner a {
  color: var(--brass-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  padding: 0.7rem 1rem;
  font-size: 0.7rem;
}
.cookie-actions .btn-ghost {
  border-color: rgba(250, 249, 247, 0.35);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Archive chips */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.chip {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover,
.chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
