@import '../src/themes/base.css';
@import '../src/themes/traditional.css';
@import '../src/themes/minimal.css';
@import '../src/themes/terminal.css';
@import '../src/themes/retro.css';
@import '../src/themes/industrial.css';
:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #202937;
  background: #fafbfe;
  font-synthesis: none;
  line-height: 1.5;
  color-scheme: light;
}
.color-mode-toggle {
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid #b5c4d9;
  border-radius: 6px;
  background: #e9eef7;
  color: #283e58;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.page-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.site-header nav {
  align-items: center;
  flex-wrap: wrap;
}
.tile {
  --advent-door-color: #17242c;
}
:root[data-color-mode='dark'] {
  color-scheme: dark;
  color: #e7edf6;
  background: #101722;
  --advent-door-background: #24364b;
  --advent-door-color: #e7edf6;
  --advent-content-background: #172435;
  --advent-content-color: #e7edf6;
  --advent-door-border: 1px solid #5d728d;
  --advent-status-color: #b4bfd0;
  --advent-line-color: #6e829e;
  --advent-focus-color: #a8c9ff;
}
:root[data-color-mode='dark'] :focus-visible {
  outline-color: #a8c9ff;
}
:root[data-color-mode='dark']
  :is(
    .site-header,
    .play-section,
    .closing,
    footer,
    .controls,
    .workbench,
    .example-grid > a,
    .docs th,
    .docs td
  ) {
  border-color: #36465d;
}
:root[data-color-mode='dark']
  :is(
    .intro,
    .micro,
    .eyebrow,
    .art-caption,
    .art-note,
    .section-heading > p,
    .control-note,
    .canvas-toolbar,
    .code-caption,
    .code-caption span,
    .code-caption code,
    .example-grid p,
    .example-grid a > span:last-child,
    .example-page > p,
    footer
  ) {
  color: #b4bfd0;
}
:root[data-color-mode='dark'] :is(.play-section, .hero-art, .docs pre) {
  background: #1b293e;
}
:root[data-color-mode='dark'] .hero-art {
  border-color: #36465d;
  box-shadow: 12px 16px 0 #0a111c;
}
:root[data-color-mode='dark'] :is(.canvas, .workbench, .example-grid > a) {
  background: #121d2b;
}
:root[data-color-mode='dark'] .controls {
  background: #182435;
}
:root[data-color-mode='dark']
  :is(select, .controls button, .color-mode-toggle, #manual-unlock) {
  background-color: #24364b;
  border-color: #5d728d;
  color: #e7edf6;
}
:root[data-color-mode='dark'] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23c6d4e8' stroke-width='1.5'/%3E%3C/svg%3E");
}
:root[data-color-mode='dark'] .color-mode-toggle[aria-pressed='true'] {
  background: #324e70;
  border-color: #a8c9ff;
}
:root[data-color-mode='dark'] .primary {
  background: #344d6a;
}
:root[data-color-mode='dark'] .primary:hover {
  background: #42658c;
}
:root[data-color-mode='dark'] :is(em, .brand-dot) {
  color: #ff946e;
}
:root[data-color-mode='dark'] .closing em {
  color: #b4bfd0;
}
:root[data-color-mode='dark'] .brand-mark i {
  background: #d6e4f7;
}
:root[data-color-mode='dark'] .brand-mark i:last-child {
  background: #ff946e;
}
:root[data-color-mode='dark'] footer .brand {
  color: #e7edf6;
}
:root[data-color-mode='dark'] #play-calendar {
  --advent-status-color: #b4bfd0;
}
:root[data-color-mode='dark'] #play-calendar [slot='description'] {
  color: #b4bfd0;
}
:root[data-color-mode='dark'] .notice {
  color: #d4e1f4;
  background: #20344d;
  border-color: #a8c9ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #395bd6;
  outline-offset: 4px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
.site-header,
main,
footer {
  max-width: 1280px;
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  border-bottom: 1px solid #dce1ea;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
  font-size: 1.15rem;
}
.brand-dot {
  color: #d34422;
  margin-left: -10px;
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 3px;
  margin-right: 4px;
}
.brand-mark i {
  width: 9px;
  height: 10px;
  background: #293247;
}
.brand-mark i:last-child {
  background: #e95f3d;
  transform: rotate(-12deg);
}
nav {
  display: flex;
  gap: 30px;
}
nav a {
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 550;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 7%;
  padding: 84px 40px 90px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.75rem;
  color: #626e80;
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(3.2rem, 5.3vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
  margin: 0 0 26px;
  font-weight: 750;
}
em {
  font-style: normal;
  color: #dc4d2b;
}
.intro {
  max-width: 450px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #566175;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  padding: 13px 23px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
}
.primary {
  background: #293449;
  color: #fff;
  box-shadow: 0 3px 0 #101c30;
}
.primary:hover {
  background: #3a4760;
}
.text-link {
  font-size: 1rem;
  text-underline-offset: 5px;
}
.micro {
  font-size: 0.75rem;
  color: #667286;
  margin-top: 32px;
  line-height: 1.8;
}
.micro span {
  margin: 0 5px;
}
.hero-art {
  align-self: center;
  transform: rotate(2deg);
  background: #edf0f9;
  padding: 20px 24px 12px;
  border: 1px solid #d8deeb;
  border-radius: 15px;
  box-shadow: 12px 16px 0 #e6eaf3;
}
.art-caption {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  color: #58647a;
}
.mini-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.tile {
  --advent-door-height: 145px;
  --advent-label-size: 1.8rem;
  --advent-door-radius: 7px;
  --advent-door-border: 1px solid #25304930;
}
.tile span[slot='front'] {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  font-weight: 600;
}
.tile-symbol {
  font-family: Georgia, serif;
  align-self: flex-end;
  font-size: 3.4rem;
  line-height: 1;
}
.tile::part(status) {
  font-size: 0.75rem;
}
.violet {
  --advent-door-background: #c6b9f0;
}
.peach {
  --advent-door-background: #ffc0a5;
}
.lime {
  --advent-door-background: #dce59f;
}
.blue {
  --advent-door-background: #b7d3f4;
}
.art-note {
  font-size: 0.8rem;
  text-align: center;
  margin: 16px 0 3px;
  color: #626e80;
}
.play-section {
  padding: 60px 40px;
  background: #eef1f7;
  border-top: 1px solid #dce1ea;
  border-bottom: 1px solid #dce1ea;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 30px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
h2 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.045em;
  margin: 0;
}
.section-heading > p {
  font-size: 0.9rem;
  color: #667286;
  margin: 0;
  line-height: 1.7;
}
.workbench {
  display: grid;
  grid-template-columns: 245px 1fr;
  border: 1px solid #cbd3e2;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px #26334e06;
}
.controls {
  padding: 24px;
  background: #fafbfe;
  border-right: 1px solid #dce1ea;
}
.controls h3 {
  font-size: 1rem;
  margin: 0 0 24px;
}
.controls > label:not(.check) {
  display: block;
  margin: 18px 0 6px;
  font-size: 0.875rem;
  font-weight: 650;
}
select {
  width: 100%;
  padding: 10px 32px 10px 10px;
  border: 1px solid #bcc6d5;
  border-radius: 5px;
  color: #293449;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23475368' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-size: 0.875rem;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  font-size: 0.875rem;
  font-weight: 600;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: #3b577d;
}
.control-note {
  font-size: 0.8rem;
  color: #667286;
  line-height: 1.6;
}
.controls button,
#manual-unlock {
  appearance: none;
  min-height: 44px;
  width: 100%;
  border: 1px solid #b9c4d5;
  border-radius: 5px;
  background: white;
  color: #293449;
  cursor: pointer;
  font-size: 0.875rem;
}
.canvas {
  padding: 24px;
  min-width: 0;
  background: #fff;
}
.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 24px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 650;
  color: #718096;
}
.preview-badge {
  background: #fff0d4;
  color: #795017;
  padding: 4px 8px;
  border-radius: 4px;
}
.canvas-toolbar > span:last-child {
  padding-top: 4px;
}
#play-calendar {
  --advent-columns: 6;
  --advent-gap: 12px;
  --advent-door-height: 90px;
  --advent-label-size: 1.4rem;
  --advent-content-padding: 12px;
  --advent-status-color: #5b6575;
}
#play-calendar [slot='heading'] {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 0 0 8px;
}
#play-calendar [slot='description'] {
  font-size: 0.875rem;
  color: #68748a;
  margin: 0;
}
#play-calendar advent-door::part(status) {
  font-size: 0.875rem;
}
#play-calendar [slot='content'] {
  font-size: 1rem;
}
#play-calendar:is([layout='grid'], [layout='shuffle'], [layout='responsive'])
  advent-door[open] {
  --advent-column-span: 2;
}
#play-calendar [slot='content'] h3 {
  font-size: 1rem;
}
.code-caption {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.code-caption span {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: #667286;
}
.code-caption code {
  font-size: 0.8rem;
  color: #4e5b72;
  overflow-wrap: anywhere;
}
.examples-section {
  padding: 70px 40px;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.example-grid > a {
  border: 1px solid #d9dfe9;
  border-radius: 8px;
  padding: 25px;
  text-decoration: none;
  background: #fff;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.example-grid > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #25365712;
}
.example-grid h3 {
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  margin: 20px 0 8px;
}
.example-grid p {
  font-size: 0.9rem;
  color: #667286;
  margin: 0 0 22px;
}
.example-grid a > span:last-child {
  font-size: 0.75rem;
  font-weight: 650;
  color: #52627b;
}
.example-icon {
  width: 45px;
  height: 45px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: bold;
}
.green {
  background: #dfece5;
  color: #215a42;
}
.dark {
  background: #1e3328;
  color: #abf8ba;
}
.orange {
  background: #ffdbb1;
  color: #794725;
}
.purple {
  background: #e4ddfa;
  color: #594387;
}
.yellow {
  background: #faf1c2;
  color: #6e6022;
}
.pale {
  background: #e8edf5;
  color: #4f6684;
}
.blue-bg {
  background: #ddecfc;
  color: #38597e;
}
.closing {
  text-align: center;
  border-top: 1px solid #dce1ea;
  padding: 65px 20px;
}
.closing h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.closing em {
  color: #7a87a1;
}
footer {
  border-top: 1px solid #dce1ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 40px;
  font-size: 0.8rem;
  color: #68748a;
}
footer .brand {
  font-size: 1rem;
  color: #293449;
}
.example-page {
  max-width: 1100px;
  padding: 50px 30px;
}
.example-page h1 {
  font-size: 3rem;
}
.example-page > p {
  color: #667286;
}
.example-page advent-calendar {
  margin: 35px 0;
  --advent-columns: 4;
}
.example-page .standalone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
}
.notice {
  color: #425466;
  background: #edf1fa;
  padding: 15px;
  border-inline-start: 3px solid #4c6288;
  font-size: 0.9rem;
}
.example-page > .notice {
  color: #425466;
  font-size: 1rem;
}
.docs {
  max-width: 860px;
  margin: auto;
  padding: 50px 25px;
}
.docs h2 {
  margin-top: 40px;
}
.docs p,
.docs li {
  line-height: 1.8;
}
.docs pre {
  padding: 20px;
  background: #eaf0f6;
  overflow: auto;
}
.docs table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
.docs th,
.docs td {
  border-bottom: 1px solid #ccd5e0;
  text-align: left;
  padding: 12px;
}
@media (max-width: 1000px) {
  .hero {
    gap: 5%;
    padding-top: 55px;
  }
  .hero-art {
    padding: 15px;
  }
  .tile {
    --advent-door-height: 115px;
  }
  .workbench {
    grid-template-columns: 210px 1fr;
  }
  #play-calendar {
    --advent-columns: 4;
  }
  .canvas {
    padding: 20px;
  }
  .controls {
    padding: 20px;
  }
}
@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
  }
  .brand {
    font-size: 1rem;
    white-space: nowrap;
  }
  nav {
    gap: 14px;
  }
  nav a {
    font-size: 0.8rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 45px 24px 55px;
    gap: 45px;
  }
  .hero-art {
    max-width: 450px;
    width: 100%;
    justify-self: center;
    transform: rotate(1deg);
  }
  h1 {
    font-size: 3.7rem;
  }
  .play-section,
  .examples-section {
    padding: 40px 20px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 15px;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid #dce1ea;
  }
  .controls h3,
  .controls .check,
  .controls .control-note,
  .controls button,
  #feedback {
    grid-column: 1/-1;
  }
  .controls > label:not(.check) {
    margin: 0;
    align-self: center;
  }
  .controls .check {
    margin-top: 10px;
  }
  .control-note {
    margin: 0 0 10px;
  }
  .canvas {
    padding: 18px;
  }
  #play-calendar {
    --advent-mobile-columns: 2;
    --advent-door-height: 95px;
  }
  .canvas-toolbar {
    font-size: 0.6rem;
  }
  .example-grid {
    grid-template-columns: 1fr;
  }
  .closing h2 {
    font-size: 2rem;
  }
  footer {
    padding: 25px;
    flex-wrap: wrap;
  }
  footer p {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .example-page .standalone-grid {
    grid-template-columns: 1fr;
  }
  .example-page h1 {
    font-size: 2.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
