/* 1uke.io — minimal, text-forward. No JS, no framework. */
:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e6e4df;
  --bg: #fdfdfb;
  --accent: #8a1c1c;      /* restrained crimson, lobste.rs-adjacent */
  --code-bg: #f4f2ee;
  --max: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e6e1; --muted: #9a978f; --rule: #2c2b28;
    --bg: #16151300; --bg: #161513; --accent: #e5793f; --code-bg: #211f1c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.25rem 5rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; font-weight: 650; }
h1 { font-size: 1.7rem; margin: 0 0 .3rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 2.4rem 0 .6rem; }
p, li { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.muted { color: var(--muted); }
small, .meta { color: var(--muted); font-size: .875rem; }

/* masthead */
header.site { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 2.5rem; }
header.site .name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
header.site nav a { color: var(--muted); margin-left: .9rem; font-size: .9rem; }

/* index list */
ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { padding: .55rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; }
ul.posts .date { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .875rem; white-space: nowrap; }

/* essay */
article p { margin: 1.05rem 0; }
article h1 { margin-bottom: .2rem; }
.lede { color: var(--muted); font-size: 1.05rem; margin: .2rem 0 1.6rem; }
blockquote { margin: 1.4rem 0; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 3px; font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
pre { background: var(--code-bg); padding: .9rem 1rem; border-radius: 6px; overflow-x: auto; font-size: .86rem; line-height: 1.5; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; margin: 1.4rem 0; font-size: .93rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 650; }
.foot { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
