:root {
  --ink: #0b1831;
  --muted: #566884;
  --line: rgba(11, 24, 49, 0.1);
  --surface: rgba(255, 255, 255, 0.88);
  --accent: #0a60d1;
  --accent-deep: #084da8;
  --radius-xl: 28px;
  --shadow: 0 18px 50px rgba(15, 37, 73, 0.08);
  --max: 1180px;
  --read: 68ch;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(10, 96, 209, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 96, 209, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 96, 209, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.45;
}

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

.page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 32px;
}

.header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
}

.brand-mark svg { width: 24px; height: 18px; }
.brand-divider { color: rgba(10, 96, 209, 0.45); }

.nav { display: flex; gap: 24px; color: var(--muted); font-weight: 600; }

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"],
.footer a:hover,
.post-list a:hover h2,
.prose a,
.tool-link { color: var(--accent); }

.brand:focus-visible,
.nav a:focus-visible,
.button:focus-visible,
.footer a:focus-visible,
.post-list a:focus-visible,
.prose a:focus-visible,
.tool-link:focus-visible {
  outline: 3px solid rgba(10, 96, 209, 0.28);
  outline-offset: 4px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }

.intro { padding: 64px 0 28px; }

.intro h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.intro .lead {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.post-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.post-list a { display: block; padding: 26px; }
.post-list h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.12; }
.post-list p { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.post-meta { color: var(--muted); font-size: 0.92rem; }

.article {
  max-width: calc(var(--read) + 96px);
  margin: 40px auto 0;
  padding: clamp(22px, 5vw, 48px);
}

.article h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.02; }
.article .dek { margin: 16px 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }

.article .post-meta {
  margin: 18px 0 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.prose { max-width: var(--read); font-size: 1.08rem; line-height: 1.75; }
.prose p, .prose ul, .prose ol { margin: 1.1em 0 0; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; line-height: 1.2; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.post-foot {
  max-width: var(--read);
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
}

.post-foot p { margin: 0 0 6px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 20px;
  border-radius: 14px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.button:hover { background: var(--accent-deep); }

.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool { padding: 24px; }
.tool h2 { font-size: 1.3rem; }
.tool p { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.tool-link { display: inline-block; margin-top: 14px; font-weight: 700; }
.disclosure { margin-top: 18px; padding: 18px 22px; color: var(--muted); line-height: 1.6; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding: 8px 4px 0;
  color: var(--muted);
}

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

@media (max-width: 760px) {
  .page { width: min(calc(100% - 18px), var(--max)); margin: 10px auto 24px; }
  .header { top: 10px; padding: 10px 14px 10px 10px; border-radius: 28px; }
  .brand-divider, .brand-name { display: none; }
  .nav { gap: 16px; font-size: 0.95rem; }
  .intro { padding-top: 36px; }
  .tools { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}
