/* tarlatan.org. Colors come from the artwork: the parchment of the
   sketch, the dark wood of the table and the red of the pencil. System
   fonts only; no scripts. */

:root {
  --paper: #f6efe1;
  --ink: #2b201c;
  --muted: #5e4c42;
  --accent: #9c3a26;
  --rule: #d8c8a8;
  --well: #ece2cc;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1f1715;
    --ink: #ecdfc8;
    --muted: #bfae98;
    --accent: #e39a7d;
    --rule: #4a3a32;
    --well: #2a201d;
  }
}

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

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

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0 1rem 3rem;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

.skip {
  position: absolute;
  left: -100vw;
}

.skip:focus {
  position: static;
  display: inline-block;
  margin-top: 0.5rem;
}

.masthead {
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--rule);
}

.name {
  margin: 0;
  font-size: 2.25rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h1 {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: normal;
  font-style: italic;
  color: var(--muted);
}

.release {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.art {
  margin: 1.5rem 0;
}

.art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.lede {
  font-size: 1.25rem;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.25;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.125rem;
}

h3 + p {
  margin-top: 0;
}

ul {
  padding-left: 1.25rem;
}

main li + li {
  margin-top: 0.5rem;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
}

:not(pre) > code {
  padding: 0 0.2em;
  background: var(--well);
  border-radius: 2px;
}

pre {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  background: var(--well);
  border-left: 3px solid var(--accent);
  line-height: 1.45;
}

pre code {
  font-size: 0.8rem;
}

.license {
  font-weight: bold;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer a {
  color: inherit;
}
