:root {
  color-scheme: dark;
  --paper: #16161d;
  --white: #20212b;
  --ink: #f3eee5;
  --muted: #c2beca;
  --rule: #393846;
  --blue: #d9c9eb;
  --blue-dark: #e2d5f0;
  --blue-soft: #292737;
  --panel-highlight: #383345;
  --display: Georgia, Cambria, serif;
}

body {
  background: radial-gradient(ellipse at 77% 14rem, #242030 0, transparent 36rem), var(--paper);
}
::selection { color: var(--paper); background: var(--blue); }
.shell { width: min(1160px, calc(100% - 72px)); }
.site-header { background: #191920; }
.site-header .header-inner { min-height: 65px; padding-block: 10px; }
.brand { font: 400 1.18rem/1.1 var(--display); letter-spacing: -.015em; }
.brand-mark {
  width: 33px;
  height: 33px;
  border: 1px solid #625770;
  border-radius: 50%;
  color: var(--blue-dark);
  background: #2a2535;
  font: 500 .72rem/1 var(--display);
  letter-spacing: 0;
}
.utility-nav { gap: 7px clamp(14px, 2.65vw, 31px); }
.utility-nav a { padding-block: 6px; font-size: .87rem; font-weight: 560; }
.utility-nav a[aria-current] { text-decoration: underline; }
.project-bar { background: #1e1e27; border-top: 1px solid #34323e; }
.project-nav { gap: 3px 7px; flex-wrap: wrap; padding-block: 8px; }
.project-nav a { padding: 7px 11px; border-radius: 6px; font-weight: 580; font-size: .84rem; }
.project-nav a:first-child { margin-inline-start: -9px; }
.project-nav a:hover { background: #2e2b39; }
.project-nav a[aria-current] {
  color: var(--ink);
  background: var(--panel-highlight);
}

.eyebrow, .category {
  color: #d5c3e3;
  font: 560 .81rem/1.5 system-ui, sans-serif;
  letter-spacing: .055em;
  text-transform: none;
}
.button { color: #231b2e; background: var(--blue); border-radius: 8px; }
.button.secondary { border-color: #5c5267; }
.button.secondary:hover { border-color: #a897b7; }
.card:hover { border-color: #a797bd; box-shadow: 0 12px 26px #08070e45; }
.mini-main { color: #172344; }
.filters button[aria-pressed="true"] { border-color: #9380a6; }
.field input { border-color: #585364; }
.field input:invalid { border-color: #eb889b; }
.calc-results, .calc-results dl div, .cv-aside, .cv-side-section + .cv-side-section,
.credential-featured li { border-color: var(--rule); }

.studio-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 87px);
  padding-block: clamp(38px, 6vw, 88px) clamp(48px, 6vw, 86px);
}
.art-heading img { display: block; width: auto; height: auto; max-width: 100%; }
.home-wordmark { margin: 14px 0 24px; }
.home-wordmark img { width: min(100%, 555px); }
.studio-lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.65vw, 1.32rem);
}
.studio-art {
  position: relative;
  overflow: hidden;
  border: 1px solid #474050;
  border-radius: 18px;
  box-shadow: 0 24px 66px #09080e60;
  background: #251f31;
}
.studio-art img { width: 100%; aspect-ratio: 1.24; object-fit: cover; }
.studio-art figcaption {
  position: absolute;
  inset: auto 13px 13px auto;
  padding: 4px 9px;
  border-radius: 5px;
  background: #18141edb;
  color: var(--ink);
  font-size: .75rem;
}

.page-head h1, .studio-section h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.032em;
  line-height: 1.08;
}
.page-head .art-heading { margin-block: 16px 20px; }
.page-head .art-heading img { max-height: clamp(43px, 8.4vw, 94px); object-fit: contain; object-position: left center; }
.page-head .title-max-crystal img { width: min(100%, 440px); }
.studio-section { border-top: 1px solid var(--rule); padding-block: clamp(32px, 5vw, 65px); }
.world-jumps + .studio-section { border-block-start: 0; padding-block-start: 0; }
.studio-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 14px 36px;
  margin-bottom: clamp(19px, 3vw, 31px);
}
.studio-section h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
.studio-section-intro p { color: var(--muted); max-width: 58ch; }
.home-about { scroll-margin-top: 16px; }
.home-about .art-heading { margin-bottom: clamp(20px, 3vw, 32px); }
.home-about .art-heading img { width: min(100%, 540px); }
.updates-section h3 { font: 400 clamp(2rem, 4vw, 3.45rem)/1.1 var(--display); letter-spacing: -.032em; }
.updates-section { margin-top: clamp(25px, 4vw, 44px); padding-block: clamp(24px, 3vw, 40px) 0; scroll-margin-top: 16px; }
.updates-date { padding-bottom: 8px; color: #d5c3e3; font: 500 .79rem/1.5 var(--mono); }
.update-list + .updates-date { margin-top: 22px; }
.update-list { border-bottom: 1px solid var(--rule); }
.update-entry { border-top: 1px solid var(--rule); padding-inline: clamp(10px, 2vw, 22px); }
.update-entry[open] { background: #24222e; }
.update-entry summary { padding-block: 14px; font-weight: 600; cursor: pointer; }
.update-entry summary::marker { color: #ccb6df; }
.update-entry summary:hover { color: var(--blue-dark); }
.update-entry p { max-width: 72ch; margin: 0 0 17px 17px; color: var(--muted); }

.printing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}
.printing-layout > section { scroll-margin-top: 18px; }
.printing-layout .calculator { grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1050px) {
  .printing-layout .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
}
.printing-section-head { margin-bottom: 19px; }
.printing-section-head h2 img {
  max-height: clamp(28px, 4vw, 48px);
  object-fit: contain;
  object-position: left center;
}
.printing-section-head p { margin-top: 10px; max-width: 60ch; color: var(--muted); }
.printing-layout .calc-footnote summary { cursor: pointer; color: var(--blue-dark); }
.printing-layout .calc-footnote ul { padding-inline-start: 1.3em; }
.printing-layout .calc-footnote p { margin-top: 10px; }
.printer-photo { overflow: hidden; border: 1px solid var(--rule); background: var(--white); border-radius: 12px; }
.printer-photo img { width: 100%; height: auto; }
.printer-photo figcaption { padding: 11px 15px; color: var(--muted); font-size: .87rem; }
.cover.printer img { object-position: center 27%; }
.cover.imagechecker-cover { background: #24272d; }
.cover.imagechecker-cover img { object-fit: contain; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .studio-home-hero, .studio-section-intro, .printing-layout, .detail-grid, .calculator { grid-template-columns: minmax(0, 1fr); }
  .studio-art { max-width: 535px; }
  .studio-art img { aspect-ratio: 1.55; }
  .printer-photo, .arcade-discovery--printer { max-width: 540px; }
}
@media (max-width: 440px) {
  .site-header .header-inner { gap: 4px 13px; flex-wrap: wrap; align-items: center; }
  .utility-nav { gap: 5px 12px; }
  .utility-nav a { font-size: .82rem; }
  .project-nav { gap: 2px 4px; }
  .project-nav a { font-size: .78rem; padding-inline: 7px; }
  .project-nav a:first-child { margin-inline-start: -6px; }
  .studio-home-hero { gap: 24px; }
  .studio-intro .hero-actions { margin-top: 20px; }
  .studio-intro .button { min-height: 43px; font-size: .85rem; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .studio-art img {
    transition: transform .3s ease-out;
    transform: translate(var(--art-x, 0), var(--art-y, 0)) scale(1.035);
  }
}
@media (forced-colors: active) {
  .art-heading img { forced-color-adjust: none; background: #16161d; }
}

.skills-intro, .skills-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(15px, 4vw, 48px);
}
.skills-intro { align-items: end; }
.skills-intro .title-skills img { width: min(100%, 310px); }
.skills-attendance {
  justify-self: end;
  border-left: 2px solid #8f7c9a;
  padding: 4px 0 4px 20px;
  max-width: 47ch;
}
.skills-attendance h2, .skills-group h2 {
  font: 400 clamp(1.55rem, 3vw, 2.3rem)/1.14 var(--display);
  letter-spacing: -.02em;
}
.skills-attendance p { margin-top: 7px; color: var(--muted); }
.skills-group { border-top: 1px solid var(--rule); padding-block: 28px; }
.skills-group dl { margin: 0; }
.skills-group dl div + div { margin-top: 14px; }
.skills-group dt { font-weight: 680; }
.skills-group dd { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 760px) {
  .skills-intro, .skills-group { grid-template-columns: minmax(0, 1fr); }
  .skills-attendance { justify-self: start; }
  .skills-group { padding-block: 22px; }
}

.arcade-discovery { position: relative; }
.arcade-collectible {
  --collectible-size: clamp(44px, 5vw, 58px);
  --collectible-edge: 12px;
  --collectible-y: var(--collectible-edge);
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
#wingman-relay { --collectible-y: 45%; }
#scanner-module { --collectible-y: 36%; }
.arcade-signal {
  --collectible-colour: #ffda8b;
  position: absolute;
  inset-block-start: var(--collectible-y);
  inset-inline-start: var(--collectible-edge);
  display: grid;
  pointer-events: auto;
  place-items: center;
  width: var(--collectible-size);
  height: var(--collectible-size);
  padding: 0;
  border: 1px solid var(--collectible-colour);
  border-radius: 50%;
  color: var(--collectible-colour);
  background: #201c2c;
  box-shadow: 0 0 18px #100c1a9c;
}
.arcade-signal[data-bonus="wingman"] { --collectible-colour: #a8f0e0; }
.arcade-signal:hover, .arcade-signal[aria-expanded="true"] { background: #38304a; }
.arcade-signal-icon {
  width: 63%;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0%, 62% 34%, 100% 37%, 72% 59%, 81% 97%, 50% 76%, 19% 97%, 28% 59%, 0% 37%, 38% 34%);
}
.arcade-signal[data-bonus="wingman"] .arcade-signal-icon {
  clip-path: polygon(50% 0%, 62% 33%, 96% 70%, 96% 88%, 63% 75%, 53% 97%, 47% 97%, 37% 75%, 4% 88%, 4% 70%, 38% 33%);
}
.arcade-signal[data-collected]::after {
  content: "✓";
  position: absolute;
  inset-inline-end: -4px;
  inset-block-end: -3px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--collectible-colour);
  color: #201c2c;
  font-size: .72rem;
  font-weight: 700;
}
.arcade-signal-result {
  position: absolute;
  inset-block-start: calc(var(--collectible-y) + var(--collectible-size) + 8px);
  inset-inline-start: var(--collectible-edge);
  width: min(17rem, calc(100% - 2 * var(--collectible-edge)));
  pointer-events: auto;
  padding: 12px 14px;
  border: 1px solid var(--panel-highlight);
  border-radius: 8px;
  color: var(--ink);
  background: #211e30;
  font-size: .84rem;
  box-shadow: 0 8px 24px #100c1a9c;
}
.arcade-signal-result a { display: block; margin-block-start: 5px; }
.arcade-collectible--end :is(.arcade-signal, .arcade-signal-result) {
  inset-inline-start: auto;
  inset-inline-end: var(--collectible-edge);
}
.arcade-collectible--bottom { --collectible-bottom: 64px; }
.arcade-collectible--bottom .arcade-signal {
  inset-block-start: auto;
  inset-block-end: var(--collectible-bottom);
}
.arcade-collectible--bottom .arcade-signal-result {
  inset-block-start: auto;
  inset-block-end: calc(var(--collectible-bottom) + var(--collectible-size) + 8px);
}

.build-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px clamp(22px, 4vw, 56px);
  padding-inline-start: 1.6rem;
  margin: 20px 0 24px;
}
.build-steps li { border-top: 1px solid var(--rule); padding: 12px 0 10px .35rem; }
.build-steps li::marker { color: var(--blue-dark); font: 600 .84rem var(--mono); }
.build-steps h3 { margin-bottom: 6px; font-size: 1.13rem; font-weight: 650; }
.build-steps p { color: var(--muted); max-width: 66ch; }
@media (max-width: 690px) {
  .build-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
