@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courier-prime-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courier-prime-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe4;
  --paper-2: #fbf8f0;
  --paper-3: #e8dfcc;
  --ink: #1d1a16;
  --muted: #5d564a;
  --line: #cdc2ac;
  --line-strong: #9f937c;
  --accent: #9f2f22;
  --accent-dark: #7d2118;
  --table: #cfe2d6;
  --table-deep: #a8c9b8;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --wrap: 1160px;
  --gutter: clamp(18px, 4vw, 56px);
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(29, 26, 22, 0.045) 0.55px, transparent 0.55px);
  background-size: 7px 7px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--paper-2);
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

p {
  margin: 0.9em 0;
  overflow-wrap: break-word;
}

ul,
ol {
  margin: 0.9em 0;
  padding-left: 1.25em;
}

li {
  margin: 0.35em 0;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05em 0.3em;
}

kbd {
  border-bottom-width: 2px;
  white-space: nowrap;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 13px;
}

.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- header */

.bar {
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
}

.bar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.mark {
  width: 44px;
  height: 24px;
  flex: none;
}

.bar__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.bar__nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}

.bar__nav a:hover,
.bar__nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.buy {
  display: inline-block;
  background: var(--accent);
  color: var(--paper-2);
  border: 1.5px solid var(--accent-dark);
  border-radius: 2px;
  padding: 13px 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.buy:hover {
  background: var(--accent-dark);
  color: var(--paper-2);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.buy--small {
  padding: 11px 14px;
  font-size: 11px;
  box-shadow: 1.5px 1.5px 0 var(--ink);
}

.buy--ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: none;
}

.buy--ghost:hover {
  background: var(--accent);
  color: var(--paper-2);
}

.link-arrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

.link-arrow::after {
  content: " →";
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pencil-line {
  display: inline-block;
  width: 38px;
  height: 2px;
  background: var(--accent);
  transform: rotate(-3deg);
}

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 7vw, 84px) 0 clamp(44px, 6vw, 72px);
}

.hero h1 {
  margin: 0 0 22px;
}

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

.hero .lede {
  max-width: none;
}

.hero__price {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 26px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 26px;
}

.actions--stack {
  flex-direction: column;
  align-items: flex-start;
}

/* ---------------------------------------------------------------- the drawing */

.drawing {
  margin: 0;
  min-width: 0;
}

.drawing__table {
  position: relative;
  padding: clamp(16px, 3vw, 30px);
  border: 1.5px solid var(--ink);
  background-color: var(--table);
  background-image: linear-gradient(rgba(29, 26, 22, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 26, 22, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 8px 8px 0 var(--paper-3);
}

.sheet {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(29, 26, 22, 0.16));
  overflow: visible;
}

.sheet text {
  font-family: var(--mono);
}

.sheet-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: var(--muted);
}

.frame-no {
  font-size: 18px;
  font-weight: 700;
  fill: var(--ink);
}

.hold {
  font-size: 15px;
  fill: var(--muted);
}

.pencil-note {
  font-size: 15px;
  fill: var(--accent);
  transform: rotate(-2deg);
  transform-origin: 470px 410px;
}

.peg-holes rect,
.peg-holes circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.6;
}

.ball {
  fill: var(--paper-2);
  stroke: var(--ink);
  stroke-width: 2.2;
}

.ghost {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
  opacity: 0.55;
}

.arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-dasharray: 6 7;
  opacity: 0.8;
}

.rule {
  stroke: var(--ink);
  stroke-width: 1.4;
}

.ground {
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

.shadow {
  fill: rgba(29, 26, 22, 0.1);
}

.drawing figcaption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.peg-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(26px, 11vw, 148px);
  padding: 11px var(--gutter);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-2);
}

.peg-strip span {
  display: block;
  width: clamp(22px, 3vw, 34px);
  height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
}

/* ---------------------------------------------------------------- sections */

.section {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0 28px;
  padding: clamp(48px, 7vw, 76px) 0;
  border-top: 1.5px solid var(--ink);
}

.section:first-of-type {
  border-top: 0;
}

.section__number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 7px;
}

.section__number::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 10px;
  background: var(--accent);
  transform: rotate(-4deg);
}

.section__body > .lede {
  margin-top: 14px;
}

.section h2 {
  margin-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 28px;
}

.two-col--wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
  margin-top: 28px;
}

.three-col article,
.two-col > div {
  border-top: 1.5px solid var(--line-strong);
  padding-top: 16px;
}

.three-col h3,
.two-col h3 {
  margin-bottom: 8px;
}

.equipment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
}

.equipment__item {
  padding: 24px clamp(20px, 3vw, 32px) 28px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.equipment__item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.equipment__item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.equipment__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.equipment__icon {
  width: 66px;
  height: 52px;
  color: var(--ink);
}

.equipment__icon .line,
.equipment__icon .bar {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
}

.equipment__icon .th {
  fill: var(--paper-3);
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

.equipment__icon .glass {
  fill: var(--table);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.equipment__icon .paper {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.equipment__icon .hole {
  fill: var(--paper-2);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.equipment__icon .tip {
  fill: var(--accent);
}

.svg-text {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--muted);
}

.ticks {
  list-style: none;
  padding-left: 0;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  margin: 0.55em 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- exposure sheet table */

.exposure-wrap {
  margin-top: 8px;
}

.exposure {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  font-size: 14px;
  table-layout: fixed;
}

.exposure caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.exposure th,
.exposure td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  overflow-wrap: break-word;
}

.exposure th:last-child,
.exposure td:last-child {
  border-right: 0;
}

.exposure thead th {
  background: var(--table);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exposure tbody th {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--muted);
  width: 58px;
}

.exposure tbody tr:last-child th,
.exposure tbody tr:last-child td {
  border-bottom: 0;
}

.exposure tbody tr:nth-child(even) {
  background: rgba(207, 226, 214, 0.28);
}

.exposure-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 12px;
}

.pencil-tick {
  flex: none;
  width: 16px;
  height: 2px;
  background: var(--accent);
  transform: rotate(-45deg);
  position: relative;
  top: -3px;
}

/* ---------------------------------------------------------------- prices */

.tiers {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  border-top: 1.5px solid var(--ink);
}

.tier {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(210px, 0.82fr) minmax(0, 1.35fr);
  gap: clamp(16px, 3vw, 34px);
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.tier--best {
  background: linear-gradient(90deg, rgba(159, 47, 34, 0.07), transparent 58%);
}

.tier--best::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 22px;
  bottom: 22px;
  width: 4px;
  background: var(--accent);
}

.tier__n {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 4px;
}

.tier__head h3 {
  font-size: 1.35rem;
}

.tier__price {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tier__price span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.tier__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.tier__includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  font-size: 14.5px;
}

.tier__group {
  margin-top: 16px;
}

.tier__group:first-child {
  margin-top: 0;
}

.tier__group + .tier__group {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.tier__group h4 {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tier__group--now h4 {
  color: var(--accent-dark);
}

.tier__includes li {
  position: relative;
  padding-left: 16px;
  margin: 0;
}

.tier__includes li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: -0.02em;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3em;
}

.tier__action {
  margin: 18px 0 0;
}

.price-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}

.not-yet {
  margin-top: 26px;
  padding: 20px 24px;
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--accent);
  background: var(--paper-2);
}

.not-yet h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.not-yet p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.section--last {
  padding-bottom: clamp(64px, 9vw, 110px);
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 32px;
  align-items: center;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 6px 6px 0 var(--paper-3);
}

.closing h2 {
  margin-bottom: 10px;
}

.closing p {
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer */

.foot {
  border-top: 1.5px solid var(--ink);
  background: var(--paper-2);
  padding: 42px 0 30px;
}

.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px 56px;
  align-items: start;
}

.foot__brand p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
}

.foot__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
}

.foot__head {
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot__nav a[aria-current="page"] {
  color: var(--accent-dark);
}

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

.foot__nav a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.foot__note {
  grid-column: 1 / -1;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- page heads and prose pages */

.page-head {
  padding: clamp(44px, 7vw, 78px) 0 clamp(26px, 4vw, 44px);
  border-bottom: 1.5px solid var(--ink);
}

.page-head h1 {
  max-width: 24ch;
}

.page-head .lede {
  margin-top: 18px;
}

.page-head--small h1 {
  max-width: 28ch;
}

.prose-page {
  padding-top: 18px;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.prose-page > section {
  padding-top: 36px;
}

.prose-page h2 {
  padding-top: 18px;
  border-top: 1.5px solid var(--line-strong);
}

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

.steps > li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.steps > li:first-child {
  border-top: 1.5px solid var(--ink);
}

.step-n {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.steps h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  border: 0;
  padding: 0;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
}

.steps p a {
  color: var(--accent-dark);
}

.recipe {
  margin: clamp(36px, 5vw, 56px) 0;
  border: 1.5px solid var(--ink);
  background: var(--table);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 6px 6px 0 var(--paper-3);
}

.recipe .kicker {
  color: var(--ink);
}

.recipe__head h2 {
  max-width: 18ch;
}

.recipe__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1.5px solid rgba(29, 26, 22, 0.32);
  border-bottom: 1.5px solid rgba(29, 26, 22, 0.32);
}

.recipe__stats b {
  display: block;
  font-family: var(--mono);
  font-size: 1.7rem;
  line-height: 1;
}

.recipe__stats span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recipe__steps {
  padding-left: 1.4em;
}

.recipe__steps li {
  margin: 0.45em 0;
}

.recipe p:last-child {
  margin-bottom: 0;
  font-size: 14px;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 52px);
  border-top: 1.5px solid var(--ink);
  margin-top: 48px;
  padding-top: 24px;
}

.next-links h2 {
  font-size: 1.35rem;
  border: 0;
  padding: 0;
}

.next-links p {
  color: var(--muted);
}

/* ---------------------------------------------------------------- manual */

.manual {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  padding-top: clamp(32px, 5vw, 52px);
  padding-bottom: clamp(56px, 8vw, 96px);
  align-items: start;
}

.manual__contents {
  position: sticky;
  top: 24px;
  border-left: 1.5px solid var(--ink);
  padding-left: 16px;
}

.manual__contents .kicker {
  margin-bottom: 12px;
}

.manual__contents ol {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
}

.manual__contents li {
  margin: 0.55em 0;
}

.manual__contents a {
  color: var(--muted);
  text-decoration: none;
}

.manual__contents a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.manual__body section {
  margin-bottom: 44px;
}

.manual__body h2 {
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 16px;
}

.manual__body h3 {
  margin-top: 26px;
  margin-bottom: 4px;
}

.manual__body p {
  color: var(--muted);
}

.manual__body code {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.keys {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.keys th,
.keys td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.keys th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--table);
}

/* ---------------------------------------------------------------- switching */

.map {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  table-layout: fixed;
  font-size: 14.5px;
}

.map th,
.map td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.map th:last-child,
.map td:last-child {
  border-right: 0;
}

.map tr:last-child td {
  border-bottom: 0;
}

.map thead th {
  background: var(--table);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.map tbody td:last-child {
  font-weight: 600;
}

.map--costs tbody td:last-child {
  font-weight: 400;
}

.prose-page h2 + .table-wrap {
  margin-top: 18px;
}

.numbered li {
  margin: 0.5em 0;
}

/* ---------------------------------------------------------------- legal */

.legal {
  padding-top: clamp(44px, 7vw, 72px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.legal h1 {
  max-width: 22ch;
}

.legal__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1.5px solid var(--line-strong);
}

.legal p,
.legal li {
  color: var(--ink);
}

.legal a {
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- what you can make */

.makes {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
}

.makes li {
  margin: 0;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.makes li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.makes li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.makes a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-content: start;
  height: 100%;
  padding: 16px clamp(16px, 2.4vw, 26px) 18px;
  color: var(--ink);
  text-decoration: none;
  transition: background 120ms ease;
}

.makes a:hover {
  background: rgba(207, 226, 214, 0.42);
}

.makes__n {
  grid-row: 1 / span 2;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.makes__name {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.makes__name::after {
  content: " →";
  color: var(--accent);
}

.makes a:hover .makes__name {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.makes__text {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------------------------------------------------------- job pages */

.hero--job {
  align-items: start;
  padding-bottom: clamp(36px, 5vw, 60px);
}

.hero--job h1 {
  margin: 0 0 20px;
  max-width: none;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
}

.hero--wide {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
}

.hero--wide .hero__copy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0 clamp(32px, 5vw, 72px);
  align-items: end;
}

.hero--wide h1 {
  margin-bottom: 0;
}

.hero--wide .lede {
  margin-top: 0;
}

.made img,
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1.5px solid var(--ink);
}

.made img {
  box-shadow: 0 6px 10px rgba(29, 26, 22, 0.16);
}

.made--clear img {
  border-style: dashed;
  box-shadow: none;
}

.made figcaption a,
.shot figcaption a {
  color: var(--accent-dark);
}

.made__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
}

.made__panel span {
  display: block;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job > .made {
  max-width: 780px;
  margin: clamp(32px, 4.5vw, 48px) 0 0;
}

.shot {
  margin: clamp(32px, 4.5vw, 48px) 0 0;
  min-width: 0;
}

.hero .shot {
  margin: 0;
}

.shot picture {
  display: block;
}

.shot__paper {
  display: none;
}

.shot img {
  box-shadow: 8px 8px 0 var(--paper-3);
}

.shot figcaption {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.spec {
  margin: 24px 0 0;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
}

.spec > div {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.spec > div:last-child {
  border-bottom: 0;
}

.spec dt {
  padding: 14px 16px 12px;
  border-right: 1px solid var(--line);
  background: rgba(207, 226, 214, 0.5);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.spec dd {
  margin: 0;
  padding: 11px 18px 12px;
  font-size: 15.5px;
  line-height: 1.55;
}

.steps--job {
  margin-top: 22px;
}

.steps h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.atlas {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.atlas code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

.plans .tier__price {
  margin: 4px 0 12px;
}

.plans p {
  color: var(--muted);
}

.plans .tier__price {
  color: var(--ink);
}

.limits {
  margin-top: clamp(36px, 5vw, 52px);
}

.limits ul {
  margin: 8px 0 0;
  padding-left: 1.15em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.limits li {
  margin: 0.45em 0;
}

.closing--job {
  margin-top: clamp(40px, 6vw, 64px);
}

.closing--job h2 {
  padding: 0;
  border: 0;
}

.next-links--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-head .actions {
  margin-top: 22px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .drawing {
    max-width: 700px;
  }

  .tier {
    grid-template-columns: 44px minmax(190px, 0.8fr) minmax(0, 1.2fr);
  }

  .section {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0 18px;
  }

  .foot__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot__brand {
    grid-column: 1 / -1;
  }

  .hero--job .drawing,
  .hero--job .hero__copy {
    max-width: none;
  }

  .hero--job .made {
    max-width: 780px;
  }
}

@media (max-width: 760px) {
  .shot__full {
    display: none;
  }

  .shot__paper {
    display: inline;
  }

  body {
    font-size: 16.5px;
  }

  .bar__inner {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    padding: 12px 0;
  }

  .bar__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 4px 18px;
    padding-top: 4px;
  }

  .bar__nav a {
    padding: 6px 0;
  }

  .buy--small {
    padding: 10px 12px;
    font-size: 10px;
  }

  .section {
    display: block;
    padding: 42px 0 46px;
  }

  .section__number {
    margin-bottom: 14px;
    padding-top: 0;
  }

  .section__number::after {
    display: inline-block;
    width: 24px;
    margin-left: 10px;
    margin-top: 0;
    vertical-align: middle;
  }

  .two-col,
  .two-col--wide,
  .three-col,
  .next-links,
  .next-links--three,
  .closing,
  .tier__includes,
  .makes,
  .hero--wide .hero__copy {
    grid-template-columns: 1fr;
  }

  .hero--wide h1 {
    margin-bottom: 20px;
  }

  .makes li,
  .makes li:nth-child(odd),
  .makes li:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .makes li:last-child {
    border-bottom: 0;
  }

  .spec > div {
    grid-template-columns: 1fr;
  }

  .spec dt {
    padding: 12px 16px 0;
    border-right: 0;
    background: transparent;
    color: var(--muted);
  }

  .spec dd {
    padding: 2px 16px 13px;
  }

  .shot img {
    box-shadow: 5px 5px 0 var(--paper-3);
  }

  .equipment {
    grid-template-columns: 1fr;
  }

  .equipment__item,
  .equipment__item:nth-child(odd),
  .equipment__item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .equipment__item:last-child {
    border-bottom: 0;
  }

  .tier {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 24px 0;
  }

  .tier__detail {
    grid-column: 2;
  }

  .tier--best::before {
    left: -8px;
    top: 16px;
    bottom: 16px;
  }

  .closing {
    align-items: start;
  }

  .closing h2 {
    max-width: none;
  }

  .foot__inner {
    grid-template-columns: 1fr;
  }

  .foot__nav {
    grid-template-columns: 1fr;
  }

  .steps > li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .step-n {
    font-size: 1.35rem;
  }

  .manual {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .manual__contents {
    position: static;
    border-left: 0;
    border-top: 1.5px solid var(--ink);
    padding: 16px 0 0;
  }

  .manual__contents ol {
    columns: 2;
    column-gap: 24px;
  }

  .map,
  .map tbody,
  .map tr,
  .map td {
    display: block;
    width: 100%;
  }

  .map thead {
    display: none;
  }

  .map {
    border: 0;
    background: transparent;
  }

  .map tr {
    border: 1.5px solid var(--ink);
    background: var(--paper-2);
    margin-bottom: 12px;
  }

  .map td {
    border-right: 0;
    padding: 10px 14px;
  }

  .map td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .map tbody td:last-child {
    border-bottom: 0;
  }

  .map tr td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }

  .brand {
    font-size: 1.1rem;
    gap: 8px;
  }

  .mark {
    width: 36px;
  }

  .bar__nav {
    font-size: 11px;
    gap: 2px 12px;
  }

  .manual__contents ol {
    columns: 1;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .drawing__table {
    padding: 12px;
    box-shadow: 4px 4px 0 var(--paper-3);
  }

  .drawing figcaption {
    font-size: 11px;
  }

  .peg-strip {
    gap: 22px;
    padding: 10px 16px;
  }

  .peg-strip span {
    width: 24px;
    height: 9px;
  }

  .exposure {
    font-size: 12.5px;
  }

  .exposure th,
  .exposure td {
    padding: 8px 7px;
  }

  .exposure th:nth-child(4),
  .exposure td:nth-child(4) {
    display: none;
  }

  .tier__includes {
    gap: 4px;
  }

  .recipe__stats b {
    font-size: 1.4rem;
  }

  .closing {
    padding: 22px 18px;
    box-shadow: 4px 4px 0 var(--paper-3);
  }

  .made__strip {
    grid-template-columns: 1fr;
  }

  .atlas {
    padding: 14px;
    font-size: 12px;
  }

  .hero--job h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .keys {
    font-size: 13px;
  }

  .keys th,
  .keys td {
    padding: 8px 7px;
  }

  .key-row {
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
