/* danbaker.net
   One serif family, ink on warm paper, one accent.
   No build step, no dependencies, no web fonts, no JavaScript. */

:root {
  --ink:      #1a1714;
  --ink-soft: #5d554c;
  --paper:    #faf8f4;
  --accent:   #8a3324;

  --measure:  30rem;
  --serif:    "Iowan Old Style", "Palatino Linotype", Palatino,
              "Book Antiqua", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #ebe5db;
    --ink-soft: #9a9186;
    --paper:    #16140f;
    --accent:   #d98c73;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.intro {
  margin: 0 0 3.5rem;
  text-wrap: pretty;
}

.links {
  margin: 0 0 3.5rem;
  padding: 0;
  list-style: none;
}

.links li { margin-bottom: 0.85rem; }
.links li:last-child { margin-bottom: 0; }

.note {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-style: italic;
}

.note::before { content: "\2002"; }

.contact { margin: 0; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover, a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

@media (max-width: 32rem) {
  body { font-size: 1.0625rem; }
  main { padding: 4rem 1.375rem; }
  h1 { font-size: 2.125rem; }
  .intro, .links { margin-bottom: 2.75rem; }
}

@media print {
  :root { --ink: #000; --ink-soft: #444; --paper: #fff; --accent: #000; }
  body { font-size: 11pt; }
  main { max-width: none; padding: 0; }
  a { text-decoration: none; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
}
