/* /future-of-personal-computing — a plain post. System fonts, one column,
   follows the system colour scheme, light when printed. */

:root {
  color-scheme: light dark;
  --bg: #fcfaf5;
  --ink: #1c1b18;
  --muted: #6b665c;
  --link: #0b4fa8;
  --rule: #ddd8cc;
  --quote: #8a8273;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --ink: #e4dfd5;
    --muted: #9b958a;
    --link: #8fb6ff;
    --rule: #333129;
    --quote: #8a8578;
  }
}

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0 auto;
  max-width: 38rem;
  padding: 1.25rem 1rem 4rem;
  background: var(--bg);
  color: var(--ink);
  font-family: Charter, "Bitstream Charter", "Iowan Old Style", "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.62;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.14em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.site { font-size: 0.9rem; color: var(--muted); margin: 0 0 3rem; }
.site a { color: var(--muted); text-decoration: none; }
.site a:hover { text-decoration: underline; }
.site span { margin: 0 0.3rem; }

.post-head { margin: 0 0 2.2rem; }
h1 { font-size: 2.35rem; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.sub { font-style: italic; font-size: 1.2rem; color: var(--muted); margin: 0 0 0.9rem; }
.date { font-size: 0.9rem; color: var(--muted); margin: 0; }

h2 { font-size: 1.45rem; line-height: 1.25; font-weight: 700; margin: 2.8rem 0 0.8rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.8rem 0 0.4rem; }
p { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1.15rem; }
li { margin-bottom: 0.45rem; }
em { font-style: italic; }
sup { font-size: 0.72em; line-height: 0; vertical-align: super; }
sup a { text-decoration: none; padding: 0 0.08em; }
sup a:hover { text-decoration: underline; }

blockquote { margin: 1.2rem 0 1.2rem 0; padding: 0 0 0 1rem; border-left: 3px solid var(--rule); color: var(--ink); }
blockquote p { margin: 0 0 0.4rem; font-style: italic; }
blockquote footer { font-size: 0.9rem; color: var(--quote); }

.notes { margin-top: 3.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--muted); }
.notes h2 { font-size: 1.15rem; margin: 0 0 0.6rem; color: var(--ink); }
.notes ol { padding-left: 1.6rem; }
.notes li { margin-bottom: 0.5rem; }
.notes li:target { color: var(--ink); }
.back { text-decoration: none; margin-left: 0.25rem; }

.site-foot { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.88rem; color: var(--muted); }
.site-foot p { margin: 0 0 0.4rem; }
.site-foot a { color: var(--muted); }

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  :root { --bg: #fff; --ink: #000; --muted: #333; --link: #000; --rule: #999; --quote: #333; color-scheme: light; }
  body { max-width: none; font-size: 11pt; }
  .site, .site-foot { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
