*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: #e7e0d4;
  color: #1b1914;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

img {
  border: 0;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  color: #1b1914;
}

p,
li {
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 40;
  background: #f7f3ec;
  color: #1b1914;
  padding: 0.55rem 0.8rem;
}

.skip:focus {
  top: 0.75rem;
}

.shell {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
  padding: 0 1.1rem;
  background: #1e3f34;
  color: #f4efe6;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: #f4efe6;
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-name {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.nav-toggle {
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(244, 239, 230, 0.45);
  background: transparent;
  color: #f4efe6;
  cursor: pointer;
}

#site-nav {
  display: none;
  position: absolute;
  top: 4.25rem;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.9rem 0.95rem;
  background: #163128;
}

#site-nav.is-open {
  display: flex;
}

#site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  color: #f4efe6;
  text-decoration: none;
}

#site-nav a[aria-current="true"] {
  background: rgba(244, 239, 230, 0.12);
}

.nav-cta {
  background: #5c291c;
  justify-content: center;
  font-weight: 600;
}

.sheet {
  width: min(46rem, calc(100% - 1.5rem));
  margin: 1rem auto 0;
  padding: 1.75rem 1.15rem 3rem;
  background: #f7f3ec;
  border: 1px solid #d4cbbd;
}

section[id] {
  scroll-margin-top: 5.2rem;
}

.sheet section + section {
  margin-top: 2.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid #d4cbbd;
}

.kicker {
  margin: 0 0 0.55rem;
  font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #1e3f34;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  box-shadow: inset 0 -0.42rem 0 #ead7cc;
}

h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.22rem;
}

.lede,
.sheet p,
.sheet li span,
.site-footer p {
  max-width: 68ch;
}

.sheet p {
  margin: 0.8rem 0 0;
}

.sheet p.lede {
  margin-top: 0;
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 3rem;
  margin: 1.35rem 0 0.4rem;
}

a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  background: #5c291c;
  color: #fffaf6;
  text-decoration: none;
  font-weight: 600;
}

a.cta:hover {
  background: #4a2116;
}

.sheet a:not(.cta) {
  color: #1e3f34;
  text-underline-offset: 0.16em;
}

.status {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
}

.status div {
  padding: 0.8rem 0.9rem;
  background: #fffdf9;
  border: 1px solid #d4cbbd;
  border-left: 3px solid #1e3f34;
}

.status dt {
  font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #4a453c;
}

.status dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.plate {
  margin: 1.25rem 0;
  padding: 0.7rem;
  background: #fffdf9;
  border: 1px solid #d4cbbd;
}

.diagram-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.2rem;
  color: #1e3f34;
}

.diagram {
  display: grid;
  gap: 0.7rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.diagram li {
  display: grid;
  gap: 0.15rem;
  min-height: 6.5rem;
  padding: 0.8rem 0.85rem;
  background: #efe8dc;
  border: 1px solid #d4cbbd;
}

.diagram span {
  font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.78rem;
  color: #5c291c;
}

.diagram strong {
  font-size: 1.05rem;
}

.diagram b {
  font-weight: 500;
  font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.95rem;
  color: #1e3f34;
  overflow-wrap: anywhere;
}

.plate figcaption {
  margin-top: 0.55rem;
  color: #4a453c;
  font-size: 0.92rem;
}

ol.steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

ol.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  background: #fffdf9;
  border: 1px solid #d4cbbd;
}

ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.85rem;
  color: #1e3f34;
  padding-top: 0.12rem;
}

.site-footer {
  margin-top: 1.25rem;
  background: #163128;
  color: #f4efe6;
}

.footer-inner {
  width: min(46rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 2.2rem 0 2.6rem;
}

.footer-brand {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.45rem;
}

.footer-lead,
.site-footer p {
  color: #f4efe6;
}

.site-footer h2 {
  margin-top: 1.6rem;
  color: #f4efe6;
  box-shadow: inset 0 -0.42rem 0 rgba(234, 215, 204, 0.35);
}

.site-footer a {
  color: #f4efe6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.updated {
  margin-top: 1.2rem;
  font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.92rem;
}

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-top: 0.8rem;
  border: 1px solid rgba(244, 239, 230, 0.55);
  border-radius: 50%;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid #e7c4b2;
  outline-offset: 3px;
}

::selection {
  background: #1e3f34;
  color: #f4efe6;
}

@media (min-width: 720px) {
  .status,
  .diagram {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sheet {
    padding: 2.4rem 2rem 3.4rem;
  }
}

@media (min-width: 960px) {
  .shell {
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    align-items: start;
  }

  .site-header {
    position: sticky;
    top: 0;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.6rem 1.1rem 1.3rem;
  }

  .nav-toggle {
    display: none;
  }

  #site-nav,
  #site-nav.is-open {
    display: flex;
    position: static;
    flex: 1;
    padding: 1.4rem 0 0;
    background: transparent;
  }

  .nav-cta {
    margin-top: auto;
  }

  .sheet {
    width: min(44rem, calc(100% - 2rem));
    margin: 1.25rem auto 1.5rem 1.25rem;
  }

  section[id] {
    scroll-margin-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
