@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8f6f1;
  --fg: #1a1a1a;
  --fg-mid: #555;
  --fg-muted: #888;
  --fg-subtle: #b8b3aa;
  --line: #e8e4dc;
  --accent: #1a1a1a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ─── Site chrome — masthead nav only ─────────── */
.site-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-bar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 22px 32px;
  display: flex; align-items: center;
}
.site-bar { position: sticky; top: 0; z-index: 50; }
.site-bar-inner > .site-nav { flex: 1; }
.site-nav {
  display: flex;
  gap: 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.site-nav a {
  flex: 1 1 0;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--fg-mid);
  text-decoration: none;
  padding: 6px 8px;
  transition: color 0.18s;
}
.site-nav a:first-child { text-align: left; padding-left: 0; }
.site-nav a:last-child { text-align: right; padding-right: 0; }
.site-nav a:hover, .site-nav a.is-active { color: var(--fg); }
.site-nav a.is-active { font-weight: 500; }
@media (max-width: 720px) {
  .site-bar-inner { padding: 14px 22px; }
  .site-nav { gap: 8px; }
  .site-nav a { font-size: 18px; padding: 4px 0; }
  .site-nav a:first-child, .site-nav a:last-child { text-align: center; padding: 4px 0; }
}

/* ─── Hero (landing) — now contained ────────────── */
.hero-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px 0;
}
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 100%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 44px 40px;
  color: #fff;
}
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 12px; opacity: 0.9;
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1; letter-spacing: -0.025em;
  margin-bottom: 14px;
  max-width: 800px;
}
.hero-dek {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  max-width: 580px;
  opacity: 0.95;
}
.hero-cta {
  display: inline-flex;
  margin-top: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  transition: all 0.18s;
}
.hero-cta:hover { background: #fff; color: var(--fg); border-color: #fff; }
@media (max-width: 720px) {
  .hero-wrap { padding: 28px 22px 0; }
  .hero { aspect-ratio: 4 / 5; }
  .hero-content { padding: 24px 22px; }
}

/* ─── Page intro (category pages) ───────────────── */
.page-intro {
  max-width: 1280px; margin: 0 auto;
  padding: 88px 32px 56px;
  border-bottom: 1px solid var(--line);
}
.page-intro-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-mid);
  margin-bottom: 18px;
}
.page-intro-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1; letter-spacing: -0.025em;
  margin-bottom: 20px; max-width: 880px;
}
.page-intro-dek {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5; color: var(--fg-mid);
  max-width: 640px;
}
@media (max-width: 720px) { .page-intro { padding: 48px 22px 36px; } }

/* ─── Section ───────────────────────────────────── */
.section {
  max-width: 1280px; margin: 0 auto;
  padding: 64px 32px;
}
.section + .section { padding-top: 24px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px; padding-bottom: 14px;
  border-bottom: 1px solid var(--fg);
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg);
}
.section-link { font-size: 12px; font-weight: 500; color: var(--fg-mid); }
.section-link:hover { color: var(--fg); }
@media (max-width: 720px) { .section { padding: 40px 22px; } }

/* ─── Card grids ────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (min-width: 1080px) { .grid-3 { gap: 40px; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 36px; } }

/* Department card — image fits properly per medium */
.dept {
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: transform 0.18s;
}
.dept:hover { transform: translateY(-2px); }
.dept-imagewrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 16px;
}
.dept-imagewrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.dept-imagewrap.poster { aspect-ratio: 2 / 3; }
.dept-imagewrap.square { aspect-ratio: 1 / 1; }
.dept:hover .dept-imagewrap img { transform: scale(1.02); }
.dept-imagewrap.empty {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.dept-imagewrap.empty span {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 13px; color: var(--fg-subtle);
}
.dept-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.dept-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em; line-height: 1.15;
  color: var(--fg); margin-bottom: 8px;
}
.dept-meta { font-size: 13px; color: var(--fg-mid); line-height: 1.5; }
.dept-empty {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 13px; color: var(--fg-subtle);
}

/* Pick (split layout for film/TV detail) */
.pick {
  display: flex; flex-direction: column;
  text-decoration: none;
  margin-bottom: 64px;
}
.pick-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 24px;
}
.pick-image img { width: 100%; height: 100%; object-fit: cover; }
.pick-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 10px;
}
.pick-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--fg); margin-bottom: 12px;
}
.pick-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 18px;
  font-feature-settings: "tnum";
}
.pick-prose {
  font-family: 'Fraunces', serif;
  font-weight: 400; font-size: 17px; line-height: 1.6;
  color: var(--fg); max-width: 620px; margin-bottom: 14px;
}
.pick-prose strong {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg); margin-right: 8px;
}
.pick-prose em { font-style: italic; }
.pick-trailer {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
}
.pick-trailer a {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}
.pick-trailer a:hover { border-bottom-color: var(--fg-muted); }

@media (min-width: 880px) {
  .pick.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 96px;
  }
  .pick.split .pick-image {
    margin-bottom: 0;
    aspect-ratio: 16 / 10;
  }
  .pick.split:nth-of-type(even) .pick-image { order: 2; }
}

/* Restaurant card */
.r-card { display: block; text-decoration: none; }
.r-card-image {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 16px;
}
.r-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.r-card:hover .r-card-image img { transform: scale(1.02); }
.r-card-name {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.r-card-meta {
  font-size: 12px; color: var(--fg-mid);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
}

/* Type-led list (music) */
.t-list { margin-top: 0; }
.t-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.t-item:last-child { border-bottom: 1px solid var(--line); }
.t-num {
  font-family: 'Fraunces', serif; font-style: italic;
  font-weight: 400; font-size: 14px;
  color: var(--fg-muted);
}
.t-name {
  font-family: 'Fraunces', serif;
  font-weight: 400; font-size: 22px;
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.t-track { font-style: italic; color: var(--fg-mid); font-weight: 300; }
.t-why {
  font-family: 'Fraunces', serif;
  font-weight: 400; font-size: 14px;
  color: var(--fg-mid); line-height: 1.5;
  margin-top: 6px; max-width: 540px;
}
.t-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-muted);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }


/* Detail-page narrow column (single-article view) */
.hero-wrap.narrow,
.page-intro.narrow,
.section.narrow {
  max-width: 820px;
}
.hero-wrap.narrow { padding-top: 40px; }
.page-intro.narrow { padding-top: 56px; padding-bottom: 36px; }
.hero-wrap.narrow .hero { aspect-ratio: 3/2; }
.section.narrow .pick-image { aspect-ratio: 3/2; }
.section.narrow .pick-prose { max-width: 100%; }


/* Article list (category landing — image-led, magazine TOC) */
.toc { display: grid; gap: 0; }
.toc a {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.18s;
}
.toc a:last-child { border-bottom: 1px solid var(--line); }
.toc a:hover { opacity: 0.82; }
.toc a:hover .toc-image img { transform: scale(1.02); }
.toc-image {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.toc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.toc-image.empty {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--fg-subtle); font-size: 13px;
  text-align: center;
}
.toc-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.toc-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 10px;
}
.toc-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--fg); margin-bottom: 10px;
}
.toc-dek {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 300;
  font-size: 15px; line-height: 1.5;
  color: var(--fg-mid); margin: 0;
}
@media (max-width: 720px) {
  .toc a { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .toc-image { aspect-ratio: 16 / 10; }
  .toc-title { font-size: 22px; }
}


/* Search ─────────────────────────────────────── */
.search-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-mid);
  width: 28px; height: 28px;
  margin-left: 12px;
  transition: color 0.18s;
}
.search-btn:hover { color: var(--fg); }
.search-btn svg { width: 22px; height: 22px; }

.search-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  z-index: 100;
}
.search-panel-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 32px 36px;
}
.search-input {
  width: 100%;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 4px;
  background: transparent;
  outline: none;
  color: var(--fg);
}
.search-input:focus { border-bottom-color: var(--fg); }
.search-input::placeholder { color: var(--fg-subtle); font-style: italic; font-weight: 300; }

.search-results {
  margin-top: 24px;
  display: grid;
  gap: 0;
}
.search-result {
  display: block;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
}
.search-result:last-child { border-bottom: 1px solid var(--line); }
.search-result:hover { opacity: 0.78; }
.search-result-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 6px;
}
.search-result-title {
  font-family: 'Fraunces', serif;
  font-weight: 400; font-size: 20px;
  letter-spacing: -0.01em; line-height: 1.2;
  color: var(--fg); margin: 0 0 4px;
}
.search-result-dek {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 300;
  font-size: 13px; line-height: 1.45;
  color: var(--fg-mid); margin: 0;
}
.search-hint {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 300;
  font-size: 14px; color: var(--fg-subtle);
  margin: 16px 0 0;
}
@media (max-width: 720px) {
  .search-input { font-size: 22px; }
  .search-panel-inner { padding: 22px; }
}


/* Bottom "more" link below TOC */
.toc-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 16px;
}
.toc-footer a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong, #d6d2c8);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}
.toc-footer a:hover { color: var(--fg); border-bottom-color: var(--fg); }
