/*
  Green Tones Mag — Main Stylesheet
  Print-inspired editorial design system
  =========================================
  Drop your self-hosted @font-face blocks here:

  @font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('/wp-content/themes/greentonesmag/assets/fonts/NeueHaasGroteskDisplay-45Light.woff2') format('woff2');
    font-weight: 300; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('/wp-content/themes/greentonesmag/assets/fonts/NeueHaasGroteskDisplay-55Roman.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('/wp-content/themes/greentonesmag/assets/fonts/NeueHaasGroteskDisplay-65Medium.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
  }
*/

/* ── DESIGN TOKENS ───────────────────── */
:root {
  --cream: #F5F0E8;
  --paper: #EDE7D9;
  --ink: #1A1A16;
  --ink-light: #3D3D35;
  --green: #333b21;
  --green-light: #4a5630;
  --green-pale: #c5cbb4;
  --rule: #C4BAA8;
  --accent: #8B6E4E;

  --font-display: 'Neue Haas Grotesk Display', 'HelveticaNeue-Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-width: 1280px;
  --page-padding: 40px;
}

/* ── RESET ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── BASE ────────────────────────────── */
body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

/* ── UTILITY ─────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-padding); }
.rule { border: none; border-top: 1px solid var(--rule); }

/* ── DATELINE BAR ────────────────────── */
.dateline {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  padding: 6px 0;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  animation: fadeIn 0.8s 0.3s ease both;
}

/* ── SITE HEADER ─────────────────────── */
.site-header {
  padding: 0 var(--page-padding);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 100;
  animation: fadeDown 0.6s ease both;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo { display: flex; align-items: center; }
.header-logo img { height: 48px; width: auto; display: block; }
.header-logo .site-name {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header-nav a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-light);
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--green); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream);
  background: var(--green);
  padding: 10px 20px;
  transition: background 0.2s;
}

.header-cta:hover { background: var(--green-light); }

/* ── SECTION HEADER ──────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── READ MORE LINK ──────────────────── */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s;
  cursor: pointer;
}

.read-more::after { content: '→'; transition: transform 0.2s; }
.read-more:hover { gap: 14px; }

/* ── HERO ────────────────────────────── */
.hero {
  padding: 60px var(--page-padding) 0;
  max-width: var(--max-width);
  margin: 0 auto;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}

.hero-feature {
  padding: 56px 48px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--rule);
}

.hero-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(51,59,33,0.06) 0%, transparent 60%);
}

.issue-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.issue-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--green);
  display: block;
}

.hero-feature h2 {
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 420px;
}

.hero-feature h2 em {
  font-style: italic;
  color: var(--green);
}

.hero-feature .dek {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-light);
  max-width: 360px;
  margin-bottom: 32px;
  font-weight: 300;
}

.byline {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

.hero-image-panel {
  background: var(--green);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.75;
  mix-blend-mode: multiply;
}

.botanical {
  width: 260px;
  height: 260px;
  opacity: 0.18;
}

.hero-image-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: rgba(245,240,232,0.6);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Hero sub-stories */
.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: none;
}

.hero-sub-item {
  padding: 28px 48px;
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--cream);
  transition: background 0.2s;
  cursor: pointer;
}

.hero-sub-item:last-child { border-right: none; }
.hero-sub-item:hover { background: var(--paper); }

.hero-sub-item .category {
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-sub-item h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-sub-item p {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ── PULL QUOTE BAND ─────────────────── */
.pullquote-band {
  background: var(--green);
  color: var(--cream);
  padding: 64px var(--page-padding);
  text-align: center;
  animation: fadeIn 1s 0.4s ease both;
}

.pullquote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--cream);
}

.pullquote-band cite {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-pale);
  font-style: normal;
}

.pullquote-band .quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.5;
  color: var(--green-light);
  display: block;
  margin-bottom: 16px;
}

/* ── FEATURES GRID ───────────────────── */
.features-section {
  padding: 64px var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  animation: fadeUp 0.9s 0.5s ease both;
}

.features-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}

.feature-card {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  transition: background 0.2s;
  cursor: pointer;
}

.feature-card:last-child { border-right: none; }
.feature-card:hover { background: var(--paper); }

.feature-card .img-placeholder,
.feature-card .img-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--green-pale);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.feature-card.large .img-placeholder,
.feature-card.large .img-wrapper { aspect-ratio: 16/9; }

.feature-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .img-wrapper img { transform: scale(1.03); }

.img-placeholder svg { opacity: 0.25; width: 48px; height: 48px; }

.feature-card .category {
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--ink);
}

.feature-card.large h3 { font-size: 32px; }

.feature-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-light);
  margin-bottom: 16px;
}

/* ── LATEST GRID ─────────────────────── */
.latest-section {
  padding: 64px var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  animation: fadeUp 0.9s 0.6s ease both;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

.latest-item {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.2s;
}

.latest-item:last-child { border-right: none; }
.latest-item:hover { background: var(--paper); }

.latest-item .number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 12px;
}

.latest-item .category {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 8px;
}

.latest-item h3 {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}

.latest-item p {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ── ARTICLE PAGE ────────────────────── */
.article-header {
  padding: 80px var(--page-padding) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

.article-category {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-category::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--green);
}

.article-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 860px;
  margin-bottom: 28px;
}

.article-title em { font-style: italic; color: var(--green); }

.article-dek {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-light);
  max-width: 640px;
  font-weight: 300;
  margin-bottom: 32px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-meta .sep { color: var(--rule); }

.article-hero-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
}

.article-body {
  display: grid;
  grid-template-columns: 1fr 640px 1fr;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--page-padding);
}

.article-body-main {
  grid-column: 2;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 300;
}

.article-body-main p { margin-bottom: 28px; }
.article-body-main h2 {
  font-size: 28px;
  font-weight: 400;
  margin: 48px 0 20px;
  letter-spacing: -0.015em;
}

.article-body-main blockquote {
  border-left: 2px solid var(--green);
  padding: 4px 0 4px 28px;
  margin: 40px 0;
  font-size: 22px;
  font-style: italic;
  color: var(--green);
  line-height: 1.4;
}

.article-figure {
  grid-column: 1 / -1;
  margin: 40px 0;
}

.article-figure img {
  width: 100%;
  display: block;
}

.article-figure figcaption {
  padding: 10px var(--page-padding) 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── SHOP / MAGAZINE PAGE ────────────── */
.shop-hero {
  padding: 80px var(--page-padding) 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.shop-cover {
  position: relative;
}

.shop-cover-img {
  width: 100%;
  display: block;
  box-shadow: 24px 24px 60px rgba(26,26,22,0.18);
}

.shop-cover-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--green);
  color: var(--cream);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
}

.shop-info {}

.shop-issue-no {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.shop-title {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 8px;
  color: var(--ink);
}

.shop-subtitle {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 32px;
  font-weight: 400;
}

.shop-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 40px;
  max-width: 480px;
}

.shop-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  margin-bottom: 40px;
}

.shop-spec {
  padding: 16px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.shop-spec:nth-child(even) { border-right: none; }
.shop-spec:nth-last-child(-n+2) { border-bottom: none; }

.shop-spec-label {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.shop-spec-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}

.shop-price {
  font-size: 36px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.shop-price-note {
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--cream);
  padding: 16px 32px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  font-family: var(--font-display);
}

.btn-primary:hover { background: var(--green-light); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--green);
  padding: 16px 32px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--green);
  transition: all 0.2s;
  font-family: var(--font-display);
  margin-left: 12px;
}

.btn-secondary:hover { background: var(--green); color: var(--cream); }

.shop-shipping-note {
  margin-top: 16px;
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.08em;
}

/* Contents preview */
.shop-contents {
  padding: 64px var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.contents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

.contents-item {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.contents-item:nth-child(3n) { border-right: none; }
.contents-item:nth-last-child(-n+3) { border-bottom: none; }

.contents-num {
  font-size: 32px;
  font-weight: 300;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 12px;
}

.contents-type {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contents-item h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}

.contents-item p {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ── ABOUT PAGE ──────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}

.about-hero-text {
  padding: 80px var(--page-padding);
  border-right: 1px solid var(--rule);
}

.about-hero-image {
  background: var(--green);
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.about-section {
  padding: 64px var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.about-columns p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 20px;
}

/* ── ARCHIVE / ISSUES PAGE ───────────── */
.archive-section {
  padding: 64px var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

.archive-issue {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.2s;
}

.archive-issue:nth-child(3n) { border-right: none; }
.archive-issue:hover { background: var(--paper); }

.archive-issue .cover-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--green-pale);
  margin-bottom: 20px;
  display: block;
}

.archive-issue .issue-no {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.archive-issue h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.archive-issue .issue-date {
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.1em;
}

/* ── FOOTER ──────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--page-padding);
  border-bottom: 1px solid var(--rule);
}

.footer-brand p {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 16px;
}

/* Footer logo — constrain to same height as header regardless of source dimensions */
.footer-brand .custom-logo-link,
.footer-brand a { display: inline-block; }

.footer-brand .custom-logo-link img,
.footer-brand a > img,
.footer-brand img {
  height: 40px;
  width: auto;
  display: block;
  max-width: 200px;
  object-fit: contain;
}

/* Header logo — explicit cap (also covers SVG) */
.header-logo .custom-logo-link img,
.header-logo a > img,
.header-logo img {
  height: 48px;
  width: auto;
  display: block;
  max-width: 240px;
  object-fit: contain;
}

.footer-col h4 {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 12px;
  color: var(--ink-light);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--green); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--page-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--rule);
  letter-spacing: 0.1em;
}

/* ── ANIMATIONS ──────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── RESPONSIVE ──────────────────────── */

/* Tablet — 1024px and below */
@media (max-width: 1024px) {
  :root { --page-padding: 24px; }

  .hero-grid,
  .hero-sub,
  .shop-hero-grid,
  .about-hero { grid-template-columns: 1fr; }

  .hero-feature { min-height: 380px; border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-image-panel { min-height: 300px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none; border-bottom: 1px solid var(--rule); }

  .latest-grid { grid-template-columns: 1fr 1fr; }
  .latest-item:nth-child(2n) { border-right: none; }

  .article-body { grid-template-columns: 1fr; padding: 40px var(--page-padding); }
  .article-body-main { grid-column: 1; }

  .contents-grid { grid-template-columns: 1fr 1fr; }
  .contents-item:nth-child(2n) { border-right: none; }
  .contents-item:nth-child(3n) { border-right: 1px solid var(--rule); }

  .archive-grid { grid-template-columns: 1fr 1fr; }
  .archive-issue:nth-child(2n) { border-right: none; }
  .archive-issue:nth-child(3n) { border-right: 1px solid var(--rule); }

  .shop-hero-grid { gap: 40px; }
  .about-hero-text { border-right: none; border-bottom: 1px solid var(--rule); }

  /* Footer: 2-column grid on tablet */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }
  .footer-brand {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 24px;
    margin-bottom: 8px;
  }

  /* Contact 2-col → 1-col */
  section[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* Mobile — 640px and below */
@media (max-width: 640px) {
  :root { --page-padding: 20px; }

  /* Dateline — smaller text on mobile */
  .dateline {
    font-size: 7px;
    letter-spacing: 0.15em;
    padding: 5px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Header — hide nav links, keep logo + CTA */
  .header-nav { display: none; }
  .header-inner { height: 60px; }
  .header-cta {
    font-size: 8px;
    padding: 8px 14px;
    letter-spacing: 0.15em;
  }
  .logo-img { height: 36px; }
  .site-name { font-size: 15px; }

  /* Hero */
  .hero { padding-top: 32px; }
  .hero-feature { padding: 32px 24px; min-height: 280px; }
  .hero-image-panel { min-height: 220px; }
  .hero-sub-item { padding: 20px 24px; }

  /* Grids → single column */
  .latest-grid { grid-template-columns: 1fr; }
  .latest-item { border-right: none; border-bottom: 1px solid var(--rule); }

  .contents-grid,
  .archive-grid { grid-template-columns: 1fr; }
  .contents-item,
  .archive-issue { border-right: none; }

  /* Footer — stack cleanly */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding: 32px var(--page-padding);
  }
  .footer-brand {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 20px;
    margin-bottom: 4px;
  }
  .footer-brand p { display: none; } /* hide tagline on mobile to save space */
  .footer-col h4 { font-size: 8px; letter-spacing: 0.2em; }
  .footer-col ul a { font-size: 11px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px var(--page-padding);
    font-size: 9px;
  }

  /* Pullquote */
  .pullquote-band { padding: 40px 24px; }

  /* Section padding */
  .features-section,
  .latest-section,
  .shop-contents,
  .archive-section { padding: 40px var(--page-padding); }

  /* Article */
  .article-header { padding: 48px var(--page-padding) 32px; }
  .article-body { padding: 32px var(--page-padding); }

  /* Shop */
  .shop-hero { padding: 48px var(--page-padding) 40px; }

  /* About */
  .about-hero-text { padding: 48px var(--page-padding); }
  .about-section { padding: 40px var(--page-padding); }
  .about-columns { grid-template-columns: 1fr; gap: 0; }
}
