/* technic.dev public site. Minimalist, reading-first editorial design:
   720px reading column, Inter, warm archival light / obsidian dark, one restrained vermilion mark. */
:root{--bg:#fcfaf6;--ink:#141413;--body:#2c2b28;--mute:#6e6a63;--rule:#e6e2d8;--box:#f4f1ea;--accent:var(--ink);--mark:#d64b1a;--font:"Inter",system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;color-scheme:light}
[data-theme=dark]{--bg:#111110;--ink:#f3f1ec;--body:#d4d0c8;--mute:#928d84;--rule:#292825;--box:#1b1a18;--mark:#ec6b3d;color-scheme:dark}
/* without JavaScript the system theme still applies */
@media(prefers-color-scheme:dark){:root:not([data-theme]){--bg:#111110;--ink:#f3f1ec;--body:#d4d0c8;--mute:#928d84;--rule:#292825;--box:#1b1a18;--mark:#ec6b3d;color-scheme:dark}}
*{box-sizing:border-box}
html,body{overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--body);font:400 17px/1.68 var(--font);-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1px}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.col{max-width:720px;margin:0 auto;padding:0 22px}
.top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 0}
.top>span{min-width:0;display:flex;align-items:baseline;flex-wrap:wrap}
.top nav{display:flex;align-items:center;flex-shrink:0}
.logo{font-weight:700;font-size:20px;letter-spacing:-.02em;color:var(--ink);text-decoration:none}
.top nav a{color:var(--mute);text-decoration:none;font-size:15px;margin-left:18px}
.top nav a:hover{color:var(--ink)}
h1{font-size:clamp(30px,5.2vw,42px);line-height:1.14;letter-spacing:-.028em;font-weight:800;color:var(--ink);margin:0 0 18px}
.lede{font-size:19px;line-height:1.58;color:var(--body);margin:0 0 28px}
h2{font-size:23px;line-height:1.25;letter-spacing:-.018em;font-weight:700;color:var(--ink);margin:46px 0 12px;scroll-margin-top:20px}
ul{margin:0;padding:0 0 0 1.15em}
li{margin:0 0 12px;padding-left:.2em}
li::marker{color:var(--mute)}
.src{font-size:15px;white-space:nowrap}
form.sub{display:flex;gap:8px;max-width:440px;width:100%;min-width:0;position:relative}
form.sub input{flex:1 1 0;min-width:0;width:0;font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--rule);border-radius:10px;padding:12px 14px;outline:0}
form.sub input:focus{border-color:var(--accent)}
form.sub button{font:inherit;font-weight:600;color:var(--bg);background:var(--accent);border:0;border-radius:10px;padding:0 20px;cursor:pointer;white-space:nowrap;flex-shrink:0}
form.sub button[disabled]{opacity:.6;cursor:default}
/* honeypot: present for bots, out of sight and out of the tab order for people */
form.sub input.hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;flex:none;padding:0;border:0;opacity:0}
/* "Subscribe with" an account: logo buttons right of Subscribe, quiet until hovered */
form.sub .acc{display:flex;gap:6px;flex:none;margin-left:2px}
form.sub .acc a{display:flex;align-items:center;justify-content:center;width:46px;box-sizing:border-box;color:var(--ink);background:var(--bg);border:1px solid var(--rule);border-radius:10px;text-decoration:none}
form.sub .acc a:hover,form.sub .acc a:focus-visible{border-color:var(--mute);outline:0}
form.sub .acc svg{width:18px;height:18px;display:block}
.fine{font-size:14px;color:var(--mute);margin:10px 0 0}
.done{color:var(--ink);font-weight:600;margin:0}
footer{font-size:14px;color:var(--mute);padding:40px 0 56px;line-height:1.6}
footer a{color:var(--mute)}
/* placeholder home, archive, static pages */
.hero{padding:64px 0 52px}
.hero h1{font-size:clamp(34px,6vw,48px);max-width:15em}
.page{padding:clamp(40px,8vh,80px) 0 0}
.page p,.page li{font-size:18px}
.page p{margin:0 0 16px}
.page code{font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;font-size:.88em;background:var(--box);padding:2px 6px;border-radius:5px}
.page pre.code{font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;font-size:13.5px;line-height:1.55;background:var(--box);border:1px solid var(--rule);border-radius:10px;padding:14px 16px;margin:0 0 18px;overflow-x:auto;color:var(--ink)}
.list h3{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);font-weight:600;margin:0 0 6px}
.list a{display:flex;gap:18px;align-items:baseline;padding:16px 0;border-top:1px solid var(--rule);text-decoration:none;color:var(--ink)}
.list a time{flex:0 0 58px;font-size:14px;color:var(--mute);font-variant-numeric:tabular-nums}
.list a strong{font-weight:600;line-height:1.4}
.list a:hover strong{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
/* A drawing-board ground, fixed behind the page: a faint grid, a few schematic parts, and now and then one
   point of data running along one trace. Layout and timing are random on every visit. */
#board{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;color:var(--ink)}
#board .g{stroke:currentColor;opacity:.035;fill:none}
#board .p{stroke:currentColor;stroke-width:1;stroke-linecap:round;fill:none;opacity:.04}
#board .d{fill:currentColor;opacity:0}
[data-theme=dark] #board .g{opacity:.045}[data-theme=dark] #board .p{opacity:.055}
.col,.where{position:relative;z-index:1}.where{position:fixed}
.theme{background:none;border:0;padding:0;margin-left:14px;font:inherit;font-size:15px;color:var(--mute);cursor:pointer}
.theme:hover{color:var(--ink)}
/* The issue is told as one story in scenes. The scene being read is crisp; adjacent scenes soften gently. */
.tag{font-size:14px;color:var(--mute);margin-left:12px;font-weight:400}
.open{padding:clamp(40px,9vh,96px) 0 clamp(32px,6vh,64px)}
.open .date{margin:0 0 18px;color:var(--mute);font-weight:500;font-size:14px}
.open p{font-size:clamp(25px,4.1vw,36px);line-height:1.28;letter-spacing:-.022em;font-weight:700;color:var(--ink);margin:0}
.open p + p{margin-top:.7em;color:var(--mute);font-weight:500}
.scene{padding:clamp(32px,5.5vh,52px) 0;transition:opacity .5s ease}
.scene + .scene{border-top:1px solid var(--rule)}
.js .scene{opacity:.52}
.js .scene.on{opacity:1}
.scene .n{display:block;font-size:12px;font-weight:600;color:var(--mute);letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px;font-variant-numeric:tabular-nums}
.scene h2{font-size:clamp(24px,3.4vw,30px);line-height:1.18;letter-spacing:-.024em;font-weight:800;margin:0 0 18px}
.scene p{font-size:18.5px;line-height:1.66;margin:0 0 16px;color:var(--body)}
.scene p:first-of-type{color:var(--ink)}
.scene .pic{margin:6px 0 22px}.scene .pic img{display:block;width:100%;height:auto;border-radius:10px}.scene .pic figcaption{font-size:12.5px;color:var(--mute);margin-top:6px}
.scene p.why strong{color:var(--ink)}
/* Standout editorial pull quote: restrained vermilion hairline, screenshot-ready */
.scene blockquote.pull{margin:20px 0 22px;padding:3px 0 3px 18px;border-left:3px solid var(--mark);font-size:20px;line-height:1.45;font-weight:600;letter-spacing:-.012em;color:var(--ink)}
.scene .take{background:var(--box);border-left:3px solid var(--mark);border-radius:0 10px 10px 0;padding:16px 20px 8px;margin:10px 0 20px}.scene .take .n{display:block;margin-bottom:8px;color:var(--mark)}.scene .take p{font-size:16.5px;line-height:1.58;margin:0 0 10px;color:var(--body)}.scene .take p strong{color:var(--ink)}
.scene .src{font-size:14.5px;color:var(--mute);margin:20px 0 0;white-space:normal}
.scene .src a{color:var(--mute)}
.scene li .src{white-space:nowrap}
.cut{font-size:18.5px;line-height:1.55;color:var(--mute);font-style:italic;margin:0;padding:8px 0 16px}
/* Closing thought after Other news lands with calm weight */
.scene[data-also] + .cut{color:var(--ink);font-style:normal;font-weight:700;font-size:21px;line-height:1.42;letter-spacing:-.015em;padding:26px 0 6px;border-top:1px solid var(--rule);margin-top:6px}
.sharebar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:18px 0 6px;font-size:14px;color:var(--mute)}
.sharebar button,.sharebar a{font:inherit;font-size:13.5px;font-weight:500;color:var(--ink);background:var(--bg);border:1px solid var(--rule);border-radius:8px;padding:6px 12px;text-decoration:none;cursor:pointer;line-height:1.2}
.sharebar button:hover,.sharebar a:hover{border-color:var(--mute)}
.scene ul{padding-left:1.1em;margin:0}
.scene li{font-size:17.5px;line-height:1.6;margin-bottom:10px}
.pager{display:flex;justify-content:space-between;gap:18px;font-size:15px;padding:clamp(28px,5vh,48px) 0 0}
.pager a{color:var(--mute);text-decoration:none}
.pager a:hover{color:var(--ink)}
.pager .nx{margin-left:auto;text-align:right}
.endcard{padding:clamp(40px,8vh,80px) 0 0}
.endcard h2{font-size:clamp(25px,3.6vw,32px);letter-spacing:-.025em;font-weight:800;margin:0 0 8px;color:var(--ink)}
.endcard p{margin:0 0 18px;color:var(--mute)}
.endcard p.done{color:var(--ink)}
/* progress: a restrained vermilion hairline that fills as the story is read */
.rail{position:fixed;left:0;top:0;height:2px;width:100%;z-index:5;background:transparent}
.rail i{display:block;height:100%;width:0;background:var(--mark)}
.where{position:fixed;right:20px;bottom:18px;font-size:13px;color:var(--mute);font-variant-numeric:tabular-nums;background:var(--bg);padding:4px 8px;border-radius:6px;border:1px solid var(--rule)}
.where:empty{display:none}
@media(prefers-reduced-motion:reduce){.scene{transition:none}.js .scene{opacity:1}}

/* "In this issue": heading + muted brief so readers grasp every story in three seconds. */
.toc{background:var(--box);border-radius:12px;padding:18px 20px 14px;margin:0 0 clamp(18px,4vh,36px)}
.toc b{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);font-weight:600;margin-bottom:8px}
.toc a{display:flex;gap:14px;align-items:baseline;padding:7px 0;color:var(--body);text-decoration:none;font-size:16px;line-height:1.45}
.toc a + a{border-top:1px solid var(--rule)}
.toc a span{flex:0 0 7.4em;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.toc a div{min-width:0}
.toc a strong{display:block;font-weight:600;color:var(--ink);line-height:1.35}
.toc a small{display:block;font-size:14.5px;color:var(--mute);margin-top:2px;line-height:1.4}
.toc a:hover strong{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.scene{scroll-margin-top:24px}
.ic{display:inline-block;vertical-align:-3px;margin-right:7px;flex:none}
.toc a span .ic{vertical-align:-2px;margin-right:6px}
.theme{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;vertical-align:middle;margin-left:12px}
.theme:hover{background:var(--box)}

/* front page: one row per newsletter */
.hero+.nls{margin-top:-20px}
.nls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 36px;padding:0 0 56px}
.nls .nl{padding:18px 0 20px;border-top:1px solid var(--rule)}
.nls a{display:block;text-decoration:none;color:var(--ink)}
.nls a.lt,.nls a.all{font-size:15px;line-height:1.5}
.nls a.lt:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.nls a.lt+a.lt{margin-top:4px}
.nls a.all{margin-top:8px;color:var(--mute);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.nls a.all:hover{color:var(--ink)}
.more{padding:clamp(24px,4vh,40px) 0 0}
.more h2{margin:0 0 10px;font-size:15px;font-weight:600;color:var(--ink)}
.more ul{list-style:none;margin:0;padding:0}
.more li{margin:0 0 6px;font-size:15px;line-height:1.5}
.more li a{color:var(--body);text-decoration:none}
.more li a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.more time{color:var(--mute);font-variant-numeric:tabular-nums;margin-right:10px}
.more .all{display:inline-block;margin-top:8px;font-size:15px;color:var(--mute)}
.more .all:hover{color:var(--ink)}
.nls b{display:block;font-size:18px;font-weight:600;line-height:1.35;letter-spacing:-.01em}
.nls span{display:block;margin-top:4px;font-size:15px;line-height:1.5;color:var(--mute)}
.nls .lt{margin-top:8px;color:var(--body)}
.nls .lt:not(:has(.ai)){padding-left:21px}
.nls .lt time{color:var(--mute);font-variant-numeric:tabular-nums;margin-right:6px}
.nls a:hover b{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a.tag{text-decoration:none}
a.tag:hover{color:var(--ink)}
@media(max-width:640px){.nls{grid-template-columns:1fr}}
form.leave button{font:inherit;font-weight:600;color:var(--bg);background:var(--accent);border:0;border-radius:10px;padding:12px 20px;cursor:pointer}
.nls span em{font-style:normal;color:var(--body)}
.hero .for{margin-top:-6px;margin-bottom:22px;max-width:46em}
.nls .nl:only-of-type{grid-column:1/-1}
.nls .lt .ai{display:inline-block;vertical-align:-2px;margin-right:6px;color:var(--mark)}
.topsub{display:flex;align-items:center;gap:10px;margin:-4px 0 28px;padding:0 0 14px;border-bottom:1px solid var(--rule);font-size:13.5px;line-height:1.3;color:var(--mute)}
.topsub span{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topsub form.sub.mini{flex:0 1 310px;gap:6px;min-width:0}
.topsub form.sub.mini input{padding:6px 10px;font-size:13.5px;border-radius:8px;height:34px;box-sizing:border-box}
.topsub form.sub.mini button{padding:0 13px;font-size:13.5px;border-radius:8px;height:34px}
.topsub form.sub.mini:has(.acc){flex-basis:365px}
.topsub form.sub.mini .acc{gap:4px;margin-left:2px}
.topsub form.sub.mini .acc a{width:34px;height:34px;border-radius:8px}
.topsub form.sub.mini .acc svg{width:16px;height:16px}
.topsub .done,.topsub .fine.err{margin:0;font-size:14px}
.topsub+.open{padding-top:clamp(18px,4vh,48px)}
.topsub.endsub{flex-wrap:nowrap;margin:clamp(36px,7vh,64px) 0 0;padding:16px 0 0;border-bottom:0;border-top:1px solid var(--rule)}
/* Front page sign-up: the issue page's one-line bar, with the newsletter chosen inside the sentence. */
.topsub.endsub.homesub{margin:-28px 0 0;flex-wrap:nowrap;gap:10px}
.topsub.endsub.homesub form.sub.mini:has(.acc){flex-basis:365px}
.homesub span.lead{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--mute)}
.homesub .sel{position:relative;display:inline-block;vertical-align:middle;margin:0 2px}
.homesub select{font:inherit;font-size:13.5px;font-weight:500;color:var(--ink);background:var(--bg);border:1px solid var(--rule);border-radius:8px;height:34px;padding:0 26px 0 10px;outline:0;-webkit-appearance:none;appearance:none;cursor:pointer;max-width:175px;text-overflow:ellipsis}
.homesub select:focus{border-color:var(--accent)}
.homesub .sel::after{content:"";position:absolute;right:10px;top:50%;width:6px;height:6px;margin-top:-5px;border-right:1.5px solid var(--mute);border-bottom:1.5px solid var(--mute);transform:rotate(45deg);pointer-events:none}

/* Mobile-safe layout (zero horizontal overflow down to 320px) */
@media(max-width:560px){
  body{font-size:16.5px}
  .col{padding:0 18px}
  .top{padding:18px 0;gap:8px}
  .logo{font-size:18px}
  .top nav a{margin-left:12px;font-size:14px}
  .theme{margin-left:8px;width:30px;height:30px}
  .tag{display:none}
  form.sub{flex-direction:column;max-width:100%}
  form.sub input{width:100%;flex:none}
  form.sub button{padding:12px 18px}
  form.sub .acc{margin:0}
  form.sub .acc a{flex:1;height:42px}
  .topsub,.topsub.endsub,.topsub.endsub.homesub{flex-wrap:wrap;gap:8px}
  .topsub span{display:none}
  .topsub form.sub.mini,.topsub form.sub.mini:has(.acc),.topsub.endsub.homesub form.sub.mini:has(.acc){flex:1 1 100%;flex-direction:row;flex-wrap:wrap;max-width:100%;flex-basis:100%}
  .topsub form.sub.mini input{flex:1 1 140px;width:0;min-width:0}
  .topsub form.sub.mini button{padding:0 14px;height:34px}
  .topsub form.sub.mini .acc{margin-left:0;gap:6px}
  .topsub form.sub.mini .acc a{flex:none;width:34px;height:34px}
  .homesub span.lead{display:block;flex-basis:100%;margin-bottom:2px;white-space:normal;overflow:visible}
  .topsub.endsub.homesub{margin-top:-32px}
  .toc a{flex-direction:column;gap:2px;padding:9px 0}
  .toc a span{flex:none}
  .scene p{font-size:17.5px}
  .scene blockquote.pull{font-size:18px;padding-left:14px}
  .scene li .src{white-space:normal}
}
