/* ═══════════════════════════════════════════════════════════════
   erabulab — Design System v4 "Bold Grotesque"
   Black canvas. Warm white. One gold accent. Massive type. Air.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0A0A0A;
  --bg-1:      #121212;
  --bg-2:      #181818;

  --cream:     #EDE7DB;
  --cream-70:  rgba(237,231,219,.62);
  --cream-40:  rgba(237,231,219,.40);
  --cream-15:  rgba(237,231,219,.14);
  --cream-08:  rgba(237,231,219,.08);

  --gold:      #C2A878;

  --d-fast:    .45s;
  --d-mid:     .9s;
  --d-slow:    1.5s;
  --ease:      cubic-bezier(.16,1,.3,1);
  --ease-io:   cubic-bezier(.85,0,.15,1);

  --display:   'Archivo', 'Zen Kaku Gothic New', sans-serif;
  --font:      'Zen Kaku Gothic New', 'Archivo', sans-serif;

  --pad:       clamp(20px, 5vw, 72px);
  --maxw:      1360px;
}

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

html {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { min-height: 100vh; cursor: none; }
@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 0; }
:focus-visible { outline: 1px solid var(--cream-40); outline-offset: 4px; }

/* ── Cursor ──────────────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999; will-change: transform;
}
.cursor-dot  { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--cream); border-radius: 50%; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--cream-40); border-radius: 50%;
  transition: transform .25s var(--ease), border-color .3s, background .3s;
}
.cursor-ring.is-hovered { transform: scale(1.7); border-color: transparent; background: rgba(237,231,219,.08); }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  padding: 26px 0;
  transition: padding var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 16px 0;
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--cream-08);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--cream); }
.logo-mark { color: var(--gold); }
.site-nav { display: flex; gap: 30px; list-style: none; }
.nav-link {
  font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--cream-40);
  transition: color var(--d-fast) var(--ease);
}
.nav-link:hover { color: var(--cream); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: none; padding: 4px; }
.toggle-line { width: 26px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease); }
.nav-toggle.is-open .toggle-line:first-child { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open .toggle-line:last-child  { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile menu ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 80px var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--d-mid) var(--ease-io);
}
.mobile-menu.is-open { clip-path: inset(0 0 0% 0); }
.mobile-link {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--display); font-size: clamp(34px, 8vw, 64px); font-weight: 900;
  letter-spacing: -.04em; color: var(--cream-40);
  padding: 10px 0; border-bottom: 1px solid var(--cream-08);
  transition: color var(--d-fast) var(--ease);
}
.mobile-link:hover { color: var(--cream); }
.mobile-num { font-family: var(--display); font-size: 11px; font-weight: 500; color: var(--cream-15); letter-spacing: .1em; min-width: 26px; }

/* ── Section utils ───────────────────────────────────────────── */
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 40px; }
.label-num  { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--cream-40); }
.label-text { font-size: 11px; font-weight: 500; letter-spacing: .18em; color: var(--cream-15); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 32px;
}
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 var(--pad); }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 500; letter-spacing: .24em; color: var(--gold);
  margin-bottom: 24px; opacity: 0; transform: translateY(14px);
}
.eyebrow-line { width: 22px; height: 1px; background: var(--gold); flex-shrink: 0; }

.hero-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(72px, 13vw, 200px);
  line-height: .9; letter-spacing: -.05em; color: var(--cream); margin-bottom: 36px;
}
.hero-title-line { display: block; overflow: hidden; }
.hero-title .period { color: var(--gold); }

.hero-sub {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  border-top: 1px solid var(--cream-08); padding-top: 22px;
}
.hero-desc { font-size: 14px; font-weight: 300; line-height: 1.85; color: var(--cream-40); max-width: 320px; opacity: 0; transform: translateY(14px); }
.hero-scroll-hint { font-size: 10px; letter-spacing: .18em; color: var(--cream-15); white-space: nowrap; cursor: none; transition: color var(--d-fast); }
.hero-scroll-hint:hover { color: var(--cream-40); }

/* Ticker */
.hero-ticker {
  position: absolute; inset: auto 0 0 0; z-index: 1; overflow: hidden;
  border-top: 1px solid var(--cream-08); height: 32px; display: flex; align-items: center;
}
.ticker-track { display: flex; white-space: nowrap; animation: tick 90s linear infinite; will-change: transform; }
.ticker-item { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-15); padding: 0 22px; flex-shrink: 0; }
.ticker-sep { color: var(--cream-08); font-size: 10px; flex-shrink: 0; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* ── Cover Story ─────────────────────────────────────────────── */
.cover-section { padding: 120px 0 100px; }
.cover {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
  cursor: none;
}
.cover-media { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; background: var(--bg-1); }
.cover-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(45%) brightness(.82);
  transition: filter var(--d-slow) var(--ease), transform var(--d-slow) var(--ease);
}
.cover:hover .cover-media img { filter: grayscale(0%) brightness(.95); transform: scale(1.03); }
.cover-media--nophoto { width: 100%; height: 100%; background: radial-gradient(ellipse at 35% 35%, rgba(194,168,120,.08), transparent 60%), var(--bg-1); }

.cover-cat { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cover-title {
  font-family: var(--display); font-size: clamp(26px, 3vw, 40px); font-weight: 800;
  line-height: 1.32; letter-spacing: -.03em; color: var(--cream); margin: 16px 0 18px;
}
.cover:hover .cover-title { color: var(--cream); }
.cover-excerpt { font-size: 14px; font-weight: 300; line-height: 1.9; color: var(--cream-40); margin-bottom: 28px; }
.cover-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--cream-08); }
.cover-readmore { font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--cream); transition: color var(--d-fast); }
.cover:hover .cover-readmore { color: var(--gold); }
.cover-date { font-family: var(--display); font-size: 11px; color: var(--cream-15); letter-spacing: .06em; }

/* ── Latest Reviews (editorial list) ─────────────────────────── */
.featured-section { padding: 0 0 110px; }
.review-list { border-top: 1px solid var(--cream-08); }
.review-row {
  display: grid; grid-template-columns: 48px 120px 1fr auto; gap: 28px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--cream-08);
  cursor: none; transition: padding-left var(--d-fast) var(--ease);
}
.review-row:hover { padding-left: 12px; }
.review-num { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--cream-15); }
.review-thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: 3px; background: var(--bg-1); }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%) brightness(.8); transition: filter var(--d-mid) var(--ease), transform var(--d-mid) var(--ease); }
.review-row:hover .review-thumb img { filter: grayscale(0%) brightness(.95); transform: scale(1.05); }
.review-thumb--nophoto { width: 100%; height: 100%; background: var(--bg-2); }
.review-cat { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.review-title {
  font-family: var(--display); font-size: clamp(17px, 1.8vw, 23px); font-weight: 700;
  line-height: 1.32; letter-spacing: -.02em; color: var(--cream); margin-top: 6px;
  transition: color var(--d-fast);
}
.review-row:hover .review-title { color: var(--cream); }
.review-date { font-family: var(--display); font-size: 11px; color: var(--cream-15); letter-spacing: .06em; white-space: nowrap; }

/* ── Categories ──────────────────────────────────────────────── */
.cat-section { padding: 0 0 130px; }
.cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--cream-08); border: 1px solid var(--cream-08); }
.cat-card {
  background: var(--bg); padding: 32px 26px 26px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  transition: background var(--d-fast) var(--ease); cursor: none;
}
.cat-card::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--d-fast) var(--ease); }
.cat-card:hover { background: var(--bg-1); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-card-num { font-family: var(--display); font-size: 10px; font-weight: 700; color: var(--cream-15); letter-spacing: .12em; }
.cat-card-name { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--cream); letter-spacing: -.01em; line-height: 1.3; transition: color var(--d-fast); }
.cat-card:hover .cat-card-name { color: var(--gold); }
.cat-card-count { font-family: var(--display); font-size: 10px; color: var(--cream-15); letter-spacing: .04em; }
.cat-card-arrow { position: absolute; top: 28px; right: 22px; font-size: 15px; color: var(--cream-15); transition: transform var(--d-fast) var(--ease), color var(--d-fast); }
.cat-card:hover .cat-card-arrow { transform: translate(4px,-4px); color: var(--gold); }

/* ── Archive ─────────────────────────────────────────────────── */
.archive-wrap { max-width: var(--maxw); margin: 0 auto; padding: 160px var(--pad) 100px; }
.archive-header { margin-bottom: 72px; }
.archive-label { font-size: 11px; font-weight: 500; letter-spacing: .18em; color: var(--gold); display: block; margin-bottom: 18px; }
.archive-title { font-family: var(--display); font-size: clamp(48px, 8vw, 110px); font-weight: 900; letter-spacing: -.05em; line-height: .9; color: var(--cream); }
.archive-desc { font-size: 14px; font-weight: 300; color: var(--cream-40); margin-top: 22px; max-width: 440px; line-height: 1.8; }

.review-list--archive { border-top: 1px solid var(--cream-08); }

.pagination { margin-top: 80px; display: flex; gap: 6px; justify-content: center; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid var(--cream-15); border-radius: 50%; font-family: var(--display); font-size: 12px; color: var(--cream-40);
  transition: all var(--d-fast); cursor: none;
}
.pagination a:hover { border-color: var(--cream-40); color: var(--cream); }
.pagination .current { border-color: var(--gold); color: var(--gold); }

/* ── Single ──────────────────────────────────────────────────── */
.single-article { padding-bottom: 130px; }
.article-header { padding: 170px var(--pad) 56px; max-width: 940px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.article-cat-badge { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; border: 1px solid var(--cream-15); color: var(--cream-40); transition: all var(--d-fast); cursor: none; }
.article-cat-badge:hover { border-color: var(--gold); color: var(--gold); }
.article-date, .article-readtime { font-family: var(--display); font-size: 11px; color: var(--cream-15); }
.article-title { font-family: var(--display); font-size: clamp(34px, 5.5vw, 72px); font-weight: 900; letter-spacing: -.04em; line-height: 1.06; color: var(--cream); }

.article-hero { position: relative; max-width: var(--maxw); margin: 0 auto 80px; padding: 0 var(--pad); }
.article-hero-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 4px; filter: grayscale(20%) brightness(.85); transition: filter var(--d-slow) var(--ease); }
.article-hero:hover .article-hero-img { filter: grayscale(0%) brightness(.95); }
.article-hero-overlay { position: absolute; inset: 0 var(--pad); border-radius: 4px; pointer-events: none; }

.article-body { max-width: 720px; margin: 0 auto; padding: 0 var(--pad); }
.article-content { font-size: 18px; line-height: 1.85; color: var(--cream-70); }
.article-content h2 { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--cream); margin: 56px 0 20px; letter-spacing: -.02em; }
.article-content h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--cream); margin: 38px 0 14px; }
.article-content p { margin-bottom: 1.5em; }
.article-content a { color: var(--cream); border-bottom: 1px solid var(--gold); transition: color var(--d-fast); }
.article-content a:hover { color: var(--gold); }
.article-content ul, .article-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.article-content li { margin-bottom: .6em; }

.related-section { max-width: 1100px; margin: 100px auto 0; padding: 56px var(--pad) 0; border-top: 1px solid var(--cream-08); }
.related-label { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--cream-08); }
.related-card { background: var(--bg); overflow: hidden; transition: background var(--d-fast); cursor: none; }
.related-card:hover { background: var(--bg-1); }
.related-thumb { aspect-ratio: 16/9; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(45%); transition: transform var(--d-mid) var(--ease), filter var(--d-mid); }
.related-card:hover .related-thumb img { transform: scale(1.05); filter: grayscale(0%); }
.related-title { display: block; padding: 16px 18px; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--cream-40); line-height: 1.4; transition: color var(--d-fast); }
.related-card:hover .related-title { color: var(--cream); }

/* ── Static page ─────────────────────────────────────────────── */
.page-wrap { max-width: 720px; margin: 0 auto; padding: 170px var(--pad) 120px; }
.page-header { margin-bottom: 52px; }
.page-title { font-family: var(--display); font-size: clamp(40px, 6vw, 72px); font-weight: 900; color: var(--cream); letter-spacing: -.04em; line-height: .92; }
.page-content { font-size: 17px; line-height: 1.85; color: var(--cream-70); }
.page-content h2 { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--cream); margin: 46px 0 14px; }
.page-content h3 { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--cream); margin: 32px 0 12px; }
.page-content p { margin-bottom: 1.3em; }
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.page-content li { margin-bottom: .5em; }
.page-content a { color: var(--cream); border-bottom: 1px solid var(--gold); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--cream-08); padding: 60px 0 44px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.footer-brand { justify-self: start; }
.footer-logo { font-family: var(--display); font-size: 19px; font-weight: 800; color: var(--cream); display: block; margin-bottom: 6px; letter-spacing: -.02em; }
.footer-tagline { font-size: 11px; color: var(--cream-15); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-link { font-size: 10px; color: var(--cream-15); letter-spacing: .08em; text-transform: uppercase; transition: color var(--d-fast); cursor: none; }
.footer-link:hover { color: var(--cream-40); }
.footer-meta { justify-self: end; text-align: right; display: flex; flex-direction: column; gap: 4px; }
.footer-copy { font-family: var(--display); font-size: 10px; color: var(--cream-15); }
.footer-note { font-size: 9px; color: var(--cream-08); }

/* ── Reveal ──────────────────────────────────────────────────── */
.js-reveal { opacity: 0; transform: translateY(28px); }
.js-card   { opacity: 0; transform: translateY(34px); }
.js-cat-card { opacity: 0; transform: translateY(20px); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cover { grid-template-columns: 1fr; gap: 28px; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-meta { justify-self: center; text-align: center; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: 92svh; }
  .hero-title { font-size: clamp(56px, 17vw, 100px); }
  .hero-sub { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cover-section { padding: 90px 0 80px; }
  .review-row { grid-template-columns: 32px 1fr; gap: 14px; }
  .review-thumb, .review-date { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .cursor-dot, .cursor-ring { display: none; }
  .js-reveal, .js-card, .js-cat-card { opacity: 1; transform: none; }
}
