:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --ink: #2c2b27;
  --muted: #6b685f;
  --rule: #d2cbbd;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
a,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #62563c;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#workshop {
  max-width: 1500px;
  margin: auto;
  padding: 0 28px;
}
.masthead {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 12px;
}
.wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
.tagline {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  margin: 4px 0 0;
  color: var(--muted);
}
.masthead nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
}
.world {
  position: relative;
  height: clamp(340px, calc(100dvh - 250px), 680px);
  overflow: hidden;
}
#world-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
#world-canvas:focus-visible {
  outline-offset: -4px;
}
.view-caption {
  position: absolute;
  top: 12px;
  left: 0;
  margin: 0;
  padding: 5px 8px;
  background: var(--paper);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.world-hover {
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font-size: 12px;
  pointer-events: none;
}
.scene-tools {
  position: fixed;
  z-index: 3;
  bottom: 22px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.scene-tools p {
  margin: 0;
  padding: 4px 6px;
  background: var(--paper);
}
.rotation-controls {
  display: flex;
  gap: 6px;
}
.scene-tools button {
  pointer-events: auto;
}
.scene-tools button,
.place-list button {
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 3px;
  min-height: 40px;
  padding: 9px 14px;
  font-size: 12px;
}
.rotation-controls button {
  min-width: 40px;
  padding: 8px;
}
.scene-tools .view-button {
  margin-left: auto;
  background: var(--paper);
  border: 0;
  color: var(--ink);
  min-width: 64px;
}
.scene-tools .view-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.view-button span {
  margin: 0 4px;
}
.places {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
.place-list {
  display: flex;
  gap: 8px;
}
.place-list button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.place-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}
.career-browser {
  padding: 2px 0 18px;
}
.career-picker {
  display: flex;
  align-items: center;
  gap: 14px;
}
.career-picker label {
  font-size: 12px;
  white-space: nowrap;
}
.career-picker select {
  max-width: 100%;
  min-width: 0;
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  padding: 10px;
  font-size: 13px;
  min-height: 42px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: var(--muted);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend span {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
#workshop-status,
.noscript {
  margin: 18px 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.noscript a {
  text-decoration: underline;
}
#place-dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 30px 26px 26px;
  width: min(390px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto 24px auto auto;
  overflow: auto;
}
#place-dialog::backdrop {
  background: rgba(43, 42, 38, 0.2);
}
.dialog-close {
  display: block;
  margin: -14px -10px 8px auto;
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}
.detail-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-heading img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 3px;
  background: #fffdf8;
  padding: 5px;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--muted);
}
#detail-title {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 0;
}
.detail-role {
  font-size: 14px;
  line-height: 1.5;
  margin: 18px 0 4px;
}
.detail-dates {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
#detail-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0;
}
.detail-more h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 20px 0 9px;
}
.detail-more ul {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.detail-more li + li {
  margin-top: 8px;
}
.detail-link {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 11px 14px;
  font-size: 12px;
  line-height: 1.5;
}
.has-scene {
  height: 100dvh;
  overflow: hidden;
}
.has-scene .world {
  position: fixed;
  inset: 0;
  height: 100dvh;
}
.has-scene #workshop-status {
  position: fixed;
  top: 50%;
  left: 24px;
  right: 24px;
  margin: 0;
  text-align: center;
}
.has-scene .masthead {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 28px;
  right: 28px;
  pointer-events: none;
}
.has-scene .masthead a {
  pointer-events: auto;
}
.has-scene .places,
.has-scene .career-browser,
.has-scene .rotation-controls,
.view-caption {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.has-scene .places:focus-within,
.has-scene .career-browser:focus-within,
.has-scene .rotation-controls:focus-within {
  z-index: 5;
  bottom: 76px;
  left: 28px;
  width: min(480px, calc(100% - 56px));
  height: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--rule);
  background: var(--paper);
  clip-path: none;
  white-space: normal;
  pointer-events: auto;
}
@media (max-width: 800px) {
  #workshop {
    padding: 0 20px;
  }
  .masthead {
    min-height: 82px;
  }
  .masthead nav {
    gap: 16px;
  }
  .has-scene .masthead,
  .scene-tools {
    left: 20px;
    right: 20px;
  }
  .world {
    height: clamp(340px, calc(100dvh - 250px), 500px);
  }
  #place-dialog {
    margin: auto 16px auto auto;
  }
}
@media (max-width: 520px) {
  #workshop {
    padding: 0 16px;
  }
  .masthead {
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0 10px;
    flex-wrap: wrap;
  }
  .masthead nav {
    gap: 20px;
    width: 100%;
    font-size: 12px;
  }
  .world {
    height: clamp(280px, calc(100dvh - 290px), 420px);
  }
  .view-caption {
    top: 12px;
    font-size: 11px;
    padding: 4px 6px;
  }
  .scene-tools {
    gap: 10px;
    font-size: 11px;
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
  .scene-tools p {
    max-width: 155px;
    line-height: 1.5;
  }
  .scene-tools button {
    padding: 9px 10px;
  }
  .rotation-controls button {
    min-width: 36px;
    padding: 8px;
  }
  .scene-tools .view-button {
    min-width: 64px;
  }
  .place-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .place-list button {
    min-width: 0;
    padding: 9px 6px;
  }
  .career-picker {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }
  .career-picker select {
    width: 100%;
    font-size: 16px;
  }
  .has-scene .masthead {
    left: 16px;
    right: 16px;
  }
  .legend {
    gap: 10px 14px;
  }
  #place-dialog {
    padding: 22px;
    margin: auto auto 12px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .detail-heading img {
    width: 52px;
    height: 52px;
  }
  .dialog-close {
    margin: -10px -10px 6px auto;
  }
  .detail-heading {
    gap: 12px;
  }
}
@media (pointer: coarse) {
  .scene-tools button,
  .place-list button,
  .dialog-close,
  .career-picker select {
    min-height: 44px;
  }
  .masthead nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
