:root {
  --ink: #0d1022;
  --muted: #626b80;
  --line: #dce1e9;
  --blue: #0867ed;
  --accent: #0867ed;
  --surface: #fff;
  --ease: cubic-bezier(.22,.68,0,1.02);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.container { width: min(1300px, calc(100% - 112px)); margin-inline: auto; }
.shell-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 96%); backdrop-filter: blur(18px); }
.shell-nav { display: flex; align-items: center; min-height: 72px; gap: 38px; }
.wordmark { font-size: 29px; font-weight: 720; letter-spacing: -1.5px; line-height: 1.2; white-space: nowrap; flex-shrink: 0; }
.primary-nav { display: flex; gap: 48px; align-items: center; margin-left: auto; font-size: 15px; }
.primary-nav a, .nav-login { display: inline-flex; align-items: center; min-height: 44px; }
.primary-nav a:hover, .text-link:hover { color: #064fac; }
.account-nav { display: flex; gap: 36px; align-items: center; margin-left: 50px; }
.nav-login { color: var(--blue); font-size: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; padding: 14px 25px; border: 1px solid var(--blue); border-radius: 99px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 550; line-height: 1.4; transition: background .2s ease, transform .24s var(--ease); }
.button:hover { background: #0957c8; transform: translateY(-1px); }
.button-small { padding: 10px 28px; font-size: 15px; min-height: 44px; }
.button-secondary { color: var(--blue); background: #fff; border-color: #cad8ee; }
.button-secondary:hover { background: #f0f5ff; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-size: 16px; }
.arrow { flex-shrink: 0; filter: invert(31%) sepia(92%) saturate(3279%) hue-rotate(211deg) brightness(96%) contrast(109%); transition: transform .25s var(--ease); }
.arrow-white { filter: invert(1); }
a:hover > .arrow, a:hover .row-arrow { transform: translateX(3px); }
.account-menu { position: relative; }
.account-menu summary { color: var(--blue); cursor: pointer; padding: 10px 0; min-height: 44px; }
.account-menu summary span { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.account-popover { position: absolute; right: 0; top: calc(100% + 7px); min-width: 230px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 35px #14284e15; }
.account-popover a, .account-popover button { display: block; width: 100%; padding: 10px 13px; border: 0; background: none; color: var(--ink); text-align: left; font-size: 15px; border-radius: 7px; }
.account-popover a:hover, .account-popover button:hover { background: #eff5ff; }
.account-popover form { margin: 0; }
.home-hero { position: relative; min-height: 456px; display: flex; align-items: center; }
.welcome-copy { position: relative; z-index: 2; padding-bottom: 4px; pointer-events: none; }
.welcome-copy h1 { font-size: clamp(64px, 6.45vw, 92px); line-height: 1.02; letter-spacing: -.062em; font-weight: 730; margin: 0 0 22px; }
.welcome-copy p { font-size: clamp(23px, 2.15vw, 31px); letter-spacing: -.045em; line-height: 1.35; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; pointer-events: auto; }
.hero-actions .button { min-height: 53px; padding-inline: 27px; }
.hero-actions .text-link { min-height: 44px; }
.hero-scene { position: absolute; top: -7px; right: calc(-1 * max(56px, (100vw - 1300px) / 2)); width: min(960px, calc(100vw - 510px)); height: 475px; margin: 0; }
.workshop-art { width: 100%; height: 100%; object-fit: contain; object-position: right center; display: block; }
.home-directory { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 38px; margin-top: 18px; }
.home-boards { min-width: 0; }
.home-projects { min-width: 0; border-left: 1px solid var(--line); padding-left: 34px; scroll-margin-top: 95px; }
.directory-heading { margin-bottom: 22px; }
.directory-heading h2 { font-size: 38px; line-height: 1.1; font-weight: 680; letter-spacing: -.048em; margin: 0 0 8px; }
.directory-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.board-directory { display: grid; }
.board-row { display: grid; grid-template-columns: minmax(170px, .6fr) minmax(0, 1.3fr) 24px; align-items: center; gap: 25px; min-height: 101px; padding: 18px 15px; border-bottom: 1px solid var(--line); }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: #fafbff; border-radius: 9px; }
.board-identity { display: block; min-width: 0; }
.board-slug { display: block; font: 12px ui-monospace, SFMono-Regular, monospace; color: var(--muted); margin-bottom: 3px; }
.board-identity strong { display: block; font-size: 24px; line-height: 1.2; letter-spacing: -.045em; font-weight: 650; overflow-wrap: anywhere; }
.board-description { font-size: 16px; color: var(--muted); line-height: 1.5; }
.board-description small { display: block; margin-top: 4px; font-size: 11px; color: #6e7689; }
.all-boards-link { margin: 14px 0 0 15px; }
.project-row { display: grid; grid-template-columns: 154px minmax(0, 1fr) 20px; align-items: center; gap: 22px; min-height: 102px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.project-row:last-child { border-bottom: 0; }
.project-thumbnail { width: 154px; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 13px; display: block; }
.project-copy strong { display: block; font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; margin-bottom: 4px; }
.project-copy > span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; }
.shell-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--line); padding: 18px 0 24px; margin-top: 18px; }
.shell-footer p { color: var(--muted); font-size: 13px; margin: 0; }
.shell-footer .text-link { font-size: 14px; }
.shell-footer .footer-note { width: 100%; font-size: 10px; color: #727b8d; margin-top: 10px; }
.skip-link { position: absolute; top: -80px; left: 20px; background: #fff; padding: 10px 20px; z-index: 100; }
.skip-link:focus { top: 10px; }
.empty-state { padding: 25px 15px; color: var(--muted); }
.empty-state h3 { color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 600; }
/* Shared shell for accounts and project pages. Projects may own their visual style. */
h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.045em; font-weight: 650; margin: 0 0 16px; }
.page-section { padding-block: 56px 80px; min-height: 70vh; }
.page-title { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.05em; line-height: 1.15; font-weight: 650; margin: 12px 0 24px; }
.eyebrow { font-size: 12px; letter-spacing: 1px; font-weight: 550; color: var(--muted); margin: 0 0 14px; }
.muted, .lead { color: var(--muted); }
.lead { max-width: 660px; font-size: 18px; line-height: 1.65; }
.card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 20px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.dashboard-grid .card { margin-bottom: 0; }
.card h2 { font-size: 25px; }
.big-number { font-size: 64px; font-weight: 650; letter-spacing: -3px; margin: 15px 0; }
.block { display: block; }
.form-stack { max-width: 520px; }
.form-stack p { margin: 0 0 20px; }
.form-stack label { display: block; font-size: 15px; font-weight: 550; margin-bottom: 7px; }
input:not([type=checkbox]):not([type=range]), textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #cbd3df; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
input[type=file] { font-size: 14px; }
.helptext { font-size: 13px; color: var(--muted); display: block; margin-top: 6px; }
.errorlist { font-size: 14px; color: #a13232; padding-left: 20px; }
.notice { border: 1px solid #cad8ee; background: #f2f6ff; padding: 16px 20px; border-radius: 12px; }
.messages { padding-top: 20px; }
.auth-container { max-width: 560px; margin-inline: auto; padding-block: 60px 80px; }
.auth-container h1 { font-size: 38px; letter-spacing: -.05em; }
.auth-container .card { padding: 35px; }
.game-layout { display: grid; grid-template-columns: 1fr 320px; gap: 35px; align-items: start; margin-top: 35px; }
.game-canvas { display: block; width: 100%; max-width: 420px; aspect-ratio: 7/10; border: 1px solid var(--line); border-radius: 22px; background: #e8f1fc; touch-action: manipulation; }
.game-controls { display: flex; gap: 15px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.game-status { min-height: 26px; }
.lab-view { position: relative; width: 100%; max-width: 800px; border-radius: 20px; overflow: hidden; background: #1e2630; aspect-ratio: 4/3; }
.lab-view video, .lab-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lab-view canvas { z-index: 1; }
.lab-status { color: var(--muted); font-size: 14px; min-height: 25px; }
.meter-label { display: flex; justify-content: space-between; font-size: 15px; }
.tracking-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
.project-kicker { color: var(--blue); font: 13px ui-monospace, SFMono-Regular, monospace; }
@media (max-width: 1150px) {
  .container { width: calc(100% - 64px); }
  .account-nav { margin-left: 20px; gap: 22px; }
  .primary-nav { gap: 28px; }
  .home-hero { min-height: 390px; }
  .hero-scene { width: 66vw; height: 405px; right: -32px; }
  .welcome-copy h1 { font-size: 72px; }
  .welcome-copy p { font-size: 24px; max-width: 360px; }
  .hero-actions { gap: 20px; flex-wrap: wrap; max-width: 350px; }
  .home-directory { grid-template-columns: 1.25fr 1fr; gap: 28px; }
  .home-projects { padding-left: 25px; }
  .directory-heading h2 { font-size: 30px; }
  .project-row { grid-template-columns: 100px minmax(0, 1fr) 20px; gap: 16px; }
  .project-thumbnail { width: 100px; }
  .project-copy strong { font-size: 17px; }
  .board-row { grid-template-columns: minmax(120px, .7fr) minmax(0, 1.2fr) 22px; gap: 18px; padding-inline: 5px; }
  .board-identity strong { font-size: 20px; }
}
@media (max-width: 850px) {
  .home-directory { grid-template-columns: 1fr; gap: 34px; }
  .home-projects { border-left: 0; padding-left: 0; }
  .project-row { grid-template-columns: 130px minmax(0, 1fr) 24px; gap: 22px; }
  .project-thumbnail { width: 130px; }
  .project-copy strong { font-size: 20px; }
  .welcome-copy h1 { font-size: 60px; }
  .welcome-copy p { font-size: 22px; max-width: 240px; }
  .hero-scene { width: 58vw; }
  .hero-actions .text-link { font-size: 14px; }
  .hero-actions .button { font-size: 14px; gap: 15px; padding-inline: 20px; }
  .game-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .shell-nav { min-height: 68px; gap: 4px 18px; flex-wrap: wrap; padding-block: 10px; }
  .wordmark { font-size: 24px; }
  .primary-nav { gap: 18px; order: 3; width: 100%; margin-left: 0; border-top: 1px solid #edf0f5; font-size: 14px; }
  .account-nav { margin-left: auto; gap: 14px; }
  .nav-login { font-size: 13px; }
  .button-small { font-size: 12px; padding: 8px 14px; }
  .account-menu summary { font-size: 14px; }
  .account-menu summary span { max-width: 135px; }
  .home-hero { display: flex; flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 26px; }
  .welcome-copy { padding: 0; }
  .welcome-copy h1 { font-size: 52px; letter-spacing: -.055em; margin-bottom: 14px; }
  .welcome-copy p { font-size: 21px; max-width: none; }
  .hero-actions { margin-top: 23px; gap: 17px; max-width: none; }
  .hero-actions .button { min-height: 47px; }
  .hero-scene { position: relative; top: 0; right: auto; width: calc(100% + 26px); height: auto; margin: 22px -13px 0; aspect-ratio: 1.875; }
  .workshop-art { object-fit: contain; }
  .home-directory { margin-top: 24px; gap: 34px; }
  .directory-heading { margin-bottom: 14px; }
  .directory-heading h2 { font-size: 29px; margin-bottom: 7px; }
  .directory-heading p { font-size: 14px; }
  .board-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 9px 15px; padding: 18px 0; min-height: 104px; }
  .board-identity { grid-column: 1; }
  .board-description { grid-column: 1; font-size: 14px; }
  .row-arrow { grid-column: 2; grid-row: 1 / 3; }
  .board-identity strong { font-size: 21px; }
  .board-slug { font-size: 11px; }
  .project-row { grid-template-columns: 102px minmax(0, 1fr) 20px; gap: 15px; min-height: 106px; }
  .project-thumbnail { width: 102px; border-radius: 11px; }
  .project-copy strong { font-size: 18px; }
  .project-copy > span { font-size: 13px; }
  .shell-footer { margin-top: 28px; padding-top: 20px; }
  .shell-footer p { font-size: 12px; }
  .shell-footer .text-link { font-size: 13px; }
  .dashboard-grid, .tracking-controls { grid-template-columns: 1fr; }
  .page-section { padding-block: 35px 65px; }
  .card { padding: 24px; }
  .auth-container { width: calc(100% - 40px); padding-block: 30px 60px; }
  .auth-container .card { padding: 24px; }
  .auth-container h1 { font-size: 32px; }
}
@media (max-width: 360px) {
  .shell-nav { gap: 12px; }
  .wordmark { font-size: 22px; }
  .account-nav { gap: 9px; }
  .button-small { padding: 7px 11px; }
  .hero-actions .text-link { font-size: 13px; gap: 6px; }
  .hero-actions { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* The mark represents an open courtyard; it is a custom mark, not a cuneiform glyph. */
.wordmark { display: inline-flex; align-items: center; gap: 9px; }
.wordmark img { flex: 0 0 auto; }
/* Category pages share a grammar, but each uses its own reading rhythm. */
.category-page { padding-bottom: 72px; }
.category-navigation { display: flex; align-items: center; gap: 22px; padding-top: 32px; color: var(--muted); font-size: 14px; }
.category-navigation > span { padding-left: 22px; border-left: 1px solid var(--line); }
.category-back { font-size: 14px; }
.category-intro h1 { font-size: clamp(40px, 4.8vw, 68px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; margin: 0 0 22px; }
.category-intro .lead { font-size: 20px; line-height: 1.6; margin: 0; max-width: 590px; }
.category-scene { margin: 0; min-width: 0; }
.category-art { display: block; width: 100%; height: auto; object-fit: contain; }
.category-footnote { margin: 28px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 500px; }
.entry-label { display: block; margin: 0; color: var(--muted); font-size: 14px; }
/* Socials: editorial introduction, then room for the conversation. */
.social-heading { padding-top: 54px; padding-bottom: 42px; }
.social-heading h1 { max-width: 750px; }
.social-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.social-directory { padding-block: 24px; }
.social-directory h2 { font-size: 28px; margin-bottom: 22px; }
.category-project { display: flex; align-items: center; gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.category-project > span { flex: 1; min-width: 0; }
.category-project strong { display: block; font-size: 23px; line-height: 1.3; letter-spacing: -.03em; margin-bottom: 8px; }
.category-project > span > span { display: block; color: var(--muted); line-height: 1.6; }
.category-project:hover strong { color: var(--blue); }
/* Games: short invitation and one unmistakable playable entry. */
.games-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 50px; align-items: center; padding-block: 48px 42px; }
.games-directory { border-top: 1px solid var(--line); }
.game-entry { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 36px; padding: 30px 0; }
.game-entry-copy > strong { display: block; font-size: 32px; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 8px; }
.game-entry-copy > span { color: var(--muted); }
/* Experiments: a workbench aside, a quiet invitation to investigate. */
.experiment-heading { padding-top: 54px; padding-bottom: 36px; }
.experiment-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 80px; align-items: center; }
.experiment-directory { padding: 28px 0 28px 36px; border-left: 1px solid var(--line); }
.experiment-entry { display: block; padding-top: 20px; }
.experiment-entry > strong { display: block; font-size: 36px; line-height: 1.2; letter-spacing: -.045em; margin-bottom: 16px; }
.experiment-entry > span:not(.text-link) { display: block; color: var(--muted); line-height: 1.65; }
.experiment-entry .text-link { margin-top: 25px; }
@media (max-width: 1150px) {
  .social-layout, .experiment-layout { gap: 40px; }
  .games-heading { gap: 32px; }
  .game-entry { grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; }
}
@media (max-width: 850px) {
  .social-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .category-intro .lead { font-size: 18px; }
  .game-entry { grid-template-columns: minmax(0, 1fr) auto; }
  .game-entry .entry-label { grid-column: 1 / -1; }
  .experiment-layout { gap: 30px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .experiment-directory { padding-left: 24px; }
}
@media (max-width: 600px) {
  .category-navigation { padding-top: 24px; gap: 16px; }
  .category-navigation > span { padding-left: 16px; }
  .category-page { padding-bottom: 40px; }
  .category-intro h1 { font-size: 44px; margin-bottom: 18px; }
  .social-heading, .experiment-heading { padding-block: 34px 22px; }
  .social-layout, .games-heading, .experiment-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .category-art { max-height: 290px; }
  .social-directory { padding-top: 8px; }
  .social-directory h2 { font-size: 26px; }
  .category-project { gap: 18px; padding-block: 21px; }
  .category-project strong { font-size: 22px; }
  .category-project > span > span { font-size: 15px; }
  .games-heading { padding-block: 34px 26px; }
  .game-entry { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 25px; }
  .game-entry .button { justify-self: start; }
  .game-entry-copy > strong { font-size: 30px; }
  .experiment-directory { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .experiment-entry > strong { font-size: 32px; }
}
