@font-face {
  font-family: Instrument Sans;
  src: url('/assets/instrument-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --petrol: #062e2d;
  --cream: #f1ebde;
  --paper: #f8f5ed;
  --ink: #142b2a;
  --muted: #45615b;
  --line: #b6c2b5;
  --accent: #d78b78;
  --hero: var(--petrol);
  --hero-ink: var(--cream);
  --width: 88rem;
  --gutter: clamp(1.15rem, 5vw, 5rem);
  --mono: 'IBM Plex Mono', Consolas, monospace;
  font-family: Instrument Sans, Arial, sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: .98; letter-spacing: -.053em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.4vw, 7.45rem); max-width: 14ch; margin-bottom: .27em; }
h2 { font-size: clamp(2rem, 4vw, 4rem); margin-bottom: .42em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 2.15rem); margin-bottom: .5em; }
p { max-width: 70ch; }
small { font-size: .9em; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; z-index: 2; top: .5rem; left: var(--gutter); padding: .65rem 1rem; color: var(--petrol); background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead, .footer {
  padding: .7rem max(var(--gutter), calc((100% - var(--width)) / 2 + var(--gutter)));
  background: var(--petrol);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .86rem;
}
.masthead a, .footer a { display: inline-flex; align-items: center; min-height: 44px; }
.masthead img { display: block; }
.footer { min-height: 6rem; }
.label, .number {
  font: .76rem/1.4 var(--mono);
  letter-spacing: .095em;
  text-transform: uppercase;
}
.label { margin-bottom: 1.3rem; }
.lede { font-size: clamp(1.1rem, 2.3vw, 1.55rem); line-height: 1.38; max-width: 35ch; }
.section { max-width: var(--width); margin-inline: auto; padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter); }
.section-intro { margin-bottom: 2.25rem; }
.section-intro .label { color: var(--muted); }
.studio-hero, .product-hero { background: var(--hero); color: var(--hero-ink); }
.studio-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1rem, 4vw, 5rem);
  padding: clamp(2.8rem, 7vw, 7rem) max(var(--gutter), calc((100% - var(--width)) / 2 + var(--gutter)));
  align-items: center;
  border-top: 1px solid #32615b;
}
.studio-copy h1 { font-size: clamp(3rem, 7.4vw, 8.15rem); line-height: .89; }
.studio-hero h1 span { color: var(--accent); }
.studio-copy .label { color: #a4c6bc; }
.studio-copy .button { margin-top: .65rem; background: var(--cream); color: var(--petrol); }
.studio-art {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: .6rem;
  min-height: clamp(15rem, 32vw, 32rem);
  border: 1px solid #57837b;
}
.studio-art div { background: url('/assets/marble.jpg') 58% 50% / cover no-repeat; }
.studio-art span { font: .66rem/1.4 var(--mono); letter-spacing: .28em; padding: .65rem .1rem .1rem; }
.release-index { padding-top: 2.25rem; }
.release-index header { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; }
.release-index header p { color: var(--muted); }
.release-index ol { list-style: none; padding: 0; margin: 0; }
.release-index li { border-top: 1px solid var(--line); }
.release-index li:last-child { border-bottom: 1px solid var(--line); }
.release-index li a {
  display: grid;
  grid-template-columns: 4.5rem minmax(11rem, 1fr) minmax(12rem, 23rem) 1.8rem;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  padding: 1.18rem .15rem;
}
.release-index li a:hover { background: #eceade; }
.release-index .number, .release-note { color: var(--muted); }
.release-name { font-size: clamp(1.65rem, 3.3vw, 3.25rem); font-weight: 650; line-height: 1; letter-spacing: -.06em; }
.arrow { font-size: 1.45rem; }

.product-hero { padding: clamp(3.2rem, 8vw, 8rem) max(var(--gutter), calc((100% - var(--width)) / 2 + var(--gutter))); }
.product-hero p:last-child { margin-bottom: 0; }
.aftermarket { --hero: #dfdac8; --hero-ink: #283a25; --line: #aeb7a3; }
.skilltree { --hero: #24483b; --hero-ink: #f7ebca; --paper: #f4f2df; }
.upgrade { --hero: #cbdfeb; --hero-ink: #142f45; --paper: #f0f5f6; }
.oddly-useful { --hero: #e3aa88; --hero-ink: #432315; --paper: #faf1e5; }
.worth-it { --hero: #332c46; --hero-ink: #f5e9e0; --paper: #f5f2f7; }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: .85rem 1.1rem; }
label { display: grid; gap: .38rem; font-weight: 600; font-size: .95rem; }
input, select, textarea, button, .button {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: #fefcf6;
  color: var(--ink);
  font: inherit;
  padding: .5rem .75rem;
}
textarea { min-height: 6rem; resize: vertical; }
input[type='checkbox'] { width: 1.2rem; height: 1.2rem; min-height: auto; accent-color: var(--petrol); }
button, .button { cursor: pointer; background: var(--petrol); color: var(--cream); font-weight: 600; padding-inline: 1rem; }
button:hover, .button:hover { background: #194746; }
button:focus-visible, .button:focus-visible { outline-color: #27655a; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .6; }
.button { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.check { min-height: 44px; display: flex; align-items: center; gap: .5rem; }
.note, .result-note { color: var(--muted); margin-block: 1.1rem .75rem; }
.note { font-size: .9rem; }
.noscript { margin: 0; padding: .65rem var(--gutter); }
.result-note { font-weight: 600; }
.table-wrap { margin-block: 1.6rem; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: .95rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
td:last-child, th:last-child { text-align: right; }
th[scope='row'] small { display: block; margin-top: .22rem; font-weight: 400; color: var(--muted); }
.inset { background: #e5ebe1; border-top: .25rem solid var(--petrol); padding: clamp(1.15rem, 4vw, 2.8rem); }
.section.inset { margin: 0 auto clamp(2rem, 6vw, 5rem); width: calc(100% - var(--gutter) * 2); max-width: calc(var(--width) - var(--gutter) * 2); }
.detail, .split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.detail h2 { font-size: clamp(1.55rem, 2.5vw, 2.45rem); margin-top: 1.25rem; }
.detail h2:first-child { margin-top: 0; }
.facts div { display: grid; grid-template-columns: minmax(6rem, .6fr) 1fr; gap: .65rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.source-list { padding-left: 1.25rem; }
.source-list li { margin-bottom: .65rem; overflow-wrap: anywhere; }
.skill-tree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 52rem; }
.skill-node { background: #e3e8d6; border: 1px solid #698373; padding: 1.05rem; position: relative; }
.skill-node:nth-child(1), .skill-node:nth-child(2), .skill-node:nth-child(5) { grid-column: 1 / -1; width: min(100%, 26rem); justify-self: center; }
.skill-node:nth-child(n+2)::before { content: ''; position: absolute; left: 50%; top: -1.45rem; height: 1.4rem; border-left: 1px solid #698373; }
.skill-node .label { margin-bottom: .55rem; }
.share-row { margin-top: 1.45rem; display: grid; gap: .8rem; justify-items: start; }
.share-row label { width: min(100%, 52rem); }
.field-stack, fieldset { display: grid; gap: .85rem; }
.field-stack button { justify-self: start; }
.discovery-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.discovery-row .label { margin-bottom: .48rem; }
.discovery-row p:last-child { margin-bottom: 0; }
details { border-top: 1px solid var(--line); padding-top: 1rem; }
details form { max-width: 35rem; padding-top: 1rem; }
summary { cursor: pointer; }
.comparison-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
fieldset { border: 1px solid var(--line); padding: 1rem; margin: 0; min-width: 0; }
legend { font-weight: 600; }
.cost-controls { margin-block: 1rem; }
.cost-chart { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
.cost-chart div { display: grid; gap: .15rem; }
meter { width: 100%; height: 1rem; accent-color: var(--petrol); }

@media (max-width: 48rem) {
  .studio-hero { grid-template-columns: 1fr; gap: 2rem; }
  .studio-art { min-height: clamp(10rem, 43vw, 18rem); }
  .release-index li a { grid-template-columns: 2.45rem minmax(0, 1fr) auto; gap: .35rem .65rem; }
  .release-note { grid-column: 2; grid-row: 2; }
  .arrow { grid-column: 3; grid-row: 1; }
  .detail, .split { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .comparison-inputs, .skill-tree { grid-template-columns: minmax(0, 1fr); }
  .skill-node:nth-child(n) { grid-column: 1; width: 100%; }
  .controls > label { width: 100%; }
  td, th { padding: .6rem .35rem; font-size: .88rem; overflow-wrap: anywhere; }
  .discovery-row { align-items: start; }
}
