:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #ffffff;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.66);
  --line: rgba(0, 0, 0, 0.14);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 940px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

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

figure {
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 1000;
  padding: 9px 12px;
  border: 1px solid var(--text);
  background: var(--paper);
  color: var(--text);
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

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

.page-shell {
  min-height: 100vh;
}

.site-header {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px clamp(14px, 2vw, 28px) 11px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 48px;
  height: auto;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
  max-width: 46ch;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.22;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  line-height: 1.2;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 700;
}

.page-main {
  width: min(calc(100% - 22px), var(--max));
  margin: 0 auto;
  padding: 10px 0 12px;
}

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

.page-intro {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.9rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.page-post .page-intro h1 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.intro-subtitle {
  margin-top: 7px;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.page-section {
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 7px;
}

.section-head h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose {
  max-width: 76ch;
  display: grid;
  gap: 0.78rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.pillar {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.pillar h3 {
  margin: 0 0 4px;
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.entry-list {
  display: grid;
  gap: 10px;
}

.entry {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 3px;
}

.entry h3 {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.35;
  font-weight: 700;
}

.entry h3 a {
  color: var(--text);
}

.entry-meta {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.entry-org {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-summary {
  margin-top: 3px;
  max-width: 76ch;
  font-size: 0.93rem;
}

.entry-points {
  margin: 0.42rem 0 0;
  padding-left: 1.05rem;
  max-width: 76ch;
  color: var(--muted);
}

.entry-points li + li {
  margin-top: 0.28rem;
}

.link-groups {
  display: grid;
  gap: 10px;
}

.link-group h3 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  max-width: 76ch;
  font-size: 0.93rem;
}

.link-row span {
  color: var(--muted);
}

.link-row a {
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
  padding: 10px 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  display: grid;
  gap: 4px;
}

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

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

@media (max-width: 860px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .brand-copy {
    max-width: 52ch;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    padding: 10px 14px 9px;
  }

  .brand-mark {
    width: 42px;
  }

  .page-main,
  .site-footer-inner {
    width: min(calc(100% - 18px), var(--max));
  }

  .page-main {
    padding: 8px 0 10px;
  }

  .page-intro h1 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .page-section {
    padding-top: 7px;
  }

  .entry-meta {
    white-space: normal;
  }
}
