:root {
  --bg: #f5efe5;
  --bg-soft: #fbf7ef;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdf8;
  --surface-dark: #101826;
  --text: #101826;
  --text-soft: #5a6673;
  --accent: #0b6671;
  --accent-alt: #c79a45;
  --accent-soft: #6e7f45;
  --border: rgba(16, 24, 38, 0.12);
  --border-strong: rgba(16, 24, 38, 0.2);
  --shadow: 0 18px 44px rgba(16, 24, 38, 0.12);
  --shadow-strong: 0 28px 70px rgba(16, 24, 38, 0.18);
  --shadow-soft: 0 12px 30px rgba(16, 24, 38, 0.08);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1280px;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 102, 113, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(199, 154, 69, 0.1), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(110, 127, 69, 0.08), transparent 34%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 32%, #eee4d4 100%);
  position: relative;
  isolation: isolate;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.site-body::before,
body.site-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.site-body::before {
  z-index: -2;
  background-image:
    radial-gradient(rgba(16, 24, 38, 0.05) 0.75px, transparent 0.75px),
    radial-gradient(rgba(16, 24, 38, 0.03) 1px, transparent 1px);
  background-size: 28px 28px, 72px 72px;
  background-position: 0 0, 10px 18px;
  opacity: 0.7;
}

body.site-body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at center bottom, rgba(16, 24, 38, 0.08), transparent 38%);
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition:
    color var(--ease),
    opacity var(--ease),
    transform var(--ease),
    background-color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}

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

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

button {
  cursor: pointer;
}

::selection {
  background: rgba(11, 102, 113, 0.18);
  color: var(--text);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-220%);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 100;
}

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

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

.eyebrow,
.section-label,
.rail-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before,
.section-label::before,
.rail-label::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.35rem rgba(15, 106, 116, 0.08);
}

.lead {
  font-size: clamp(1.05rem, 0.9vw + 0.95rem, 1.28rem);
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 64ch;
}

.muted {
  color: var(--text-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  color: #fbf9f4;
  background: linear-gradient(180deg, #173542 0%, #101826 100%);
  box-shadow: var(--shadow-soft);
}

.button-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 102, 113, 0.08);
  color: var(--text);
  border: 1px solid rgba(11, 102, 113, 0.12);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.chip:hover {
  color: var(--accent);
  border-color: rgba(15, 106, 116, 0.2);
  transform: translateY(-1px);
}

.chip--ghost {
  background: rgba(255, 255, 255, 0.62);
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(11, 102, 113, 0.06), transparent 24%),
    radial-gradient(circle at 90% 20%, rgba(199, 154, 69, 0.07), transparent 28%);
  z-index: -3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.96), rgba(251, 247, 239, 0.82));
  border-bottom: 1px solid rgba(16, 24, 38, 0.08);
}

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

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-brand img {
  width: min(278px, 56vw);
  height: auto;
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0.1rem;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-header__rail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0 0 1.05rem;
}

.site-header__rail-copy p {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.site-header__rail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-end;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-header__rail-meta strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
}

.site-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.site-search input {
  min-width: 220px;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.site-search input::placeholder {
  color: rgba(84, 97, 111, 0.8);
}

.site-search button {
  min-height: 2.95rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-dark);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.site-header__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-bottom: 0.95rem;
}

.site-main {
  padding-bottom: 4rem;
}

.home-hero,
.page-section,
.archive,
.article,
.page {
  position: relative;
}

.home-hero {
  padding: 2rem 0 1rem;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

.home-hero__copy,
.home-hero__feature,
.page-hero__copy,
.page-hero__panel,
.article-hero__copy,
.article-hero__media {
  animation: rise 700ms var(--ease) both;
}

.home-hero__copy h1,
.page-hero h1,
.archive-hero h1,
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0.2rem 0 0.9rem;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.hero-badges span {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.home-hero__feature .story-card {
  height: 100%;
}

.hero-figure,
.page-hero__panel,
.article-hero__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(11, 102, 113, 0.12), rgba(199, 154, 69, 0.12));
  box-shadow: var(--shadow-strong);
}

.hero-figure img,
.page-hero__panel img,
.article-hero__media img,
.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-section {
  padding: 1.5rem 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.74rem, 1.2vw + 1.4rem, 2.9rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0.2rem 0 0;
}

.section-heading a {
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.section-grid,
.topic-strip__grid,
.story-grid,
.link-grid {
  display: grid;
  gap: 1rem;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-strip__grid,
.story-grid,
.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid--related {
  grid-template-columns: 1fr;
}

.section-card,
.fact-card,
.topic-card,
.story-card,
.link-card,
.prose-card,
.sticky-panel,
.empty-state,
.archive-intro {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.section-card {
  border-radius: 22px;
  padding: 1rem 1.05rem 1.1rem;
}

.section-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 0.55rem;
}

.section-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

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

.fact-card {
  border-radius: 20px;
  padding: 1rem 1.05rem 1.1rem;
}

.fact-card dt {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.fact-card dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.55;
}

.topic-card {
  border-radius: 24px;
  overflow: hidden;
}

.topic-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 100%;
  padding: 1.05rem 1.05rem 1.1rem;
  text-decoration: none;
  background:
    radial-gradient(circle at top right, rgba(11, 102, 113, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.82);
}

.topic-card__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.topic-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.topic-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
}

.story-card__media {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(11, 102, 113, 0.08), rgba(199, 154, 69, 0.1));
}

.story-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.05rem 1.05rem 1.1rem;
}

.story-card__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.story-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1vw + 1.08rem, 1.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.story-card__title a {
  text-decoration: none;
}

.story-card__excerpt {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.story-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.story-card__more {
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.story-card--hero {
  min-height: 100%;
}

.story-card--hero .story-card__body {
  padding: 1.15rem 1.15rem 1.2rem;
}

.story-card--hero .story-card__title {
  font-size: clamp(1.45rem, 1.4vw + 1.15rem, 2.1rem);
}

.story-card--hero .story-card__excerpt {
  font-size: 1.02rem;
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.05rem 1.1rem;
  border-radius: 22px;
  text-decoration: none;
}

.link-card strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.link-card span {
  color: var(--text-soft);
  line-height: 1.6;
}

.page {
  padding: 1.4rem 0 2rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
  align-items: stretch;
  padding: 1.2rem 0 1rem;
}

.page-hero__copy,
.page-hero__panel,
.archive-hero,
.article-hero {
  animation: rise 700ms var(--ease) both;
}

.page-hero__copy h1 {
  max-width: 12ch;
}

.page-stack {
  padding-bottom: 0.5rem;
}

.page-content {
  padding-top: 0.3rem;
}

.page-listing {
  padding-top: 1.1rem;
}

.archive {
  padding: 1.8rem 0 3rem;
}

.archive-hero {
  max-width: 60rem;
  margin-bottom: 1.4rem;
}

.archive-hero h1 {
  font-size: clamp(2.55rem, 4.2vw, 4.9rem);
}

.archive-intro {
  border-radius: 24px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.pagination__pages {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.pagination__page,
.pagination__current,
.pagination__link {
  min-width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  text-decoration: none;
}

.pagination__current {
  color: #fff;
  background: var(--surface-dark);
  border-color: transparent;
}

.pagination__link--disabled {
  opacity: 0.55;
}

.article {
  padding: 1.8rem 0 3rem;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 1.2rem;
  align-items: stretch;
}

.article-hero__media img {
  min-height: 100%;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.05rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 1.2rem;
  align-items: start;
  margin-top: 0.25rem;
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sticky-panel {
  position: sticky;
  top: 8.5rem;
  border-radius: 24px;
  padding: 1rem;
}

.sticky-panel--soft {
  background:
    radial-gradient(circle at top right, rgba(15, 106, 116, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.76);
}

.chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-grid {
  display: grid;
  gap: 0.9rem;
}

.prose {
  color: var(--text);
  line-height: 1.82;
  font-size: 1.03rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 1.8rem 0 0.7rem;
}

.prose h2 {
  font-size: clamp(1.55rem, 1.1vw + 1.3rem, 2.3rem);
}

.prose h3 {
  font-size: clamp(1.18rem, 0.8vw + 1rem, 1.6rem);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

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

.prose blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: rgba(11, 102, 113, 0.08);
  border-radius: 0 18px 18px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  display: block;
  overflow: auto;
}

.prose th,
.prose td {
  text-align: left;
  border: 1px solid var(--border);
  padding: 0.7rem 0.8rem;
  vertical-align: top;
}

.prose img,
.prose figure {
  margin: 1.2rem 0;
  border-radius: 20px;
  overflow: hidden;
}

.prose figcaption {
  margin-top: 0.4rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.prose a {
  color: var(--accent);
  text-decoration-thickness: 0.09em;
}

.prose pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 18px;
  background: #111a28;
  color: #f9f7f2;
}

.prose code {
  background: rgba(19, 36, 52, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 0.45rem;
  font-size: 0.95em;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose-card {
  border-radius: 24px;
  padding: 1rem 1.1rem;
}

.prose-card--narrow {
  max-width: 42rem;
}

.empty-state {
  padding: 1.1rem 1.2rem;
  border-radius: 22px;
  border-style: dashed;
  color: var(--text-soft);
}

.site-footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(16, 24, 38, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.76));
  backdrop-filter: blur(14px);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.2rem;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__brand img {
  width: min(240px, 56vw);
  height: auto;
}

.site-footer__brand p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.site-footer__note {
  font-size: 0.95rem;
}

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

.site-footer__columns h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.site-footer__columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--text-soft);
}

.site-footer__columns a {
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 24, 38, 0.08);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.brand-system {
  margin: 1.15rem 0 1.25rem;
  display: grid;
  gap: 1rem;
}

.brand-system__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.brand-system__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2vw + 1rem, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0.2rem 0 0.65rem;
  max-width: 12ch;
}

.brand-system__lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.1rem 1.15rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 239, 229, 0.95));
  box-shadow: var(--shadow-soft);
}

.brand-system__lockup img {
  width: 100%;
  height: auto;
}

.brand-system__lockup p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.brand-system__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.brand-panel {
  border-radius: 26px;
  padding: 1.05rem 1.05rem 1.1rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(251, 247, 239, 0.88));
  box-shadow: var(--shadow-soft);
}

.brand-panel--palette {
  grid-column: span 6;
}

.brand-panel--type {
  grid-column: span 3;
}

.brand-panel--voice {
  grid-column: span 3;
}

.brand-panel .section-label {
  margin-bottom: 0.85rem;
}

.swatch-grid,
.type-stack,
.voice-stack {
  display: grid;
  gap: 0.75rem;
}

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

.swatch {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
}

.swatch__chip {
  width: 100%;
  height: 84px;
  border-radius: 16px;
  background: var(--swatch, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.swatch strong,
.type-sample strong,
.voice-rule strong {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.swatch code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.swatch small,
.type-sample small {
  color: var(--text-soft);
  line-height: 1.55;
}

.type-sample {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
}

.type-sample span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.type-sample strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.02;
}

.voice-rule {
  padding: 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
}

.voice-rule strong {
  margin-bottom: 0.3rem;
}

.voice-rule p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.site-footer__bottom p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .home-hero__grid,
  .page-hero,
  .article-hero,
  .article-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-header__rail {
    grid-template-columns: 1fr;
  }

  .site-header__rail-meta,
  .site-search {
    justify-content: flex-start;
  }

  .site-footer__columns,
  .section-grid,
  .topic-strip__grid,
  .story-grid,
  .link-grid,
  .fact-grid,
  .brand-system__intro,
  .brand-system__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-panel--palette,
  .brand-panel--type,
  .brand-panel--voice {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
  }

  .site-header__inner {
    padding: 0.85rem 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 0.3rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.75rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(252, 250, 245, 0.98), rgba(252, 250, 245, 0.95));
    border-bottom: 1px solid rgba(19, 36, 52, 0.08);
    box-shadow: var(--shadow);
  }

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

  .site-header__rail {
    padding-bottom: 0.9rem;
  }

  .site-search {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-search input {
    width: 100%;
    min-width: 0;
  }

  .site-search button {
    width: 100%;
  }

  .home-hero,
  .page,
  .archive,
  .article {
    padding-top: 1.2rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.1rem), var(--container));
  }

  .home-hero__copy h1,
  .page-hero h1,
  .archive-hero h1,
  .article-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-grid,
  .topic-strip__grid,
  .story-grid,
  .link-grid,
  .fact-grid,
  .site-footer__columns,
  .brand-system__intro,
  .brand-system__grid,
  .swatch-grid {
    grid-template-columns: 1fr;
  }

  .story-card__foot,
  .pagination {
    align-items: flex-start;
  }

  .hero-badges {
    gap: 0.5rem;
  }
}
