@font-face {
  font-family: Bricolage;
  src: url('fonts/bricolage-bold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
:root {
  --paper: #f3ead8;
  --ink: #203e40;
  --rust: #963c27;
  --teal: #225757;
  --line: #b6a990;
  --wool: url('art/fiber.webp');
  font-family: 'Avenir Next', Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(#f3ead8f4, #f3ead8f4), var(--wool);
  background-size: auto, 155px;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #cc670e;
  outline-offset: 5px;
}
figure,
p,
h1,
h2,
h3 {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(1280px, 90%);
  margin-inline: auto;
}
.skip {
  position: absolute;
  z-index: 8;
  padding: 0.5rem;
  background: white;
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
.mast,
.mast nav,
.brand,
.foot .wrap {
  display: flex;
  align-items: center;
}
.mast {
  min-height: 76px;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
}
.brand {
  gap: 11px;
  font:
    800 1.2rem Bricolage,
    system-ui;
  text-decoration: none;
  letter-spacing: -0.055em;
}
.brand-eye {
  height: 30px;
  width: 30px;
  background: radial-gradient(
    circle,
    #f0ba58 28%,
    #513e35 30% 43%,
    #e4d7b9 45% 60%,
    #9c452f 62% 76%,
    transparent 78%
  );
  border-radius: 46% 51% 49% 47%;
  box-shadow: 1px 2px 0 #52371b4d;
}
.mast nav {
  gap: 30px;
}
.mast nav a,
.foot a:not(.brand) {
  font-size: 0.9rem;
  text-underline-offset: 5px;
}
.mast nav a {
  text-decoration: none;
  font-weight: 650;
}
.mast a:hover,
.foot a:hover {
  text-decoration: underline;
}
.hero {
  border-bottom: 2px dashed #a99e86;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
  padding: clamp(44px, 6vw, 92px) 0 clamp(48px, 6.7vw, 100px);
}
.intro h1 {
  font:
    800 clamp(84px, 8.8vw, 139px)/0.79 Bricolage,
    system-ui;
  letter-spacing: -0.085em;
  margin-left: -0.055em;
  color: #205452;
  text-shadow:
    0 2px #113c3d,
    2px 5px 1px #96836c65;
  transform: rotate(-2deg);
  transform-origin: left bottom;
}
.intro h1 span {
  display: inline-block;
  color: var(--rust);
  text-shadow:
    0 2px #733820,
    2px 5px 1px #a0826e70;
}
.intro > p:not(.controls) {
  max-width: 33ch;
  line-height: 1.56;
  font-size: clamp(16px, 1.3vw, 20px);
  margin: 27px 0 21px;
}
.play-button {
  isolation: isolate;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 16px 25px;
  border-radius: 8px 10px 9px 6px;
  color: #fff7df;
  background:
    linear-gradient(#174f4deb, #174f4deb),
    var(--wool) center/150px;
  font-weight: 750;
  text-decoration: none;
  box-shadow:
    1px 4px 0 #113d39,
    2px 6px 3px #564b3836;
}
.play-button:after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed #a2beb1;
  border-radius: 5px;
  pointer-events: none;
}
.play-button:hover {
  background-color: #276761;
  transform: translateY(-1px);
}
.triangle {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #efba6c;
}
.controls {
  margin-top: 11px;
  font-size: 0.79rem;
  color: #55564d;
}
.print {
  background: #faf4e7;
  padding: clamp(8px, 0.9vw, 15px);
  box-shadow:
    1px 4px 0 #c9baa5,
    2px 7px 13px #493c2426;
}
.print img {
  width: 100%;
  height: auto;
}
.hero-print {
  transform: rotate(1.5deg);
  position: relative;
}
.hero-print:before,
.hero-print:after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -8px;
  width: clamp(38px, 5vw, 75px);
  height: 22px;
  background: repeating-linear-gradient(
    95deg,
    #d4af698e 0 2px,
    #dfbc7985 2px 6px
  );
  clip-path: polygon(
    0 3%,
    100% 0,
    96% 19%,
    100% 28%,
    96% 44%,
    100% 65%,
    97% 80%,
    99% 100%,
    0 96%,
    3% 74%,
    0 58%,
    3% 42%,
    0 28%,
    3% 16%
  );
}
.hero-print:before {
  left: 5%;
  transform: rotate(-17deg);
}
.hero-print:after {
  right: 4%;
  transform: rotate(20deg);
}
figcaption {
  font:
    italic 0.9rem Georgia,
    serif;
  color: #505649;
  line-height: 1.4;
  padding: 10px 2px 0;
}
.hero-print figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.thread {
  width: 39px;
  border-top: 2px dashed #b35c43;
}
.player-wrap {
  padding: 0 0 30px;
}
.player-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.player-tools p {
  margin-right: auto;
}
.player-tools button,
.switches button {
  padding: 8px 14px;
  border: 1px solid #9c9c88;
  border-radius: 5px;
  background: #faf4e7;
  font-weight: 650;
}
.player-tools button:hover,
.switches button:hover {
  border-color: var(--teal);
}
#screen {
  position: relative;
  background: #182f36;
  aspect-ratio: 16/9;
  max-height: 83vh;
  margin-inline: auto;
}
#screen iframe {
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
#screen:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
}
.making {
  max-width: 1140px;
  padding: clamp(45px, 6vw, 90px) 0;
}
.story-title {
  margin-bottom: 42px;
}
.rule {
  width: 63px;
  border-top: 5px solid var(--rust);
  transform: rotate(-2deg);
  margin-bottom: 16px;
}
h2,
h3 {
  font-family: Bricolage, system-ui;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.05;
}
.story-title p {
  margin-top: 12px;
  font-size: 1.08rem;
}
.chapter,
.lighting {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
}
.chapter {
  padding: 30px 0 55px;
  border-bottom: 1px dashed var(--line);
}
.chapter .print {
  transform: rotate(-1deg);
}
.chapter.reverse {
  padding-top: 55px;
}
.reverse .print {
  order: 2;
  transform: rotate(1deg);
}
h3 {
  font-size: clamp(30px, 3vw, 47px);
  line-height: 1.08;
}
.copy p,
.walk p,
.bench-note {
  font-size: 1.04rem;
  line-height: 1.68;
  margin-top: 14px;
}
.walk {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(22px, 3.7vw, 65px);
  margin: 58px 0;
  padding: clamp(16px, 2.5vw, 42px);
  color: #fff4df;
  background:
    linear-gradient(#204d4ded, #204d4ded),
    var(--wool) center/180px;
  outline: 1px dashed #acc0a9;
  outline-offset: -8px;
  border-radius: 6px;
}
.walk img {
  width: 100%;
  height: auto;
}
.walk h3 {
  color: #ffe8bf;
}
.lighting {
  grid-template-columns: 0.9fr 1.2fr;
  row-gap: 18px;
  padding-top: 12px;
}
.bench-note {
  grid-column: 1/-1;
  max-width: 82ch;
  border-left: 3px solid #b66a42;
  padding-left: 15px;
  font-size: 0.94rem;
}
.compare {
  padding-top: 9px;
}
.switches {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.switches button {
  font-size: 0.84rem;
  padding: 7px 13px;
}
.switches [aria-pressed='true'] {
  background: var(--teal);
  color: #fff6de;
  border-color: var(--teal);
}
.foot {
  background: #203e40;
  color: #fff4dc;
}
.foot .wrap {
  min-height: 100px;
  justify-content: space-between;
}
@media (max-width: 780px) {
  .hero-inner {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 20px;
  }
  .intro h1 {
    font-size: clamp(70px, 11vw, 90px);
  }
  .chapter,
  .lighting,
  .walk {
    gap: 23px;
  }
  .copy p,
  .walk p {
    font-size: 1rem;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: 89%;
  }
  .mast {
    min-height: 62px;
  }
  .mast nav {
    gap: 17px;
  }
  .brand {
    font-size: 1.06rem;
    gap: 8px;
  }
  .brand-eye {
    width: 25px;
    height: 25px;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 34px 0 38px;
    gap: 25px;
  }
  .intro h1 {
    font-size: clamp(64px, 15.3vw, 91px);
    white-space: nowrap;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 span {
    margin-left: 0.15em;
  }
  .intro > p:not(.controls) {
    max-width: 38ch;
    margin: 18px 0 14px;
  }
  .play-button {
    padding: 14px 23px;
  }
  .controls {
    margin-top: 9px;
  }
  .hero-print {
    margin: 0 3px;
  }
  .chapter,
  .lighting,
  .walk {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .chapter,
  .chapter.reverse {
    padding: 8px 0 33px;
    margin-top: 26px;
  }
  .chapter .print,
  .reverse .print {
    order: 1;
  }
  .chapter .copy {
    order: 0;
  }
  .story-title {
    margin-bottom: 22px;
  }
  .story-title p {
    line-height: 1.5;
  }
  .walk {
    margin: 30px 0;
    padding: 20px;
  }
  .walk img {
    order: 1;
  }
  .player-tools {
    flex-wrap: wrap;
  }
  .player-tools p {
    width: 100%;
    font-size: 0.9rem;
  }
  .foot .wrap {
    min-height: 80px;
  }
  figcaption {
    font-size: 0.84rem;
  }
  .bench-note {
    margin: 0;
  }
}
