@font-face {
  font-family: "IBM Plex Sans"; src: url("plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans"; src: url("plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono"; src: url("plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono"; src: url("plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: #32231c;
  background: #9e897a;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --ink: #32231c;
  --muted: #614c40;
  --panel: #dfd4c9;
  --frame: #c4b0a0;
  --well: #fbf1e6;
  --control: #eee1d4;
  --line: #947e6e;
  --light: #fff6ec;
  --title: #9b4922;
  --title-text: #fff6eb;
  --accent: #e5aa7a;
  --display: #30231e;
  --raise: inset 1px 1px 0 var(--light), inset -1px -1px 0 #bca799;
  --sink: inset 1px 1px 0 #a18a7b, inset -1px -1px 0 var(--light);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input { font: inherit; }
a { color: #713920; text-underline-offset: .18em; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #8b3a17; outline-offset: 3px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px; background: var(--well); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.shell {
  width: calc(100% - 24px);
  max-width: 1400px;
  margin: 12px auto;
  border: 1px solid #5a4033;
  background: var(--frame);
  box-shadow: 3px 4px 0 #40251c55, inset 1px 1px 0 #ead8c7;
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 6px 12px;
  border-bottom: 2px solid #6d3318;
  background: var(--title);
  box-shadow: inset 0 1px 0 #bd754f;
}
.app-bar :focus-visible { outline-color: var(--light); }
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--title-text);
  font: 600 1.13rem/1.1 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.app-bar nav { display: flex; align-items: center; gap: 5px; }
.button, .app-bar nav > a, .app-bar nav > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--control);
  box-shadow: var(--raise);
  font: 600 .9rem/1.2 var(--mono);
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--well); }
.button:active { box-shadow: var(--sink); }
.app-bar nav > :is(a, button) {
  min-height: 38px;
  border-color: #6b321b;
  background: #76381f;
  color: var(--title-text);
  box-shadow: inset 1px 1px 0 #b3704b, inset -1px -1px 0 #572719;
  white-space: nowrap;
}
.app-bar nav > :is(a, button):hover, .app-bar nav > [aria-current="page"] { background: #874023; }
.button.primary, .app-bar nav > .primary {
  border-color: #8a492b;
  background: var(--accent);
  color: var(--ink);
  box-shadow: inset 1px 1px 0 #ffe4cd, inset -1px -1px 0 #b47a53;
}
.button.primary:hover, .app-bar nav > .primary:hover { background: #efbc93; }

.workspace { display: grid; gap: 12px; padding: 12px; }
.hero { display: grid; grid-template-columns: minmax(340px, .77fr) minmax(0, 1.23fr); gap: 12px; }
.panel { min-width: 0; border: 1px solid #806756; background: var(--panel); box-shadow: var(--raise); }
.hero-copy { display: flex; flex-direction: column; padding: 7px; }
.wordmark {
  display: grid;
  place-items: center;
  aspect-ratio: 3.2;
  overflow: hidden;
  border: 1px solid #5a4032;
  background: radial-gradient(ellipse at 50% 40%, #68402d, #382720 68%, #2b211d);
  box-shadow: inset 2px 2px 0 #221813, inset -1px -1px 0 #99705b;
}
.wordmark :is(h1, img) { width: 100%; }
.wordmark img { width: 93%; height: auto; margin: -12% auto; transform: translateY(6%); }
.hero-description { display: grid; align-content: center; flex: 1; gap: 15px; padding: clamp(17px, 2.8vw, 33px); }
.hero-line { font: 600 clamp(1.65rem, 2.65vw, 2.5rem)/1.16 var(--mono); letter-spacing: -.055em; }
.hero-description > p:nth-child(2) { font-size: 1.08rem; line-height: 1.52; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-actions .button { min-height: 44px; }
.platform { color: var(--muted); font: 400 .84rem/1.35 var(--mono); }
.trailer-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 7px;
  border: 1px solid #695044;
  background: #baa493;
  box-shadow: var(--raise);
}
.trailer-stage { position: relative; flex: 1; min-height: 340px; overflow: hidden; border: 1px solid #3d2a21; background: var(--display); }
.trailer-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.trailer-play { position: absolute; bottom: 17px; left: 17px; min-height: 46px; box-shadow: var(--raise), 3px 3px 0 #20120bab; }
.play-icon { font-size: .85rem; }
.trailer-panel figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px 5px;
  color: var(--ink);
  font: 400 .84rem/1.2 var(--mono);
}
.trailer-panel figcaption a { font-weight: 600; }

.section { padding: 7px; }
.title-bar, .modal-bar {
  padding: 7px 10px;
  border: 1px solid #633321;
  background: #854729;
  color: var(--title-text);
  box-shadow: inset 1px 1px 0 #b57d5c, inset -1px -1px 0 #60331f;
  font: 600 1rem/1.25 var(--mono);
}
.workshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 16px 13px; }
.workshop-grid > div + div { padding-left: 17px; border-left: 1px solid #baa494; }
.workshop-grid h3, .press-callout h2 { margin: 0 0 6px; font: 600 1rem/1.35 var(--mono); }
.workshop-grid p, .press-callout p, .press-intro p, .press-about, .press-credit { color: var(--muted); line-height: 1.5; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 8px; }
.gallery-item {
  display: grid;
  min-width: 0;
  border: 1px solid #806756;
  background: var(--control);
  box-shadow: var(--raise);
  color: var(--ink);
  text-decoration: none;
}
.gallery-item:hover { background: var(--well); }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--display); }
.gallery-item span { padding: 8px 10px; font: 600 .88rem/1.22 var(--mono); }
.press-callout { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.press-callout .button, .hero-actions .button { flex-shrink: 0; }
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid #8d7463;
  background: #d4c2b4;
  font: 400 .84rem/1.4 var(--mono);
}
.status-bar nav { display: flex; flex-wrap: wrap; gap: 8px 17px; }

.press-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .64fr); gap: 12px; padding: 8px; }
.press-intro > div:first-child { padding: clamp(12px, 3vw, 30px); }
.press-intro h1 { font: 600 clamp(1.7rem, 4vw, 2.65rem)/1.15 var(--mono); letter-spacing: -.06em; }
.press-intro p { margin: 10px 0 16px; }
.press-intro .wordmark { aspect-ratio: auto; min-height: 160px; }
.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts { margin: 8px 0 0; }
.facts > div { display: grid; grid-template-columns: minmax(115px, .85fr) 1.15fr; gap: 8px; padding: 10px; }
.facts > div:nth-child(odd) { background: var(--control); }
.facts dt { font: 600 .89rem/1.4 var(--mono); }
.press-about { display: grid; gap: 11px; padding: 12px 10px; }
.media-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 4px 7px; }
.press-credit { padding: 3px 4px 5px; font-size: .88rem; }
.media-page figure { width: min(100%, 1050px); margin: 9px auto 0; }
.media-page figure :is(img, video) { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--display); }
.media-page figcaption { padding-top: 7px; color: var(--muted); line-height: 1.45; }
.media-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px auto 3px; width: min(100%, 1050px); }

.modal {
  width: min(460px, calc(100% - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  padding: 8px;
  border: 1px solid #624838;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--raise), 6px 7px 0 #23140c99;
}
.modal::backdrop { background: #231811b0; }
.modal.media-modal { width: min(1070px, calc(100% - 20px)); }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.modal-bar h2 { font: inherit; }
.modal-bar .button { min-width: 38px; min-height: 34px; padding: 0; font-size: 1.2rem; }
.modal-bar .button:focus-visible { outline-color: var(--light); }
.modal-video, .gallery-image { max-height: 72dvh; width: 100%; background: #241b17; object-fit: contain; }
.gallery-image { aspect-ratio: 16 / 9; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 7px; }
.share-preview {
  display: grid;
  grid-template-columns: minmax(82px, 120px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px;
  border: 1px solid #806756;
  background: var(--control);
}
.share-preview img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #684c3d; }
.share-title { font: 600 .88rem/1.3 var(--mono); }
.share-description { margin-top: 3px; color: var(--muted); font-size: .85rem; line-height: 1.25; }
.share-copy { display: flex; gap: 6px; }
.share-copy input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 7px;
  border: 1px solid #806756;
  background: var(--well);
  color: var(--ink);
  font: 400 .9rem/1.2 var(--mono);
  box-shadow: var(--sink);
}
.share-copy button { flex: none; }
.share-post { width: 100%; margin-top: 6px; }
.share-post-text { display: block; width: 100%; margin-top: 6px; padding: 7px; font: inherit; resize: vertical; }
.share-status { color: var(--muted); font-size: .88rem; }
.share-status:not(:empty) { padding: 6px 2px 0; }
.share-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.share-native { width: 100%; margin-top: 6px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(290px, .92fr) minmax(0, 1.08fr); }
  .hero-description { padding: 16px; }
  .hero-actions .button { padding-inline: 9px; }
  .workshop-grid { gap: 13px; padding-inline: 8px; }
  .workshop-grid > div + div { padding-left: 12px; }
}
@media (max-width: 670px) {
  .shell { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .workspace, .hero, .press-grid { gap: 8px; }
  .workspace { padding: 8px; }
  .hero, .press-grid { grid-template-columns: 1fr; }
  .hero-description { gap: 10px; padding: 16px 12px; }
  .hero-line br { display: none; }
  .wordmark img { max-width: 500px; }
  .trailer-stage { min-height: 0; aspect-ratio: 16 / 9; }
  .trailer-play { bottom: 8px; left: 8px; }
  .workshop-grid { grid-template-columns: 1fr; gap: 8px; padding: 10px 7px 4px; }
  .workshop-grid > div + div { padding: 9px 0 0; border-left: 0; border-top: 1px solid #baa494; }
  .workshop-grid > div { padding-bottom: 5px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-intro { grid-template-columns: 1fr; }
  .press-intro .wordmark { min-height: 0; aspect-ratio: 3.2; }
  .status-bar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 500px) {
  .app-bar { flex-wrap: wrap; gap: 5px; padding: 5px 8px 7px; }
  .app-bar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .app-bar nav > :is(a, button) { min-height: 42px; padding-inline: 2px; font-size: .82rem; }
  .press-callout { align-items: flex-start; flex-direction: column; }
  .share-copy { display: grid; }
  .share-preview { grid-template-columns: 88px minmax(0, 1fr); }
  .gallery-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
