@font-face {
  font-family: "InterVar";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterDisplay";
  src: url("/assets/fonts/InterDisplay-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3efe4;
  --paper-2: #e6dfd0;
  --ink: #171713;
  --muted: #666057;
  --orange: #ef573d;
  --yellow: #e5bc36;
  --green: #245f49;
  --green-light: #d8e1cf;
  --proof: #96382f;
  --proof-paper: #f1d8c4;
  --rule: rgba(23, 23, 19, .24);
  --page: min(1240px, calc(100% - 48px));
  background: var(--paper);
  color: var(--ink);
  font-family: "InterVar", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.legal-document,
.not-found {
  width: min(820px, calc(100% - 48px));
  margin: 72px auto 120px;
}

.legal-document h1,
.not-found h1 {
  max-width: 760px;
  margin: 22px 0 28px;
  font-family: "InterDisplay", "InterVar", sans-serif;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: .84;
  letter-spacing: -.07em;
}

.legal-intro,
.not-found > p:not(.edition) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.legal-document section {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.legal-document h2 { margin: 0 0 10px; font-size: 1.12rem; }
.legal-document section p { margin: 0; line-height: 1.75; }
.legal-updated { margin: 44px 0 24px; color: var(--muted); font-size: .84rem; }
.legal-back { display: inline-flex; }
.not-found { min-height: 58vh; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

.masthead,
.intro,
.product-directory,
footer {
  width: var(--page);
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 2px solid var(--ink);
}

.studio-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.studio-glyph {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  align-items: end;
  gap: 3px;
  width: 24px;
  height: 24px;
  padding: 3px;
  border: 2px solid currentColor;
}

.studio-glyph i {
  display: block;
  background: currentColor;
}

.studio-glyph i:nth-child(1) { height: 7px; }
.studio-glyph i:nth-child(2) { height: 15px; }
.studio-glyph i:nth-child(3) { height: 11px; }

.header-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid currentColor;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  min-height: clamp(420px, 60vw, 690px);
  padding: clamp(72px, 12vw, 148px) 0 54px;
  border-bottom: 8px solid var(--ink);
}

.edition,
.product-index {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.edition {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 9.7rem);
  font-weight: 400;
  letter-spacing: -.078em;
  line-height: .81;
}

.intro-copy {
  margin: 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 570;
  line-height: 1.42;
}

.product-directory { border-bottom: 8px solid var(--ink); }

.product {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.product--mindrank {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
  gap: clamp(46px, 8vw, 120px);
  align-items: center;
  min-height: 650px;
  padding: clamp(54px, 8vw, 96px);
  background: var(--ink);
  color: var(--paper);
}

.product-copy { min-width: 0; }

.product-index {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0 0 30px;
}

.product-index span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
}

h2 {
  margin: 0;
  font-family: "InterDisplay", "InterVar", system-ui, sans-serif;
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .86;
}

.product-line {
  max-width: 660px;
  margin: 25px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.08;
}

.product-description {
  max-width: 620px;
  margin: 0;
  color: currentColor;
  font-size: 1rem;
  line-height: 1.6;
  opacity: .76;
}

.product-link {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  width: min(100%, 410px);
  margin-top: 38px;
  padding: 17px 2px 15px;
  border-block: 2px solid currentColor;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-link span {
  font-size: 1.15rem;
  transition: transform 140ms ease-out;
}

.product-link:hover span { transform: translate(3px, -3px); }

.mindrank-board {
  position: relative;
  width: 100%;
  max-width: 610px;
  margin-inline: auto;
  padding: 24px;
  border: 2px solid var(--paper);
  box-shadow: 18px 18px 0 var(--orange);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.board-head,
.versus-line,
.board-score,
.route-label,
.route-score,
.proof-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.board-head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(243, 239, 228, .5);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.board-head strong { color: var(--yellow); font-size: 1.2rem; }

.versus-line { padding: 26px 0 20px; }
.versus-line b { font-size: 1.2rem; }
.versus-line i {
  flex: 1;
  color: var(--orange);
  font-size: .66rem;
  font-style: normal;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.skill-rail {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-rail li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 15px;
  align-items: center;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.skill-rail i {
  position: relative;
  display: block;
  height: 10px;
  background: rgba(243, 239, 228, .16);
}

.skill-rail i::before,
.skill-rail i::after {
  position: absolute;
  top: 0;
  bottom: 0;
  content: "";
}

.skill-rail i::before {
  right: 50%;
  width: var(--left);
  background: var(--orange);
}

.skill-rail i::after {
  left: 50%;
  width: var(--right);
  background: var(--yellow);
}

.board-score {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 239, 228, .5);
}

.board-score strong { font-size: 1.45rem; }
.board-score span { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }

.secondary-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.secondary-products .product {
  display: flex;
  flex-direction: column;
  min-height: 820px;
  padding: clamp(42px, 6vw, 76px);
}

.product--pedal {
  border-right: 1px solid var(--ink);
  background: var(--green-light);
  color: #16392d;
}

.product--proofpup {
  background: var(--proof-paper);
  color: #3f1f1a;
}

.secondary-products h2 { font-size: clamp(3.3rem, 6vw, 6.3rem); }

.secondary-products .product-line {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.secondary-products .product-link { margin-top: 32px; }

.pedal-route,
.proof-stack {
  position: relative;
  width: 100%;
  margin-top: auto;
}

.pedal-route {
  padding-top: 70px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.route-label {
  padding-bottom: 12px;
  border-bottom: 2px solid currentColor;
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pedal-route svg {
  display: block;
  width: 100%;
  height: 180px;
  overflow: visible;
}

.route-grid {
  fill: none;
  stroke: rgba(22, 57, 45, .18);
  stroke-width: 1;
}

.route-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
}

.pedal-route circle { fill: var(--yellow); stroke: currentColor; stroke-width: 3; }

.route-score {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  padding-top: 15px;
  border-top: 2px solid currentColor;
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.route-score b { font-size: 1.2rem; }
.route-score i { height: 1px; background: currentColor; }

.proof-stack {
  min-height: 360px;
  padding-top: 70px;
}

.proof-sheet {
  position: absolute;
  border: 2px solid currentColor;
  background: #fbf2e8;
  box-shadow: 8px 8px 0 rgba(63, 31, 26, .13);
}

.proof-sheet--back,
.proof-sheet--middle {
  display: grid;
  width: 34%;
  aspect-ratio: .74;
  place-items: center;
  font: 900 clamp(2rem, 5vw, 4.4rem)/1 "InterDisplay", sans-serif;
}

.proof-sheet--back { left: 2%; top: 124px; transform: rotate(-7deg); }
.proof-sheet--middle { right: 3%; top: 93px; transform: rotate(6deg); background: var(--yellow); }

.proof-sheet--front {
  z-index: 2;
  right: 17%;
  bottom: 0;
  width: 64%;
  min-height: 300px;
  padding: 24px;
}

.proof-sheet-head {
  padding-bottom: 14px;
  border-bottom: 1px solid currentColor;
  font: 700 .66rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.proof-sheet--front > strong {
  display: block;
  margin: 24px 0;
  font: 900 clamp(3.1rem, 6vw, 5.2rem)/.9 "InterDisplay", sans-serif;
  letter-spacing: -.06em;
}

.proof-sheet ul {
  display: grid;
  gap: 9px;
  margin: 0 0 23px;
  padding: 0;
  list-style: none;
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.proof-sheet li { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.proof-sheet li i { grid-column: 2; width: 68px; height: 7px; background: var(--proof); }
.proof-sheet li:nth-child(2) i { width: 52px; }
.proof-sheet li:nth-child(3) i { width: 61px; }
.proof-sheet small { font: 700 .59rem/1.3 ui-monospace, monospace; text-transform: uppercase; }

.pup-ear {
  position: absolute;
  z-index: 3;
  right: 17%;
  bottom: 0;
  width: 58px;
  height: 58px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  background: var(--proof-paper);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  padding: 36px 0 54px;
}

.studio-mark--small { font-size: .75rem; }
.studio-mark--small .studio-glyph { transform: scale(.8); transform-origin: left center; }

footer p {
  margin: 13px 0 0;
  color: var(--muted);
  font: 700 .72rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: flex-end;
}

footer nav a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

footer nav a:hover { border-color: currentColor; }

@media (max-width: 980px) {
  .product--mindrank {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mindrank-board { margin-top: 28px; }

  .secondary-products { grid-template-columns: 1fr; }

  .secondary-products .product { min-height: 760px; }

  .product--pedal {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
}

@media (max-width: 720px) {
  :root { --page: min(100% - 28px, 1240px); }

  .masthead { min-height: 68px; }
  .header-link { font-size: 0; }
  .header-link span { font-size: 1rem; }

  .intro {
    grid-template-columns: 1fr;
    min-height: 490px;
    gap: 32px;
    padding-top: 74px;
  }

  .edition { grid-column: 1; }

  h1 { font-size: clamp(3.75rem, 18vw, 6.8rem); }

  .product--mindrank,
  .secondary-products .product {
    margin-inline: calc((100vw - 100%) / -2);
    padding: 44px max(24px, calc((100vw - var(--page)) / 2));
  }

  .product--mindrank { gap: 30px; }

  .mindrank-board {
    padding: 18px;
    box-shadow: 10px 10px 0 var(--orange);
  }

  .skill-rail li { grid-template-columns: 74px 1fr; gap: 10px; }
  .secondary-products .product { min-height: 720px; }
  .proof-stack { min-height: 330px; }
  .proof-sheet--front { right: 9%; width: 72%; min-height: 275px; padding: 20px; }
  .pup-ear { right: 9%; }

  footer { align-items: start; flex-direction: column; }
  footer nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .intro-copy { font-size: 1rem; }
  h2 { font-size: 3.4rem; }
  .product-line { font-size: 1.35rem; }
  .versus-line b { font-size: .9rem; }
  .board-score strong { font-size: 1.1rem; }
  .board-score span { font-size: .54rem; }
  .route-score { grid-template-columns: auto auto; gap: 8px 16px; }
  .route-score i { display: none; }
  .route-score span:nth-of-type(2) { grid-column: 1; }
  .proof-sheet--front > strong { font-size: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
