/* =========================================================
   KAPELLEVELD — architectural blueprint / limited edition
   Palette: alabaster, slate forest, burnished copper
   ========================================================= */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --line: #e2dfd7;
  --line-soft: #ece9e2;
  --line-strong: #cfc9bd;
  --brand: #1b362d;
  --brand-2: #24473b;
  --accent: #c85a32;
  --accent-dark: #a94725;
  --accent-soft: #e0a184;
  --ink: #1e2422;
  --body: #333b37;
  --muted: #5c6460;
  --faint: #8a918c;
  --sand: #ede8de;
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1240px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 48px -34px rgba(27, 54, 45, 0.32);
  --grid: rgba(27, 54, 45, 0.05);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(1100px 620px at 88% -12%, rgba(200, 90, 50, 0.05), transparent 62%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.text-accent {
  color: var(--accent);
}

/* ---------- top utility bar ---------- */

.topbar {
  background: var(--brand);
  color: rgba(247, 246, 242, 0.72);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.topbar-links a:hover {
  color: #fff;
}

.topbar-sep {
  opacity: 0.35;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 246, 242, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -24px rgba(27, 54, 45, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--brand);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-head);
  font-size: 0.51rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.has-dropdown.is-open > .nav-link::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* dropdown */

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  width: 252px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.8rem;
}

.dropdown-link:last-child {
  border-bottom: 0;
}

.dropdown-num {
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.dropdown-link:hover {
  background: var(--bg);
  color: var(--brand);
}

/* language switcher */

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.lang-btn:hover {
  border-color: var(--brand);
}

.lang-code {
  line-height: 1;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 224px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.lang-switch.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.79rem;
}

.lang-option:last-child {
  border-bottom: 0;
}

.lang-option small {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.lang-option:hover {
  background: var(--bg);
}

.lang-option.is-active {
  background: var(--bg);
  color: var(--brand);
}

.lang-option.is-active small {
  color: var(--accent);
}

.flag {
  width: 20px;
  height: 14px;
  flex: none;
  border: 1px solid rgba(30, 36, 34, 0.12);
  border-radius: 1px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  transform: translateY(-1px);
}

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

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--brand);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--brand);
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.61rem;
}

.btn-block {
  width: 100%;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
}

.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(200, 90, 50, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 54px;
  padding: 74px 0 68px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.eyebrow--light {
  color: var(--accent-soft);
}

.eyebrow--light::before {
  background: var(--accent-soft);
}

.hero-title {
  margin: 0 0 24px;
  color: var(--brand);
  font-size: clamp(2.7rem, 5.4vw, 4.55rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-title em {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-style: normal;
}

.hero-lede {
  max-width: 54ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 520px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats > div {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.hero-stats > div + div {
  padding-left: 18px;
}

.hero-stats > div:last-child {
  border-right: 0;
}

.hero-stats dt {
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-frame {
  position: relative;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 18px 18px 0 -1px rgba(200, 90, 50, 0.14);
}

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

.fig-label,
.fig-note {
  position: absolute;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fig-label {
  top: 18px;
  left: 18px;
  padding: 7px 9px;
  background: var(--brand);
  color: var(--bg);
}

.fig-note {
  right: 0;
  bottom: -28px;
  color: var(--muted);
}

.fig-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 38px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

/* ---------- service strip ---------- */

.service-strip {
  background: var(--brand);
  color: var(--bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 22px 22px 0;
  border-right: 1px solid rgba(247, 246, 242, 0.14);
  transition: background 0.2s;
}

.service-item + .service-item {
  padding-left: 22px;
}

.service-item:last-child {
  border-right: 0;
}

.service-item:hover {
  background: rgba(247, 246, 242, 0.05);
}

.service-num {
  color: var(--accent-soft);
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.service-name {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-desc {
  color: rgba(247, 246, 242, 0.6);
  font-size: 0.66rem;
  line-height: 1.5;
}

/* ---------- section + 70/30 layout ---------- */

.section {
  padding: 72px 0 86px;
}

.section--tight {
  padding: 48px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-title {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  letter-spacing: -0.03em;
}

.section-lede {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.layout-70-30 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 46px;
}

.main-col {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- article cards ---------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.article-card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.article-card--feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1.15fr 0.85fr;
}

.article-card--feature .card-media {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}

.article-card--feature .card-body {
  justify-content: center;
  padding: 30px;
}

.article-card--feature .card-title {
  font-size: 1.62rem;
}

.article-card--feature .card-excerpt {
  font-size: 0.86rem;
  -webkit-line-clamp: 3;
}

.article-card:hover::after {
  transform: scaleX(1);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sand);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.article-card:hover .card-img {
  transform: scale(1.035);
}

.badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  font-family: var(--font-head);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-category {
  left: 12px;
  background: var(--brand);
  color: var(--bg);
}

.badge-lang {
  right: 12px;
  background: var(--accent);
  color: #fff;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--faint);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot-sep {
  width: 3px;
  height: 3px;
  background: var(--faint);
  border-radius: 50%;
}

.card-title {
  margin: 0 0 9px;
  font-size: 1.16rem;
  line-height: 1.27;
  letter-spacing: -0.015em;
}

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

.card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-link span {
  color: var(--accent);
  transition: transform 0.2s;
}

.card-link:hover span {
  transform: translateX(4px);
}

/* ---------- filter bar + empty state ---------- */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -8px 0 22px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: 0.72rem;
}

.filter-text {
  margin: 0;
  color: var(--muted);
}

.filter-clear {
  flex: none;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.filter-clear:hover {
  color: var(--accent-dark);
}

.search-empty {
  padding: 34px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------- sidebar widgets ---------- */

.widget {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.widget-title {
  margin: 0;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.widget-kicker {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.search-form {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.81rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--faint);
}

.search-submit {
  width: 42px;
  flex: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  font-size: 1rem;
}

.search-submit:hover {
  background: var(--brand);
  color: var(--bg);
}

.search-hint {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.62rem;
}

.category-list,
.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.79rem;
}

.category-link:last-child {
  border-bottom: 0;
}

.category-link:hover {
  color: var(--accent);
}

.category-count {
  color: var(--faint);
  font-family: var(--font-head);
  font-size: 0.58rem;
}

.guide-link {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.guide-link:last-child {
  border-bottom: 0;
}

.guide-num {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 700;
}

.guide-title {
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.42;
}

.guide-lang {
  color: var(--faint);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.guide-link:hover .guide-title {
  color: var(--accent);
}

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

.resource-list li {
  border-bottom: 1px solid var(--line-soft);
}

.resource-list li:last-child {
  border-bottom: 0;
}

.resource-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.resource-link:hover {
  color: var(--accent);
}

.resource-link::after {
  content: "↗";
  flex: none;
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.62rem;
}

.resource-note {
  padding: 11px 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.resource-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.resource-note a:hover {
  color: var(--brand);
}

.widget-cta {
  --grid: rgba(247, 246, 242, 0.06);
  padding: 24px;
  background-color: var(--brand);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  border-color: var(--brand);
  color: var(--bg);
}

.widget-cta .widget-title {
  color: var(--bg);
}

.widget-cta-title {
  margin: 6px 0 10px;
  color: var(--bg);
  font-size: 1.22rem;
  line-height: 1.25;
}

.widget-cta p {
  color: rgba(247, 246, 242, 0.68);
  font-size: 0.78rem;
}

.widget-wa {
  display: block;
  margin-top: 12px;
  color: rgba(247, 246, 242, 0.66);
  font-size: 0.66rem;
  text-align: center;
}

.widget-wa:hover {
  color: var(--accent-soft);
}

/* ---------- page hero / breadcrumbs ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
}

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

.article-head {
  max-width: 900px;
  padding-bottom: 34px;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.kicker-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  background: var(--brand);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker-tag--accent {
  background: var(--accent);
  color: #fff;
}

.kicker-note {
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-title {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.article-dek {
  max-width: 70ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta .dot-sep {
  background: var(--line-strong);
}

.article-hero {
  margin: 0 0 -1px;
  padding: 0 0 40px;
}

.article-hero-frame {
  position: relative;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 18px 18px 0 -1px rgba(200, 90, 50, 0.12);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.article-hero figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

/* ---------- article layout ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 46px;
  padding: 56px 0 82px;
}

.article-body {
  min-width: 0;
  color: var(--body);
  font-size: 0.96rem;
  line-height: 1.82;
}

.article-body > p:first-of-type {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-body p {
  margin: 0 0 1.25em;
}

.article-body h2 {
  position: relative;
  margin: 2.2em 0 0.7em;
  padding-top: 0.7em;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-h) + 22px);
}

.article-body h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--accent);
}

.article-body h3 {
  margin: 1.8em 0 0.5em;
  color: var(--ink);
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  scroll-margin-top: calc(var(--header-h) + 22px);
}

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

.article-body li {
  margin-bottom: 0.5em;
  padding-left: 0.2em;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.article-body a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.article-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 3.1em;
  font-weight: 800;
  line-height: 0.78;
}

.article-figure {
  margin: 1.9em 0 2.1em;
}

.article-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.article-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.6;
}

.article-figure figcaption a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-figure figcaption a:hover {
  color: var(--brand);
}

.article-body .table-wrap {
  margin: 1.7em 0 1.9em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
  line-height: 1.55;
}

.data-table th {
  padding: 12px 14px;
  background: var(--brand);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  vertical-align: top;
}

.data-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) {
  background: var(--surface-2);
}

.data-table tbody tr:hover {
  background: rgba(200, 90, 50, 0.04);
}

/* ---------- project timeline ---------- */

.timeline {
  margin: 1.6em 0 2em;
  padding: 4px 0 4px 22px;
  border-left: 1px solid var(--line-strong);
}

.timeline-step {
  position: relative;
  padding: 0 0 18px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -27px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
}

.timeline-week {
  margin: 0 0 3px;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.timeline-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ---------- toc / takeaway box ---------- */

.toc-box {
  margin: 0 0 2.2em;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.toc-label {
  margin: 0 0 12px;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 8px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 700;
}

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

/* ---------- article footer ---------- */

.article-end {
  margin-top: 3em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.article-end strong {
  color: var(--brand);
}

.author-box {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 2.4em 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.author-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--brand);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.author-name {
  margin: 0 0 4px;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 800;
}

.author-role {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.edition-box {
  margin: 2.2em 0;
  padding: 24px;
  background-color: var(--brand);
  background-image:
    linear-gradient(to right, rgba(247, 246, 242, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 246, 242, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--bg);
}

.edition-box .toc-label {
  color: var(--accent-soft);
}

.edition-title {
  margin: 0 0 8px;
  color: var(--bg);
  font-size: 1.25rem;
}

.edition-text {
  margin: 0 0 16px;
  color: rgba(247, 246, 242, 0.68);
  font-size: 0.78rem;
}

.edition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edition-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(247, 246, 242, 0.2);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.edition-link:hover,
.edition-link.is-current {
  border-color: var(--accent-soft);
  background: rgba(247, 246, 242, 0.08);
}

.edition-link.is-current {
  color: var(--accent-soft);
}

/* ---------- related ---------- */

.related-block {
  margin-top: 2.6em;
}

.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.related-title {
  margin: 0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.related-card img {
  width: 92px;
  height: 74px;
  object-fit: cover;
}

.related-cat {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-card h4 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.related-card:hover h4 {
  color: var(--accent);
}

/* ---------- static pages ---------- */

.page-content {
  padding: 52px 0 82px;
}

.page-title {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.04em;
}

.page-lede {
  max-width: 68ch;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.prose {
  max-width: 78ch;
  color: var(--body);
  font-size: 0.94rem;
  line-height: 1.8;
}

.prose h2 {
  margin: 2em 0 0.6em;
  color: var(--brand);
  font-size: 1.42rem;
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.02rem;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.contact-card h3 {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card a,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
  word-break: break-word;
}

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

.contact-form {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-form h2 {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 1.35rem;
}

.contact-form > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

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

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.84rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 0.65rem;
  line-height: 1.5;
}

.form-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--brand);
  font-size: 0.75rem;
}

/* ---------- sitemap ---------- */

.sitemap-groups {
  display: grid;
  gap: 26px;
}

.sitemap-group {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.sitemap-group h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.78rem;
}

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

/* ---------- advertise ---------- */

.advertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.advertise-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.advertise-card h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.9rem;
}

.advertise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 26px 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stat-cell {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-cell strong {
  display: block;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1;
}

.stat-cell span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- legal ---------- */

.legal-body {
  max-width: 80ch;
}

.legal-body h2 {
  margin: 2em 0 0.5em;
  color: var(--brand);
  font-size: 1.3rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--body);
  font-size: 0.88rem;
  line-height: 1.75;
}

.legal-body ul {
  padding-left: 1.3em;
}

/* ---------- homepage edition cards ---------- */

.edition-card {
  --grid: rgba(247, 246, 242, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background-color: var(--brand);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 1px solid var(--brand);
  color: var(--bg);
}

.edition-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(247, 246, 242, 0.16);
  color: var(--accent-soft);
  font-family: var(--font-head);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.edition-card h3 {
  margin: 0 0 8px;
  color: var(--bg);
  font-size: 1.35rem;
  line-height: 1.2;
}

.edition-card > p {
  margin: 0 0 18px;
  color: rgba(247, 246, 242, 0.64);
  font-size: 0.78rem;
  line-height: 1.6;
}

.edition-nav {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edition-nav li {
  border-bottom: 1px solid rgba(247, 246, 242, 0.12);
}

.edition-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: var(--bg);
  font-size: 0.74rem;
}

.edition-nav a:hover,
.edition-nav a.is-current {
  color: var(--accent-soft);
}

.edition-nav .flag {
  border-color: rgba(247, 246, 242, 0.18);
}

.edition-nav small {
  margin-left: auto;
  color: rgba(247, 246, 242, 0.42);
  font-family: var(--font-head);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.edition-nav a.is-current small {
  color: var(--accent-soft);
}

.edition-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: rgba(247, 246, 242, 0.42);
  font-family: var(--font-head);
  font-size: 0.53rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edition-card-foot span:last-child {
  color: var(--accent-soft);
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 26px;
}

@media (max-width: 760px) {
  .edition-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--brand);
  color: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 56px 0 42px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--bg);
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.footer-brand .brand-name {
  color: var(--bg);
}

.footer-brand .brand-sub {
  color: rgba(247, 246, 242, 0.55);
}

.footer-desc {
  max-width: 34ch;
  margin: 0 0 18px;
  color: rgba(247, 246, 242, 0.62);
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer-contact {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 0.78rem;
}

.footer-contact a {
  color: rgba(247, 246, 242, 0.8);
}

.footer-contact a:hover {
  color: var(--accent-soft);
}

.footer-col h2 {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(247, 246, 242, 0.68);
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: var(--bg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(247, 246, 242, 0.14);
  color: rgba(247, 246, 242, 0.42);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.footer-bottom p {
  margin: 0;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-langs a:hover {
  color: var(--accent-soft);
}

/* ---------- mobile navigation ---------- */

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand);
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-toggle span {
  position: relative;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  position: absolute;
  left: 0;
}

.mobile-toggle span::before {
  top: -6px;
}

.mobile-toggle span::after {
  top: 6px;
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--bg);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s var(--ease), visibility 0.28s;
}

.mobile-panel.is-open {
  transform: none;
  visibility: visible;
}

.mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mobile-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1;
}

.mobile-nav {
  display: grid;
  gap: 0;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.mobile-nav > li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.mobile-sub {
  display: grid;
  gap: 0;
  margin: 0 0 8px;
  padding: 0 0 0 14px;
  list-style: none;
}

.mobile-sub a {
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.mobile-lang {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.mobile-lang h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-lang-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.7rem;
}

.mobile-lang-grid a.is-current {
  border-color: var(--accent);
  color: var(--accent-dark);
}

body.nav-open {
  overflow: hidden;
}

/* ---------- utilities ---------- */

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .layout-70-30,
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
  }

  .hero-grid {
    gap: 38px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

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

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

  :root {
    --header-h: 68px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 50px 0 54px;
  }

  .hero-figure {
    max-width: 680px;
  }

  .hero-title {
    max-width: 15ch;
  }

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

  .service-item:nth-child(2) {
    border-right: 0;
  }

  .service-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(247, 246, 242, 0.14);
  }

  .service-item:nth-child(3) {
    padding-left: 0;
  }

  .layout-70-30,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar .widget-cta {
    grid-column: 1 / -1;
  }

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

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

  .article-hero img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .topbar-links .topbar-optional {
    display: none;
  }

  .topbar-inner {
    min-height: 34px;
  }

  .topbar-note {
    font-size: 0.56rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats dt {
    font-size: 1.2rem;
  }

  .hero-stats dd {
    font-size: 0.54rem;
  }

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

  .article-card--feature {
    grid-template-columns: 1fr;
  }

  .article-card--feature .card-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .article-card--feature .card-body {
    padding: 20px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 42px 0 30px;
  }

  .footer-grid > .footer-col:last-child {
    grid-column: auto;
  }

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

  .stat-cell:nth-child(2) {
    border-right: 0;
  }

  .stat-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .sitemap-list {
    grid-template-columns: 1fr;
  }

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

  .article-hero-frame {
    padding: 6px;
    box-shadow: 10px 10px 0 -1px rgba(200, 90, 50, 0.12);
  }

  .article-hero figcaption {
    margin-top: 24px;
    font-size: 0.62rem;
  }

  .article-meta {
    font-size: 0.55rem;
  }

  .article-body {
    font-size: 0.92rem;
  }

  .article-body > p:first-of-type::first-letter {
    font-size: 2.7em;
  }

  .author-box {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 18px;
  }

  .author-mark {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-links {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.86rem;
    letter-spacing: 0.12em;
  }

  .brand-sub {
    font-size: 0.46rem;
    letter-spacing: 0.13em;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .hero-lede {
    font-size: 0.94rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats > div {
    padding-right: 10px;
  }

  .hero-stats > div + div {
    padding-left: 10px;
  }

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

  .service-item,
  .service-item + .service-item {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 246, 242, 0.14);
  }

  .service-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 48px 0 60px;
  }

  .article-head {
    padding-bottom: 24px;
  }

  .article-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .article-dek {
    font-size: 0.94rem;
  }

  .page-content {
    padding: 34px 0 60px;
  }

  .contact-form {
    padding: 18px;
  }

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

  .footer-bottom {
    display: grid;
    gap: 8px;
  }

  .toc-box,
  .edition-box,
  .author-box {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Chinese text does not use a Latin drop cap */
html[lang="zh-CN"] .article-body > p:first-of-type::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* keep data tables readable on narrow screens */
@media (max-width: 760px) {
  .data-table {
    min-width: 560px;
  }
}

.timeline-title {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .article-figure figcaption {
    flex-direction: column;
    gap: 6px;
  }
}

/* ---------- links dialog ---------- */

.partner-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.partner-trigger:hover,
.partner-trigger:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg);
  outline: none;
}

.partner-trigger svg {
  width: 19px;
  height: 19px;
}

.partner-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(84vh, 780px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.partner-dialog::backdrop {
  background: rgba(27, 54, 45, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.partner-dialog[open] {
  display: flex;
  flex-direction: column;
}

.partner-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.partner-dialog__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.partner-dialog__close {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.partner-dialog__close:hover {
  color: var(--accent);
}

.partner-dialog__list {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding: 16px 22px 22px;
  overflow-y: auto;
  list-style: none;
}

.partner-dialog__list li {
  break-inside: avoid;
  margin: 0;
}

.partner-dialog__list a {
  display: block;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  color: var(--body);
  font-size: 0.8rem;
  line-height: 1.35;
  text-decoration: none;
}

.partner-dialog__list a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

@media (max-width: 560px) {
  .partner-dialog__list {
    columns: 1;
  }
}
