@font-face {
  font-family: "Barlow Condensed"; src: url("BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700; font-display: swap;
}
:root {
  --graphite: #171918; --surface: #232624; --ink: #f3f3ed; --muted: #b8bdb5;
  --line: #4a504a; --accent: #d5f64d;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif; --sans: "Instrument Sans", Arial, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --gutter: clamp(var(--s5), 4.2vw, var(--s8));
  font-family: var(--sans); color: var(--ink); background: var(--graphite); scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.icon, .state-icon {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
[hidden] { display: none !important; }
.skip {
  top: 0; left: var(--gutter); z-index: 2; position: fixed; transform: translateY(-140%);
  padding: var(--s4); color: var(--graphite); background: var(--accent);
}
.skip:focus-visible { transform: none; }
.header, footer { padding-inline: var(--gutter); }
.header {
  display: flex; align-items: center; gap: var(--s7); min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.identity, .atelier, .header nav a, footer a { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; }
.identity { font-size: 29px; font-weight: 690; letter-spacing: -.075em; }
.identity svg { width: 34px; height: 20px; fill: var(--accent); }
.header nav { display: flex; gap: var(--s6); align-items: center; font-size: 15px; }
.atelier { margin-left: auto; font-size: 15px; }
.header nav a:hover, .atelier:hover, footer a:hover { text-decoration: underline; text-underline-offset: var(--s1); }
.cover { display: grid; grid-template-columns: .97fr 1.03fr; min-height: max(540px, calc(100svh - 172px)); }
.cover-copy {
  padding: var(--s8) var(--gutter); align-self: center; display: flex;
  align-items: flex-start; flex-direction: column;
}
.context { display: flex; align-items: center; gap: var(--s3); font-size: 15px; font-weight: 580; }
.context span { display: inline-block; flex: none; width: 23px; height: 3px; background: var(--accent); }
h1, h2, h3 { font: 700 1em/.9 var(--display); letter-spacing: -.025em; }
h1 { margin-block: var(--s6) var(--s5); font-size: clamp(80px, 8.45vw, 140px); }
.dek, .guide-intro>p:last-child { font-size: clamp(18px, 1.35vw, 22px); line-height: 1.5; max-width: 40ch; color: var(--muted); }
.button, .panel-action {
  display: inline-flex; justify-content: space-between; align-items: center; gap: var(--s6);
  min-height: 49px; font-weight: 650; font-size: 16px;
}
.button { background: var(--accent); color: var(--graphite); padding: var(--s3) var(--s5); margin-top: var(--s6); }
.icon { transition: transform 160ms ease; }
a:hover>.icon { transform: translateX(3px); } .button:active { transform: translateY(1px); }
.cover-image { background: var(--surface); overflow: hidden; position: relative; }
.cover-image img { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 61% 46%; }
.route {
  min-height: 96px; display: grid; grid-template-columns: .72fr repeat(3,1fr);
  align-items: stretch; padding-inline: var(--gutter); background: var(--surface);
  border-block: 1px solid var(--line);
}
.route>p, .route>a { display: flex; align-items: center; }
.route>p { color: var(--muted); font-size: 14px; }
.route>a { padding: var(--s4) var(--s5); gap: var(--s4); border-left: 1px solid var(--line); font-size: clamp(16px,1.35vw,21px); }
.route>a span { color: var(--accent); font: 700 24px/1 var(--display); }
.route>a svg { margin-left: auto; }
.route>a:hover { color: var(--accent); }
.guide {
  min-height: 90svh; padding: var(--s9) var(--gutter); display: grid;
  grid-template-columns: .9fr 1.1fr; gap: var(--s8); align-items: center;
}
.guide h2 { font-size: clamp(60px, 6.35vw, 105px); margin-block: var(--s5); }
.console { border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.app-title, .topics, .panel { padding-inline: clamp(var(--s5),3.25vw,var(--s8)); }
.app-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); min-height: 72px; }
.app-brand { font: 670 26px/1 var(--sans); letter-spacing: -.07em; }
.app-title>span:last-child { color: var(--muted); font-size: 14px; }
.topics { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); gap: var(--s5); }
.topics button { min-height: 54px; padding: 0; background: none; color: var(--muted); border: 0; font-weight: 600; border-bottom: 3px solid transparent; }
.topics button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.topics button:hover { color: var(--ink); }
.panel { padding-block: var(--s6); }
.panel-title { display: flex; align-items: flex-start; gap: var(--s4); margin-bottom: var(--s5); }
.state-icon { width: 38px; height: 38px; color: var(--accent); }
.panel-title p { margin-block: 0 var(--s2); font-size: 14px; color: var(--muted); }
.panel h3 { font-size: clamp(38px,3.35vw,56px); }
.panel>p, .panel details p { width: min(100%,51ch); font-size: 17px; line-height: 1.5; color: var(--muted); }
.panel details { border-block: 1px solid var(--line); margin-block: var(--s5) var(--s3); }
.panel summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 55px; list-style: none; cursor: pointer; font-weight: 600; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after { content: "+"; color: var(--accent); font: 400 24px/1 var(--sans); }
.panel details[open] summary::after { content: "−"; }
.panel details p { padding-bottom: var(--s5); }
.panel-action { color: var(--accent); }
footer { min-height: 72px; display: flex; align-items: center; gap: var(--s5); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer a { color: var(--ink); margin-right: auto; }
@media (max-width: 950px) {
  .cover { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(76px,9.4vw,100px); }
  .route { grid-template-columns: .55fr repeat(3,1fr); }
  .route>a { gap: var(--s2); padding-inline: var(--s3); }
  .guide { gap: var(--s6); grid-template-columns: .8fr 1.2fr; }
}
@media (max-width: 680px) {
  :root { --gutter: var(--s5); }
  .header { min-height: 60px; gap: var(--s4); }
  .header nav { display: none; }
  .identity { font-size: 25px; gap: var(--s2); }
  .identity svg { width: 28px; height: 17px; }
  .atelier { font-size: 14px; gap: var(--s2); }
  .cover { display: flex; flex-direction: column; min-height: calc(100svh - 60px - 78px); }
  .cover-copy { width: 100%; padding: var(--s6) var(--gutter); align-self: start; }
  .context { font-size: 13px; }
  h1 { margin-block: var(--s4); font-size: clamp(61px,15.8vw,99px); }
  .dek { font-size: 16px; line-height: 1.45; }
  .button { margin-top: var(--s5); width: 100%; }
  .cover-image { flex: 1; min-height: clamp(250px,70vw,390px); }
  .cover-image img { object-position: center 30%; }
  .route { padding: 0 var(--gutter); min-height: 0; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .route>p { grid-column: 1/-1; padding-top: var(--s3); }
  .route>a { border-left: 0; min-height: 48px; font-size: 13px; gap: var(--s2); padding: var(--s2) var(--s1) var(--s3) 0; align-items: baseline; }
  .route>a span { font-size: 20px; }
  .route>a svg { display: none; }
  .guide { grid-template-columns: 1fr; gap: var(--s6); padding-block: var(--s7); min-height: auto; }
  .guide h2 { font-size: clamp(57px,14vw,80px); margin-block: var(--s4); }
  .guide-intro>p:last-child, .panel>p, .panel details p { font-size: 16px; }
  .app-title,.topics,.panel { padding-inline: var(--s4); }
  .app-title { min-height: 58px; }
  .topics { gap: var(--s4); justify-content: space-between; }
  .topics button { min-height: 47px; font-size: 14px; }
  .panel { padding-block: var(--s5); }
  .state-icon { width: 30px; height: 30px; }
  .panel-title { gap: var(--s3); margin-bottom: var(--s4); }
  footer { justify-content: space-between; flex-wrap: wrap; padding-block: var(--s3); gap: var(--s2) var(--s4); }
  footer a { width: 100%; }
}
@media (max-width: 350px) {
  :root { --gutter: var(--s4); }
  .route>a { font-size: 12px; }
  h1 { font-size: 59px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
