/* ==========================================================================
   TASTE OF JW — culinary journal design system
   Green ink on cream paper · coral accents · dotted-leader menus
   ========================================================================== */

:root {
  --paper: #fbf9f4;
  --paper-deep: #f4f0e6;
  --ink: #064013;
  --ink-soft: #2d5a3a;
  --ink-faint: #6f8577;
  --coral: #fb6f3e;
  --coral-deep: #e0501f;
  --butter: #fff5a4;
  --pink: #ffb8da;
  --line: #e6e0d0;
  --line-dark: #064013;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --measure: 680px;
  --wrap: 1200px;
  --dot-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23064013' fill-opacity='0.08'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper) var(--dot-grid);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.t-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.t-measure { max-width: var(--measure); margin-left: auto; margin-right: auto; }

::selection { background: var(--butter); color: var(--ink); }

/* ---------- labels & type ---------- */
.t-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.t-eyebrow.t-coral { color: var(--coral-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }

.t-section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.t-section-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.t-section-head p { color: var(--ink-soft); margin-top: 12px; max-width: 560px; }

/* ---------- header ---------- */
.t-site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.t-site-header.t-solid {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.t-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.t-brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.t-brand-name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.t-brand-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--coral-deep);
}
.t-main-nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.t-main-nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size 0.3s ease, color 0.3s ease;
}
.t-main-nav a:hover { background-size: 100% 2px; color: var(--coral-deep); }
.t-nav-toggle {
  display: none;
  background: none; border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 18px; color: var(--ink); cursor: pointer;
}

/* ---------- hero ---------- */
.t-hero { padding: clamp(120px, 16vh, 168px) 0 clamp(28px, 4vw, 48px); }
.t-wordmark {
  font-family: var(--serif);
  font-size: clamp(58px, 12.5vw, 176px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}
.t-wordmark em { font-style: italic; color: var(--coral); }
.t-hero-sub {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  border-top: 1px solid var(--ink); margin-top: clamp(22px, 3vw, 36px);
  padding-top: 16px; flex-wrap: wrap;
}
.t-hero-sub p { max-width: 460px; color: var(--ink-soft); font-size: 16px; }
.t-hero-figure { margin-top: clamp(28px, 4vw, 48px); }
.t-hero-figure img {
  width: 100%; height: clamp(320px, 52vw, 620px);
  object-fit: cover; border-radius: 4px;
}
.t-hero-figure figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
  padding-top: 10px; display: flex; justify-content: space-between; gap: 12px;
}

/* ---------- menu list (dotted leaders) ---------- */
.t-menu-list { list-style: none; border-top: 1px solid var(--ink); }
.t-menu-row { display: block; text-decoration: none; border-bottom: 1px solid var(--line); transition: background 0.25s ease; }
.t-menu-row:hover { background: var(--paper-deep); }
.t-menu-row-inner {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline; gap: 18px;
  padding: 26px 12px;
}
.t-menu-num {
  font-family: var(--mono); font-size: 13px; color: var(--coral-deep);
}
.t-menu-body { min-width: 0; }
.t-menu-title {
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px);
  display: flex; align-items: baseline; gap: 12px;
}
.t-menu-title .t-leader {
  flex: 1; min-width: 24px;
  border-bottom: 2px dotted var(--ink-faint);
  transform: translateY(-6px);
}
.t-menu-title .t-price {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  white-space: nowrap;
}
.t-menu-desc { color: var(--ink-soft); font-size: 15.5px; margin-top: 6px; max-width: 560px; }
.t-menu-cat {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); white-space: nowrap;
}

/* ---------- checkerboard ---------- */
.t-checker { border-top: 1px solid var(--ink); }
.t-checker-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.t-checker-row:nth-child(even) .t-checker-media { order: 2; }
.t-checker-media { min-height: 320px; }
.t-checker-media img { width: 100%; height: 100%; object-fit: cover; }
.t-checker-card {
  background: var(--butter);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(36px, 5vw, 80px);
}
.t-checker-card h3 { font-size: clamp(26px, 3vw, 40px); margin: 10px 0 14px; }
.t-checker-card p { color: var(--ink-soft); max-width: 420px; }
.t-checker-card.t-alt { background: var(--paper-deep); }
.t-text-link {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral-deep); text-decoration: none; margin-top: 22px; display: inline-flex; gap: 8px;
}
.t-text-link::after { content: "→"; transition: transform 0.25s ease; }
.t-text-link:hover::after { transform: translateX(5px); }

/* ---------- stats strip ---------- */
.t-strip {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.t-strip-cell { padding: clamp(22px, 3vw, 36px) clamp(16px, 2vw, 28px); border-right: 1px solid var(--line); }
.t-strip-cell:last-child { border-right: 0; }
.t-strip-num { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); }
.t-strip-num sup { font-family: var(--mono); font-size: 12px; color: var(--coral-deep); }
.t-strip-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }

/* ---------- about split ---------- */
.t-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.t-split h2 { font-size: clamp(30px, 3.8vw, 48px); margin: 10px 0 18px; }
.t-split p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- newsletter ---------- */
.t-newsletter { background: var(--pink); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.t-newsletter-inner { padding: clamp(48px, 7vw, 88px) 0; text-align: center; }
.t-newsletter h2 { font-size: clamp(32px, 4.4vw, 56px); margin: 10px 0 14px; }
.t-newsletter p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 28px; }
.t-news-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.t-news-form input {
  font-family: var(--mono); font-size: 14px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  padding: 14px 22px; width: min(340px, 80vw); outline: none;
}
.t-news-form input:focus { border-color: var(--coral-deep); }
.t-btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--coral); color: var(--paper);
  border: 1px solid var(--coral); border-radius: 999px;
  padding: 14px 28px; cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.25s ease, transform 0.15s ease;
}
.t-btn:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.t-btn:active { transform: scale(0.97); }
.t-btn.t-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.t-btn.t-ghost:hover { background: var(--ink); color: var(--paper); }
.t-news-note { margin-top: 16px; font-family: var(--mono); font-size: 12.5px; min-height: 20px; }
.t-news-note.t-error { color: #a02414; }
.t-news-note.ok { color: var(--ink); font-weight: 700; }

/* ---------- footer ---------- */
.t-site-footer { padding: clamp(48px, 6vw, 80px) 0 40px; }
.t-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px); padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.t-footer-brand p { color: var(--ink-soft); font-size: 14.5px; max-width: 380px; margin-top: 12px; }
.t-footer-col { display: flex; flex-direction: column; gap: 10px; }
.t-footer-col a { text-decoration: none; font-size: 14.5px; color: var(--ink-soft); }
.t-footer-col a:hover { color: var(--coral-deep); }
.t-footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); padding-top: 24px;
}

/* ==========================================================================
   ARTICLE PAGES
   ========================================================================== */
.t-article-hero { padding: clamp(120px, 15vh, 160px) 0 0; }
.t-breadcrumb {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.t-breadcrumb a { text-decoration: none; color: var(--coral-deep); }
.t-article-hero h1 {
  font-size: clamp(38px, 5.6vw, 72px);
  letter-spacing: -0.015em;
  max-width: 900px;
}
.t-article-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.t-article-cover { margin-top: clamp(30px, 4vw, 48px); }
.t-article-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 4px; }
.t-article-cover figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint); padding-top: 10px;
}

.t-article-body { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.t-prose { max-width: var(--measure); margin: 0 auto; min-width: 0; }
.t-prose p { margin-bottom: 22px; color: var(--ink-soft); }
.t-prose p.t-lede {
  font-family: var(--serif); font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.4; color: var(--ink); margin-bottom: 30px;
}
.t-prose h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: clamp(40px, 5vw, 56px) 0 18px;
  scroll-margin-top: 100px;
}
.t-prose h2 .t-course {
  display: block; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-deep);
  margin-bottom: 10px;
}
.t-prose h3 { font-size: clamp(20px, 2.4vw, 25px); margin: 30px 0 12px; }
.t-prose ul, .t-prose ol { margin: 0 0 22px 22px; color: var(--ink-soft); }
.t-prose li { margin-bottom: 8px; }
.t-prose a { color: var(--coral-deep); text-decoration-color: rgba(251, 111, 62, 0.4); text-underline-offset: 3px; }
.t-prose a:hover { text-decoration-color: var(--coral-deep); }
.t-prose strong { color: var(--ink); }

/* tasting notes — butter card */
.t-notes {
  background: var(--butter); border-radius: 4px;
  padding: clamp(26px, 3.4vw, 40px);
  margin: 0 0 36px;
}
.t-notes .t-eyebrow { color: var(--coral-deep); display: block; margin-bottom: 14px; }
.t-notes ul { margin: 0 0 0 20px; color: var(--ink); }
.t-notes li { margin-bottom: 10px; }
.t-notes li:last-child { margin-bottom: 0; }

/* menu-style data table */
.t-menu-table { border-top: 1px solid var(--ink); margin: 26px 0 34px; }
.t-menu-table .t-mt-row {
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.t-mt-name { font-weight: 600; font-size: 15.5px; }
.t-mt-name small { display: block; font-weight: 400; color: var(--ink-faint); font-size: 13px; margin-top: 3px; }
.t-mt-price { font-family: var(--mono); font-size: 14px; white-space: nowrap; text-align: right; }
.t-mt-price.t-hot { color: var(--coral-deep); font-weight: 700; }
.t-mt-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); padding: 12px 4px 8px;
}

/* wide comparison table */
.t-table-wrap { overflow-x: auto; margin: 26px 0 34px; border-top: 1px solid var(--ink); }
table.t-data { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14.5px; }
table.t-data caption {
  text-align: left; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
  padding: 12px 4px;
}
table.t-data th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: left; color: var(--ink); padding: 10px 12px 10px 4px;
  border-bottom: 1px solid var(--ink);
}
table.t-data td { padding: 12px 12px 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
table.t-data td.t-num { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
table.t-data td.hl { color: var(--coral-deep); font-weight: 700; }

/* callout */
.t-callout {
  border-left: 3px solid var(--coral);
  background: var(--paper-deep);
  padding: 18px 22px; margin: 26px 0 30px;
  font-size: 15.5px; color: var(--ink-soft); border-radius: 0 4px 4px 0;
}
.t-callout strong { color: var(--ink); }

/* the bill — pullquote */
.t-pullquote {
  text-align: center; margin: clamp(36px, 5vw, 52px) auto;
  max-width: 560px;
}
.t-pullquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.3; color: var(--ink);
}
.t-pullquote::before, .t-pullquote::after {
  content: ""; display: block; width: 64px; height: 2px;
  background: var(--coral); margin: 0 auto;
}
.t-pullquote::before { margin-bottom: 22px; }
.t-pullquote::after { margin-top: 22px; }

/* faq */
.t-faq { border-top: 1px solid var(--ink); margin-top: 12px; }
.t-faq-item { border-bottom: 1px solid var(--line); }
.t-faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  text-align: left; padding: 20px 4px;
  font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); color: var(--ink);
}
.t-faq-icon {
  font-family: var(--mono); font-size: 18px; color: var(--coral-deep);
  transition: transform 0.3s ease; flex-shrink: 0;
}
.t-faq-item.t-open .t-faq-icon { transform: rotate(45deg); }
.t-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.t-faq-a-inner { padding: 0 4px 22px; color: var(--ink-soft); font-size: 15.5px; }

/* sources */
.t-sources { margin-top: clamp(36px, 5vw, 52px); border-top: 1px solid var(--ink); padding-top: 20px; }
.t-sources .t-eyebrow { display: block; margin-bottom: 12px; }
.t-sources ul { list-style: none; margin: 0; }
.t-sources li { margin-bottom: 8px; font-family: var(--mono); font-size: 12.5px; }
.t-sources a { color: var(--ink-soft); text-decoration-color: var(--line); }
.t-sources a:hover { color: var(--coral-deep); }

/* keep reading */
.t-keep-reading { border-top: 1px solid var(--ink); padding: clamp(44px, 6vw, 72px) 0; background: var(--paper-deep); }
.t-kr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-kr-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 26px; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.t-kr-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 30px rgba(6, 64, 19, 0.1); }
.t-kr-card h3 { font-size: 21px; margin: 10px 0 8px; }
.t-kr-card p { font-size: 14px; color: var(--ink-soft); }

/* about page */
.t-about-hero { padding: clamp(120px, 15vh, 160px) 0 clamp(30px, 4vw, 48px); }
.t-about-hero h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.02em; max-width: 820px; }
.t-about-hero h1 em { font-style: italic; color: var(--coral); }
.t-masthead-list { border-top: 1px solid var(--ink); margin-top: 40px; }
.t-masthead-row {
  display: grid; grid-template-columns: 1fr 2fr; gap: 20px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.t-masthead-row dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-deep); }
.t-masthead-row dd { color: var(--ink-soft); font-size: 15.5px; }

/* reveal motion */
.t-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.t-reveal.in { opacity: 1; transform: none; }
.t-reveal-d1 { transition-delay: 0.08s; }
.t-reveal-d2 { transition-delay: 0.16s; }
.t-reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t-reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .t-checker-row { grid-template-columns: 1fr; }
  .t-checker-row:nth-child(even) .t-checker-media { order: 0; }
  .t-checker-media { min-height: 240px; }
  .t-checker-media img { height: 260px; }
  .t-strip { grid-template-columns: 1fr 1fr; }
  .t-strip-cell:nth-child(2n) { border-right: 0; }
  .t-strip-cell { border-bottom: 1px solid var(--line); }
  .t-kr-grid { grid-template-columns: 1fr; }
  .t-split { grid-template-columns: 1fr; }
  .t-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .t-nav-toggle { display: block; }
  .t-main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    flex-direction: column; gap: 0; padding: 0;
  }
  .t-main-nav.t-open { display: flex; }
  .t-main-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .t-menu-row-inner { grid-template-columns: 40px 1fr; }
  .t-menu-cat { display: none; }
  .t-wordmark { white-space: normal; }
  .t-masthead-row { grid-template-columns: 1fr; gap: 6px; }
}
