/* 夜勤の設計室 — design system
   Tokens: primitives named by hue, semantics named by role. Hex throughout. */
:root {
  /* primitives */
  --navy-950: #0b1526;
  --navy-900: #122036;
  --navy-800: #1a2c47;
  --navy-100: #d9e2ef;
  --cream-50: #fffaf2;
  --cream-100: #fdf3e3;
  --cream-200: #f7e7cd;
  --coral-600: #c2410c;
  --coral-500: #e4572e;
  --coral-100: #ffe4d3;
  --ink-900: #1d2432;
  --ink-600: #4a5468;
  --ink-400: #7c8698;
  --line-200: #e9dfcd;
  --white: #ffffff;

  /* semantic roles */
  --color-bg: var(--cream-50);
  --color-bg-band: var(--navy-900);
  --color-surface: var(--white);
  --color-surface-warm: var(--cream-100);
  --color-text: var(--ink-900);
  --color-text-secondary: var(--ink-600);
  --color-text-faint: var(--ink-400);
  --color-text-on-dark: #f5efe3;
  --color-text-on-dark-secondary: #b9c4d6;
  --color-accent: var(--coral-500);
  --color-accent-strong: var(--coral-600);
  --color-accent-soft: var(--coral-100);
  --color-border: var(--line-200);
  --color-primary: var(--navy-900);

  /* type */
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(16 24 40 / 0.05), 0 8px 24px -12px rgb(16 24 40 / 0.18);
  --shadow-lift: 0 2px 4px rgb(16 24 40 / 0.06), 0 16px 32px -12px rgb(16 24 40 / 0.22);

  --header-h: 64px;
  --wrap: 1120px;
  --measure: 720px;
}

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

html {
  scroll-padding-block-start: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .wrap {
    padding-inline: 32px;
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(255 250 242 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.logo svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
@media (hover: hover) {
  .site-nav a:hover {
    background: var(--color-surface-warm);
  }
}
@media (max-width: 640px) {
  :root {
    --header-h: 104px;
  }
  .site-header {
    height: auto;
  }
  .site-header .wrap {
    flex-wrap: wrap;
    padding-block: 10px 6px;
    row-gap: 2px;
  }
  .site-nav {
    order: 2;
    width: 100%;
    justify-content: space-between;
  }
  .site-nav a {
    padding: 6px 4px;
    font-size: var(--text-xs);
  }
  .logo {
    font-size: 0.9375rem;
  }
}

/* ---------- hero (top page) ---------- */
.hero {
  background: var(--color-bg-band);
  color: var(--color-text-on-dark);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 0;
}
.hero-copy {
  padding: 48px 20px 40px;
  max-width: var(--wrap);
  margin-inline: auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px 14px;
  border: 1px solid rgb(245 239 227 / 0.35);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.875rem, 6.4vw, 3rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.hero h1 .accent {
  color: #ffb59d;
}
.hero-lead {
  margin: 0 0 32px;
  max-width: 34em;
  color: var(--color-text-on-dark-secondary);
  font-size: var(--text-base);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-media {
  line-height: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  aspect-ratio: 16 / 10;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
    max-width: 1440px;
    margin-inline: auto;
  }
  .hero-copy {
    padding: 88px 24px 88px max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
    align-self: center;
    max-width: none;
    margin: 0;
  }
  .hero-media img {
    aspect-ratio: auto;
    min-height: 520px;
  }
}

/* entrance (infrequent moment: first load only) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0, 0, 1) both;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.3s; }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
      filter: blur(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.15s ease-out, background-color 0.15s ease-out;
}
.btn:active {
  transform: scale(0.96);
}
.btn-light {
  background: var(--color-text-on-dark);
  color: var(--navy-900);
}
.btn-ghost {
  border: 1px solid rgb(245 239 227 / 0.45);
  color: var(--color-text-on-dark);
}
.btn-dark {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}
@media (hover: hover) {
  .btn-light:hover { background: var(--white); }
  .btn-ghost:hover { background: rgb(245 239 227 / 0.12); }
  .btn-dark:hover { background: var(--navy-800); }
}

/* ---------- sections ---------- */
.section {
  padding-block: 72px;
}
@media (min-width: 768px) {
  .section {
    padding-block: 96px;
  }
}
.section-head {
  max-width: var(--measure);
  margin-bottom: 40px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--color-accent-strong);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.eyebrow::after {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.section h2,
.band h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3.6vw, var(--text-3xl));
  line-height: 1.45;
  font-weight: 700;
  text-wrap: balance;
}
.section-lead {
  margin: 0;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

/* stats band */
.stats {
  display: grid;
  gap: 0;
  margin-top: 48px;
  border-block: 1px solid var(--color-border);
}
.stat {
  padding: 24px 4px;
}
.stat + .stat {
  border-top: 1px solid var(--color-border);
}
.stat-num {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.stat-num small {
  font-size: var(--text-lg);
  font-weight: 700;
}
.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}
@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    padding: 28px 28px 28px 0;
  }
  .stat + .stat {
    border-top: none;
    border-left: 1px solid var(--color-border);
    padding-left: 28px;
  }
}

/* pillar cards: one large pair, image-led */
.pillars {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}
.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
@media (hover: hover) {
  .pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
  }
}
.pillar-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  outline: 1px solid rgb(0 0 0 / 0.1);
  outline-offset: -1px;
}
.pillar-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pillar-tag {
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.pillar-body h3 {
  margin: 0;
  font-size: var(--text-xl);
  line-height: 1.55;
  font-weight: 700;
}
.pillar-body p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  text-wrap: pretty;
}
.pillar-more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--color-accent-strong);
  font-weight: 700;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* dark band + timeline diagram */
.band {
  background: var(--color-bg-band);
  color: var(--color-text-on-dark);
  padding-block: 72px;
}
@media (min-width: 768px) {
  .band {
    padding-block: 96px;
  }
}
.band .eyebrow {
  color: #ffb59d;
}
.band .section-lead {
  color: var(--color-text-on-dark-secondary);
}
.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tl-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.tl-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffb59d;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  padding-top: 18px;
}
.tl-time::after {
  content: "";
  width: 2px;
  flex: 1;
  background: rgb(245 239 227 / 0.18);
  border-radius: 2px;
}
.tl-item:last-child .tl-time::after {
  display: none;
}
.tl-card {
  background: var(--navy-800);
  border: 1px solid rgb(245 239 227 / 0.12);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.tl-card h3 {
  margin: 0 0 4px;
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-card h3 svg {
  width: 20px;
  height: 20px;
  color: #ffb59d;
  flex: none;
}
.tl-card p {
  margin: 0;
  color: var(--color-text-on-dark-secondary);
  font-size: var(--text-sm);
  line-height: 1.75;
}
@media (min-width: 860px) {
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .tl-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .tl-time {
    flex-direction: row;
    padding-top: 0;
  }
  .tl-time::after {
    height: 2px;
    width: auto;
  }
}

/* theme list (text rows, not cards) */
.themes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
.themes li {
  display: grid;
  gap: 4px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-border);
}
.themes .theme-cat {
  color: var(--color-accent-strong);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.themes .theme-title {
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.6;
}
.themes .theme-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}
@media (min-width: 768px) {
  .themes li {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 24px;
  }
  .themes .theme-cat {
    padding-top: 6px;
  }
  .themes .theme-desc {
    grid-column: 2;
  }
}

/* image band */
.photo-band {
  border-radius: var(--radius-lg);
  overflow: hidden;
  outline: 1px solid rgb(0 0 0 / 0.1);
  outline-offset: -1px;
}
.photo-band img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
@media (max-width: 640px) {
  .photo-band img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--color-text-on-dark-secondary);
  padding-block: 56px 40px;
  font-size: var(--text-sm);
}
.site-footer .footer-logo {
  color: var(--color-text-on-dark);
  font-weight: 700;
  font-size: var(--text-base);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.site-footer .footer-logo svg {
  width: 26px;
  height: 26px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.site-footer nav a {
  color: var(--color-text-on-dark-secondary);
  text-decoration: none;
}
@media (hover: hover) {
  .site-footer nav a:hover {
    color: var(--color-text-on-dark);
    text-decoration: underline;
  }
}
.site-footer p {
  margin: 0 0 8px;
  line-height: 1.8;
}
.site-footer .copy {
  margin-top: 24px;
  color: var(--ink-400);
  font-size: var(--text-xs);
}

/* ---------- article ---------- */
.article-hero {
  padding: 40px 0 0;
}
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
}
.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.article-head {
  max-width: var(--measure);
}
.article-head h1 {
  margin: 14px 0 20px;
  font-size: clamp(1.625rem, 4.6vw, 2.25rem);
  line-height: 1.5;
  font-weight: 700;
  text-wrap: balance;
}
.article-lead {
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
.article-figure {
  margin: 36px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  outline: 1px solid rgb(0 0 0 / 0.1);
  outline-offset: -1px;
}
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pr-box {
  max-width: var(--measure);
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-warm);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  line-height: 1.8;
}
.pr-box strong {
  color: var(--color-accent-strong);
  letter-spacing: 0.08em;
  margin-right: 8px;
}

.toc {
  max-width: var(--measure);
  margin-top: 36px;
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.toc p {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 2;
}
.toc a {
  color: var(--color-text);
  text-decoration: none;
}
@media (hover: hover) {
  .toc a:hover {
    color: var(--color-accent-strong);
    text-decoration: underline;
  }
}

.prose {
  max-width: var(--measure);
  margin-top: 16px;
  padding-bottom: 8px;
}
.prose h2 {
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy-900);
  font-size: clamp(1.375rem, 3.4vw, 1.625rem);
  line-height: 1.5;
  font-weight: 700;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.prose h2 .h-num {
  color: var(--color-accent);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.prose p {
  margin: 0 0 20px;
  text-wrap: pretty;
}
.prose ul {
  margin: 0 0 24px;
  padding: 22px 24px 22px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  line-height: 1.9;
}
.prose ul li + li {
  margin-top: 10px;
}
.prose ul li::marker {
  color: var(--color-accent);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  font-size: var(--text-sm);
  line-height: 1.75;
  background: var(--color-surface);
}
.prose th,
.prose td {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--navy-900);
  color: var(--color-text-on-dark);
  font-weight: 700;
  white-space: nowrap;
}
.prose .sources {
  margin-top: 56px;
  padding: 22px 24px;
  background: var(--color-surface-warm);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.prose .sources h2 {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  font-size: var(--text-base);
}
.prose .sources ul {
  margin: 0;
  padding: 0 0 0 1.3em;
  background: none;
  border: none;
}

/* placeholder CTA for affiliate slots (links land after partnership) */
.slot {
  margin: 36px 0;
  padding: 26px 28px;
  border: 1.5px dashed var(--color-accent);
  border-radius: var(--radius-md);
  background: #fff6ec;
}
.slot .slot-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.slot h3 {
  margin: 0 0 8px;
  font-size: var(--text-lg);
  line-height: 1.6;
}
.slot p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* related article */
.related {
  max-width: var(--measure);
  margin: 48px 0 72px;
}
.related > p {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: var(--text-sm);
}

/* about page */
.about-prose {
  max-width: var(--measure);
}
.about-prose h2 {
  margin: 48px 0 16px;
  font-size: var(--text-xl);
  line-height: 1.55;
}
.about-prose h2:first-child {
  margin-top: 0;
}
.about-prose p,
.about-prose li {
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
.about-prose ul {
  padding-left: 1.4em;
  line-height: 2;
}
.page-head {
  padding: 48px 0 8px;
}
.page-head h1 {
  margin: 14px 0 16px;
  font-size: clamp(1.625rem, 4.6vw, 2.25rem);
  line-height: 1.5;
}

/* ================================================================
   POP v2 — 2026-12-03 「デザインもっとポップに」対応レイヤー
   変更はすべて数値で記録（before → after）:
   - アクセント: coral #e4572e (HSL 14°/76%/54%) → #ff4b1f (12°/100%/56%)、彩度+24pt
     使用面積: リンク・小マーカーのみ → 見出しマーカー/バッジ/帯/表ヘッダーまで拡大
   - 副アクセント新設（カテゴリ識別用、主役は coral のまま）:
     yellow #ffb800 / teal #00bfa6 / pink #ff5d8f / sky #29b6f6
   - 見出し: h1 最大 3rem→3.5rem・weight 700→800、h2 2rem→2.375rem・800
   - 角丸: card 24px→32px、md 16px→24px、toc/slot も 24px
   - 影: ぼかし影 → インク色のオフセット影 6px 6px 0（ステッカー風）
   - 罫: カード類に 2px solid ink の太枠を追加
   - 区切り: hero 下端と band 上下に波形SVG、section 背景にドット柄
   - バッジ: ピル＋2px枠＋オフセット影＋-2deg 回転のステッカー風
   - イラスト: 彩度 ×1.35、明度 ×1.07（PIL実測: 平均彩度 +0.06〜+0.16）
   ================================================================ */
:root {
  --coral-500: #ff4b1f;
  --coral-600: #d63a0d;
  --coral-100: #ffe0d1;
  --pop-yellow: #ffb800;
  --pop-yellow-soft: #ffedb3;
  --pop-teal: #00bfa6;
  --pop-teal-soft: #c8f5ee;
  --pop-pink: #ff5d8f;
  --pop-pink-soft: #ffdde9;
  --pop-sky: #29b6f6;
  --pop-sky-soft: #d3efff;
  --pop-ink: #17263f;
  --color-accent-soft: var(--coral-100);
  --radius-md: 24px;
  --radius-lg: 32px;
  --shadow-card: 6px 6px 0 rgb(23 38 63 / 0.9);
  --shadow-lift: 9px 9px 0 rgb(23 38 63 / 0.9);
  --text-3xl: 2.375rem;
  --text-4xl: 3rem;
}

html, body { overflow-x: clip; }
body {
  background-image: radial-gradient(rgb(255 140 40 / 0.13) 2px, transparent 2.6px);
  background-size: 26px 26px;
}
::selection { background: var(--pop-yellow); color: var(--pop-ink); }

/* headings: bigger + heavier */
.hero h1 { font-size: clamp(2.125rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -0.01em; }
.section h2, .band h2 { font-weight: 800; letter-spacing: -0.01em; }
.article-head h1, .page-head h1 { font-weight: 800; }
.hero h1 .accent {
  color: var(--pop-yellow);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='7' viewBox='0 0 40 7'%3E%3Cpath d='M1 4 Q 6 1, 11 4 T 21 4 T 31 4 T 41 4' fill='none' stroke='%23ff4b1f' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 40px 7px repeat-x;
  padding-bottom: 10px;
}

/* hero: vivid gradient + glow + wave divider */
.hero {
  position: relative;
  background:
    radial-gradient(560px 340px at 88% 8%, rgb(255 184 0 / 0.35), transparent 65%),
    radial-gradient(640px 420px at 6% 96%, rgb(255 93 143 / 0.28), transparent 65%),
    linear-gradient(135deg, #16294d 0%, #1d3a6e 55%, #274b8f 100%);
  padding-bottom: 30px;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L0 18 Q 15 4, 30 16 T 60 16 T 90 16 T 120 16 L120 30 Z' fill='%23fffaf2'/%3E%3C/svg%3E") bottom left / 120px 30px repeat-x;
}
.hero-media img { border-radius: 0 0 0 var(--radius-lg); }
@media (max-width: 959px) {
  .hero-media img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: 4px; }
}

/* sticker badges */
.hero-eyebrow {
  background: var(--pop-yellow);
  color: var(--pop-ink);
  border: 2px solid var(--pop-ink);
  box-shadow: 3px 3px 0 rgb(23 38 63 / 0.9);
  transform: rotate(-2deg);
  font-size: var(--text-sm);
  padding: 6px 16px;
}
.pillar-tag, .slot .slot-label {
  border: 2px solid var(--pop-ink);
  box-shadow: 3px 3px 0 rgb(23 38 63 / 0.9);
  transform: rotate(-2deg);
  padding: 4px 14px;
  font-size: var(--text-sm);
}
.pillar-card:nth-child(1) .pillar-tag { background: var(--pop-yellow); color: var(--pop-ink); }
.pillar-card:nth-child(2) .pillar-tag { background: var(--pop-teal); color: var(--pop-ink); transform: rotate(2deg); }
.slot .slot-label { background: var(--pop-yellow); color: var(--pop-ink); }

/* buttons: filled pop with hard shadow */
.btn { border: 2px solid var(--pop-ink); box-shadow: 4px 4px 0 rgb(23 38 63 / 0.9); font-size: var(--text-base); }
.btn-light { background: var(--pop-yellow); color: var(--pop-ink); }
.btn-ghost { background: var(--pop-pink); color: var(--pop-ink); border-color: var(--pop-ink); }
.btn-dark { background: var(--coral-500); color: #fff; }
@media (hover: hover) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgb(23 38 63 / 0.9); }
  .btn-light:hover { background: var(--pop-yellow); }
  .btn-ghost:hover { background: var(--pop-pink); }
  .btn-dark:hover { background: var(--coral-500); }
}
.btn:active { transform: scale(0.96); box-shadow: 2px 2px 0 rgb(23 38 63 / 0.9); }

/* header nav pills */
.site-nav a { font-weight: 700; }
@media (hover: hover) {
  .site-nav a:hover { background: var(--pop-yellow-soft); }
}

/* eyebrow: chunkier with dot */
.eyebrow { font-size: var(--text-sm); }
.eyebrow::after { width: 56px; height: 4px; border-radius: 4px; }
.band .eyebrow { color: var(--pop-yellow); }
.band .eyebrow::after { background: var(--pop-yellow); }

/* stats: tinted pop cards */
.stats { border: none; gap: 16px; }
.stat {
  border: 2px solid var(--pop-ink);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: 5px 5px 0 rgb(23 38 63 / 0.9);
}
.stat:nth-child(1) { background: var(--coral-100); }
.stat:nth-child(2) { background: var(--pop-yellow-soft); }
.stat:nth-child(3) { background: var(--pop-teal-soft); }
.stat + .stat { border-top: 2px solid var(--pop-ink); }
.stat-num { font-weight: 800; }
.stat:nth-child(1) .stat-num { color: var(--coral-600); }
.stat:nth-child(2) .stat-num { color: #9a6b00; }
.stat:nth-child(3) .stat-num { color: #00796b; }
@media (min-width: 768px) {
  .stat + .stat { border-left: 2px solid var(--pop-ink); padding-left: 22px; }
}

/* pillar cards: sticker frame */
.pillar-card { border: 2px solid var(--pop-ink); }
@media (hover: hover) {
  .pillar-card:hover { transform: translate(-2px, -4px) rotate(-0.4deg); }
  .pillars .pillar-card:nth-child(2):hover { transform: translate(-2px, -4px) rotate(0.4deg); }
}
.pillar-body h3 { font-weight: 800; font-size: 1.5rem; }

/* dark band: wave dividers + colored timeline */
.band { position: relative; }
.band::before, .band::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L0 18 Q 15 4, 30 16 T 60 16 T 90 16 T 120 16 L120 30 Z' fill='%23122036'/%3E%3C/svg%3E") bottom left / 120px 30px repeat-x;
}
.band::before { top: -29px; }
.band::after { bottom: -29px; transform: scaleY(-1); }
.tl-card { border: 2px solid rgb(245 239 227 / 0.35); border-radius: var(--radius-md); }
.tl-item:nth-child(1) .tl-card { border-top: 8px solid var(--pop-yellow); }
.tl-item:nth-child(2) .tl-card { border-top: 8px solid var(--pop-pink); }
.tl-item:nth-child(3) .tl-card { border-top: 8px solid var(--pop-sky); }
.tl-time {
  color: var(--pop-ink);
  background: var(--pop-yellow);
  border: 2px solid var(--pop-ink);
  border-radius: var(--radius-pill);
  padding: 4px 0;
  box-shadow: 3px 3px 0 rgb(0 0 0 / 0.45);
}
.tl-item:nth-child(2) .tl-time { background: var(--pop-pink); }
.tl-item:nth-child(3) .tl-time { background: var(--pop-sky); }
.tl-time::after { display: none; }
.tl-card h3 svg { color: var(--pop-yellow); }

/* theme category chips */
.themes .theme-cat {
  justify-self: start;
  padding: 3px 14px;
  border: 2px solid var(--pop-ink);
  border-radius: var(--radius-pill);
  box-shadow: 3px 3px 0 rgb(23 38 63 / 0.9);
  font-size: var(--text-sm);
  background: var(--pop-yellow);
  color: var(--pop-ink);
}
.themes li:nth-child(3n+2) .theme-cat { background: var(--pop-teal-soft); }
.themes li:nth-child(3n) .theme-cat { background: var(--pop-pink-soft); }
@media (min-width: 768px) {
  .themes .theme-cat { padding-top: 3px; justify-self: start; }
}

/* article parts */
.toc, .prose ul, .pr-box {
  border: 2px solid var(--pop-ink);
  box-shadow: 5px 5px 0 rgb(23 38 63 / 0.9);
}
.pr-box { background: var(--pop-yellow-soft); }
.prose h2 {
  border-bottom: none;
  background: linear-gradient(transparent 62%, var(--pop-yellow-soft) 62%);
  padding-bottom: 6px;
  font-weight: 800;
}
.prose h2 .h-num {
  background: var(--coral-500);
  color: #fff;
  border: 2px solid var(--pop-ink);
  border-radius: 50%;
  width: 1.9em; height: 1.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62em;
  box-shadow: 2px 2px 0 rgb(23 38 63 / 0.9);
}
.prose th { background: var(--coral-500); }
.prose .sources { border: 2px solid var(--pop-ink); border-radius: var(--radius-md); }
.slot { border: 2.5px dashed var(--coral-500); background: #fff3e2; border-radius: var(--radius-md); }
.article-figure, .photo-band { border: 2px solid var(--pop-ink); box-shadow: 6px 6px 0 rgb(23 38 63 / 0.9); }
.pillar-card.related-card { border: 2px solid var(--pop-ink); }

/* footer pop line */
.site-footer { border-top: 10px solid var(--pop-yellow); }

/* POP v2 fix: time pill label centering (was flush-left / clipped at radius) */
.tl-time { justify-content: center; text-align: center; padding: 6px 12px; }
