/* dvoworks.com
   Self-contained. Same visual system as steevoyang.com. */

:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --fg: #1b1a17;
  --muted: #5e5a53;
  --underline: rgba(27, 26, 23, 0.38);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --fg: #ece9e2;
    --muted: #b3ada2;
    --underline: rgba(236, 233, 226, 0.45);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Liberation Serif", "Noto Serif", serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  padding: 0.4rem 0.7rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.page {
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(4.75rem, 14vh, 8.5rem) 1.5rem 5rem;
}

.page:focus {
  outline: none;
}

h1,
h2,
p,
ul {
  margin: 0;
}

h1 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.011em;
  text-transform: lowercase;
}

.line {
  margin-top: 1.35rem;
}

.byline {
  margin-top: 2.75rem;
  font-size: 0.85em;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 0.2em;
}

a:visited {
  color: inherit;
}

a:hover {
  color: var(--fg);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

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

  .page {
    padding-inline: 1.25rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  a {
    text-decoration-color: currentColor;
  }
}
