:root {
  --pine: #E8D5A3;
  --oxide: #8B3A2A;
  --soot: #1C1916;
  --sap: #3F5C3A;
  --kerf: #F3EDE0;
  --display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  --ui: Outfit, "Segoe UI", sans-serif;
  --edge: 1.15rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--kerf);
  color: var(--soot);
  font-family: var(--ui);
  font-size: 1.05rem;
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--oxide);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sap);
}

:focus-visible {
  outline: 3px solid var(--oxide);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 8;
  background: var(--soot);
  color: var(--kerf);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.yard {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  min-height: 100vh;
}

.trestle {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: var(--pine);
  color: var(--soot);
  padding: 1.4rem 0.85rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 4px solid var(--sap);
}

.trestle__brand {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.trestle__brand:hover {
  color: var(--oxide);
}

.trestle-mark {
  width: 100%;
  height: auto;
  margin: 1.4rem 0 auto;
}

.trestle-mark__board {
  fill: var(--kerf);
  stroke: var(--soot);
  stroke-width: 1.4;
}

.trestle-mark__kerf {
  stroke: var(--oxide);
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
}

.trestle-mark__beam {
  fill: var(--sap);
}

.trestle-mark__leg,
.trestle-mark__bar {
  fill: none;
  stroke: var(--soot);
  stroke-width: 3.2;
  stroke-linecap: square;
}

.trestle__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--sap);
}

.stock {
  min-width: 0;
  padding: 1.4rem clamp(1.2rem, 4vw, 3.4rem) 3rem;
}

.rail {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2.4rem;
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--soot);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--oxide);
  color: var(--oxide);
}

.hero {
  max-width: 38rem;
}

.hero h1,
.cut-head h1,
.plank h1 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
}

.lede {
  margin: 0;
  font-size: 1.15rem;
  max-width: 36rem;
}

.kerf-run {
  height: 0;
  margin: 2.2rem 0 2rem;
  border: 0;
  border-top: 2px dashed var(--sap);
}

.week-span {
  margin: 0 0 2.6rem;
  max-width: 46rem;
}

.week-span figcaption {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
}

.week-span svg {
  width: 100%;
  height: auto;
  background: var(--pine);
  padding: 0.4rem 0;
}

.week-span__kerf {
  stroke: var(--oxide);
  stroke-width: 2;
  stroke-dasharray: 7 6;
  fill: none;
}

.week-span__ticks line {
  stroke: var(--soot);
  stroke-width: 1.5;
}

.week-span__day {
  fill: var(--soot);
  font-family: var(--ui);
  font-size: 11px;
}

.week-span__offcut {
  fill: var(--oxide);
}

.week-span__offcut-label {
  fill: var(--kerf);
  font-family: var(--ui);
  font-size: 10px;
}

.week-span__key {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  max-width: 38rem;
}

.holds {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 2.8rem;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.holds li {
  background: var(--pine);
  color: var(--soot);
  padding: 0.85rem 1.1rem;
  border-left: 6px solid var(--sap);
}

.holds li:nth-child(2) {
  margin-left: 8%;
  width: 86%;
  border-left-color: var(--oxide);
}

.holds li:nth-child(3) {
  margin-left: 18%;
  width: 74%;
}

.holds strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.offcut-stack {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 42rem;
}

.offcut-stack h2 {
  font-family: var(--display);
  font-size: 1.7rem;
  margin: 0 0 0.85rem;
}

.offcut-plank a {
  display: block;
  background: var(--soot);
  color: var(--kerf);
  text-decoration: none;
  padding: 1rem 1.15rem 1.05rem;
}

.offcut-plank a:hover {
  background: var(--sap);
  color: var(--kerf);
}

.offcut-plank--long {
  width: 100%;
}

.offcut-plank--mid {
  width: 88%;
  margin-left: 6%;
}

.offcut-plank--short {
  width: 74%;
  margin-left: 14%;
}

.offcut-plank time {
  display: block;
  font-size: 0.78rem;
  color: var(--pine);
  margin-bottom: 0.2rem;
}

.offcut-plank strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.offcut-plank span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--pine);
}

.cut-head {
  max-width: 36rem;
  margin-bottom: 1.6rem;
}

.cut-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.plank {
  max-width: 38rem;
}

.plank h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.6rem 0 0.5rem;
}

.plank p,
.plank li {
  max-width: 38rem;
}

.plank ul,
.plank ol {
  padding-left: 1.2rem;
}

.sill {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 2px dashed var(--sap);
  max-width: 42rem;
}

.sill nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin-bottom: 0.9rem;
}

.sill p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.mail-block {
  display: inline-block;
  margin: 0.4rem 0 1rem;
  background: var(--pine);
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
}

.miss {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

@media (max-width: 720px) {
  .yard {
    grid-template-columns: 1fr;
  }

  .trestle {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-right: 0;
    border-bottom: 4px solid var(--sap);
  }

  .trestle-mark {
    width: 3.4rem;
    margin: 0;
  }

  .trestle__note {
    display: none;
  }

  .rail {
    justify-content: flex-start;
  }

  .holds li,
  .holds li:nth-child(2),
  .holds li:nth-child(3),
  .offcut-plank--mid,
  .offcut-plank--short {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
