@import url("fonts/avds/avds-fonts.css");

:root {
  color-scheme: light;
  --color-paper: #F4F0E6;
  --color-ink: #1A1D12;
  --color-ink-2: #2E3322;
  --color-accent: #2A6E6E;
  --color-muted: #6E6A4A;
  --surface-base: var(--color-paper);
  --surface-raised: color-mix(in srgb, var(--color-paper), white 18%);
  --surface-muted: color-mix(in srgb, var(--color-paper), var(--color-muted) 9%);
  --surface-chip: color-mix(in srgb, var(--color-paper), white 25%);
  --surface-accent: var(--color-accent);
  --surface-image: color-mix(in srgb, var(--color-ink-2), transparent 86%);
  --border-subtle: color-mix(in srgb, var(--color-ink), transparent 84%);
  --border-strong: color-mix(in srgb, var(--color-ink-2), transparent 68%);
  --shadow-soft: 0 18px 54px color-mix(in srgb, var(--color-ink), transparent 88%);
  --color-text-primary: var(--color-ink);
  --color-text-secondary: var(--color-ink-2);
  --color-text-muted: var(--color-muted);
  --color-text-on-accent: var(--color-paper);
  --color-link: var(--color-accent);
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "IBM Plex Serif", "Iowan Old Style", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-admin: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-code: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --admin-bg: color-mix(in srgb, var(--color-paper), white 12%);
  --admin-surface: color-mix(in srgb, var(--color-paper), white 26%);
  --admin-surface-muted: color-mix(in srgb, var(--color-paper), var(--color-muted) 8%);
  --admin-control: color-mix(in srgb, var(--color-paper), white 34%);
  --admin-border: color-mix(in srgb, var(--color-ink), transparent 86%);
  --admin-border-strong: color-mix(in srgb, var(--color-ink), transparent 74%);
  --max: 1180px;
  --article: 860px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html {
  background: var(--surface-base);
  color: var(--color-text-primary);
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-ui);
  line-height: 1.6;
  letter-spacing: 0;
  background: var(--surface-base);
}
a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
::selection {
  background: color-mix(in srgb, var(--color-accent), transparent 74%);
  color: var(--color-text-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface-base), transparent 10%);
  backdrop-filter: blur(14px);
}
.brand {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}
.top-nav a,
.button,
.logout-form button,
.editor-actions button,
.status-actions button,
.admin-filters button,
.search-form button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-weight: 550;
}
.top-nav a:hover,
.button:hover {
  border-color: var(--border-subtle);
  background: var(--surface-chip);
  color: var(--color-link);
}
.button.primary,
.search-form button,
.admin-filters button,
.editor-actions button[type="submit"] {
  background: var(--surface-accent);
  color: var(--color-text-on-accent);
}

main { min-height: 70vh; }
.hero {
  max-width: var(--max);
  min-height: min(650px, calc(100vh - 82px));
  margin: 0 auto;
  padding: 78px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: 48px;
  align-items: end;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 126px);
  line-height: 0.88;
  letter-spacing: 0;
}
.hero p {
  max-width: 620px;
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.35;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-feature {
  display: grid;
  gap: 14px;
  padding: 18px 0 2px;
  border-top: 1px solid var(--border-strong);
}
.hero-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface-image);
}
.hero-feature span,
.chip,
.row-type {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: var(--surface-accent);
  color: var(--color-text-on-accent);
  font-size: 13px;
  font-weight: 560;
  text-transform: uppercase;
}
.chip,
.row-type {
  background: var(--surface-chip);
  color: var(--color-link);
}
.hero-feature strong {
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1.06;
}
.hero-feature:hover strong { color: var(--color-link); }

.section-head,
.page-title,
.post-grid,
.archive-list,
.tag-cloud,
.article-page,
.section-band {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 36px;
  padding-bottom: 22px;
  border-top: 1px solid var(--border-subtle);
}
.section-head.compact {
  padding-left: 0;
  padding-right: 0;
}
.section-head h2,
.page-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}
.section-head a {
  color: var(--color-link);
  font-weight: 560;
  text-decoration: underline;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 72px;
}
.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-raised);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.post-card-media { background: var(--surface-image); }
.post-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 20px; min-width: 0; }
.post-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}
.post-card h2 a:hover,
.post-row h3 a:hover { color: var(--color-link); }
.post-card p {
  margin: 0 0 18px;
  color: var(--color-text-secondary);
  overflow-wrap: anywhere;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}
.archive-list { display: grid; gap: 16px; padding-bottom: 76px; }
.post-card.compact {
  grid-template-columns: 220px 1fr;
  grid-template-rows: 1fr;
}
.post-card.compact .post-card-media img { height: 100%; min-height: 150px; aspect-ratio: auto; }
.section-band { padding-bottom: 58px; }
.rail-list { display: grid; gap: 1px; border-top: 1px solid var(--border-subtle); }
.post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.post-row h3 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.08;
}
.post-row time {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}
.page-title { padding-top: 72px; padding-bottom: 36px; }
.page-title p {
  max-width: 640px;
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.4;
}
.search-form,
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.search-form input,
.admin-filters input,
.admin-filters select,
.editor-form input,
.editor-form textarea,
.editor-form select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--color-text-primary);
  padding: 10px 12px;
}
.search-form input { max-width: 420px; }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 76px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-chip);
  font-weight: 500;
}
.tag-pill:hover {
  border-color: var(--border-strong);
  color: var(--color-link);
}
.tag-pill span { color: var(--color-text-muted); }

.article-page { max-width: var(--article); padding-top: 72px; padding-bottom: 86px; }
.article-header { margin-bottom: 30px; }
.article-header h1 {
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.article-header p {
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.42;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--surface-chip);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 560;
  text-transform: uppercase;
}
.tag-row a:first-child {
  background: var(--surface-accent);
  color: var(--color-text-on-accent);
}
.article-hero-image {
  width: 100%;
  border-radius: var(--radius);
  margin: 30px 0 38px;
  background: var(--surface-image);
}
.content-body {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.62;
}
.content-body p,
.content-body ul,
.content-body ol,
.content-body blockquote { margin-top: 0; margin-bottom: 1.25em; }
.content-body h2,
.content-body h3 {
  margin-top: 1.7em;
  font-family: var(--font-display);
  line-height: 1.1;
}
.content-body h2 { font-size: 38px; }
.content-body h3 { font-size: 28px; }
.content-body a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.content-body figure { margin: 34px 0; }
.content-body figcaption {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 14px;
}
.content-body img { border-radius: var(--radius); }
.content-body blockquote {
  padding-left: 22px;
  border-left: 4px solid var(--color-link);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 25px;
}
.site-footer {
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--border-subtle);
  color: var(--color-text-muted);
  font-size: 13px;
}

.admin-body {
  background: var(--admin-bg);
  color: var(--color-text-primary);
  font-family: var(--font-admin);
  font-size: 14px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}
.admin-body .site-header { display: none; }
.admin-body a,
.admin-body button,
.admin-body input,
.admin-body textarea,
.admin-body select {
  font-family: var(--font-admin);
}
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-width: 0;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--admin-border);
  background: var(--admin-surface);
}
.admin-brand {
  display: grid;
  gap: 3px;
  margin-bottom: 18px;
  color: var(--color-text-primary);
  font-family: var(--font-admin);
  font-size: 18px;
  font-weight: 560;
  line-height: 1.1;
}
.admin-brand::after {
  content: "Editorial CMS";
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}
.admin-nav {
  display: grid;
  gap: 6px;
}
.admin-nav a,
.logout-form button {
  min-height: 38px;
  justify-content: flex-start;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.admin-nav a:hover,
.logout-form button:hover {
  border-color: var(--admin-border);
  background: var(--admin-control);
  color: var(--color-link);
}
.logout-form {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
}
.admin-main {
  min-width: 0;
  padding: 24px;
}
.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-border);
}
.admin-topbar h1,
.login-panel h1 {
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-admin);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 560;
  line-height: 1.08;
}
.admin-topbar p,
.login-panel p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.metric-grid article,
.admin-panel,
.login-panel {
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  background: var(--admin-surface);
}
.metric-grid article {
  min-height: 88px;
  padding: 14px;
}
.metric-grid span {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}
.metric-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--color-text-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.admin-panel,
.login-panel {
  padding: 16px;
}
.panel-head,
.admin-row,
.admin-row.with-actions,
.row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-border);
}
.panel-head h2,
.admin-panel h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 560;
}
.panel-head > a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  background: var(--admin-control);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
}
.panel-head > a:hover {
  border-color: var(--admin-border-strong);
  color: var(--color-link);
}
.admin-list {
  display: grid;
  gap: 1px;
}
.admin-row {
  min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid var(--admin-border);
}
.admin-row strong {
  display: block;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.admin-row span,
.admin-row a,
.row-actions a {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}
.admin-row a,
.row-actions a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  background: var(--admin-control);
}
.admin-row a:hover,
.row-actions a:hover {
  border-color: var(--admin-border-strong);
  color: var(--color-link);
}
.admin-filters {
  margin-bottom: 14px;
}
.admin-filters input,
.admin-filters select {
  width: auto;
  min-width: 180px;
  max-width: 260px;
}
.admin-body .button,
.admin-body button,
.admin-filters button,
.editor-actions button,
.status-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  background: var(--admin-control);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 540;
}
.admin-body .button.primary,
.admin-filters button,
.editor-actions button[type="submit"] {
  background: var(--surface-accent);
  color: var(--color-text-on-accent);
}
.editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
}
.editor-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}
.form-grid > *,
.editor-form input,
.editor-form textarea,
.editor-form select {
  min-width: 0;
  max-width: 100%;
}
.admin-body .search-form input,
.admin-body .admin-filters input,
.admin-body .admin-filters select,
.admin-body .editor-form input,
.admin-body .editor-form textarea,
.admin-body .editor-form select {
  min-height: 40px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  background: var(--admin-control);
  color: var(--color-text-primary);
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 450;
}
.admin-body .title-field textarea {
  min-height: 92px;
  font-family: var(--font-admin);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
  color: var(--color-text-primary);
  overflow-wrap: anywhere;
}
.admin-body .editor-form .body-editor {
  height: 520px;
  min-height: 520px;
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.compact-form {
  max-width: 420px;
}
.editor-image-preview {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  background: var(--surface-image);
}
.editor-actions,
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.status-actions {
  max-width: 1120px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
}
.status-actions button {
  border-color: var(--admin-border);
  background: var(--admin-control);
  color: var(--color-text-secondary);
}
.alert {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  background: var(--admin-surface-muted);
  color: var(--color-text-primary);
  font-weight: 650;
}
.empty-state {
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 54px; gap: 34px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .admin-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand { font-size: 25px; }
  .hero { padding: 42px 18px 34px; }
  .hero h1 { font-size: 60px; }
  .hero p { font-size: 19px; }
  .hero-feature strong { font-size: 27px; }
  .section-head,
  .page-title,
  .post-grid,
  .archive-list,
  .tag-cloud,
  .article-page,
  .section-band {
    padding-left: 18px;
    padding-right: 18px;
  }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card.compact { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .article-header h1 { font-size: 42px; }
  .article-header p { font-size: 21px; }
  .content-body { font-size: 19px; line-height: 1.58; }
  .content-body h2 { font-size: 31px; }
  .content-body h3 { font-size: 25px; }
  .admin-main,
  .admin-sidebar {
    padding: 18px;
  }
  .admin-nav {
    grid-template-columns: 1fr 1fr;
  }
  .metric-grid strong {
    font-size: 26px;
  }
  .admin-topbar,
  .panel-head,
  .admin-row.with-actions,
  .row-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-filters input,
  .admin-filters select,
  .admin-filters button {
    width: 100%;
    max-width: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-body .title-field textarea {
    font-size: 20px;
  }
  .admin-body .editor-form .body-editor {
    height: 340px;
    min-height: 340px;
  }
}

/* HUNN AV DS editorial intelligence layer */
:root {
  --surface-base: var(--color-paper);
  --surface-glass: color-mix(in srgb, var(--color-paper), white 18%);
  --surface-raised: color-mix(in srgb, var(--color-paper), white 28%);
  --surface-deep: #202617;
  --surface-deep-2: #30331F;
  --surface-accent-soft: color-mix(in srgb, var(--color-accent), var(--color-paper) 76%);
  --border-hairline: color-mix(in srgb, var(--color-ink), transparent 88%);
  --border-subtle: color-mix(in srgb, var(--color-ink), transparent 80%);
  --border-strong: color-mix(in srgb, var(--color-ink), transparent 58%);
  --shadow-soft: 0 20px 60px color-mix(in srgb, var(--color-ink), transparent 88%);
  --shadow-deep: 0 28px 90px color-mix(in srgb, var(--color-ink), transparent 78%);
}

body {
  min-width: 320px;
  background: var(--surface-base);
  text-rendering: optimizeLegibility;
}

.site-header {
  padding: 0 24px;
  background: color-mix(in srgb, var(--surface-base), transparent 7%);
  border-bottom: 1px solid var(--border-hairline);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: 100%;
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.header-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 800;
  white-space: nowrap;
}

.brand-subline {
  max-width: 170px;
  padding-left: 16px;
  border-left: 1px solid var(--border-subtle);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
  text-transform: uppercase;
}

.top-nav {
  justify-content: center;
  gap: 4px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 720;
}

.top-nav a {
  min-height: 40px;
  padding: 8px 11px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-base), white 16%);
}

.icon-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-button {
  min-height: 42px;
  border-color: var(--border-subtle);
  background: color-mix(in srgb, var(--surface-base), white 18%);
  color: var(--color-text-primary);
}

.hero {
  min-height: min(760px, calc(100vh - 76px));
  padding-top: 54px;
  padding-bottom: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.hero h1 {
  font-size: clamp(82px, 11vw, 156px);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 860;
  line-height: 1.12;
  text-transform: uppercase;
}

.hero-note {
  max-width: 560px;
  margin: 28px 0 0;
  padding-top: 25px;
  border-top: 1px solid var(--border-strong);
  color: var(--color-text-secondary);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.55;
}

.hero-actions .button {
  min-height: 48px;
  padding: 10px 16px;
  border-color: var(--border-subtle);
  background: color-mix(in srgb, var(--surface-base), white 18%);
  font-size: 14px;
}

.button.primary {
  border-color: color-mix(in srgb, var(--color-accent), black 12%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-accent), white 8%), var(--color-accent));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--color-accent), transparent 78%);
}

.hero-stats {
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border-subtle);
}

.hero-stats div {
  min-height: 76px;
  padding: 13px 14px;
  background: color-mix(in srgb, var(--surface-base), white 16%);
}

.hero-stats dt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.hero-feature {
  position: relative;
  min-height: 520px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--color-paper), transparent 76%);
  border-radius: var(--radius);
  background: var(--surface-deep);
  box-shadow: var(--shadow-deep);
}

.hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 18%, color-mix(in srgb, var(--surface-deep), transparent 7%) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--surface-deep), transparent 18%), transparent 62%);
  pointer-events: none;
}

.hero-feature-media,
.hero-feature-media img {
  width: 100%;
  height: 100%;
}

.hero-feature-media img,
.hero-feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.95) contrast(1.06);
}

.hero-feature-body {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: var(--color-paper);
}

.hero-feature-body span,
.hero-feature > span {
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--surface-deep-2), transparent 8%);
  color: color-mix(in srgb, var(--color-paper), white 10%);
}

.hero-feature-body strong,
.hero-feature > strong {
  display: block;
  max-width: 720px;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 0.98;
}

.hero-feature-body p {
  max-width: 620px;
  margin: 17px 0 18px;
  color: color-mix(in srgb, var(--color-paper), transparent 10%);
  font-size: 17px;
  line-height: 1.45;
}

.hero-feature-body .meta-row {
  color: color-mix(in srgb, var(--color-paper), transparent 16%);
}

.topic-strip {
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-base), white 18%);
  overflow: hidden;
}

.topic-card {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  border-right: 1px solid var(--border-subtle);
}

.topic-card:last-child {
  border-right: 0;
}

.topic-card strong,
.agenda-card span {
  font-size: 14px;
  font-weight: 860;
  text-transform: uppercase;
}

.topic-card span {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

.topic-card:hover {
  background: var(--surface-accent-soft);
  color: var(--color-link);
}

.home-board,
.agenda-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.home-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.home-board .section-head,
.agenda-section .section-head,
.section-column .section-head {
  padding-top: 0;
}

.home-board .post-grid {
  padding: 0;
}

.editor-brief {
  position: sticky;
  top: 96px;
  min-height: 360px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--color-paper), transparent 76%);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-deep-2), transparent 2%), var(--surface-deep));
  color: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.editor-brief strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
}

.editor-brief p {
  margin: 18px 0 20px;
  color: color-mix(in srgb, var(--color-paper), transparent 16%);
  font-size: 14px;
  line-height: 1.55;
}

.editor-brief ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, var(--color-paper), transparent 78%);
  border-bottom: 1px solid color-mix(in srgb, var(--color-paper), transparent 78%);
  list-style: none;
}

.editor-brief li {
  color: color-mix(in srgb, var(--color-paper), transparent 10%);
  font-size: 13px;
  font-weight: 680;
}

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

.post-card {
  border-color: var(--border-subtle);
  background: color-mix(in srgb, var(--surface-base), white 20%);
  box-shadow: none;
}

.post-card.lead {
  grid-column: span 2;
}

.post-card.lead .post-card-media img {
  aspect-ratio: 16 / 8.3;
}

.post-card-media {
  overflow: hidden;
}

.post-card-media img {
  aspect-ratio: 16 / 9.5;
  transition: transform 260ms ease, filter 260ms ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.03);
}

.post-card-body {
  padding: 18px;
}

.post-card h2 {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.05;
}

.post-card.lead h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.post-card p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.chip,
.row-type,
.hero-feature span {
  letter-spacing: 0;
}

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

.agenda-card {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-base), white 30%), color-mix(in srgb, var(--surface-base), var(--color-accent) 8%));
}

.agenda-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.08;
}

.agenda-card em {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--color-accent), transparent 64%);
  border-radius: var(--radius);
  color: var(--color-link);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.section-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 86px;
}

.section-column {
  min-width: 0;
}

.rail-list {
  background: color-mix(in srgb, var(--surface-base), white 14%);
}

.post-row {
  min-height: 104px;
  align-items: center;
}

.post-row h3 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.page-title {
  max-width: var(--max);
  padding-top: 86px;
}

.page-title h1 {
  max-width: 940px;
  font-size: clamp(56px, 8vw, 112px);
}

.page-title p {
  max-width: 760px;
}

.archive-list .post-card.compact {
  grid-template-columns: 300px minmax(0, 1fr);
  background: color-mix(in srgb, var(--surface-base), white 18%);
}

.archive-list .post-card.compact h2 {
  font-size: clamp(26px, 3.4vw, 42px);
}

.article-shell {
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
  padding: 76px 24px 96px;
  display: grid;
  grid-template-columns: 230px minmax(0, var(--article));
  gap: 56px;
  align-items: start;
}

.article-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.article-aside {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 16px;
}

.article-meta-card,
.article-toc {
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-base), white 20%);
}

.article-meta-card {
  display: grid;
  gap: 8px;
}

.article-meta-card span,
.article-toc strong {
  color: var(--color-link);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}

.article-meta-card strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.article-meta-card em {
  color: var(--color-text-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}

.article-toc {
  display: grid;
  gap: 9px;
}

.article-toc a {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

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

.article-toc .toc-h3 {
  padding-left: 10px;
  color: var(--color-text-muted);
}

.article-header h1 {
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.98;
}

.article-header p {
  max-width: 800px;
}

.article-hero-image {
  box-shadow: var(--shadow-soft);
}

.content-body {
  font-size: clamp(20px, 2.1vw, 24px);
}

.content-body > p:first-child::first-letter {
  float: left;
  padding: 0.06em 0.12em 0 0;
  font-family: var(--font-display);
  font-size: 4.4em;
  font-weight: 800;
  line-height: 0.78;
  color: var(--color-link);
}

.content-body figure {
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-base), white 18%);
}

.content-body img {
  width: 100%;
}

.content-body blockquote {
  margin: 38px 0;
  padding: 24px 28px;
  border-left: 0;
  border: 1px solid color-mix(in srgb, var(--color-accent), transparent 70%);
  border-radius: var(--radius);
  background: var(--surface-accent-soft);
}

.site-footer {
  background: var(--surface-deep);
  color: color-mix(in srgb, var(--color-paper), transparent 14%);
}

@media (max-width: 1080px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    min-height: 92px;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

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

  .hero-feature {
    min-height: 460px;
  }

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

  .topic-card:nth-child(3n) {
    border-right: 0;
  }

  .home-board {
    grid-template-columns: 1fr;
  }

  .editor-brief {
    position: static;
    min-height: auto;
  }

  .article-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-aside {
    position: static;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 18px;
  }

  .site-header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 15px 0;
  }

  .header-identity {
    width: 100%;
    justify-content: space-between;
  }

  .brand-subline,
  .header-tools {
    display: none;
  }

  .top-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    gap: 4px 6px;
    padding: 0;
    font-size: 13px;
  }

  .top-nav a {
    min-height: 34px;
    padding: 5px 8px;
  }

  .hero {
    padding: 42px 18px 26px;
    gap: 26px;
  }

  .hero h1 {
    font-size: clamp(58px, 17vw, 80px);
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.2;
  }

  .hero-note {
    margin-top: 20px;
    padding-top: 18px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: 58px;
  }

  .hero-feature {
    min-height: 420px;
  }

  .hero-feature-body {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-feature-body strong {
    font-size: 30px;
  }

  .topic-strip,
  .home-board,
  .agenda-section,
  .section-head,
  .section-band,
  .page-title,
  .post-grid,
  .archive-list,
  .tag-cloud,
  .article-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topic-strip {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
  }

  .topic-card {
    min-height: 96px;
    padding: 14px;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }

  .post-grid,
  .agenda-grid,
  .section-columns {
    grid-template-columns: 1fr;
  }

  .post-card.lead {
    grid-column: auto;
  }

  .archive-list .post-card.compact {
    grid-template-columns: 1fr;
  }

  .page-title h1 {
    font-size: 52px;
  }

  .article-shell {
    padding-top: 42px;
  }

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

  .article-toc {
    display: none;
  }

  .article-header h1 {
    font-size: 42px;
  }

.content-body > p:first-child::first-letter {
    float: none;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
  }
}

/* Final responsive polish after visual QA. */
.hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1fr);
}

.hero h1 {
  font-size: clamp(76px, 8.4vw, 128px);
}

.hero-feature {
  min-height: 500px;
}

.hero-feature-body strong,
.hero-feature > strong {
  font-size: clamp(29px, 2.7vw, 42px);
}

.hero-feature-body p {
  max-width: 540px;
  font-size: 15px;
}

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

  .hero h1 {
    font-size: 92px;
  }
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 56px;
    line-height: 0.9;
  }

  .hero .hero-subtitle {
    max-width: 330px;
    font-size: 15px;
    line-height: 1.28;
  }

  .hero .hero-note {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.42;
  }

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

  .hero-stats div {
    min-height: 68px;
    padding: 12px 10px;
  }

  .hero-stats dt {
    font-size: 26px;
  }

  .hero-stats dd {
    font-size: 9px;
    line-height: 1.14;
    overflow-wrap: anywhere;
  }
}

/* Editorial boost: keep the first screen premium on desktop and image-led on mobile. */
.hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1fr);
}

.hero h1 {
  font-size: clamp(62px, 6.2vw, 92px);
  line-height: 0.9;
}

.hero-feature {
  min-height: 510px;
}

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

  .hero h1 {
    font-size: 76px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 30px;
    gap: 18px;
  }

  .hero-copy {
    display: contents;
  }

  .hero h1,
  .hero .hero-subtitle,
  .hero .hero-note,
  .hero-actions,
  .hero-stats,
  .hero-feature {
    grid-column: 1;
  }

  .hero h1 {
    order: 1;
    font-size: clamp(48px, 14vw, 58px);
    line-height: 0.9;
  }

  .hero .hero-subtitle {
    order: 2;
    margin-top: 10px;
    max-width: 340px;
    font-size: 14px;
    line-height: 1.28;
  }

  .hero .hero-note {
    order: 3;
    margin-top: 12px;
    padding-top: 12px;
    max-width: 340px;
    font-size: 15px;
    line-height: 1.38;
  }

  .hero-actions {
    order: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 248px;
    margin-top: 0;
    gap: 8px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 9px 14px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
  }

  .hero-actions .button:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }

  .hero-feature {
    order: 5;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 352px;
    margin-top: 4px;
  }

  .hero-feature-body {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hero-feature-body span,
  .hero-feature > span {
    margin-bottom: 10px;
  }

  .hero-feature-body strong,
  .hero-feature > strong {
    max-width: 292px;
    font-size: 22px;
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .hero-feature-body p {
    display: none;
  }

  .hero-feature-body .meta-row {
    margin-top: 12px;
  }

  .hero-stats {
    order: 6;
    margin-top: 0;
  }
}

/* Mobile reading polish: tighter rhythm, lighter chrome, clearer first screen. */
@media (max-width: 760px) {
  body {
    background: var(--surface-base);
  }

  .site-header {
    padding: 0 14px;
  }

  .site-header-inner {
    gap: 8px;
    padding: 11px 0 10px;
  }

  .brand {
    font-size: 29px;
  }

  .top-nav {
    display: flex;
    flex-wrap: nowrap;
    width: calc(100vw - 28px);
    max-width: 100%;
    gap: 4px;
    overflow-x: visible;
    padding: 0;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 4px 7px;
    border: 1px solid var(--border-hairline);
    background: color-mix(in srgb, var(--surface-base), white 18%);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .hero {
    padding: 24px 18px 22px;
    gap: 14px;
    min-height: auto;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(40px, 10.8vw, 48px);
    line-height: 0.96;
    text-wrap: balance;
  }

  .hero .hero-subtitle {
    margin-top: 7px;
    max-width: 338px;
    font-size: 13px;
    line-height: 1.25;
  }

  .hero .hero-note {
    margin-top: 10px;
    padding-top: 10px;
    max-width: 338px;
    font-size: 13px;
    line-height: 1.34;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 7px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 41px;
    padding: 8px 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .hero-actions .button:first-child {
    grid-column: auto;
  }

  @media (min-width: 520px) {
    .hero-actions {
      max-width: 520px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-actions .button {
      min-height: 39px;
      white-space: normal;
    }
  }

  .hero-feature {
    min-height: 314px;
  }

  .hero-feature-body {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }

  .hero-feature-body strong,
  .hero-feature > strong {
    max-width: 304px;
    font-size: 21px;
    line-height: 1.02;
  }

  .hero-feature-body .meta-row {
    margin-top: 10px;
  }

  .hero-stats div {
    min-height: 62px;
    padding: 10px 9px;
  }

  .hero-stats dt {
    font-size: 24px;
  }

  .topic-strip {
    display: flex;
    gap: 10px;
    margin: 0 auto 26px;
    padding: 0 18px 4px;
    border: 0;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topic-strip::-webkit-scrollbar {
    display: none;
  }

  .topic-card {
    flex: 0 0 216px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--surface-base), white 18%);
  }

  .section-head.compact {
    gap: 8px;
  }

  .section-head h2,
  .page-title h1 {
    font-size: clamp(36px, 11vw, 46px);
    line-height: 0.98;
  }

  .page-title {
    padding-top: 46px;
    padding-bottom: 26px;
  }

  .page-title p {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.42;
  }

  .search-form {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .search-form input,
  .search-form button {
    max-width: none;
    width: 100%;
  }

  .post-grid,
  .archive-list {
    gap: 12px;
  }

  .post-card-body {
    padding: 16px;
  }

  .post-card h2,
  .post-card.lead h2,
  .archive-list .post-card.compact h2 {
    max-width: 100%;
    font-size: clamp(17.5px, 4.65vw, 20px);
    line-height: 1.15;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .post-card h2 a {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .post-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .post-card-media img,
  .post-card.lead .post-card-media img {
    aspect-ratio: 16 / 10;
  }

  .post-card.compact .post-card-media img {
    min-height: 172px;
    aspect-ratio: 16 / 9.2;
  }

  .agenda-card {
    min-height: 136px;
  }

  .agenda-card strong {
    font-size: 21px;
  }

  .article-shell {
    padding-top: 30px;
    padding-bottom: 64px;
    gap: 0;
  }

  .article-aside {
    display: none;
  }

  .article-header {
    margin-bottom: 20px;
  }

  .article-header .tag-row {
    gap: 6px;
    overflow: hidden;
  }

  .article-header .tag-row a {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .article-header .tag-row a:nth-child(n+5) {
    display: none;
  }

  .article-header h1 {
    margin: 15px 0 16px;
    max-width: 100%;
    font-size: clamp(27px, 7.85vw, 32px);
    line-height: 1.07;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .article-header p {
    font-size: 17px;
    line-height: 1.45;
  }

  .article-hero-image {
    margin: 20px 0 28px;
  }

  .content-body {
    font-size: 18px;
    line-height: 1.64;
  }

  .content-body h2 {
    font-size: 29px;
  }

  .content-body h3 {
    font-size: 23px;
  }

  .content-body figure {
    margin: 24px 0;
    padding: 8px;
  }

  .content-body blockquote {
    margin: 28px 0;
    padding: 18px;
    font-size: 19px;
  }
}

@media (max-width: 360px) {
  .hero,
  .topic-strip,
  .home-board,
  .agenda-section,
  .section-head,
  .section-band,
  .page-title,
  .post-grid,
  .archive-list,
  .tag-cloud,
  .article-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header {
    padding: 0 12px;
  }

  .hero-actions .button {
    font-size: 12px;
  }
}

/* AV DS 4 editorial scale repair: controlled type, density, and mobile rhythm. */
:root {
  --surface-base: #F4F0E6;
  --surface-raised: color-mix(in srgb, var(--surface-base), white 22%);
  --surface-muted: color-mix(in srgb, var(--surface-base), var(--color-muted) 7%);
  --surface-chip: color-mix(in srgb, var(--surface-base), white 30%);
  --border-hairline: color-mix(in srgb, var(--color-ink), transparent 89%);
  --border-subtle: color-mix(in srgb, var(--color-ink), transparent 82%);
  --border-strong: color-mix(in srgb, var(--color-ink), transparent 64%);
  --shadow-soft: 0 18px 48px color-mix(in srgb, var(--color-ink), transparent 90%);
  --font-ui: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  background: var(--surface-base);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
}

.brand {
  font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 2.7vw, 42px);
  font-weight: 780;
}

.brand-subline,
.top-nav,
.button,
.icon-link,
.chip,
.row-type,
.meta-row,
.post-row time,
.hero-feature-body span,
.topic-card span,
.agenda-card span,
.agenda-card em,
.editor-brief li,
.site-footer {
  font-family: var(--font-ui);
  letter-spacing: 0;
}

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

.top-nav {
  font-size: 14px;
  font-weight: 680;
}

.top-nav a {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.top-nav a:hover,
.header-button:hover,
.icon-link:hover,
.button:hover {
  background: color-mix(in srgb, var(--surface-base), white 28%);
}

.hero {
  min-height: auto;
  grid-template-columns: minmax(360px, 0.88fr) minmax(460px, 1fr);
  gap: clamp(34px, 5vw, 72px);
  padding-top: clamp(46px, 5.5vw, 82px);
  padding-bottom: clamp(34px, 4.5vw, 64px);
  align-items: center;
}

.hero h1,
.section-head h2,
.page-title h1,
.post-card h2,
.post-row h3,
.article-header h1,
.content-body h2,
.content-body h3,
.hero-feature-body strong,
.editor-brief strong,
.agenda-card strong,
.topic-card strong {
  font-family: var(--font-display);
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 780;
  line-height: 1.04;
}

.hero-subtitle {
  max-width: 600px;
  margin-top: 24px;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 760;
  line-height: 1.22;
  text-transform: none;
}

.hero-note {
  max-width: 560px;
  margin-top: 18px;
  padding-top: 18px;
  font-size: 16px;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 22px;
  gap: 10px;
}

.hero-actions .button,
.button,
.header-button {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 720;
}

.hero-stats {
  max-width: 520px;
  margin-top: 24px;
}

.hero-stats div {
  min-height: 68px;
  padding: 12px 14px;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 780;
}

.hero-stats dd {
  font-size: 11px;
  line-height: 1.2;
}

.hero-feature {
  min-height: clamp(350px, 34vw, 470px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-feature-body {
  left: clamp(18px, 2.4vw, 30px);
  right: clamp(18px, 2.4vw, 30px);
  bottom: clamp(18px, 2.4vw, 30px);
}

.hero-feature-body strong,
.hero-feature > strong {
  max-width: 620px;
  font-size: clamp(28px, 2.75vw, 42px);
  font-weight: 780;
  line-height: 1.07;
}

.hero-feature-body p {
  max-width: 600px;
  font-size: 15px;
  line-height: 1.5;
}

.topic-strip,
.home-board,
.agenda-section,
.section-band,
.section-head,
.page-title,
.post-grid,
.archive-list,
.tag-cloud,
.article-shell {
  max-width: var(--max);
}

.topic-strip {
  margin-bottom: clamp(34px, 4vw, 52px);
}

.topic-card {
  min-height: 104px;
  padding: 16px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-base), white 18%);
}

.topic-card strong {
  font-size: 15px;
  font-weight: 760;
}

.topic-card span {
  font-size: 13px;
  line-height: 1.34;
}

.home-board {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 28px;
}

.section-head {
  padding-top: clamp(36px, 5vw, 68px);
  padding-bottom: 18px;
  gap: 16px;
}

.section-head.compact {
  padding-top: 0;
}

.section-head h2,
.page-title h1 {
  max-width: 780px;
  font-size: clamp(32px, 3.25vw, 48px);
  font-weight: 780;
  line-height: 1.05;
}

.section-head a {
  font-size: 14px;
  font-weight: 720;
}

.post-grid {
  gap: 16px;
}

.post-card,
.archive-list .post-card.compact {
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-base), white 18%);
}

.post-card-body {
  padding: 18px;
}

.post-card h2,
.archive-list .post-card.compact h2 {
  max-width: 100%;
  font-size: clamp(20px, 1.72vw, 26px);
  font-weight: 760;
  line-height: 1.14;
  overflow-wrap: break-word;
}

.post-card.lead h2 {
  font-size: clamp(24px, 2.18vw, 30px);
  line-height: 1.12;
}

.post-card h2 a,
.post-row h3 a {
  display: block;
  overflow-wrap: break-word;
}

.post-card p {
  font-size: 14px;
  line-height: 1.52;
}

.post-card .meta-row,
.hero-feature-body .meta-row {
  gap: 14px;
  font-size: 12px;
  font-weight: 740;
}

.chip,
.row-type,
.hero-feature-body span,
.hero-feature > span {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: calc(var(--radius) - 2px);
  background: color-mix(in srgb, var(--color-accent), transparent 86%);
  color: var(--color-link);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  text-transform: uppercase;
}

.editor-brief {
  min-height: 0;
  padding: 22px;
  border-radius: var(--radius);
}

.editor-brief strong {
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 780;
  line-height: 1.08;
}

.editor-brief p {
  font-size: 14px;
  line-height: 1.55;
}

.editor-brief li {
  font-size: 13px;
  line-height: 1.3;
}

.agenda-grid {
  gap: 12px;
}

.agenda-card {
  min-height: 150px;
  padding: 16px;
  border-radius: var(--radius);
}

.agenda-card strong {
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 760;
  line-height: 1.12;
}

.section-columns {
  gap: 30px;
  padding-bottom: 76px;
}

.rail-list {
  border-top: 1px solid var(--border-subtle);
  background: transparent;
}

.post-row {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px 0;
  align-items: start;
  background: transparent;
}

.post-row h3 {
  margin-top: 9px;
  font-size: clamp(21px, 1.9vw, 28px);
  font-weight: 760;
  line-height: 1.13;
}

.post-row time {
  padding-top: 36px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.page-title {
  padding-top: clamp(50px, 6vw, 76px);
  padding-bottom: 28px;
}

.page-title h1 {
  font-size: clamp(36px, 3.9vw, 56px);
}

.page-title p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.54;
}

.archive-list {
  gap: 14px;
  padding-bottom: 70px;
}

.archive-list .post-card.compact {
  grid-template-columns: 220px minmax(0, 1fr);
}

.archive-list .post-card.compact .post-card-body {
  min-height: 0;
}

.archive-list .post-card.compact h2 {
  font-size: clamp(21px, 2vw, 30px);
}

.article-shell {
  max-width: calc(var(--article) + 342px);
}

.article-header h1 {
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 780;
  line-height: 1.05;
}

.article-header p {
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.45;
}

.content-body {
  font-family: var(--font-ui);
  font-size: 19px;
  line-height: 1.72;
}

.content-body h2 {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 760;
  line-height: 1.16;
}

.content-body h3 {
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 760;
  line-height: 1.18;
}

@media (max-width: 1180px) {
  .site-header-inner {
    grid-template-columns: minmax(240px, auto) minmax(0, 1fr) auto;
    gap: 16px;
  }

  .brand-subline {
    display: none;
  }

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

  .hero-feature {
    max-width: 720px;
  }

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

  .editor-brief {
    position: static;
    max-width: none;
  }
}

@media (max-width: 920px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

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

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

  .post-card.lead {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 14px;
  }

  .site-header-inner {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 0;
  }

  .brand {
    font-size: 28px;
  }

  .header-tools {
    gap: 6px;
  }

  .icon-link {
    width: 38px;
    height: 38px;
  }

  .header-button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .top-nav {
    width: calc(100vw - 28px);
    gap: 6px;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .top-nav a {
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid var(--border-hairline);
    background: color-mix(in srgb, var(--surface-base), white 18%);
    font-size: 11px;
    white-space: nowrap;
  }

  .hero {
    display: grid;
    padding: 28px 18px 26px;
    gap: 16px;
  }

  .hero-copy {
    display: contents;
  }

  .hero h1 {
    order: 1;
    max-width: 360px;
    font-size: clamp(38px, 10.2vw, 48px);
    line-height: 1.04;
  }

  .hero .hero-subtitle {
    order: 2;
    margin-top: 0;
    max-width: 340px;
    font-size: 14px;
    line-height: 1.28;
  }

  .hero .hero-note {
    order: 3;
    margin-top: 0;
    padding-top: 12px;
    max-width: 340px;
    font-size: 13px;
    line-height: 1.42;
  }

  .hero-actions {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-top: 0;
    gap: 8px;
  }

  .hero-actions .button {
    min-height: 40px;
    font-size: 12.5px;
  }

  .hero-feature {
    order: 5;
    min-height: 308px;
    margin-top: 2px;
  }

  .hero-feature-body {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }

  .hero-feature-body strong,
  .hero-feature > strong {
    max-width: 310px;
    font-size: clamp(21px, 6vw, 25px);
    line-height: 1.08;
  }

  .hero-feature-body p {
    display: none;
  }

  .hero-feature-body .meta-row {
    margin-top: 10px;
  }

  .hero-stats {
    order: 6;
    margin-top: 0;
  }

  .hero-stats div {
    min-height: 58px;
    padding: 9px 8px;
  }

  .hero-stats dt {
    font-size: 23px;
  }

  .hero-stats dd {
    font-size: 9px;
  }

  .topic-strip,
  .home-board,
  .agenda-section,
  .section-band,
  .section-head,
  .page-title,
  .post-grid,
  .archive-list,
  .tag-cloud,
  .article-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topic-strip {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 3px;
    overflow-x: auto;
  }

  .topic-card {
    flex: 0 0 214px;
    min-height: 94px;
    padding: 14px;
  }

  .home-board,
  .agenda-section,
  .section-band {
    padding-top: 0;
  }

  .section-head {
    padding-top: 26px;
    padding-bottom: 12px;
  }

  .section-head h2,
  .page-title h1 {
    font-size: clamp(30px, 8.8vw, 40px);
    line-height: 1.06;
  }

  .section-head a {
    font-size: 13px;
  }

  .post-grid,
  .agenda-grid {
    grid-template-columns: 1fr;
  }

  .post-card.lead {
    grid-column: auto;
  }

  .post-card-body {
    padding: 16px;
  }

  .post-card h2,
  .post-card.lead h2,
  .archive-list .post-card.compact h2 {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.17;
  }

  .post-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .post-card-media img,
  .post-card.lead .post-card-media img {
    aspect-ratio: 16 / 9.6;
  }

  .agenda-card {
    min-height: 126px;
  }

  .agenda-card strong {
    font-size: 20px;
  }

  .post-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 0;
  }

  .post-row h3 {
    margin-top: 8px;
    font-size: clamp(19px, 5.4vw, 24px);
    line-height: 1.14;
  }

  .post-row time {
    padding-top: 0;
    font-size: 12px;
  }

  .page-title {
    padding-top: 42px;
    padding-bottom: 22px;
  }

  .page-title p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.48;
  }

  .archive-list .post-card.compact {
    grid-template-columns: 1fr;
  }

  .archive-list .post-card.compact .post-card-media img {
    min-height: 0;
    aspect-ratio: 16 / 9.4;
  }

  .article-shell {
    padding-top: 28px;
    padding-bottom: 60px;
  }

  .article-header h1 {
    font-size: clamp(28px, 7.8vw, 34px);
    line-height: 1.08;
  }

  .article-header p {
    font-size: 16px;
  }

  .content-body {
    font-size: 17px;
    line-height: 1.68;
  }

  .content-body h2 {
    font-size: 26px;
  }

  .content-body h3 {
    font-size: 22px;
  }
}
