:root {
  --paper: #f3efe4;
  --paper-raised: #fbf8f1;
  --ink: #1b1914;
  --muted: #5c564c;
  --line: #d4cbbd;
  --copper: #8c4328;
  --sea: #1a4552;
  --moss: #234237;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(27, 25, 20, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 25, 20, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 0.7rem;
  z-index: 3;
}

.skip:focus {
  transform: none;
}

.site-header,
main,
.site-footer {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, white);
}

.brand {
  margin: 0 0 0.15rem;
  font-family: Palatino, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 0.95;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.tagline,
.footer-tagline {
  margin: 0;
  color: var(--muted);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--copper);
}

nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--copper);
}

main {
  padding-top: 1.25rem;
}

h1,
h2,
h3 {
  font-family: Palatino, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.05rem, 4.8vw, 3.4rem);
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  margin-bottom: 0.5rem;
}

.hero-copy h1 {
  max-width: 11ch;
}

.hero-visual {
  min-width: 0;
}

.hero-plate {
  margin: 0.2rem 0 0;
}

.hero-drawing {
  display: block;
  width: 100%;
  height: auto;
}

h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.55rem;
}

h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.25rem;
}

p,
li,
dd {
  max-width: 68ch;
}

a {
  color: var(--sea);
}

a:hover {
  color: var(--copper);
}

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

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: #9a9184;
}

.flag {
  display: inline-block;
  margin: 0.35rem 0 0.8rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--copper);
  color: var(--copper);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: none;
}

.sourced {
  color: var(--sea);
  font-size: 0.95rem;
}

.facts {
  display: grid;
  gap: 0;
  margin: 1rem 0 1.25rem;
}

.facts div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 650;
}

.facts dd {
  margin: 0;
}

.plate {
  margin: 1rem 0 0.5rem;
  padding: 0.55rem;
  background: var(--paper-raised);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 6px var(--paper-raised), 0 0 0 7px var(--ink);
}

.plate-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.plate-head p {
  margin: 0;
  max-width: none;
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
}

.plate-head span {
  font-size: 1.25rem;
  margin-right: 0.6rem;
}

.plate-head p:last-child {
  color: var(--copper);
  font-size: 0.95rem;
}

.plate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.study {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-raised);
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.95fr);
    gap: 2.25rem;
    align-items: center;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .plate-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plate-grid .study:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .plate-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .plate-grid .study:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .plate-grid .study:nth-child(n + 4) {
    grid-column: span 3;
  }
}

figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 75ch;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
  padding: 1rem 1rem 0.4rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
}

.cards h3 {
  margin-top: 0;
}

.cards h3 a {
  color: var(--ink);
  text-decoration: none;
}

.cards h3 a:hover {
  color: var(--copper);
}

.cards p,
.cards .flag {
  max-width: none;
}

.entry {
  margin-top: 1rem;
  padding-top: 0.25rem;
  border-top: 2px solid var(--ink);
}

.entry time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources li {
  margin: 0 0 1rem;
  max-width: 70ch;
}

.sources span {
  display: block;
  color: var(--muted);
}

.field {
  margin: 0 0 0.9rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 650;
}

input,
textarea {
  width: min(100%, 36rem);
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-raised);
  color: inherit;
  font: inherit;
}

button {
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: var(--moss);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--copper);
  max-width: 36rem;
}

blockquote.epic-disclaimer {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 3px solid var(--copper);
  font-style: normal;
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--ink);
}

.footer-name {
  margin: 0;
  font-family: Palatino, Georgia, serif;
  font-size: 1.4rem;
}

.copyright {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .epic-disclaimer {
  padding-left: 0.85rem;
  border-left: 3px solid var(--copper);
  font-size: 0.95rem;
}

::selection {
  background: #ead7c8;
}

@media (max-width: 640px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .site-header {
    align-items: flex-start;
  }
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media print {
  body {
    background: white;
  }

  .skip,
  nav {
    display: none;
  }

  a {
    color: black;
    text-decoration: none;
  }
}
