@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/host-grotesk-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111214;
  --muted: #5f6265;
  --line: #e6e7e7;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Host Grotesk", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body { min-width: 320px; margin: 0; line-height: 1.5; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #32136b; outline-offset: 3px; }
.frame { width: min(100%, 1080px); margin-inline: auto; border-inline: 1px solid var(--line); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; height: 56px; align-items: center; padding-inline: 40px; }
.header-logo { display: inline-flex; flex: none; align-items: center; }
.header-logo img { display: block; width: 20px; height: 20px; }
.site-header nav { display: flex; align-items: center; gap: 30px; margin-left: 36px; color: #4f5153; font-size: 14px; }
.site-header nav a { text-decoration: none; transition: color 150ms ease; }
.site-header nav a:hover, .site-header nav a.section-current { color: var(--ink); }
.site-header nav a.section-current { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 3px; font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1.25; text-decoration: none; transition: opacity 150ms ease, background-color 150ms ease; }
.button:hover { opacity: .82; }
.button-primary { background: var(--ink); color: #fff; }
.button-secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.header-actions .button { min-height: 32px; padding-inline: 14px; }
.header-actions .button-secondary { font-weight: 400; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: #51555a; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; line-height: 1.5; }
.eyebrow > span { width: 3px; height: 14px; background: #17191a; }
.index-hero, .article-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.index-hero::after, .article-hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(255,255,255,.5)), url("/blog-clouds-bottom-right.webp") right bottom / cover no-repeat; content: ""; pointer-events: none; }
.index-hero { min-height: 500px; }
.hero-inner { position: relative; z-index: 1; padding: 122px 40px 50px; }
.index-hero h1, .article-hero h1 { max-width: 860px; margin: 22px 0 0; font-family: var(--display); font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 500; letter-spacing: 0; line-height: 1.1; text-wrap: balance; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 56px; }
.hero-summary { max-width: 560px; margin: 0; color: #505357; font-size: 17px; line-height: 1.6; }
.hero-bottom .button { flex: none; }

.index-posts, .related { border-bottom: 1px solid var(--line); }
.section-intro { padding: 82px 40px 58px; }
.section-intro h2 { margin: 20px 0 0; font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.25rem); font-weight: 500; line-height: 1.15; }
.section-intro > p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.section-link { display: inline-flex; margin-top: 22px; font-size: 14px; font-weight: 500; text-decoration: none; }
.section-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.post-card { --accent: #d7f6f7; position: relative; min-width: 0; min-height: 328px; border-right: 1px solid var(--line); background: #fff; transition: background-color 150ms ease; }
.post-card:nth-child(2) { --accent: #e8e2fa; }
.post-card:nth-child(3) { --accent: #ffe3cf; }
.post-card:last-child { border-right: 0; }
.post-card::before { position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); content: ""; }
.post-card:hover { background: #fafbfa; }
.post-card > a { display: flex; min-height: inherit; flex-direction: column; justify-content: space-between; gap: 24px; padding: 38px 30px 28px; text-decoration: none; }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #696c6e; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.post-card h3 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.16; text-wrap: balance; }
.post-card p { margin: 0; color: #606467; font-size: 14px; line-height: 1.6; }
.card-bottom span { color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }

.article-hero .hero-inner { padding-top: 40px; padding-bottom: 60px; }
.back-link { display: inline-flex; margin-bottom: 88px; color: #505357; font-size: 13px; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-hero h1 { max-width: 900px; font-size: clamp(2.1rem, 5vw, 3.35rem); }
.article-hero .hero-bottom { align-items: flex-end; }
.article-meta { display: flex; flex: none; gap: 11px; color: #666b6d; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.article-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.article-rail { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 74px 20px 0 40px; border-right: 1px solid var(--line); color: #777d7d; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; line-height: 1.5; }
.rail-line { width: 34px; height: 1px; background: #c7cecb; }
.prose { min-width: 0; max-width: 760px; padding: 72px 56px 94px; color: #414548; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 24px; }
.prose h2 { margin: 56px 0 19px; color: var(--ink); font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 500; line-height: 1.2; scroll-margin-top: 78px; }
.prose h3 { margin: 34px 0 16px; color: var(--ink); font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.prose a { color: #245d54; text-decoration: underline; text-decoration-color: #accfc4; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ol, .prose ul { margin: 0 0 26px; padding-left: 24px; }
.prose li { padding-left: 4px; margin-bottom: 8px; }
.prose li::marker { color: #4b8075; }
.prose table { display: block; max-width: 100%; margin: 30px 0 32px; overflow-x: auto; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.prose th, .prose td { min-width: 140px; border: 1px solid #e1e5e3; padding: 11px 13px; text-align: left; vertical-align: top; }
.prose th { background: #f5f7f6; color: var(--ink); font-weight: 600; }
.prose code { padding: 2px 4px; background: #f2f4f3; font-family: var(--mono); font-size: .86em; }
.prose pre { padding: 18px; overflow: auto; background: #f2f4f3; }
.prose pre code { padding: 0; }
.related .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related .post-card { min-height: 270px; }
.closing { display: flex; min-height: 380px; flex-direction: column; align-items: center; justify-content: center; padding: 62px 20px; text-align: center; }
.closing .eyebrow { margin-bottom: 24px; }
.closing h2 { max-width: 700px; margin: 0 0 32px; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 500; line-height: 1.1; text-wrap: balance; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.site-footer { background-image: repeating-linear-gradient(to right, var(--line) 0 8px, transparent 8px 18px); background-position: top left; background-repeat: repeat-x; background-size: auto 1px; }
.footer-inner { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 20px; padding-inline: 40px; color: #696c6e; font-size: 12px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.missing { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 70px 40px; }
.missing h1 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; }
.missing p { color: var(--muted); font-size: 16px; }
.missing a { text-underline-offset: 3px; }

@media (min-width: 781px) and (max-width: 1100px) {
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 26px; }
  .header-actions .button-secondary { display: none; }
  .article-hero .hero-bottom { align-items: flex-start; }
}
@media (max-width: 780px) {
  .header-inner { padding-inline: 22px; }
  .site-header nav { gap: 0; margin-left: 26px; }
  .site-header nav a:not(.section-current) { display: none; }
  .header-actions .button-secondary { display: none; }
  .hero-inner { padding: 108px 28px 50px; }
  .index-hero { min-height: 460px; }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 24px; margin-top: 42px; }
  .article-hero .hero-bottom { align-items: flex-start; }
  .section-intro { padding: 70px 28px 48px; }
  .post-grid, .related .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-card:last-child { border-bottom: 0; }
  .post-card > a { padding: 32px 28px 26px; }
  .article-hero .hero-inner { padding-top: 28px; }
  .back-link { margin-bottom: 68px; }
  .article-body { grid-template-columns: 1fr; }
  .article-rail { display: none; }
  .prose { max-width: 760px; padding: 58px 28px 78px; }
  .footer-inner { padding-inline: 28px; }
}
@media (max-width: 480px) {
  .frame { border-inline: 0; }
  .header-inner { padding-inline: 20px; }
  .header-actions .button { min-height: 32px; padding-inline: 10px; font-size: 12px; }
  .hero-inner { padding-inline: 22px; }
  .index-hero { min-height: 440px; }
  .index-hero h1, .article-hero h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .hero-summary { font-size: 15px; }
  .section-intro { padding: 58px 22px 42px; }
  .post-card > a { padding: 32px 22px 26px; }
  .card-bottom { flex-wrap: wrap; }
  .prose { padding: 50px 22px 70px; font-size: 15px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 25px 22px; }
  .closing { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .site-header nav a, .post-card { transition: none; }
}
