:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f6f7;
  --fg: #17181a;
  --muted: #6b7076;
  --line: #dfe2e5;
  --accent: #174ea6;
  --accent-contrast: #ffffff;
  --focus: #0b57d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --surface: #15171a;
    --fg: #ebedef;
    --muted: #979ca3;
    --line: #2b2e33;
    --accent: #8ab4f8;
    --accent-contrast: #101215;
    --focus: #a8c7fa;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-180%);
  z-index: 100;
}

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

.wrap {
  margin: 0 auto;
  max-width: 720px;
  padding: 0 28px;
}

.site-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 80px;
}

.brand,
.nav-links a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  text-decoration: none;
}

.brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-links a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 10px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
}

.hero {
  padding: 84px 0 66px;
}

.eyebrow,
.section-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.65rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin-top: 18px;
  max-width: 690px;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  line-height: 1.65;
  margin-top: 28px;
  max-width: 640px;
}

.proof {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 18px;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 32px;
}

.action-primary,
.action-secondary {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
}

.action-primary {
  background: var(--fg);
  color: var(--bg);
}

.action-primary:hover {
  opacity: 0.88;
}

.action-secondary {
  border: 1px solid var(--line);
}

.action-secondary:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.section {
  padding: 52px 0 10px;
}

.section-label {
  margin-bottom: 24px;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 620px;
}

.rows > div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px 32px;
  grid-template-columns: minmax(160px, 200px) 1fr;
  padding: 22px 0;
}

.rows > div:last-child {
  border-bottom: 1px solid var(--line);
}

.rows dt {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rows dd {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.tag {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 5px;
}

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

.compact-list p,
.fit-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.compact-list strong,
.fit-card h3 {
  color: var(--fg);
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

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

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

.fit-card ul {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 12px 0 0 18px;
}

.fit-card li + li {
  margin-top: 7px;
}

.posts {
  list-style: none;
}

.posts li {
  align-items: baseline;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 17px 0;
}

.posts li:last-child {
  border-bottom: 1px solid var(--line);
}

.posts a {
  font-weight: 650;
  text-decoration: none;
}

.posts a:hover {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 4px;
}

.posts time,
.post time {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.writing-header {
  padding-bottom: 34px;
}

.post {
  border-top: 1px solid var(--line);
  display: block;
  padding: 22px 0;
  text-decoration: none;
}

.post:last-of-type {
  border-bottom: 1px solid var(--line);
}

.post .pt {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.post .pd {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-top: 6px;
}

.post time {
  display: block;
  margin-top: 8px;
}

.post:hover .pt {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 4px;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 56px;
  padding: 28px;
}

.contact-panel h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.contact-panel p {
  color: var(--muted);
  margin-top: 8px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.84rem;
  gap: 18px;
  justify-content: space-between;
  margin-top: 72px;
  padding: 30px 0 54px;
}

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

.footer-links a {
  min-height: 28px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 22px;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .nav-links {
    margin-left: -10px;
  }

  .hero {
    padding: 58px 0 48px;
  }

  .rows > div,
  .compact-list,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 42px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .nav-links {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0 4px;
  }

  .posts li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
