/* ziemba.net, personal site. One stylesheet, no dependencies. Light and dark follow the system setting. */
:root {
  --bg: #fbf6ee;
  --bg-alt: #f3ebdd;
  --surface: #fffdf9;
  --line: #e0d4c0;
  --text: #2a211a;
  --muted: #6b5d50;
  --accent: #b4532a;
  --accent-ink: #fffaf3;
  --link: #9a4420;
  --wrap: 920px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1512;
    --bg-alt: #211b17;
    --surface: #2a221d;
    --line: #40342b;
    --text: #f1e8dc;
    --muted: #b8a999;
    --accent: #e8875a;
    --accent-ink: #25150c;
    --link: #f0a47f;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 600 1.1rem var(--serif); color: var(--text); text-decoration: none; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 .95rem var(--serif); }
.site-header nav { display: flex; gap: clamp(.9rem, 3vw, 1.6rem); }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.site-header nav a:hover { color: var(--text); }

.hero { padding: clamp(3.5rem, 11vw, 7.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.hello { font: italic 1.3rem var(--serif); color: var(--accent); margin: 0 0 .2rem; }
.hero h1 { margin-bottom: .45em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 34em; line-height: 1.55; }
.lede.small { font-size: 1.05rem; color: var(--muted); }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { margin-bottom: 1.2em; }

.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.places a { display: grid; gap: .15rem; padding: 1.4rem .5rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background .15s ease, padding-left .15s ease; }
.places a:hover, .places a:focus-visible { background: var(--surface); padding-left: 1.1rem; }
.kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.places strong { font: 600 clamp(1.4rem, 3vw, 1.8rem)/1.2 var(--serif); }
.places .text { color: var(--muted); max-width: 40em; }

.making { display: grid; gap: 1.8rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.making p { color: var(--muted); margin: 0; }
.making h3 { margin-bottom: .35em; }
.note { max-width: 680px; }
.note p { color: var(--muted); }

.prose { max-width: 680px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose li { margin-bottom: .7em; }
.updated { color: var(--muted); font-size: .92rem; }

.site-footer { border-top: 1px solid var(--line); padding: 1.8rem 0 2.4rem; color: var(--muted); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.4rem; }
.foot nav a { color: var(--muted); }
