:root {
  --paper: #f4f1e9;
  --paper-deep: #e9e4d8;
  --surface: #fbfaf6;
  --ink: #202a33;
  --ink-soft: #5e6569;
  --navy: #18354c;
  --navy-deep: #10283b;
  --copper: #a36a38;
  --copper-soft: #d8b58e;
  --line: #d8d3c7;
  --shadow: 0 18px 50px rgba(24, 53, 76, 0.08);
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --sans: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.74), transparent 30rem),
    linear-gradient(180deg, var(--paper) 0%, #f7f5ef 45%, var(--paper) 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  color: white;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 3rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(32, 42, 51, 0.1);
  background: rgba(244, 241, 233, 0.93);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-tagline {
  margin-top: 0.28rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.45rem;
  height: 1px;
  background: var(--copper);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 24, 37, 0.97) 0%, rgba(12, 33, 49, 0.91) 43%, rgba(12, 33, 49, 0.46) 70%, rgba(12, 33, 49, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 18, 28, 0.05), rgba(5, 18, 28, 0.5)),
    url("./hero-study.webp") center right / cover no-repeat;
  box-shadow: inset 0 -80px 100px rgba(5, 18, 28, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  left: max(1.5rem, calc((100vw - var(--content)) / 2));
  bottom: 0;
  width: 1px;
  height: 82px;
  background: linear-gradient(var(--copper-soft), transparent);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4.7vw, 4.25rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0.025em;
}

.hero-title-line {
  display: block;
}

.hero-title-phrase {
  white-space: nowrap;
}

.hero h1 em {
  color: #edc18d;
  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 2.2;
}

.hero-edition {
  position: absolute;
  right: 0;
  bottom: -5rem;
  display: flex;
  gap: 1.1rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.56);
  font-family: Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-edition::before {
  width: 56px;
  height: 1px;
  background: var(--copper-soft);
  content: "";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.3rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button.primary,
.button:hover {
  color: white;
  background: var(--navy);
}

.hero .button {
  border-color: rgba(255, 255, 255, 0.58);
  color: white;
  background: rgba(10, 30, 45, 0.18);
  backdrop-filter: blur(8px);
}

.hero .button.primary,
.hero .button:hover {
  border-color: #c88b51;
  color: #142c3f;
  background: #e8bb84;
}

.button:hover {
  transform: translateY(-2px);
}

.section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.section.compact {
  padding-block: 4.5rem;
}

.section-tinted {
  border-block: 1px solid var(--line);
  background: rgba(233, 228, 216, 0.48);
}

.section-header {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3.2rem;
}

.section-kicker {
  margin: 0;
  color: var(--copper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.section-title::after {
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--copper), var(--copper-soft));
  content: "";
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1.4rem;
}

.featured-main,
.featured-side-card,
.article-card,
.category-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.86);
  box-shadow: var(--shadow);
}

.featured-main {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
  color: white;
  background: var(--navy);
  text-decoration: none;
}

.featured-main::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 90% 8%, rgba(216, 181, 142, 0.12), transparent 35%),
    linear-gradient(90deg, rgba(8, 27, 41, 0.98) 0%, rgba(12, 34, 50, 0.89) 52%, rgba(15, 42, 60, 0.58) 100%),
    linear-gradient(0deg, rgba(8, 25, 38, 0.76), transparent 68%);
  content: "";
}

.featured-main::after {
  content: "01";
  position: absolute;
  top: -3.5rem;
  right: 1rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.045);
  font-family: Georgia, serif;
  font-size: 16rem;
  line-height: 1;
}

.featured-main-visual {
  position: absolute;
  inset: 0;
}

.featured-main-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
}

.featured-main-copy {
  position: relative;
  z-index: 3;
}

.card-category {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--copper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.featured-main .card-category {
  color: var(--copper-soft);
}

.card-category::before {
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.featured-main h3 {
  max-width: 690px;
  margin: 1rem 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.7vw, 3rem);
  font-weight: 500;
  line-height: 1.55;
}

.featured-main p {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.featured-main .card-meta {
  color: rgba(255, 255, 255, 0.58);
}

.featured-side {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 1.4rem;
}

.featured-side-card {
  display: grid;
  grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr);
  padding: 0;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.featured-side-visual,
.article-card-visual {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

.featured-side-visual {
  min-height: 190px;
}

.featured-side-visual::after,
.article-card-visual::after,
.article-lead-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(9, 27, 40, 0.18));
  content: "";
  pointer-events: none;
}

.featured-side-visual img,
.article-card-visual img,
.article-lead-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
  transform: scale(1.002);
  transition: filter 240ms ease, transform 320ms ease;
}

.featured-side-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
}

.featured-side-card::before,
.article-card::before,
.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent, var(--copper));
}

.category-card::before {
  z-index: 2;
}

.featured-side-card:hover,
.article-card:hover,
.category-card:hover {
  border-color: var(--copper-soft);
  transform: translateY(-3px);
}

.featured-side-card:hover img,
.article-card:hover img {
  filter: saturate(0.96) contrast(1.05);
  transform: scale(1.035);
}

.featured-side-card h3,
.article-card h2,
.article-card h3 {
  margin: 0.8rem 0;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.65;
}

.featured-side-card h3 {
  font-size: 1.18rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.2rem;
}

.category-card {
  grid-column: span 2;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.category-card:nth-child(n + 4) {
  grid-column: span 3;
}

.category-social { --accent: #a96a3d; }
.category-institutions { --accent: #47766e; }
.category-happiness { --accent: #b65745; }
.category-relations { --accent: #8b657c; }
.category-research { --accent: #65708a; }

.category-card.category-social { background: #fffaf3; }
.category-card.category-institutions { background: #f1f8f5; }
.category-card.category-happiness { background: #fff3ef; }
.category-card.category-relations { background: #faf3f7; }
.category-card.category-research { background: #f2f4f8; }

.category-visual {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy-deep);
}

.category-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(9, 27, 40, 0.22));
  content: "";
  pointer-events: none;
}

.category-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
  transform: scale(1.002);
  transition: filter 240ms ease, transform 320ms ease;
}

.category-card:hover .category-visual img {
  filter: saturate(1) contrast(1.05);
  transform: scale(1.035);
}

.category-card-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem 1.4rem;
}

.category-number {
  color: var(--copper);
  font-family: Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.category-card h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
}

.category-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.7;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.article-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.article-card-visual {
  aspect-ratio: 3 / 2;
}

.article-card-content {
  min-height: 320px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.7rem;
}

.article-card .card-category,
.featured-side-card .card-category,
.category-card .category-number {
  color: var(--accent, var(--copper));
}

.article-card h2,
.article-card h3 {
  font-size: 1.2rem;
}

.article-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.85;
}

.article-card .card-meta {
  margin-top: auto;
  padding-top: 1.6rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.article-card .article-tags {
  margin-top: 1.25rem;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--sans);
  font-size: 0.65rem;
  line-height: 1.4;
  text-decoration: none;
}

.article-tag:hover {
  border-color: var(--copper);
  color: var(--navy);
  background: white;
}

.article-card.planned {
  min-height: 320px;
  padding: 2rem;
  box-shadow: none;
  background: transparent;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 1rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.statement {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.statement-mark {
  margin: 0;
  color: rgba(163, 106, 56, 0.2);
  font-family: Georgia, serif;
  font-size: 10rem;
  line-height: 0.8;
}

.statement-copy {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 2;
}

.statement-note {
  max-width: 620px;
  margin: 1.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.page-hero {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 181, 142, 0.22), transparent 20rem),
    linear-gradient(135deg, var(--navy-deep), #204b66);
}

.page-hero h1 {
  max-width: 850px;
  margin: 0.8rem 0 1.3rem;
  color: white;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  font-weight: 500;
  line-height: 1.45;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 2.1;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-panel {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.66);
}

.filter-group > p {
  margin: 0 0 0.65rem;
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.tag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-filter-more {
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.tag-filter-more summary {
  width: fit-content;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.tag-filter-more summary:hover {
  color: var(--copper-dark);
}

.tag-filter-bar-secondary {
  margin-top: 0.8rem;
}

.filter-button {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.74rem;
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--navy);
  color: white;
  background: var(--navy);
}

.tag-filter-button {
  padding: 0.4rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  background: white;
  font-size: 0.68rem;
  cursor: pointer;
}

.tag-filter-button:hover,
.tag-filter-button[aria-pressed="true"] {
  border-color: var(--copper);
  color: white;
  background: var(--copper);
}

.tag-filter-button span {
  margin-left: 0.15rem;
  opacity: 0.68;
  font-size: 0.62rem;
}

.filter-result {
  min-height: 1.5rem;
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0;
  height: 3px;
  background: var(--copper);
}

.article-header {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
  color: white;
  background:
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--accent, var(--copper)) 45%, transparent), transparent 21rem),
    linear-gradient(135deg, var(--navy-deep), #204b66);
}

.article-header-inner {
  width: min(calc(100% - 3rem), 900px);
  margin-inline: auto;
}

.article-header h1 {
  margin: 1rem 0 1.4rem;
  color: white;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.article-title-line {
  display: block;
}

.article-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 2.1;
}

.article-header .card-category {
  color: #edc18d;
}

.article-header .card-meta {
  color: rgba(255, 255, 255, 0.55);
}

.article-header .article-tags {
  margin-top: 1.5rem;
}

.article-header .article-tag {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
}

.article-header .article-tag:hover {
  border-color: #edc18d;
  color: var(--navy-deep);
  background: #edc18d;
}

.article-series-label {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-lead-visual {
  position: relative;
  width: min(calc(100% - 3rem), 980px);
  aspect-ratio: 3 / 2;
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-deep);
  box-shadow: 0 22px 52px rgba(24, 53, 76, 0.12);
}

.article-layout {
  width: min(calc(100% - 3rem), 1120px);
  margin: 0 auto;
  padding-block: 3.5rem 7rem;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(220px, 1fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: start;
}

.article-body {
  min-width: 0;
  color: #2d353b;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 2.15;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-summary {
  margin: 0 0 3rem;
  padding: 1.45rem 1.7rem 1.35rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  color: var(--ink);
  background: rgba(251, 250, 246, 0.86);
  box-shadow: 0 12px 32px rgba(24, 53, 76, 0.06);
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.8;
}

.article-summary-title {
  margin: 0 0 0.8rem;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.article-summary ol {
  margin: 0;
  padding-left: 1.45rem;
}

.article-summary li {
  margin: 0.4rem 0;
  padding-left: 0.3rem;
}

.article-summary li::marker {
  color: var(--copper);
  font-weight: 700;
}

.series-guide {
  margin: 0 0 3.2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--navy);
  background: rgba(233, 228, 216, 0.42);
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.65;
}

.series-guide > p {
  margin: 0 0 0.8rem;
  color: var(--navy-deep);
  font-weight: 700;
}

.series-guide > p span {
  margin-right: 0.7rem;
  color: var(--copper);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.series-guide ol {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.series-guide li,
.series-guide a {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.35rem;
  align-items: baseline;
}

.series-guide li[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

.series-guide a {
  color: var(--ink-soft);
  text-decoration: none;
}

.series-guide a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.series-guide li > span,
.series-guide a > span {
  color: var(--copper);
  font-family: Georgia, serif;
}

.series-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 4rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}

.series-pagination a {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--surface);
  text-decoration: none;
}

.series-pagination a:hover {
  border-color: var(--copper-soft);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.series-pagination span {
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.series-pagination strong {
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
}

.series-next {
  grid-column: 2;
  text-align: right;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--navy-deep);
  font-family: var(--serif);
  line-height: 1.65;
  scroll-margin-top: 110px;
}

.article-body h2 {
  margin: 4.5rem 0 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 1.7rem;
  font-weight: 600;
}

.article-body h3 {
  margin: 2.8rem 0 1rem;
  font-size: 1.25rem;
}

.article-body p {
  margin: 0 0 1.6rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.8rem;
  padding-left: 1.4rem;
}

.article-body li {
  margin: 0.45rem 0;
  padding-left: 0.25rem;
}

.article-table-wrap {
  max-width: 100%;
  margin: 2.4rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(24, 53, 76, 0.05);
}

.article-table-wrap:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.article-body table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.65;
}

.article-body th,
.article-body td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.article-body th {
  color: white;
  background: var(--navy);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.article-body th:first-child,
.article-body td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
}

.article-body th:first-child {
  background: var(--navy-deep);
}

.article-body td:first-child {
  color: var(--navy-deep);
  background: #fbfaf6;
  font-weight: 700;
}

.article-body tbody tr:last-child td {
  border-bottom: 0;
}

.article-body tbody tr:nth-child(even) td:not(:first-child) {
  background: rgba(233, 228, 216, 0.25);
}

.data-chart {
  margin: 3rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  color: var(--ink);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 18px 42px rgba(24, 53, 76, 0.07);
  font-family: var(--sans);
  line-height: 1.6;
}

.data-chart-heading {
  margin-bottom: 1.6rem;
}

.data-chart-kicker {
  margin: 0 0 0.35rem !important;
  color: var(--copper);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.data-chart-heading h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.55;
}

.data-chart-heading > p:last-child:not(.data-chart-kicker) {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.75;
}

.data-chart-category + .data-chart-category {
  margin-top: 1.3rem;
}

.data-chart-category > p {
  margin: 0 0 0.45rem;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 700;
}

.data-chart-bars {
  display: grid;
  gap: 0.42rem;
}

.data-chart-bar-row {
  display: grid;
  grid-template-columns: minmax(7.2rem, 0.8fr) minmax(9rem, 2fr) 4.6rem;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.72rem;
}

.data-chart-series {
  min-width: 0;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-swatch {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.42rem;
  border-radius: 2px;
  background: var(--navy);
}

.chart-swatch-2 {
  background: var(--copper);
}

.chart-swatch-3 {
  background: #6f846d;
}

.data-chart-progress {
  width: 100%;
  height: 0.78rem;
  border: 0;
  border-radius: 99px;
  background: var(--paper-deep);
  overflow: hidden;
  appearance: none;
}

.data-chart-progress::-webkit-progress-bar {
  border-radius: 99px;
  background: var(--paper-deep);
}

.data-chart-progress::-webkit-progress-value {
  border-radius: 99px;
  background: var(--navy);
}

.data-chart-progress::-moz-progress-bar {
  border-radius: 99px;
  background: var(--navy);
}

.chart-progress-2::-webkit-progress-value {
  background: var(--copper);
}

.chart-progress-2::-moz-progress-bar {
  background: var(--copper);
}

.chart-progress-3::-webkit-progress-value {
  background: #6f846d;
}

.chart-progress-3::-moz-progress-bar {
  background: #6f846d;
}

.data-chart-bar-row strong {
  color: var(--navy-deep);
  font-size: 0.78rem;
  text-align: right;
}

.data-chart-line-plot {
  max-width: 100%;
  overflow-x: auto;
}

.data-chart-line-plot svg {
  display: block;
  width: 100%;
  min-width: 580px;
  height: auto;
}

.chart-grid-line {
  stroke: #ddd8cc;
  stroke-width: 1;
}

.chart-axis-label,
.chart-unit-label,
.chart-value-label {
  fill: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
}

.chart-unit-label {
  fill: var(--navy-deep);
  font-size: 12px;
  font-weight: 700;
}

.chart-value-label {
  fill: var(--navy-deep);
  font-size: 12px;
  font-weight: 700;
}

.chart-line {
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.chart-line-2 {
  stroke: var(--copper);
}

.chart-line-3 {
  stroke: #6f846d;
}

.chart-point {
  fill: var(--surface);
  stroke: var(--navy);
  stroke-width: 4;
}

.chart-point-2 {
  stroke: var(--copper);
}

.chart-point-3 {
  stroke: #6f846d;
}

.data-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.data-chart-table {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.data-chart-table summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 700;
}

.data-chart-table .article-table-wrap {
  margin: 0.8rem 0 0;
}

.data-chart-table table {
  min-width: 460px;
}

.data-chart figcaption {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.7;
}

.data-chart figcaption strong {
  color: var(--navy-deep);
}

.references-heading {
  margin-top: 5rem !important;
  border-top-color: var(--copper-soft) !important;
}

.references-heading + ul {
  margin-top: 0;
  padding: 1.35rem 1.5rem 1.35rem 2.8rem;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.78);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.75;
}

.references-heading + ul li {
  margin: 0.65rem 0;
}

.article-body blockquote {
  margin: 2.5rem 0;
  padding: 1.4rem 1.7rem;
  border-left: 3px solid var(--copper);
  color: var(--navy);
  background: rgba(233, 228, 216, 0.56);
  font-size: 1.08em;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body hr {
  width: 90px;
  margin: 3.5rem auto;
  border: 0;
  border-top: 1px solid var(--copper-soft);
}

.article-body a {
  color: var(--navy);
}

.article-aside {
  position: sticky;
  top: 112px;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.toc-title {
  margin: 0 0 1rem;
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0.55rem 0;
}

.toc li.level-2 {
  padding-left: 0.8rem;
}

.toc a {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.55;
  text-decoration: none;
}

.toc a:hover {
  color: var(--copper);
}

.article-note {
  margin-bottom: 2.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(251, 250, 246, 0.68);
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.8;
}

.share-row {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.copy-button {
  border: 0;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font-size: 0.75rem;
  cursor: pointer;
}

.comments-panel {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 2px solid var(--navy);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.85;
}

.comments-heading h2 {
  margin: 0.35rem 0 0.8rem;
  padding: 0;
  border: 0;
  font-size: 1.75rem;
}

.comments-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.comments-kicker {
  margin: 0;
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.comments-list {
  margin-top: 2.5rem;
}

.comments-list-heading,
.admin-toolbar,
.comment-item header,
.admin-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.comments-list-heading h3,
.comment-form h3,
.admin-comments h2,
.admin-login h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.comments-list-heading span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.comments-message {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.comments-items {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.comment-item {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.74);
}

.comment-item header {
  justify-content: flex-start;
}

.comment-item strong {
  color: var(--navy);
  font-size: 0.85rem;
}

.comment-item time {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.comment-item p {
  margin: 0.7rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-form {
  margin-top: 2.8rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-field {
  margin-top: 1.4rem;
}

.form-field label,
.admin-toolbar label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-field label span {
  margin-left: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 400;
}

.form-field input,
.form-field textarea,
.form-field select,
.admin-login input,
.admin-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: white;
}

.form-field input,
.form-field select,
.admin-login input,
.admin-toolbar select {
  min-height: 46px;
  padding: 0.55rem 0.75rem;
}

.form-field textarea {
  display: block;
  min-height: 170px;
  padding: 0.75rem;
  line-height: 1.8;
  resize: vertical;
}

.form-field select {
  min-height: 46px;
  padding: 0.55rem 2.4rem 0.55rem 0.75rem;
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.admin-login input:focus,
.admin-toolbar select:focus {
  border-color: var(--copper);
  outline: 2px solid rgba(163, 106, 56, 0.18);
  outline-offset: 1px;
}

.character-count {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  text-align: right;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comment-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.comment-consent input {
  flex: 0 0 auto;
  margin-top: 0.35rem;
}

.turnstile-slot {
  min-height: 65px;
  margin-top: 1.4rem;
}

.comment-submit {
  min-width: 150px;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--navy);
  color: white;
  background: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.comment-submit:disabled,
.button:disabled {
  border-color: var(--line);
  color: var(--ink-soft);
  background: var(--paper-deep);
  cursor: not-allowed;
}

.comment-form-note,
.form-status {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.form-status[data-kind="error"] {
  color: #9b382f;
}

.form-status[data-kind="success"] {
  color: #2f685d;
}

.admin-page {
  width: min(calc(100% - 3rem), 900px);
  margin-inline: auto;
  padding-block: 4rem 7rem;
}

.admin-login,
.admin-comments {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-login p {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.admin-login-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
}

.admin-comments {
  margin-top: 1.5rem;
}

.admin-toolbar {
  align-items: end;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.admin-toolbar label {
  margin: 0;
}

.admin-toolbar select {
  width: auto;
  min-width: 130px;
  margin-left: 0.5rem;
}

.admin-comment-card {
  margin-top: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: white;
}

.admin-comment-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.admin-comment-meta strong {
  width: 100%;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.admin-comment-body {
  margin: 1rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.admin-switch {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.admin-switch a {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-switch a[aria-current="page"] {
  border-color: var(--navy);
  color: white;
  background: var(--navy);
}

.admin-inquiry-contact {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.admin-inquiry-contact a {
  color: var(--navy);
}

.writing-page {
  width: min(calc(100% - 3rem), 980px);
  margin-inline: auto;
  padding-block: 5rem 7rem;
}

.writing-page > section + section {
  margin-top: 5.5rem;
}

.writing-page h2 {
  margin: 0.45rem 0 1.4rem;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.55;
}

.writing-intro {
  max-width: 800px;
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 2.15;
}

.writing-lead {
  margin-top: 0;
  color: var(--navy-deep);
  font-size: clamp(1.18rem, 2.3vw, 1.45rem);
  line-height: 2;
}

.writing-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.writing-scope-grid article {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  background: var(--surface);
}

.writing-scope-grid h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.writing-scope-grid p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.85;
}

.writing-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 2rem;
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 2.8rem;
  border-block: 1px solid var(--line);
  color: var(--navy-deep);
  background: rgba(233, 228, 216, 0.28);
}

.writing-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.writing-sample {
  display: block;
  padding: 1.45rem;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.82);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.writing-sample:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.writing-sample:hover {
  border-color: var(--copper-soft);
  transform: translateY(-2px);
}

.writing-sample > span {
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.writing-sample strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

.writing-sample p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.8;
}

.writing-conditions {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  background: rgba(233, 228, 216, 0.36);
}

.writing-conditions ul {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.writing-conditions li + li {
  margin-top: 0.55rem;
}

.inquiry-section {
  padding-top: 4rem;
  border-top: 2px solid var(--navy);
}

.inquiry-heading > p:last-child {
  color: var(--ink-soft);
}

.inquiry-form {
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.writing-invitation {
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(233, 228, 216, 0.36);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.9;
}

.writing-invitation h2 {
  margin: 0.45rem 0 0.9rem;
  font-family: var(--serif);
}

.writing-invitation .button {
  margin-top: 0.7rem;
}

.prose-page {
  width: min(calc(100% - 3rem), 760px);
  margin-inline: auto;
  padding-block: 5rem 7rem;
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 2.15;
}

.prose-page h2 {
  margin: 3.8rem 0 1.2rem;
  color: var(--navy-deep);
  font-size: 1.6rem;
}

.profile-box {
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.profile-box h2 {
  margin-top: 0;
}

.site-footer {
  padding-block: 3.2rem;
  color: rgba(255, 255, 255, 0.68);
  background: var(--navy-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.footer-title {
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.footer-note {
  max-width: 560px;
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.72rem;
}

.footer-links a {
  text-decoration: none;
}

.copyright {
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.65rem;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(251, 250, 246, 0.94);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card,
  .category-card:nth-child(n + 4) {
    grid-column: auto;
  }

  .category-card:last-child {
    grid-column: 1 / -1;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-aside {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    line-height: 1.8;
  }

  .article-title-line {
    display: inline;
  }

  .article-title-line:first-child::after {
    content: " ";
  }

  .container,
  .article-layout,
  .article-header-inner,
  .prose-page,
  .writing-page {
    width: min(calc(100% - 2rem), var(--content));
  }

  .article-lead-visual {
    width: min(calc(100% - 2rem), 980px);
    margin-top: 1rem;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-tagline {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 660px;
    background:
      linear-gradient(180deg, rgba(7, 22, 34, 0.78) 0%, rgba(7, 22, 34, 0.87) 56%, rgba(7, 22, 34, 0.94) 100%),
      url("./hero-study.webp") 64% center / cover no-repeat;
  }

  .hero::before {
    left: 1rem;
    bottom: 0;
    width: 1px;
    height: 58px;
  }

  .hero::after {
    inset: 0;
  }

  .hero-inner {
    padding-block: 6rem 8rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.5rem);
  }

  .hero-lead {
    max-width: 100%;
    font-size: 0.94rem;
  }

  .hero-edition {
    right: auto;
    left: 0;
    bottom: -5.5rem;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 410px;
    padding: 2rem;
  }

  .featured-side {
    grid-template-rows: none;
  }

  .featured-side-card {
    min-height: 220px;
  }

  .category-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 0;
    grid-column: auto;
  }

  .category-card:last-child {
    grid-column: auto;
  }

  .article-card {
    min-height: 280px;
  }

  .statement {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .statement-mark {
    font-size: 6rem;
  }

  .article-layout {
    padding-block: 2.6rem 5rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 2;
  }

  .article-body h2 {
    margin-top: 3.5rem;
    font-size: 1.45rem;
  }

  .data-chart {
    margin-inline: -0.25rem;
    padding: 1.1rem;
  }

  .data-chart-bar-row {
    grid-template-columns: minmax(5.6rem, 0.75fr) minmax(6.5rem, 1.5fr) 4rem;
    gap: 0.45rem;
  }

  .data-chart-series {
    font-size: 0.66rem;
  }

  .data-chart-line-plot {
    margin-right: -1.1rem;
    padding-right: 1.1rem;
  }

  .article-summary {
    margin-bottom: 2.4rem;
    padding: 1.2rem 1.25rem 1.1rem;
    font-size: 0.9rem;
  }

  .series-guide {
    padding: 1.1rem 1.2rem;
  }

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

  .series-next {
    grid-column: 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .comments-panel {
    margin-top: 4rem;
    padding-top: 2.4rem;
  }

  .comment-form,
  .admin-login,
  .admin-comments {
    padding: 1.25rem;
  }

  .admin-page {
    width: min(calc(100% - 2rem), 900px);
  }

  .admin-login-row {
    grid-template-columns: 1fr;
  }

  .admin-login-row .button {
    width: 100%;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .writing-page {
    padding-block: 3.5rem 5rem;
  }

  .writing-page > section + section {
    margin-top: 4rem;
  }

  .writing-scope-grid,
  .writing-samples,
  .writing-topic-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .writing-sample:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .writing-topic-list {
    padding-left: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
