:root {
  --bg: #eef3f9;
  --bg-strong: #dde7f3;
  --paper: #ffffff;
  --ink: #1f2b3a;
  --ink-soft: #42576c;
  --accent: #1f4b7a;
  --accent-2: #1d7a6f;
  --line: #cad7e6;
  --shadow: 0 16px 40px rgba(22, 43, 68, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(31, 75, 122, 0.15), transparent 34%),
    radial-gradient(circle at 84% 22%, rgba(29, 122, 111, 0.12), transparent 35%),
    linear-gradient(180deg, #f5f8fc 0%, #e8eff7 100%);
  color: var(--ink);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }

.shell {
  width: min(100% - 2.2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(245, 248, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.hero {
  padding: clamp(3rem, 6vw, 5.8rem) 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-2);
  font-size: 0.78rem;
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", "Georgia", serif;
  line-height: 1.15;
}

h1 { font-size: clamp(2.05rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.hero p {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  max-width: 54ch;
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-card .caption {
  margin: 0;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.section { padding: 2.2rem 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(22, 43, 68, 0.1);
}

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

.card-content { padding: 1rem; }
.card h3 { font-size: 1.23rem; margin-bottom: 0.45rem; }
.card p, .meta, .prose p, .prose li { color: var(--ink-soft); }
.meta { margin: 0; font-size: 0.92rem; }

.notice {
  border-left: 4px solid var(--accent-2);
  padding: 1rem 1rem 1rem 1.1rem;
  background: rgba(29, 122, 111, 0.09);
  border-radius: 0 10px 10px 0;
}

.page-title { padding: 2.8rem 0 1.2rem; }
.article { padding: 0 0 2.8rem; }

.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.4vw, 2rem);
  box-shadow: 0 10px 25px rgba(22, 43, 68, 0.08);
}

.prose ul { margin: 0.5rem 0 0.5rem 1.2rem; }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card img { aspect-ratio: 16 / 10; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .button { width: 100%; text-align: center; }
}

body.industrialist-body {
  background: #f5efe5;
  color: #1f2633;
}

.industrialist-body .site-header {
  background: rgba(245, 239, 229, 0.92);
}

.industrialist-body .button.primary {
  background: #9f343b;
  border-color: #9f343b;
}

.industrialist-main {
  min-height: 65vh;
}

.ip-hero {
  background: #171d2f;
  color: #f7f1e7;
  padding: clamp(2.7rem, 6vw, 5.4rem) 0;
}

.ip-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.3rem, 4vw, 3rem);
  align-items: center;
}

.ip-kicker {
  margin: 0 0 0.7rem;
  color: #9f343b;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ip-hero .ip-kicker,
.ip-masthead .ip-kicker {
  color: #d7a5a1;
}

.ip-hero h1 {
  color: #fffaf1;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

.ip-hero p {
  max-width: 64ch;
  color: #d7d0c5;
}

.ip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ip-hero .button {
  border-color: #e7dfd2;
  color: #fffaf1;
}

.ip-hero-art {
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: #0f1422;
}

.ip-hero-art img {
  width: 100%;
  height: auto;
}

.ip-series-note {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid #9f343b;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 250, 241, 0.72);
}

.ip-series-note p {
  margin: 0;
  color: #415063;
}

.ip-index {
  padding: 2.2rem 0 4rem;
}

.ip-index-head {
  margin-bottom: 1rem;
}

.ip-index-head h2 {
  margin-bottom: 0;
}

.ip-paper-group {
  display: grid;
  grid-template-columns: minmax(13rem, 0.32fr) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.8rem 0;
  border-top: 1px solid rgba(31, 38, 51, 0.18);
}

.ip-group-heading h3 {
  font-size: 1.35rem;
}

.ip-group-heading p {
  margin: 0;
  color: #58677a;
}

.ip-paper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(31, 38, 51, 0.15);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf1;
}

.ip-paper-list li + li {
  border-top: 1px solid rgba(31, 38, 51, 0.12);
}

.ip-paper-row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: #1f2633;
}

.ip-paper-row:hover {
  background: rgba(159, 52, 59, 0.06);
  color: #1f2633;
}

.ip-paper-no {
  color: #9f343b;
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 700;
  text-align: right;
}

.ip-paper-row strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.12rem;
  line-height: 1.25;
}

.ip-paper-row span span {
  display: block;
  color: #58677a;
  font-size: 0.94rem;
}

.ip-paper-row em {
  display: block;
  margin-top: 0.35rem;
  color: #7a5460;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.ip-masthead {
  background: #171d2f;
  color: #f7f1e7;
}

.ip-masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.ip-masthead a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #f7f1e7;
  text-decoration: none;
  font-weight: 800;
}

.ip-masthead img {
  width: auto;
  height: 40px;
  border-radius: 6px;
}

.ip-masthead-inner > span {
  color: #d7d0c5;
  font-size: 0.86rem;
  font-weight: 700;
}

.paper-article {
  width: min(100% - 2.2rem, 790px);
  padding: 2rem 0 4rem;
}

.paper-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.7rem;
  color: #667589;
  font-size: 0.92rem;
}

.paper-breadcrumb a {
  color: #667589;
  text-decoration: none;
}

.paper-header h1 {
  color: #1f2633;
  font-size: clamp(2rem, 5vw, 3.55rem);
}

.paper-header p:last-child {
  margin: 0.8rem 0 0;
  color: #667589;
}

.paper-rule {
  height: 2px;
  margin: 1.6rem 0 2rem;
  background: linear-gradient(90deg, #9f343b, rgba(159, 52, 59, 0), rgba(31, 38, 51, 0.2));
}

.paper-prose {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.5vw, 1.13rem);
  line-height: 1.82;
  color: #273344;
}

.paper-prose p,
.paper-prose ul,
.paper-prose ol,
.paper-prose pre,
.paper-prose figure {
  margin: 0 0 1.25rem;
}

.paper-prose h2,
.paper-prose h3 {
  margin: 2.1rem 0 0.7rem;
  color: #1f2633;
}

.paper-prose h2 {
  font-size: clamp(1.42rem, 2.5vw, 2rem);
}

.paper-prose h3 {
  font-size: 1.25rem;
}

.paper-prose a {
  color: #8f2f36;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.paper-prose li + li {
  margin-top: 0.35rem;
}

.paper-prose pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid rgba(31, 38, 51, 0.15);
  border-radius: 8px;
  background: #fffaf1;
  color: #273344;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.paper-figure {
  border: 1px solid rgba(31, 38, 51, 0.15);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf1;
}

.paper-figure img {
  width: 100%;
  height: auto;
}

.paper-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(31, 38, 51, 0.18);
}

.paper-pagination a {
  display: block;
  padding: 1rem;
  border: 1px solid rgba(31, 38, 51, 0.15);
  border-radius: 8px;
  background: #fffaf1;
  color: #1f2633;
  text-decoration: none;
}

.paper-pagination a:last-child {
  text-align: right;
}

.paper-pagination a:hover {
  border-color: rgba(159, 52, 59, 0.45);
}

.paper-pagination span {
  display: block;
  color: #667589;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.paper-pagination strong {
  display: block;
  margin-top: 0.25rem;
  font-family: "Fraunces", "Georgia", serif;
  line-height: 1.25;
}

.paper-all-link {
  margin: 1.6rem 0 0;
  text-align: center;
}

@media (max-width: 860px) {
  .ip-hero-grid,
  .ip-paper-group {
    grid-template-columns: 1fr;
  }

  .ip-paper-row {
    grid-template-columns: 4.3rem 1fr;
  }
}

@media (max-width: 620px) {
  .ip-masthead-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .ip-masthead a span {
    display: none;
  }

  .paper-pagination {
    grid-template-columns: 1fr;
  }

  .paper-pagination a,
  .paper-pagination a:last-child {
    text-align: left;
  }
}
