:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-subtle: #eef2ef;
  --ink: #171b1f;
  --muted: #626c72;
  --quiet: #8a949a;
  --line: #d8dedb;
  --line-strong: #aeb9b5;
  --accent: #0f4c5c;
  --accent-soft: #e4eef0;
  --signal: #254f3e;
  --warning: #7b5a16;
  --warning-soft: #f2ebd8;
  --danger-soft: #f0e2df;
  --shadow: 0 18px 50px rgba(23, 27, 31, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfcfb 0, var(--bg) 360px),
    var(--bg);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #0a3540;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 246, 0.96);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0 20px;
}

.wordmark {
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-subtitle {
  color: var(--muted);
  font-size: 15px;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.page {
  padding: 48px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
}

.hero-kicker,
.eyebrow {
  color: var(--accent);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 10px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.lead {
  max-width: 740px;
  color: #344047;
  font-size: 20px;
}

.panel,
.brief-card,
.archive-item,
.memo-header,
.note-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel,
.brief-card,
.archive-item,
.memo-header,
.note-panel {
  border-radius: 6px;
}

.brief-card,
.memo-header,
.note-panel {
  padding: 26px;
}

.panel {
  padding: 24px;
}

.latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.section-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.15;
}

.brief-title {
  margin: 8px 0 10px;
  font-size: 36px;
  line-height: 1.08;
}

.meta-line,
.memo-meta {
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

.memo-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 0;
}

.summary {
  color: #283239;
  font-size: 18px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-secondary {
  color: var(--accent);
  background: transparent;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: #2d373d;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.badge-posture {
  background: var(--accent-soft);
  border-color: #b7cdd3;
  color: var(--accent);
}

.badge-confidence {
  background: #e7ece8;
  border-color: #c5d0c8;
  color: var(--signal);
}

.badge-evidence {
  background: #edf0f2;
  border-color: #cfd7db;
  color: #37434a;
}

.badge-warning {
  background: var(--warning-soft);
  border-color: #dac58d;
  color: var(--warning);
}

.matter-list,
.watch-list {
  margin: 0;
  padding-left: 22px;
}

.matter-list li,
.watch-list li {
  margin: 10px 0;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.archive-shell {
  max-width: 900px;
}

.archive-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
}

.archive-filter a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.archive-filter a.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.archive-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-item {
  padding: 22px;
}

.archive-item h3 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.18;
}

.archive-summary {
  margin-bottom: 0;
  color: #344047;
}

.memo {
  max-width: 880px;
}

.memo-body {
  margin-top: 22px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.memo-body h1,
.static-body h1 {
  margin: 0 0 20px;
  font-size: 42px;
  line-height: 1.05;
}

.memo-body h2,
.static-body h2 {
  margin: 40px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 28px;
  line-height: 1.15;
}

.memo-body h3,
.static-body h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.memo-body p,
.memo-body li,
.static-body p,
.static-body li {
  color: #2d363b;
  font-size: 17px;
}

.memo-body ul,
.memo-body ol,
.static-body ul,
.static-body ol {
  padding-left: 24px;
}

.memo-body li,
.static-body li {
  margin: 8px 0;
}

.memo-body blockquote,
.static-body blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #2d363b;
}

.memo-body table,
.static-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

.memo-body th,
.memo-body td,
.static-body th,
.static-body td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.memo-body code,
.memo-body pre,
.static-body code,
.static-body pre {
  background: #edf0f2;
  color: #39454c;
  font-family: Consolas, "Liberation Mono", monospace;
}

.memo-body code,
.static-body code {
  padding: 2px 5px;
  border-radius: 3px;
}

.memo-body pre,
.static-body pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.static-page {
  max-width: 860px;
}

.static-body {
  padding: 34px;
}

.cta-band {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f0f4f5;
}

.newsletter-cta,
.feedback-panel,
.share-panel {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f0f4f5;
}

.newsletter-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: end;
}

.share-panel {
  display: grid;
  gap: 16px;
  background: #fafbfa;
}

.share-panel h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-actions .button {
  min-height: 38px;
}

.copy-status {
  margin: 0;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

.newsletter-cta h2,
.feedback-panel h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.newsletter-embed {
  overflow-x: auto;
}

.feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.feedback-options button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #2d373d;
  background: #fff;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-options button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.feedback-note {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

.feedback-note textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: inherit;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #eef1ef;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner,
  .hero,
  .latest-grid,
  .teaser-grid,
  .newsletter-cta {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 44px;
  }

  .brief-title {
    font-size: 30px;
  }

  .memo-body,
  .static-body,
  .brief-card,
  .memo-header,
  .note-panel {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .newsletter-form {
    justify-content: flex-start;
  }
}
