@font-face {
  font-family: Barlow;
  src: url('/fonts/Barlow-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/BarlowCondensed-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
:root {
  --cobalt: #163dea;
  --acid: #f4fc29;
  --cyan: #4ee8ef;
  --lavender: #b9b7fa;
  --navy: #161932;
  --paper: #f4f5fc;
  --card: #fafaff;
  --ink: #14172c;
  --muted: #53586e;
  --line: #cbd0e1;
  --soft: #e8eaf6;
  --tint: #dce1ff;
  --link: #1835bb;
  --focus: #3e55ff;
  --solid: #203fe4;
  --display: Barlow, 'Arial Black', 'Segoe UI', sans-serif;
  --sans: 'Segoe UI', Arial, sans-serif;
  --serif: var(--sans);
  --rail: clamp(177px, 14.6vw, 220px);
  color-scheme: light;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #141622;
  --card: #1c1f31;
  --ink: #f0f1fc;
  --muted: #b7bcd4;
  --line: #41465e;
  --soft: #2b2f47;
  --tint: #333d68;
  --link: #aebcff;
  --focus: #a2b1ff;
  --solid: #344fe3;
}
body {
  background-color: var(--paper);
  color: var(--ink);
}
h1,
h2,
h3,
h4,
.brand {
  color: inherit;
}
h1,
h2,
h3,
.block-title,
.section-title h2,
.pagehead h1,
.room-body h3,
.dialog-head h2 {
  font: italic 800 1.6rem/1.12 var(--display);
  letter-spacing: -0.034em;
}
h1,
.pagehead h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}
.pagehead {
  align-items: flex-end;
  margin: 10px 0 28px;
}
.pagehead p {
  margin-top: 8px;
}
#rail {
  background: var(--paper) url('/paper.svg');
  color: var(--ink);
  border-right: 1px solid var(--line);
  isolation: isolate;
  scrollbar-color: var(--line) transparent;
}
#rail:after {
  content: '';
  position: absolute;
  pointer-events: none;
  bottom: 88px;
  right: 0;
  width: 78%;
  height: 160px;
  z-index: -1;
  background-image: radial-gradient(var(--muted) 0.7px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.27;
  mask-image: linear-gradient(139deg, transparent 45%, black);
}
.brand {
  gap: 9px;
  margin: 23px 20px 42px;
  color: var(--ink);
  align-items: center;
}
.brand > svg {
  width: 37px;
  height: 43px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: -0.8px;
}
.wordmark b {
  font: italic 800 25px/0.9 var(--display);
}
.wordmark em {
  color: var(--link);
}
.wordmark i {
  font: italic 500 22px/1 var(--sans);
  letter-spacing: -1.3px;
}
.rail-nav {
  padding: 0 10px 0 0;
}
.nav-link {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 10px 10px 10px clamp(15px, 1.8vw, 30px);
  margin: 3px 0;
  min-height: 40px;
  width: 100%;
  text-align: left;
  gap: 13px;
}
.nav-link svg {
  color: inherit;
}
.nav-link:hover {
  background: var(--soft);
  color: var(--ink);
}
.nav-link.active {
  background: var(--solid);
  color: white;
  clip-path: polygon(7% 0, 100% 0, 91% 100%, 0 100%);
}
.nav-link.active svg {
  color: white;
}
.nav-link.active:after {
  content: '';
  position: absolute;
  right: 6.5%;
  top: 18%;
  bottom: 18%;
  border-right: 2px solid #fff;
  transform: skew(-21deg);
}
.nav-group.second {
  margin: 30px 10px 10px 22px;
  border-color: var(--line);
  color: var(--muted);
  padding: 17px 0 0;
  letter-spacing: 2px;
  font-size: 0.67rem;
}
.rail-bottom {
  padding: 16px 18px 20px;
  margin-top: auto;
}
.rail-bottom .nav-link {
  border-top: 1px solid var(--line);
  margin: 0 0 8px;
  padding: 11px 4px;
}
.sys {
  color: var(--muted);
}
.dot {
  background: #949ab2;
}
.dot.online {
  background: #38ab86;
}
.topbar {
  padding: 0 21px;
  height: 49px;
  border-bottom: 1px solid var(--muted);
  gap: 10px;
}
.crumb {
  margin-right: auto;
  gap: 9px;
  font-size: 0.95rem;
}
.crumb span {
  font: italic 800 1.15rem var(--display);
  color: var(--ink);
}
.crumb strong {
  color: var(--muted);
  font-weight: 400;
}
.header-new {
  background: var(--solid);
  color: white;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  padding: 6px 24px;
  font-weight: 650;
}
.header-new:hover {
  background: #092dba;
}
.header-new:focus-visible,
.nav-link.active:focus-visible {
  outline-offset: -4px;
  outline: 2px solid var(--acid);
}
#theme svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.tools-btn {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: none;
  padding: 4px 0 4px 10px;
}
.tools-btn:hover,
.icon-btn:hover {
  background: var(--soft);
  color: var(--ink);
}
main {
  max-width: 1620px;
  padding: 22px clamp(18px, 2.5vw, 44px) 48px;
}
main[data-view='home'] {
  padding: 14px clamp(14px, 1.3vw, 25px) 40px;
}
.section {
  margin-top: 24px;
}
.section-title {
  margin-bottom: 13px;
}
.editorial {
  gap: 18px;
}
.editorial h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.3rem);
}
.editorial > span {
  height: 1px;
  background: var(--muted);
  opacity: 0.52;
  flex: 1;
}
.editorial a {
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--link);
  white-space: nowrap;
}
.editorial a:hover {
  text-decoration: underline;
}
.editorial b {
  font-size: 1rem;
}
.room-grid,
.home-rooms {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.room-card,
.home-rooms .room-card:last-child {
  display: block;
  grid-column: auto;
  border-color: var(--line);
  background: var(--card);
  border-radius: 6px;
  box-shadow: none;
}
.room-card:hover {
  border-color: var(--link);
  transform: translateY(-3px);
  box-shadow: 3px 4px 0 var(--tint);
}
.room-art,
.home-rooms .room-card:last-child img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.55;
  max-height: none;
  object-fit: cover;
  display: block;
  border: 0;
}
.room-body {
  padding: 10px 12px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}
.room-body h3 {
  font-size: clamp(1.03rem, 1.55vw, 1.55rem);
  margin: 0;
}
.room-body h3:after {
  content: '';
  display: block;
  background: var(--room-color);
  width: 39px;
  height: 5px;
  transform: skew(-19deg);
  margin-top: 7px;
}
.room-body > span {
  font-weight: 600;
  line-height: 1.2;
}
[data-room='sketchbook'] {
  --room-color: #a9adc3;
}
[data-room='laboratory'] {
  --room-color: var(--acid);
}
[data-room='character'] {
  --room-color: var(--cobalt);
}
[data-room='story'] {
  --room-color: var(--lavender);
}
[data-room='style'] {
  --room-color: var(--cyan);
}
.desk-list {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 5px;
  padding: 0 9px;
}
.desk-row {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  min-height: 45px;
  padding: 8px;
  background: none;
  font-size: 0.91rem;
}
.desk-row + .desk-row {
  border-top: 1px solid var(--line);
}
.desk-row strong {
  font-weight: 600;
}
.desk-row small {
  margin-left: auto;
  color: var(--muted);
}
.desk-kind {
  background: var(--tint);
  padding: 2px 7px;
  font-size: 0.72rem;
  border-radius: 4px;
}
.desk-row:hover {
  background: var(--soft);
}
.spark-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lavender);
  padding: 16px;
  border-radius: 3px;
}
.spark-emblem,
.entry-icon {
  background: var(--soft);
  color: var(--link);
  border-color: var(--line);
}
.spark-copy p {
  font: italic 800 1.17rem/1.35 var(--display);
}
.spark-copy .kicker,
.empty > svg,
.room-heading svg,
.source,
.kicker {
  color: var(--link);
}
.practice {
  grid-template-columns: minmax(180px, 0.7fr) 1.4fr;
  position: relative;
  border-top: 5px solid var(--room-color);
}
.practice > img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}
.practice-body blockquote {
  font: 500 clamp(1.15rem, 1.8vw, 1.6rem) / 1.44 var(--sans);
  letter-spacing: -0.02em;
}
.practice-body {
  align-self: center;
}
.practice-body .kicker {
  color: var(--muted);
}
.panel,
.empty,
.entry-row,
.collection-tile,
.pin-card,
.wheel-card,
.room-card {
  background-color: var(--card);
  border-color: var(--line);
}
.entry-row h3,
.collection-tile h3,
.pin-card strong,
.empty h3,
.tool-line h3 {
  font: 600 1.04rem/1.35 var(--sans);
  letter-spacing: -0.015em;
}
.entry-row:hover,
.collection-tile:hover {
  background: var(--soft);
}
.settings-group h2,
.panel h2,
.board-card h3 {
  font-size: 1.5rem;
}
.btn,
.field :is(input, textarea, select),
.toolbar :is(input, select),
.search-query {
  color: var(--ink);
  background-color: var(--card);
  border-color: var(--line);
}
.btn:hover {
  background: var(--soft);
  border-color: var(--muted);
}
.btn.primary {
  color: #fff;
  background: var(--solid);
  border-color: var(--solid);
}
.btn.primary:hover {
  background: #1532ba;
}
.btn.quiet,
.text-btn,
.small-links a,
.credit-links a {
  color: var(--link);
}
.seg {
  background: var(--soft);
}
.seg button {
  color: var(--muted);
}
.seg button[aria-pressed='true'] {
  color: var(--ink);
  background: var(--card);
}
.wheel-card {
  border-top: 3px solid var(--solid);
}
.wheel-card.locked {
  border-color: var(--link);
  background: var(--soft);
}
.wheel-head .icon-btn,
.wheel-card .text-btn {
  color: var(--link);
}
.wheel-card h4 {
  font: italic 800 1.34rem/1.18 var(--display);
}
.dial:before {
  border-top-color: var(--ink);
}
.spinning .dial svg {
  animation: turn 0.72s cubic-bezier(0.16, 0.75, 0.2, 1);
}
.spinning h4,
.reveal-brief p {
  animation: ink-in 0.48s ease-out;
}
.reveal-brief {
  position: relative;
  overflow: hidden;
}
.reveal-brief:after {
  content: '✦';
  position: absolute;
  right: 20px;
  top: 12px;
  color: var(--link);
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
  animation: flash 0.76s ease-out;
}
.query,
.chip {
  background: var(--soft);
  border-color: var(--line);
  color: var(--ink);
}
.query[aria-pressed='true'] {
  background: var(--solid);
  color: #fff;
  border-color: var(--solid);
}
.pin-card img {
  background: var(--soft);
}
.editor-row input {
  accent-color: var(--solid);
}
dialog {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}
#toast {
  background: var(--navy);
  color: white;
  border: 1px solid #9297c3;
}
:where(button, a, input, select, textarea):focus-visible {
  outline-color: var(--focus);
}
.skip {
  background: var(--card);
  color: var(--ink);
}
.slide-in {
  animation: ink-in 0.24s ease-out;
}
@keyframes ink-in {
  from {
    transform: translateY(5px);
    opacity: 0.25;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes flash {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-22deg);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.3) rotate(15deg);
  }
}
@media (max-width: 1050px) {
  .room-grid {
    gap: 7px;
  }
  .room-body {
    padding: 9px;
  }
  .room-body > span {
    display: none;
  }
  .editorial {
    gap: 10px;
  }
}
@media (min-width: 681px) and (max-width: 920px) {
  :root {
    --rail: 65px;
  }
  #rail {
    width: 65px;
    transform: none;
  }
  .brand {
    margin: 22px auto 32px;
  }
  .wordmark,
  .nav-group,
  .rail-nav .nav-link span,
  .rail-bottom .nav-link span,
  .rail-bottom .sys,
  .mobile-only {
    display: none;
  }
  .rail-nav,
  .rail-bottom {
    padding: 0 5px;
  }
  .nav-link,
  .rail-bottom .nav-link {
    justify-content: center;
    padding: 12px 0;
  }
  .rail-bottom {
    padding-bottom: 12px;
  }
  .rail-nav button {
    width: 100%;
  }
  .topbar {
    justify-content: initial;
  }
  .tools-btn {
    margin: 0;
  }
  .hero-inside {
    width: auto;
  }
  .room-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .room-body h3 {
    font-size: 1.02rem;
  }
  .practice {
    grid-template-columns: 0.7fr 1.3fr;
  }
}
@media (max-width: 680px) {
  :root {
    --rail: 0px;
  }
  main,
  main[data-view='home'] {
    padding: 12px 13px 35px;
  }
  .topbar {
    padding: 0 10px;
    gap: 5px;
  }
  .topbar .crumb {
    gap: 5px;
    font-size: 0.84rem;
  }
  .crumb span {
    font-size: 1rem;
  }
  .header-new {
    padding: 6px 13px;
    font-size: 0.82rem;
  }
  .tools-btn {
    margin: 0;
    font-size: 0;
    padding: 8px;
  }
  .topbar #theme {
    width: 28px;
  }
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .home-rooms .room-card:last-child,
  .room-grid .room-card:last-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .home-rooms .room-card:last-child img,
  .room-grid .room-card:last-child img {
    height: 72px;
    aspect-ratio: auto;
  }
  .room-body h3 {
    font-size: 1.19rem;
  }
  .room-art {
    aspect-ratio: 1.95;
  }
  .section {
    margin-top: 21px;
  }
  .section-title h2 {
    font-size: 1.5rem;
  }
  .editorial a {
    font-size: 0.76rem;
  }
  .editorial {
    gap: 8px;
  }
  .desk-row {
    gap: 6px;
    font-size: 0.84rem;
  }
  .desk-row small {
    font-size: 0.73rem;
  }
  .practice {
    grid-template-columns: 1fr;
  }
  .practice > img {
    height: 145px;
    min-height: 0;
  }
  .practice-body {
    padding: 18px;
  }
  .rail-nav .nav-link {
    padding-left: 22px;
  }
  .rail-bottom {
    margin-top: auto;
  }
  .pagehead {
    flex-wrap: wrap;
  }
  .wheel-card h4 {
    font-size: 1.12rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
