/* Podcast Trace */
:root {
  --bg: #0a1418;
  --bg-mid: #152830;
  --bg-card: #1a3340;
  --accent: #3db89a;
  --accent-alt: #2a6b7a;
  --accent-glow: rgba(61, 184, 154, 0.15);
  --text: #f0faf8;
  --text-muted: #c2ddd6;
  --text-soft: #9ec4bb;
  --focus: #5dd4b4;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --max: 72rem;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; font-size: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 184, 154, 0.08), transparent),
    linear-gradient(180deg, var(--bg) 0%, #0d1e24 100%);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover { color: var(--text); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-top: 0; }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); }

/* Header */
.site-header {
  background: rgba(21, 40, 48, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.logo-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a[aria-current="page"],
.main-nav a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1rem 0; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 2.5rem 1.25rem; }
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(61, 184, 154, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 { margin-top: 0; color: var(--text); }

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 20, 24, 0.15) 0%, rgba(61, 184, 154, 0.08) 100%);
  pointer-events: none;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10, 20, 24, 0.7) 50%, rgba(10, 20, 24, 0.4) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  width: 100%;
}

.page-hero-content h1 { margin: 0 0 0.5rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.page-hero-content p { margin: 0; font-size: 1.125rem; color: var(--text-muted); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }

.page-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

.page-header h1 { margin-top: 0; }

.page-header-legal {
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 0;
}

.page-header-legal p { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(61, 184, 154, 0.3);
}

.btn-primary:hover {
  background: #4dc9ab;
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(61, 184, 154, 0.4);
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-glow);
  color: var(--text);
}

/* Card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.trace-card,
.path-card,
.topic-card,
.rating-card,
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.trace-card:hover,
.path-card:hover,
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(61, 184, 154, 0.35);
}

.trace-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.trace-card-link:hover { color: inherit; }

.card-image,
.trace-card-image,
.path-card-image,
.topic-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img,
.trace-card-image img,
.path-card-image img,
.topic-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.trace-card:hover .trace-card-image img,
.path-card:hover .path-card-image img,
.topic-card:hover .topic-card-image img {
  transform: scale(1.05);
}

.trace-card-body,
.path-card-body,
.topic-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.trace-card-body h3,
.path-card-body h3,
.topic-card-body h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1.15rem;
}

.trace-card-body p,
.path-card-body p,
.topic-card-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.trace-card-link .trace-card-body h3 { color: var(--accent); }
.trace-card-link:hover .trace-card-body h3 { color: var(--text); }

/* Section headings */
.trace-nodes,
.rating-grid,
.path-section,
.topic-section {
  padding: 2.5rem 0 0;
}

.trace-nodes h2,
.rating-grid h2,
.path-section h2,
.topic-section h2 {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}

.section-intro {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Content blocks */
.content-block,
.review-article,
.legal-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.content-block h2 { margin-bottom: 1rem; }

.content-block p,
.review-article p {
  color: var(--text-muted);
  max-width: 68ch;
}

.content-block:nth-child(even) {
  background: rgba(21, 40, 48, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-figure {
  margin: 1.75rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  max-width: 100%;
}

.content-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-figure figcaption {
  padding: 0.85rem 1.15rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

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

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.rating-card,
.contact-card { padding: 1.5rem; }

.rating-card:has(.card-image) {
  padding: 0;
  overflow: hidden;
}

.rating-card:has(.card-image) h3,
.rating-card:has(.card-image) p {
  padding: 0 1.5rem;
}

.rating-card:has(.card-image) h3 {
  padding-top: 1.25rem;
  margin-top: 0;
}

.rating-card:has(.card-image) p {
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}

.rating-card h3 {
  margin-top: 0;
  color: var(--text);
}

.rating-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

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

.contact-grid dl dt {
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.75rem;
}

.contact-grid dl dt:first-child { margin-top: 0; }

.contact-grid dl dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.contact-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.contact-card p { color: var(--text-muted); }

.map-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-inner h2 {
  font-size: 1rem;
  margin-top: 0;
  color: var(--text);
}

.footer-inner address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text-muted);
}

.footer-inner p { color: var(--text-muted); }

.footer-disclaimer {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin: 0;
  line-height: 1.65;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--text-soft);
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(21, 40, 48, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s;
  z-index: 200;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  color: var(--text-muted);
}

/* Misc */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: var(--max);
  margin: 0 auto 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
  color: var(--text-muted);
}

.data-table th {
  background: var(--bg-mid);
  color: var(--text);
}

.review-article { padding-top: 1rem; }

.review-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.review-note {
  font-size: 0.9rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.dimension-list dt {
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.panel-member {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.panel-member strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.panel-member span {
  font-size: 0.875rem;
  color: var(--text-soft);
}

.legal-section h2 { margin-top: 2rem; }
.legal-section h2:first-child { margin-top: 0; }
.legal-section p,
.legal-section li { color: var(--text-muted); }
