@font-face { font-family: "Geist Variable"; src: url("/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: dark;
  --background: oklch(0.17 0 0);
  --foreground: oklch(0.92 0 0);
  --card: oklch(0.205 0 0);
  --secondary: oklch(0.235 0 0);
  --muted: oklch(0.225 0 0);
  --muted-foreground: oklch(0.64 0 0);
  --accent: oklch(0.26 0 0);
  --border: oklch(0.29 0 0);
  --green: oklch(0.76 0.13 151);
  --green-dark: oklch(0.34 0.09 151);
  --amber: oklch(0.8 0.11 85);
  --radius: 0.72rem;
  --content: 72rem;
  --reading: 45rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -18rem, oklch(0.27 0.02 151 / 0.36), transparent 38rem),
    var(--background);
  color: var(--foreground);
  font-family: "Geist Variable", "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: oklch(0.44 0 0); color: white; }

.site-shell { width: min(calc(100% - 2rem), var(--content)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  border-bottom: 1px solid color-mix(in oklch, var(--border), transparent 25%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--foreground);
  font-size: 0.92rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid color-mix(in oklch, var(--green), transparent 45%);
  border-radius: 0.52rem;
  background: var(--green-dark);
  color: oklch(0.93 0.11 151);
  font-family: ui-monospace, monospace;
  font-size: 0.67rem;
  font-weight: 700;
}

.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a, .site-footer a {
  color: var(--muted-foreground);
  font-size: 0.86rem;
  text-decoration: none;
}
.site-header nav a:hover, .site-footer a:hover { color: var(--foreground); }

.hero { max-width: 54rem; padding: 8rem 0 6.5rem; }
.eyebrow, .article-kicker, .section-label {
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 0.55rem; }
.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0.8rem oklch(0.62 0.14 151 / 0.55);
}
.hero h1, .article-header h1 {
  margin: 1.35rem 0 1.15rem;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  font-weight: 520;
  letter-spacing: -0.062em;
  line-height: 0.98;
}
.hero p {
  max-width: 42rem;
  margin: 0;
  color: color-mix(in oklch, var(--foreground), transparent 26%);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.58;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-heading h2 { margin: 0; font-size: 0.79rem; letter-spacing: 0.1em; text-transform: uppercase; }
.section-heading span { color: var(--muted-foreground); font-family: ui-monospace, monospace; font-size: 0.75rem; }
.post-card { border-bottom: 1px solid var(--border); }
.post-card > a {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1.4fr) minmax(15rem, 1fr) auto;
  gap: 2rem;
  align-items: start;
  padding: 2.3rem 0;
  text-decoration: none;
}
.post-card > a:hover h3, .post-card > a:hover .read-link { color: var(--green); }
.post-card-meta { display: flex; flex-direction: column; gap: 0.35rem; color: var(--muted-foreground); font-family: ui-monospace, monospace; font-size: 0.72rem; }
.post-card h3 { margin: 0; font-size: 1.45rem; font-weight: 520; letter-spacing: -0.025em; line-height: 1.25; transition: color 140ms ease; }
.post-card p { margin: 0; color: var(--muted-foreground); line-height: 1.55; }
.read-link { color: color-mix(in oklch, var(--foreground), transparent 18%); font-size: 0.82rem; white-space: nowrap; transition: color 140ms ease; }

.article-layout { padding: 4.5rem 0 2rem; }
.article-header { width: 100%; max-width: calc(13rem + 4rem + var(--reading)); margin-inline: auto; padding: 0 0 5rem; }
.back-link { display: inline-block; margin-bottom: 4rem; color: var(--muted-foreground); font-size: 0.83rem; text-decoration: none; }
.back-link:hover { color: var(--foreground); }
.article-header h1 { max-width: 58rem; font-size: clamp(2.65rem, 6.7vw, 5.45rem); }
.article-deck { max-width: 46rem; margin: 1.6rem 0; color: color-mix(in oklch, var(--foreground), transparent 24%); font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.55rem; color: var(--muted-foreground); font-family: ui-monospace, monospace; font-size: 0.74rem; }
.article-grid { display: grid; grid-template-columns: 13rem minmax(0, var(--reading)); gap: 4rem; justify-content: center; align-items: start; }
.toc { position: sticky; top: 2rem; padding-top: 0.4rem; }
.toc > span { color: var(--muted-foreground); font-family: ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { display: grid; gap: 0.68rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.toc a { color: var(--muted-foreground); font-size: 0.78rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--foreground); }

.prose { min-width: 0; color: color-mix(in oklch, var(--foreground), transparent 9%); font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { scroll-margin-top: 2rem; margin: 4.3rem 0 1.2rem; color: var(--foreground); font-size: 1.85rem; font-weight: 560; letter-spacing: -0.032em; line-height: 1.2; }
.prose h3 { margin: 2.8rem 0 0.8rem; color: var(--foreground); font-size: 1.2rem; font-weight: 600; }
.prose p { margin: 1.25rem 0; }
.prose a { color: var(--green); text-underline-offset: 0.18em; }
.prose strong { color: var(--foreground); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.45rem 0; padding-left: 0.25rem; }
.prose li::marker { color: var(--green); }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.15rem 1.4rem;
  border: 1px solid color-mix(in oklch, var(--green), transparent 64%);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in oklch, var(--green-dark), transparent 60%);
  color: oklch(0.88 0.035 151);
}
.prose blockquote p { margin: 0; }
.prose table { display: block; width: 100%; margin: 2rem 0; overflow-x: auto; border-collapse: collapse; font-size: 0.9rem; }
.prose th, .prose td { padding: 0.78rem 0.9rem; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--secondary); color: var(--foreground); font-weight: 600; }
.prose td { background: color-mix(in oklch, var(--card), transparent 18%); }
.prose code:not(pre code) { padding: 0.16em 0.38em; border: 1px solid var(--border); border-radius: 0.35rem; background: var(--secondary); color: oklch(0.85 0.015 151); font-family: ui-monospace, monospace; font-size: 0.86em; }
.prose pre { margin: 1.8rem 0; padding: 1.15rem 1.25rem; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1.2rem 3rem color-mix(in oklch, black, transparent 74%); font-size: 0.82rem; line-height: 1.65; }

.comments { max-width: var(--reading); margin: 4rem auto 2rem; padding: 3rem 0 1rem; border-top: 1px solid var(--border); }
.comments h2 { margin: 0.65rem 0 0.3rem; font-size: 1.65rem; font-weight: 560; letter-spacing: -0.03em; }
.comments-intro { margin: 0 0 2rem; color: var(--muted-foreground); }
#remark42 { min-height: 6rem; color: var(--muted-foreground); font-size: 0.86rem; }

.site-footer { display: flex; justify-content: space-between; margin-top: 7rem; padding: 2rem 0 3rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.8rem; }
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  .hero { padding: 5rem 0 4rem; }
  .post-card > a { grid-template-columns: 1fr auto; gap: 0.9rem 1.25rem; }
  .post-card-meta, .post-card p { grid-column: 1 / -1; }
  .post-card h3 { grid-column: 1; }
  .read-link { grid-column: 2; grid-row: 2; }
  .article-grid { display: block; }
  .toc { display: none; }
}

@media (max-width: 520px) {
  .site-shell { width: min(calc(100% - 1.25rem), var(--content)); }
  .site-header { min-height: 4.5rem; }
  .site-header nav { gap: 1rem; }
  .hero h1, .article-header h1 { letter-spacing: -0.048em; }
  .post-card > a { padding: 1.8rem 0; }
  .post-card p { font-size: 0.92rem; }
  .article-layout { padding-top: 2.5rem; }
  .back-link { margin-bottom: 2.7rem; }
  .article-header { padding-bottom: 3.5rem; }
  .prose { font-size: 1rem; }
  .site-footer { display: grid; gap: 0.5rem; margin-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

.legal-page { max-width: var(--reading); margin: 4rem auto 0; overflow-wrap: anywhere; }
.legal-page h1 { margin: 0 0 1rem; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.1; letter-spacing: -0.045em; }
.legal-page h2 { margin: 2.5rem 0 0.75rem; font-size: 1.4rem; }
.legal-page a { color: var(--green); text-underline-offset: 0.18em; }
.legal-page .updated { color: var(--muted-foreground); }
address { font-style: normal; }
form { display: grid; gap: 1.25rem; margin-top: 2rem; }
label { display: grid; gap: 0.35rem; }
input, textarea { width: 100%; border: 1px solid var(--border); border-radius: 0.4rem; background: var(--card); color: var(--foreground); padding: 0.7rem; font: inherit; }
textarea { min-height: 12rem; resize: vertical; }
button { justify-self: start; background: var(--green-dark); color: var(--foreground); border: 1px solid var(--green); border-radius: 0.4rem; padding: 0.7rem 1rem; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.inquiry { border-top: 1px solid var(--border); padding: 1rem 0; }
.inquiry pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }

fieldset { border: 0; padding: 0; margin: 1.5rem 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 1rem; }
fieldset:disabled { opacity: 0.65; }
.consent-choice { display: flex; align-items: flex-start; gap: 0.75rem; }
.consent-choice input { width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin-top: 0.25rem; }
.download-link { display: inline-block; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 0.5rem; }
