: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: 760px;
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 5.3vw, 4.8rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0.025em;
}

.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:
    radial-gradient(circle at 95% 5%, rgba(216, 181, 142, 0.22), transparent 33%),
    linear-gradient(135deg, rgba(16, 40, 59, 0.99), rgba(29, 64, 85, 0.93)),
    var(--navy);
  text-decoration: none;
}

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

.featured-main > * {
  position: relative;
  z-index: 1;
}

.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: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.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));
}

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

.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(5, 1fr);
  gap: 1rem;
}

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.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: linear-gradient(155deg, #fffaf3, rgba(251, 250, 246, 0.86)); }
.category-card.category-institutions { background: linear-gradient(155deg, #f1f8f5, rgba(251, 250, 246, 0.86)); }
.category-card.category-happiness { background: linear-gradient(155deg, #fff3ef, rgba(251, 250, 246, 0.86)); }
.category-card.category-relations { background: linear-gradient(155deg, #faf3f7, rgba(251, 250, 246, 0.86)); }
.category-card.category-research { background: linear-gradient(155deg, #f2f4f8, rgba(251, 250, 246, 0.86)); }

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

.category-card h3 {
  margin: 2rem 0 0.35rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.05rem;
  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: 320px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.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 {
  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;
}

.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-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-layout {
  width: min(calc(100% - 3rem), 1120px);
  margin: 0 auto;
  padding-block: 4.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-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-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,
.admin-login input,
.admin-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: white;
}

.form-field input,
.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 input:focus,
.form-field textarea: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;
}

.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(3, 1fr);
  }

  .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;
  }

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

  .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: 150px;
  }

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

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

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

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

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

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

  .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;
  }
}

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

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