:root{
  --bg:#ffffff;
  --fg:#0a0a0a;
  --muted:#737373;
  --faint:#767676;
  --line:#ececec;
  --hover:#f6f6f6;
  --code:#f4f4f5;
  --accent:#a8e02f;
  --accent-box:#c5f05a;
  --w:40rem;
  --sans:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){--bg:#0a0a0a;--fg:#ededed;--muted:#8f8f8f;--faint:#858585;--line:#1f1f1f;--hover:#141414;--code:#161616;--accent:#a8e02f;color-scheme:dark}
}
:root[data-theme="dark"]{--bg:#0a0a0a;--fg:#ededed;--muted:#8f8f8f;--faint:#858585;--line:#1f1f1f;--hover:#141414;--code:#161616;--accent:#a8e02f;color-scheme:dark}
:root[data-theme="light"]{color-scheme:light}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font-family:var(--sans);font-size:16px;line-height:1.65;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  font-feature-settings:"ss01","cv11";
}
::selection{background:var(--fg);color:var(--bg)}
.sheet{max-width:var(--w);margin:0 auto;padding:72px 24px 56px}
a{color:inherit;text-decoration:none}

/* header */
.mast{display:flex;justify-content:space-between;align-items:center;margin-bottom:88px}
.mast .name{font-weight:500;letter-spacing:-.01em;background:var(--accent-box);color:var(--box-fg,#141414);padding:3px 9px 4px;border-radius:0;margin-left:-9px;transition:background .15s}
.mast .name:hover{background:var(--accent)}
.mast nav{display:flex;gap:20px}
.mast nav a{color:var(--muted);transition:color .15s}
.mast nav a:hover{color:var(--fg)}
.mast nav{align-items:center}
.theme{appearance:none;background:none;border:0;padding:6px;margin:-6px -6px -6px 0;border-radius:8px;color:var(--muted);cursor:pointer;display:inline-flex;transition:color .15s,background .15s}
.theme:hover{color:var(--fg);background:var(--hover)}
.theme:focus-visible{outline:2px solid var(--fg);outline-offset:2px}
.theme svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme .sun{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .theme .sun{display:block}:root:not([data-theme="light"]) .theme .moon{display:none}}
:root[data-theme="dark"] .theme .sun{display:block}
:root[data-theme="dark"] .theme .moon{display:none}
body,.index a{transition:background-color .2s,color .2s}

/* type */
h1{font-size:2rem;line-height:1.15;font-weight:600;letter-spacing:-.035em;margin:0 0 12px}
h1.page{margin-bottom:32px}
h2{font-family:var(--mono);font-size:.75rem;font-weight:400;letter-spacing:.02em;color:var(--faint);margin:72px 0 16px}
p{margin:0 0 1.1em}
ul{margin:0;padding:0;list-style:none}
li{position:relative;padding-left:20px;margin:.45em 0;color:var(--fg)}
li::before{content:"";position:absolute;left:2px;top:.78em;width:6px;height:1px;background:var(--muted)}
.quiet{color:var(--muted)}

/* hero */
.hero p{color:var(--muted)}
.hero a{color:var(--fg);transition:color .15s}
.hero a::after{content:"\2197";display:inline-block;font-size:.8em;margin-left:2px;color:var(--faint);transition:transform .15s,color .15s}
.hero a:hover::after{color:var(--fg);transform:translate(1px,-1px)}
.hero p:first-child{color:var(--fg);font-size:1.6rem;line-height:1.25;font-weight:500;letter-spacing:-.03em;margin-bottom:20px;max-width:none}

/* post index */
.index{list-style:none;padding:0;margin:0 -12px}
.index li{padding:0;margin:0}
.index li::before{display:none}
.index a{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:11px 12px;border-radius:8px;transition:background .15s}
.index a:hover{background:var(--hover)}
.index .t{font-weight:400}
.index time{font-family:var(--mono);font-size:.8rem;color:var(--faint);white-space:nowrap;font-variant-numeric:tabular-nums}
.draft{font-family:var(--mono);font-size:.68rem;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:1px 5px;margin-left:8px;vertical-align:2px}
.more{margin-top:16px}
.more a{color:var(--muted);font-size:.9rem}
.more a:hover{color:var(--fg)}

/* article */
article header{margin-bottom:48px}
.back{margin:0 0 40px;font-size:.9rem}
.back a{color:var(--muted)}
.back a:hover{color:var(--fg)}
.meta{font-family:var(--mono);font-size:.8rem;color:var(--faint);margin:0}
.prose{font-size:1.0625rem;line-height:1.75}
.prose h2{font-family:var(--sans);font-size:1.2rem;font-weight:600;letter-spacing:-.02em;color:var(--fg);margin:48px 0 12px}
.prose h3{font-size:1.05rem;font-weight:600;margin:32px 0 8px}
.prose a{text-decoration:underline;text-decoration-color:var(--faint);text-underline-offset:3px;text-decoration-thickness:1px}
.prose a:hover{text-decoration-color:var(--fg)}
.prose ul{margin:0 0 1.1em}
.prose em{color:var(--muted)}
blockquote{margin:1.6em 0;padding:0 0 0 18px;border-left:2px solid var(--fg)}
blockquote p{margin:0}
code{font-family:var(--mono);font-size:.86em;background:var(--code);padding:.12em .38em;border-radius:5px}
pre{background:var(--code);border-radius:10px;padding:16px 18px;overflow-x:auto;font-size:.85rem;line-height:1.6;margin:1.6em 0}
pre code{background:none;padding:0;font-size:inherit}

/* footer */
.foot{margin-top:120px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.85rem;color:var(--faint)}
.foot .links{display:flex;gap:20px}
.foot a{color:var(--muted)}
.foot a:hover{color:var(--fg)}

@media (max-width:560px){
  .sheet{padding:40px 20px 40px}
  .mast{margin-bottom:56px}
  .hero p:first-child{font-size:1.35rem}
  h2{margin-top:56px}
  .index a{flex-direction:column;gap:2px}
  .foot{margin-top:80px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}



/* section header meta */
h2:has(.status){display:flex;justify-content:space-between;align-items:center}
.status{color:var(--faint)}

/* project rows (share .index anatomy with writing) */
.index .row{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:11px 12px}
.state{font-family:var(--mono);font-size:.8rem;color:var(--faint);white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.state.live::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent-box);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-box) 25%,transparent)}
@media (max-width:560px){.index .row{flex-direction:column;gap:2px}}

/* post summaries */
.index .t{display:flex;flex-direction:column;gap:2px;min-width:0}
.index .sum{color:var(--muted);font-size:.9rem;line-height:1.5}
.index a{align-items:baseline}

/* upcoming posts */
.index a.soon{cursor:pointer}
.index .when{font-family:var(--mono);font-size:.8rem;color:var(--faint);white-space:nowrap}
