body {
  background: #f4ebdb;
  color: #43382d;
  font:
    650 16px/1.45 Nunito,
    sans-serif;
}
header {
  background: #294c49;
  border-bottom: 4px solid #c59a66;
}
.top,
main,
footer {
  max-width: 1280px;
}
.top nav a {
  color: #fff5dc;
}
main {
  padding-top: 24px;
}
footer {
  padding-top: 20px;
  padding-bottom: 22px;
  margin-top: 22px;
  border-top: 1px solid #c9af89;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
a {
  color: #285753;
}
.cover {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  overflow: hidden;
  border: 2px solid #805f45;
  border-radius: 18px;
  background: #fff1d6;
  box-shadow: 0 5px 0 #ccb28c;
}
.cover-art {
  position: relative;
  min-height: 350px;
}
.cover-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-copy {
  padding: clamp(22px, 3vw, 44px);
  background: radial-gradient(ellipse at top right, #e4b882, transparent 55%), #fff1d6;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.seal,
.bench-icon {
  font: 2.6rem Georgia;
  color: #ab543b;
}
.cover h1,
.bench-head h1,
.stops h2,
.manual h2,
.studio-card h2 {
  font:
    750 clamp(42px, 5.3vw, 78px)/0.92 Pixel,
    monospace;
  color: #304c42;
  margin: 0;
  letter-spacing: -0.045em;
}
.cover-copy p {
  max-width: 33ch;
  margin: 14px 0 18px;
}
.cover-copy > a + a {
  margin-top: 12px;
  font-size: 0.86rem;
}
.launch,
.reward-strip a {
  background: #2b5550;
  border: 1px solid #27453e;
  border-radius: 8px;
  color: #fff1cc;
  padding: 9px 15px;
  text-decoration: none;
}
.stops {
  margin: 27px 0;
}
.stops h2,
.manual h2,
.studio-card h2 {
  font-size: 1.9rem;
  margin: 0 0 14px;
}
.stop-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.stop-list a {
  color: #443729;
  text-decoration: none;
  padding: 14px;
  border: 1px solid #c6a783;
  border-bottom: 4px solid #b89069;
  border-radius: 10px;
  background: #fff8e8;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}
.stop-list a:hover,
.mill-nav a:hover {
  background: #ffebc8;
}
.station-icon {
  display: grid;
  place-items: center;
  background: #edd0a6;
  color: #744630;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font: 1.6rem/1 Georgia;
}
.stop-list strong {
  font:
    700 1.3rem/1.05 Pixel,
    monospace;
}
.stop-list small {
  margin-top: auto;
  color: #3a645c;
}
.stop-list span,
.bench-head small,
.order small {
  color: #805937;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.055em;
}
.mill-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mill-nav a {
  color: #37574c;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #b9b09a;
  border-radius: 18px;
  background: #fff8e8;
  font-size: 0.88rem;
}
.mill-nav a[aria-current] {
  background: #315852;
  color: #ffefd1;
}
.bench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 16px;
}
.bench-head h1 {
  font-size: clamp(34px, 4vw, 56px);
  margin-top: 6px;
}
.bench-grid,
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.workbench,
.manual,
.studio-card {
  background: #fff8e9;
  border: 1px solid #c1a786;
  border-radius: 14px;
  box-shadow: 0 3px 0 #cfb99c;
  overflow: hidden;
}
.workbench,
.studio-card {
  padding: clamp(15px, 2.3vw, 26px);
}
.manual > img {
  width: 100%;
  height: clamp(94px, 12vw, 170px);
  object-fit: cover;
  object-position: center 55%;
  display: block;
}
.manual > div {
  padding: 16px;
}
.manual .worked-flow {
  color: #473725;
}
.manual .flow-caption {
  background: #f7e4c7;
  color: #493c31;
}
.manual .worked-flow {
  --ink: #493c31;
}
.manual a {
  font-size: 0.88rem;
}
.order {
  padding: 12px 15px;
  border-left: 4px solid #b75f3c;
  background: #f6e5ca;
  margin: 0 0 12px;
}
.order p {
  margin: 4px 0;
  line-height: 1.36;
}
.machine {
  background: linear-gradient(#efddba, #f8ecd6);
  border: 1px solid #c2a887;
  border-radius: 10px 10px 0 0;
}
.machine canvas {
  width: 100%;
  height: auto;
  display: block;
}
.rail-labels,
.pots,
.river {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.rail-labels {
  margin-bottom: 14px;
  font-size: 0.8rem;
}
.rail-labels span {
  padding: 4px 0;
  background: #ece1cf;
}
.rail-labels .lit {
  background: #ecd19c;
  color: #533f21;
}
.controls,
.dial,
.brushes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
#mill button {
  background: #37635a;
  border: 1px solid #37574e;
  color: #fff5d9;
  box-shadow: 0 2px 0 #25443d;
  font:
    800 0.92rem Nunito,
    sans-serif;
  min-height: 40px;
}
#mill button[aria-pressed='true'] {
  background: #f1c878;
  color: #44321f;
  border: 2px solid #8a622e;
}
#mill button[disabled] {
  opacity: 0.55;
}
.pots button {
  padding: 5px;
}
.pots small,
.docks small {
  display: block;
  font-size: 0.74rem;
}
.dial output {
  min-width: 23px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.feedback:empty {
  display: none;
}
.feedback {
  color: #3f4c34;
  background: #f6e7b9;
  border-radius: 6px;
  padding: 9px 11px;
}
.slips {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  color: #406350;
}
.receipts,
.reward-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.receipts span {
  margin-top: 12px;
  padding: 6px 8px;
  border: 1px dashed #b1956b;
}
.reward-strip {
  background: #e2edda;
  border: 1px solid #a6bfa0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 13px;
  justify-content: space-between;
}
.margin-note {
  font-size: 0.86rem;
  color: #6c5946;
}
.belt,
.slots {
  display: flex;
  gap: 5px;
}
.belt {
  margin: 15px 0;
  flex-wrap: wrap;
}
.belt i,
.slots i {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 28px;
  border-radius: 4px;
  font-style: normal;
}
.copper {
  background: #d7956c;
}
.rose {
  background: #d99ba5;
}
.sent {
  opacity: 0.48;
}
.racks,
.docks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.racks > div,
.docks > div {
  background: #f0dfc1;
  padding: 9px;
  border-radius: 8px;
}
.slots {
  margin-top: 5px;
  flex-wrap: wrap;
}
.slots i {
  border: 1px dashed #a68d6b;
  background: #f6ecd9;
  min-width: 20px;
}
.slots .filled {
  background: #ce9775;
  color: #754b38;
}
.residual {
  font-size: 0.89rem;
  padding: 6px 9px;
  border-left: 3px solid #778e75;
  background: #e3eadb;
}
.workbench table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.workbench th,
.workbench td {
  text-align: left;
  padding: 7px 4px;
  border-bottom: 1px solid #d7bfa0;
}
.docks span {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ceaf88;
  font-size: 0.77rem;
  margin-top: 5px;
  padding-top: 5px;
}
.docks i {
  white-space: nowrap;
  font-style: normal;
}
.river {
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0;
  border-radius: 8px;
  background: #c9deda;
  padding: 8px;
}
.river .on {
  background: #41756e;
  color: #fff5d8;
  border-radius: 4px;
}
.river b {
  display: block;
  font-size: 1.2rem;
}
.bench-grid + button {
  margin-top: 18px;
}
#mill .panel-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  aspect-ratio: 1;
  background: #b69169;
  padding: clamp(8px, 2vw, 20px);
  border: 3px solid #855c43;
  border-radius: 9px;
  box-shadow: 0 4px #b69f7c;
}
#mill .panel-grid button,
.panel-grid > span {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  background: var(--tile);
  color: #fff0ce;
  border: 1px solid #efd3a7;
  border-radius: 3px;
  font: clamp(18px, 3.5vw, 47px)/1 Georgia;
  box-shadow: inset 0 0 0 4px #ffffff26;
  padding: 0;
}
.brushes button {
  font-size: 1.4rem !important;
}
.recipe {
  padding: 9px;
  background: #f3e3ca;
}
.share {
  display: block;
  color: #49634f;
}
.share input {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid #b49b7c;
  background: #fffcf1;
  color: #4b5346;
}
.workbench p:last-child {
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .stop-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bench-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .pots {
    grid-template-columns: 1fr 1fr;
  }
  .top {
    gap: 12px;
  }
  .top nav {
    gap: 9px;
  }
}
@media (max-width: 650px) {
  .cover,
  .bench-grid,
  .studio {
    grid-template-columns: 1fr;
  }
  .cover-art {
    min-height: 225px;
  }
  .cover-copy {
    padding: 20px;
  }
  .cover h1 br {
    display: none;
  }
  .cover h1 br::after {
    content: ' ';
  }
  .cover h1 {
    font-size: 3rem;
  }
  .cover-copy .seal {
    display: none;
  }
  .cover-copy p {
    max-width: none;
  }
  .stop-list {
    grid-template-columns: 1fr 1fr;
  }
  .top {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .brand {
    font-size: 23px;
  }
  .top nav {
    font-size: 0.79rem;
  }
  .manual > img {
    height: 104px;
  }
  .bench-icon {
    font-size: 1.7rem;
  }
  .bench-head h1 {
    font-size: 2.1rem;
  }
  .docks span {
    font-size: 0.69rem;
  }
  .panel-grid {
    width: 100%;
  }
  .cover h1 {
    word-spacing: 0.08em;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

.towpath {
  position: relative;
  height: 68px;
  overflow: hidden;
  border: 1px solid #68958a;
  background: repeating-linear-gradient(
    176deg,
    #80b4ae 0 9px,
    #95c1b9 10px 12px,
    #80b4ae 13px 21px
  );
  border-radius: 8px;
  margin: 8px 0;
}
.pier {
  position: absolute;
  top: 34px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #b28459 0 8px, #855d40 9px 10px);
  border: 2px solid #79593f;
  text-align: center;
  color: #fff3ce;
  font-weight: 950;
  width: 18%;
  box-shadow: 0 4px #527d71;
}
.west {
  left: -3px;
}
.east {
  right: -3px;
}
.skiff {
  position: absolute;
  width: 46px;
  height: 38px;
  left: 21%;
  bottom: 14px;
  text-align: center;
}
.skiff:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: #885137;
  border-radius: 0 0 22px 22px;
  border-top: 3px solid #f9c887;
}
.skiff span {
  position: absolute;
  left: 8px;
  top: -4px;
  color: #a4523e;
  font-size: 24px;
}
.skiff i {
  position: absolute;
  bottom: 5px;
  right: 4px;
  color: #f6cd74;
  font-size: 14px;
}
.skiff.p1,
.skiff.p2 {
  left: 68%;
}
.skiff.p1 {
  animation: mill-out 0.7s ease-out;
}
.skiff.p3 {
  animation: mill-home 0.7s ease-out;
}
@keyframes mill-out {
  from {
    left: 21%;
  }
  to {
    left: 68%;
  }
}
@keyframes mill-home {
  from {
    left: 68%;
  }
  to {
    left: 21%;
  }
}
.harbor-master {
  border: 1px solid #8aab9d;
  background: #e9efe0;
  border-radius: 10px;
  padding: 14px;
  margin-top: 15px;
}
.harbor-master h2 {
  font:
    700 1.65rem Pixel,
    monospace;
  color: #34594c;
  margin: 3px 0;
}
.seats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0;
}
.seats > div {
  background: #d0e1d2;
  border-radius: 7px;
  padding: 8px;
}
.seats b {
  display: block;
}
.seats button {
  margin: 3px 3px 2px 0;
}
.port-report {
  font-variant-numeric: tabular-nums;
}
.harbor-master small {
  color: #4c6f59;
}
@media (prefers-reduced-motion: reduce) {
  .skiff.p1,
  .skiff.p3 {
    animation: none;
  }
}
