/**
 * style.css — Java On Demand
 * Shared stylesheet for all pages.
 *
 * Sections:
 *   0. Nav & Footer (formerly in components.js)
 *   1. CSS Custom Properties (design tokens)
 *   2. Reset & Base
 *   3. Typography
 *   4. Hero / Page Header
 *   5. Animations
 *   6. Responsive (shared)
 *   7. Print (shared)
 *   8. Espresso Guide — Grid & Cards
 *   9. Espresso Guide — Print overrides
 *  10. Milk Guide — Article layout
 *  11. Milk Guide — Components
 *  12. Milk Guide — Animations
 */

/* ═══════════════════════════════════════════════════════
   0. NAV & FOOTER (migrated from components.js)
   ═══════════════════════════════════════════════════════ */

/* ── Nav shell ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule, #ddd5c8);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

/* ── Brand ── */
.nav-brand {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber, #c87820);
  text-decoration: none;
  flex-shrink: 0;
}

/* ── Desktop links ── */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted, #7a7268);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--amber, #c87820);
}
.nav-links a.active {
  color: var(--amber, #c87820);
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  border-radius: 4px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: rgba(200, 120, 32, 0.08);
}

.nav-hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink, #16130f);
  border-radius: 2px;
  transition:
    transform 0.28s ease,
    opacity 0.2s ease,
    width 0.28s ease;
  transform-origin: center;
}

/* Animate to X when open */
.nav-hamburger.is-open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.is-open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ── */
.nav-mobile {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.32s ease,
    border-top-color 0.32s ease;
  border-top: 1px solid transparent;
}

.nav-mobile.is-open {
  max-height: 300px;
  border-top-color: var(--rule, #ddd5c8);
}

.nav-mobile-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile a {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted, #7a7268);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 4px;
  transition:
    background 0.15s,
    color 0.15s;
  display: block;
}

.nav-mobile a:hover {
  background: rgba(200, 120, 32, 0.08);
  color: var(--amber, #c87820);
}

.nav-mobile a.active {
  color: var(--amber, #c87820);
  background: var(--amber-pale, #fbf0de);
}

/* ── Footer ── */
footer {
  background: var(--ink, #16130f);
  color: rgba(250, 248, 244, 0.5);
  padding: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-light, #e8973a);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--amber-light, #e8973a);
}

.footer-domain {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 244, 0.25);
  text-transform: lowercase;
}

/* ── Mobile breakpoint (nav + footer) ── */
@media (max-width: 640px) {
  .nav-inner {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-mobile {
    display: block;
  }
  .footer-inner {
    padding: 32px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Print: hide nav and footer ── */
@media print {
  nav,
  footer {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════ */
:root {
  --ink: #16130f;
  --ink-soft: #3d3830;
  --ink-muted: #7a7268;
  --page: #faf8f4;
  --page-warm: #f2ede4;
  --rule: #ddd5c8;
  --amber: #c87820;
  --amber-light: #e8973a;
  --amber-pale: #fbf0de;
  --white: #ffffff;

  /* Espresso guide extras */
  --card-bg: #f5f2ec;
  --card-hover: #ede8df;

  /* Milk guide diagram extras */
  --foam-top: #f5f0e8;
  --foam-micro: #eae2d6;
  --milk-steam: #d4c4a8;
  --milk-cold: #b8d4e8;
  --espresso-c: #3d2010;
}

/* ═══════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════
   3. TYPOGRAPHY (milk guide article text)
   ═══════════════════════════════════════════════════════ */
p {
  margin-bottom: 22px;
  color: var(--ink-soft);
}
p:last-child {
  margin-bottom: 0;
}
strong {
  color: var(--ink);
  font-weight: 600;
}
em {
  font-style: italic;
  color: var(--ink-soft);
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  margin-top: 40px;
}

/* ═══════════════════════════════════════════════════════
   4. HERO / PAGE HEADER
   ═══════════════════════════════════════════════════════ */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  text-align: center;
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--amber-light);
  opacity: 0.5;
}

h1.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0;
}

h1.hero-title em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--amber);
  margin: 40px auto 0;
  opacity: 0.6;
}

.content {
  margin: 0 auto;
  padding: 0 40px 80px;
  animation: fadeUp 0.6s ease 0.1s both;
  max-width: 1100px;
}

/* ═══════════════════════════════════════════════════════
   5. ANIMATIONS (shared)
   ═══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════
   6. RESPONSIVE (shared)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .content {
    padding: 0 16px 60px;
  }
  h1.hero-title {
    font-size: 48px;
  }
  .hero {
    padding: 48px 16px 40px;
  }
}

/* ═══════════════════════════════════════════════════════
   7. PRINT (shared base — nav/footer hidden by components.js)
   ═══════════════════════════════════════════════════════ */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  body {
    background: #fff !important;
  }
  .hero {
    padding: 20px 20px 30px;
    animation: none;
  }
  .content {
    padding: 0 20px 40px;
    animation: none;
  }

  h1.hero-title {
    color: #1a1a1a !important;
    font-size: 60px;
  }
  h1.hero-title em {
    color: #b06010 !important;
  }
  .hero-sub {
    color: #555 !important;
  }
  .hero-eyebrow {
    color: #b06010 !important;
  }
  .hero-eyebrow::before,
  .hero-eyebrow::after {
    background: #b06010 !important;
  }
  .hero-rule {
    background: #b06010 !important;
  }
}

/* ═══════════════════════════════════════════════════════
   8. ESPRESSO GUIDE — GRID & CARDS
   ═══════════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  background: rgba(200, 120, 32, 0.1);
  border: 1px solid rgba(200, 120, 32, 0.18);
}

.card {
  background: var(--white);
  padding: 32px 28px 28px;
  position: relative;
  transition: background 0.25s ease;
  cursor: default;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(200, 120, 32, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.card:hover {
  background: var(--amber-pale);
}

.card-number-inline {
  font-family: "Playfair Display", serif;
  font-size: inherit;
  font-weight: 700;
  color: rgba(200, 120, 32, 0.38);
  letter-spacing: -0.02em;
}

.card-name {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 4px;
}

.card-name-alt {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.stat {
  background: var(--page-warm);
  padding: 10px 12px;
  border-left: 2px solid var(--amber);
}

.stat-label {
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 3px;
}

.stat-value {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.stat-unit {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-muted);
  font-family: "DM Mono", monospace;
}

.composition-label {
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.composition-bar {
  display: flex;
  height: 20px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--rule);
}

.bar-segment {
  height: 100%;
  transition: opacity 0.2s;
}

/* Colorblind-safe palette */
.bar-espresso {
  background: #332200;
}
.bar-water {
  background: #648fff;
}
.bar-milk {
  background: #ffb000;
}
.bar-foam {
  background: #c8b89a;
}
.bar-cream {
  background: #dc267f;
}
.bar-chocolate {
  background: #785ef0;
}
.bar-ice {
  background: #009e73;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  flex-shrink: 0;
}

.card-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-muted);
  font-weight: 300;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  font-style: italic;
}

.intensity-dots {
  display: flex;
  gap: 3px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule);
  border: 1px solid #c8bfb0;
}

.dot.filled {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 3px rgba(200, 120, 32, 0.35);
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   9. ESPRESSO GUIDE — PRINT OVERRIDES
   ═══════════════════════════════════════════════════════ */
@media print {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    background: #ccc !important;
    border: 1px solid #aaa !important;
  }

  .card,
  .card:hover {
    background: #f7f7f7 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .card::before {
    display: none;
  }
  .card-number-inline {
    color: rgba(176, 96, 16, 0.5) !important;
  }
  .card-name {
    color: #1a1a1a !important;
  }
  .card-name-alt {
    color: #b06010 !important;
  }
  .stat {
    background: #ededed !important;
    border-left-color: #b06010 !important;
  }
  .stat-label {
    color: #666 !important;
  }
  .stat-value {
    color: #1a1a1a !important;
  }
  .stat-unit {
    color: #666 !important;
  }
  .composition-label {
    color: #666 !important;
  }
  .composition-bar {
    border-color: #ccc !important;
  }
  .bar-espresso {
    background: #332200 !important;
  }
  .bar-foam {
    background: #a89880 !important;
  }
  .legend-item {
    color: #444 !important;
  }
  .dot {
    background: #ddd !important;
    border-color: #aaa !important;
    box-shadow: none !important;
  }
  .dot.filled {
    background: #b06010 !important;
    border-color: #b06010 !important;
  }
  .card-desc {
    color: #444 !important;
    border-top-color: #ddd !important;
  }
}

/* ═══════════════════════════════════════════════════════
   10. MILK GUIDE — ARTICLE LAYOUT
   ═══════════════════════════════════════════════════════ */
section {
  margin-bottom: 100px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.section-num {
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: var(--amber-light);
  flex-shrink: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.two-col.flipped {
  direction: rtl;
}
.two-col.flipped > * {
  direction: ltr;
}

@media (max-width: 720px) {
  .two-col,
  .two-col.flipped {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }
}

/* ═══════════════════════════════════════════════════════
   11. MILK GUIDE — COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* Diagram */
.diagram {
  background: var(--page-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.diagram-caption {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

/* Callout */
.callout {
  background: var(--amber-pale);
  border-left: 3px solid var(--amber);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 4px 4px 0;
}

.callout-label {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.callout p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.65;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  margin-bottom: 32px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 900;
  font-style: italic;
  color: var(--amber);
  opacity: 0.35;
  line-height: 1;
  text-align: right;
}

.steps li .step-body {
  padding-top: 4px;
}

.steps li h4 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.steps li p {
  font-size: 17px;
  margin-bottom: 0;
}

/* Temperature scale */
.temp-scale {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.temp-band {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 3px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.temp-band .range {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 80px;
}

.temp-band .label {
  flex: 1;
  color: var(--ink-soft);
  font-size: 10px;
}

.temp-band .verdict {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.band-cold {
  background: #e8f2fa;
  color: #2a6080;
}
.band-low {
  background: #f5f0e5;
  color: #6b5030;
}
.band-sweet {
  background: #fef3e0;
  color: #8b5010;
  border: 1.5px solid var(--amber);
}
.band-hot {
  background: #fdecea;
  color: #8b2020;
}
.band-scald {
  background: #f8e0e0;
  color: #6b1010;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.compare-table th {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 10px 16px;
  border-bottom: 2px solid var(--rule);
  text-align: left;
  background: var(--page-warm);
}

.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  vertical-align: top;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

/* Equipment grid */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .equip-grid {
    grid-template-columns: 1fr;
  }
}

.equip-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 20px;
}

.equip-label {
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.equip-name {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.equip-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   12. MILK GUIDE — ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.hero {
  animation: fadeUp 0.7s ease both;
}
section {
  animation: fadeUp 0.6s ease both;
}
section:nth-child(2) {
  animation-delay: 0.1s;
}
section:nth-child(3) {
  animation-delay: 0.15s;
}
section:nth-child(4) {
  animation-delay: 0.2s;
}
section:nth-child(5) {
  animation-delay: 0.25s;
}
section:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes steam {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-8px) scaleX(1.15);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-16px) scaleX(0.9);
    opacity: 0;
  }
}

.steam-wisp {
  animation: steam 2.4s ease-in-out infinite;
}
.steam-wisp:nth-child(2) {
  animation-delay: 0.8s;
}
.steam-wisp:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes bubble-float {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-120px);
    opacity: 0;
  }
}

.bubble {
  animation: bubble-float linear infinite;
}

/* ═══════════════════════════════════════════════════════
   13. ARTICLES LANDING — CARD GRID
   ═══════════════════════════════════════════════════════ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 36px 32px 32px;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  position: relative;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(
    135deg,
    rgba(200, 120, 32, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.article-card:hover {
  background: var(--amber-pale);
  border-color: var(--amber);
  box-shadow: 0 2px 12px rgba(200, 120, 32, 0.1);
}

.article-card-eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.article-card-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.article-card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.article-card-link {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  transition: color 0.2s;
}

.article-card:hover .article-card-link {
  color: var(--ink);
}

@media (max-width: 600px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-card {
    padding: 28px 24px 24px;
  }
}
