:root {
  color-scheme: dark;
  --ink: #101d1e;
  --deep: #0b1617;
  --mat: #17292a;
  --surface: #1d3030;
  --cream: #f5ebd7;
  --muted: #bbbfaf;
  --brass: #dab47d;
  --brass-light: #f1cf9c;
  --brass-dark: #43301c;
  --seam: #47514a;
  --radius: 12px;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body.site-body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 16px/1.65 var(--body);
}

.site-body img { max-width: 100%; }
.site-body :is(button, input, textarea) { font: inherit; }
.site-body button { cursor: pointer; }
.site-body a { color: var(--brass-light); text-underline-offset: .22em; }
.site-body :focus-visible { outline: 2px solid var(--brass-light); outline-offset: 4px; }
.site-body :is(h1, h2, h3) {
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
}
.site-body p { margin: 0; }

.site-width { width: min(calc(100% - 64px), 1120px); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 10;
  top: -6rem;
  left: 16px;
  padding: 8px 16px;
  background: var(--deep);
}
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--seam); background: var(--deep); }
.masthead, .footer-inner, .wordmark, .main-nav { display: flex; align-items: center; }
.masthead { min-height: 67px; justify-content: space-between; gap: 16px; }
.site-body .wordmark {
  color: var(--cream);
  gap: 11px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-decoration: none;
}
.maker-mark {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  position: relative;
}
.maker-mark::before, .maker-mark::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  bottom: calc(50% - 1px);
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: var(--brass-light);
  transform: rotate(28deg);
  transform-origin: 50% calc(100% - 1px);
}
.maker-mark::after { height: 6px; transform: rotate(118deg); }
.main-nav { gap: 28px; }
.main-nav a { display: inline-grid; align-items: center; min-height: 44px; }
.main-nav a, .footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover, .footer-links a:hover { color: var(--brass-light); text-decoration: underline; }

.play-area { margin-top: 40px; scroll-margin-top: 12px; }
.play-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.play-heading h1 {
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: .91;
  letter-spacing: -.027em;
}
.play-heading h1 em { display: block; color: var(--brass-light); font-weight: 400; }
.play-heading > p {
  max-width: 33ch;
  justify-self: end;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.55;
}

.movement-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(500px, 49vw, 620px);
  overflow: hidden;
  border: 1px solid #627269;
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: 0 18px 42px #0810119e;
}
.movement-stage > iframe { display: block; width: 100%; height: 100%; border: 0; }
.movement-stage:fullscreen { width: 100%; height: 100%; max-width: none; border: 0; border-radius: 0; }
.watch-focus-view { overflow: hidden; }
.movement-stage.watch-stage-expanded {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100%;
  height: 100dvh;
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
  border: 0;
  border-radius: 0;
}
.watch-exit-fullscreen {
  position: absolute;
  z-index: 5;
  top: calc(4px + env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--seam);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--cream);
}
.stage-cover {
  display: grid;
  grid-template-columns: minmax(205px, .57fr) minmax(0, 1.43fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "controls image";
  align-items: center;
  height: 100%;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(24px, 4vw, 52px);
  background:
    radial-gradient(ellipse at 76% 32%, #30423b 0%, transparent 58%),
    repeating-linear-gradient(90deg, transparent 0 31px, #a0aa9120 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, #a0aa9120 31px 32px),
    var(--mat);
}
.bench-views {
  grid-area: image;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end;
  gap: clamp(12px, 2.3vw, 30px);
  min-width: 0;
  margin: 0;
}
.bench-view {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  min-width: 0;
  gap: 14px;
}
.view-label {
  padding-top: 10px;
  border-top: 1px solid #9caa9254;
  color: #eee1c6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.watch-display {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
}
.dial-image {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.watch-silhouette { position: relative; width: 89%; height: 94%; }
.watch-band {
  position: absolute;
  inset: 0 25%;
  border-radius: 8% / 4%;
  background:
    repeating-linear-gradient(0deg, #23414155 0 2px, transparent 2px 7px),
    linear-gradient(90deg, #101f1f, #2e5552 47%, #182d2d);
  box-shadow: inset 0 0 0 1px #7c938066, 0 8px 20px #07101199;
}
.watch-band::before {
  content: "";
  position: absolute;
  inset: 2% 7%;
  border-inline: 1px dashed #bda97c8c;
}
.watch-case {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  left: 5%;
  top: 50%;
  width: 90%;
  aspect-ratio: 1;
  border: 1px solid #a17e4e;
  border-radius: 30%;
  background: linear-gradient(147deg, #f0d7a5, #755737 22%, #d7ab6a 44%, #815d3a 76%, #f6d29c 92%);
  box-shadow: 0 10px 20px #081011aa, inset 0 0 0 1px #fbe4b7b0, inset 0 0 0 4px #32231462;
  transform: translateY(-50%) rotate(-5deg);
}
.watch-case::before {
  content: "";
  position: absolute;
  inset: -10% 18%;
  z-index: -1;
  border-block: 1px solid #e4c192;
  border-radius: 14%;
  background:
    linear-gradient(90deg, #bd8d54 0 13%, transparent 13% 87%, #a0784b 87%);
}
.watch-crown {
  position: absolute;
  z-index: 1;
  top: 43%;
  right: 0;
  width: 13%;
  height: 13%;
  border: 1px solid #a98153;
  border-radius: 20%;
  background: repeating-linear-gradient(0deg, #bd9360 0 2px, #765636 2px 4px);
  transform: rotate(-5deg);
}
.watch-dial {
  position: relative;
  width: 84%;
  aspect-ratio: 1;
  border: 1px solid #654527;
  border-radius: 50%;
  background:
    radial-gradient(circle, #eee0b9 0 65%, transparent 66%),
    repeating-conic-gradient(from -1deg, #745c46 0 1.1deg, #eedcb3 1.1deg 6deg);
  box-shadow: 0 0 0 2px #e3bb79, inset 0 0 0 2px #d2ac75;
  color: #263335;
  font-family: var(--display);
  font-size: clamp(8px, 1.4vw, 19px);
  font-weight: bold;
  line-height: 1;
}
.watch-dial > span { position: absolute; }
.dial-twelve { top: 11%; left: 50%; transform: translateX(-50%); }
.dial-three { top: 50%; right: 11%; transform: translateY(-50%); }
.dial-six { bottom: 11%; left: 50%; transform: translateX(-50%); }
.dial-nine { top: 50%; left: 11%; transform: translateY(-50%); }
.watch-hand {
  bottom: 49%;
  left: 48.5%;
  width: 3%;
  height: 28%;
  border-radius: 70% 70% 15% 15%;
  background: #24363a;
  transform-origin: 50% 95%;
  transform: rotate(54deg);
}
.watch-hour { height: 22%; transform: rotate(-62deg); }
.watch-pivot {
  top: 48%;
  left: 48%;
  width: 4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8d423b;
}
.movement-view {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  aspect-ratio: 520 / 490;
  overflow: hidden;
  border: 1px solid #89907a;
  border-radius: var(--radius);
  background: radial-gradient(ellipse, #233d3c, #15292a 75%);
  box-shadow: 0 12px 22px #07101185, 0 0 0 3px #101c1b7a;
}
.movement-view-wide { aspect-ratio: 584 / 356; }
.movement-view::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 3px;
  border: 1px solid #dfbe8153;
  border-radius: 7px;
  pointer-events: none;
}
.movement-image, .movement-diagram { grid-area: 1 / 1; }
.movement-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.movement-diagram {
  position: relative;
  width: 78%;
  height: 74%;
}
.diagram-witness {
  position: absolute;
  inset-inline: 12%;
  top: 50%;
  border-top: 1px dashed #b1a887;
}
.diagram-wheel, .loader-movement {
  border-radius: 50%;
  background:
    radial-gradient(circle, #b94e53 0 6%, #643d28 7% 10%, #e5ba78 11% 17%, transparent 18%),
    radial-gradient(circle, transparent 0 46%, #49351e 46.6% 51%, #d2a76c 52% 57%, transparent 58%),
    repeating-conic-gradient(#ebc487 0 6deg, #765731 6deg 10deg);
}
.diagram-wheel {
  position: absolute;
  top: 50%;
  width: 31%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  filter: drop-shadow(0 4px 5px #07101188);
}
.wheel-a { left: 0; }
.wheel-b { right: 0; }
.wheel-c {
  left: 41%;
  width: 18%;
  border: 1px dashed var(--brass-light);
  background: #132525;
}
.wheel-c::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brass-light);
  font-size: clamp(10px, 2.5vw, 24px);
  line-height: 1;
}

.cover-controls {
  grid-area: controls;
  justify-self: start;
  padding-left: 4px;
}
.repair-ticket {
  display: grid;
  gap: 11px;
  margin: 0 0 24px;
  padding: 13px 17px;
  border: 1px solid var(--seam);
  border-inline-start: 2px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--deep);
  text-align: start;
}
.repair-ticket dt {
  color: var(--brass);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.repair-ticket dd {
  margin: 0;
  color: var(--cream);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.cover-controls p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.site-body .button-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 22px;
  border: 1px solid #ecd09e;
  border-radius: var(--radius);
  background: var(--brass-light);
  color: #241b12;
  font-family: var(--body);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, transform .18s;
}
.site-body .button-primary:hover { background: #ffe2b6; }
.site-body .button-primary:active { transform: translateY(2px); }
.site-body .start-button { min-width: min(100%, 198px); min-height: 56px; font-size: 18px; }
.play-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid currentColor;
}
.stage-loader { display: none; }
.movement-stage:is([data-gf-state="loading"], [data-gf-state="playing"]) .stage-cover { display: none; }
.movement-stage[data-gf-state="loading"] .stage-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  color: var(--brass-light);
  background: radial-gradient(ellipse, #293b33, var(--deep) 72%);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.loader-movement {
  display: block;
  width: 56px;
  aspect-ratio: 1;
  animation: wind-crown 2.4s linear infinite;
}
@keyframes wind-crown { to { transform: rotate(1turn); } }

.game-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 12px; }
.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--seam);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cream);
}
.toolbar-button:hover { background: var(--surface); border-color: var(--brass); }
.toolbar-button[aria-pressed="true"], .toolbar-button[data-gf-liked] {
  background: #42321f;
  color: var(--brass-light);
  border-color: var(--brass);
}
.action-icon { color: var(--brass-light); font-size: 18px; line-height: 1; }
.share-status { color: var(--muted); font-size: 14px; }
.share-status:empty, [data-gf-like-count]:empty, [data-gf-comment-msg]:empty { display: none; }
.fullscreen-button { margin-inline-start: auto; }

.field-notes, .questions, .bench-notes { border-top: 1px solid var(--seam); }
.field-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, .31fr);
  gap: clamp(32px, 8vw, 96px);
  padding-block: 52px;
}
.guide-rail { align-self: start; display: grid; }
.editorial-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: var(--brass-light);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.editorial-link:hover { text-decoration: underline; }
.guide-rail .editorial-link { justify-content: space-between; border-bottom: 1px solid var(--seam); }
.prose { max-width: 68ch; color: var(--muted); overflow-wrap: anywhere; }
.site-body :is(.prose h2, .questions h2, .bench-notes h2, .contact-notes h2) {
  color: var(--cream);
  font-size: clamp(33px, 4vw, 56px);
  letter-spacing: -.015em;
}
.site-body .prose h3 { font-size: clamp(26px, 3vw, 36px); }
.prose :is(h2, h3):not(:first-child) { margin-top: 32px; }
.prose :is(h2, h3) + * { margin-top: 12px; }
.prose > :is(p, ul, ol, table, figure, blockquote) + :is(p, ul, ol, table, figure, blockquote) { margin-top: 16px; }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose strong { color: var(--cream); }
.prose code { color: var(--brass-light); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose :is(th, td) { padding: 8px 12px; border: 1px solid var(--seam); text-align: start; }
.prose blockquote { margin-inline: 0; padding-inline-start: 16px; border-inline-start: 2px solid var(--brass); }
.prose img { height: auto; border-radius: var(--radius); }

.questions { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 36px; padding-block: 48px; }
.question-list { border-bottom: 1px solid var(--seam); }
.question-list details { border-top: 1px solid var(--seam); }
.question-list summary {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  min-height: 54px;
  padding: 12px 39px 12px 0;
  color: var(--cream);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: calc(50% - 5px);
  width: 9px;
  height: 9px;
  border: solid var(--brass-light);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  transition: transform .18s;
}
.question-list details[open] summary::after { transform: rotate(225deg); }
.question-list p { max-width: 62ch; padding: 0 32px 16px 0; color: var(--muted); }

.bench-notes {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: 36px;
  padding-block: 48px 64px;
}
.notes-intro p { margin-top: 12px; color: var(--muted); }
.note-form {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.note-form label { color: var(--cream); font-weight: 600; }
.note-form label small, .form-note { color: var(--muted); font-size: 14px; font-weight: 400; }
.note-form :is(input, textarea) {
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 9px 12px;
  border: 1px solid #798273;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--cream);
}
.note-form textarea { resize: vertical; }
.note-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.note-submit p { color: var(--brass-light); }
.replying { display: none; }
[data-gf-replying] .replying { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); }
.text-button { padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: var(--brass-light); text-decoration: underline; }
.note-list { margin-top: 20px; }
.note-list[data-gf-empty]:not([data-gf-off])::after { content: "No notes yet."; color: var(--muted); font-size: 14px; }
.note-list[data-gf-off] { display: none; }
.bench-notes:has([data-gf-off]) { display: none; }
.player-note { padding-block: 12px; border-top: 1px solid var(--seam); overflow-wrap: anywhere; }
.note-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.note-byline time { color: var(--muted); font-size: 14px; }
.note-owner, .reply-name { color: var(--brass-light); font-size: 14px; }
.reply-name:not(:empty) { margin-inline-end: 6px; }
.note-replies { margin-inline-start: 18px; }
.note-replies:empty { display: none; }

.site-footer { padding-block: 26px; border-top: 1px solid var(--seam); background: var(--deep); }
.footer-inner { justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 24px; }
.footer-links a { display: inline-grid; min-height: 44px; align-items: center; }

.editorial-page { width: min(100%, 760px); padding-block: 60px 72px; margin-inline: auto; }
.editorial-heading { padding-bottom: 26px; border-bottom: 1px solid var(--seam); }
.editorial-heading h1 { font-size: clamp(42px, 7vw, 82px); letter-spacing: -.02em; }
.editorial-heading p { max-width: 55ch; margin-top: 12px; color: var(--muted); }
.editorial-body { margin-top: 26px; }
.editorial-page .questions { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 38px; padding-block: 24px 0; }
.site-body .return-link { margin-top: 34px; }
.contact-notes { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--seam); }
.contact-notes .note-form { margin-top: 18px; }
.not-found { min-height: 52vh; }
.not-found .button-primary { margin-top: 24px; }

body.embed-body { margin: 0; }
.embed-body > :is(.skip-link, .site-header, .site-footer) { display: none; }
.embed-body > .site-main { width: 100%; margin: 0; }

@media (max-width: 820px) {
  .site-width { width: min(calc(100% - 40px), 1120px); }
  .play-heading { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .stage-cover { gap: 20px; padding: 24px; }
  .movement-stage { height: 560px; }
}

@media (max-width: 640px) {
  .site-width { width: calc(100% - 28px); }
  .masthead { min-height: 56px; }
  .main-nav { gap: 12px; }
  .site-body .wordmark { gap: 8px; font-size: 14px; }
  .maker-mark { width: 23px; height: 23px; flex-basis: 23px; }
  .play-area { margin-top: 24px; }
  .play-heading { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
  .play-heading h1 { font-size: clamp(44px, 12.5vw, 73px); }
  .play-heading > p { justify-self: start; max-width: 42ch; margin-bottom: 0; }
  .movement-stage { height: clamp(610px, 166vw, 690px); }
  .stage-cover {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas: "image" "controls";
    align-content: start;
    gap: 18px;
    padding: 15px 14px 22px;
  }
  .bench-views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bench-view { gap: 10px; }
  .view-label { font-size: 12px; }
  .cover-controls { display: flex; flex-direction: column; width: 100%; padding-left: 0; text-align: center; }
  .repair-ticket { order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 0; padding-inline: 12px; }
  .repair-ticket dd { font-size: 15px; }
  .cover-controls p { margin-top: 9px; }
  .site-body .start-button { width: 100%; min-height: 50px; }
  .toolbar-button { padding-inline: 8px; }
  .share-status { order: 1; flex-basis: 100%; }
  .field-notes, .questions, .bench-notes {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 32px;
  }
  .guide-rail { max-width: 360px; }
  .question-list summary { font-size: 16px; }
  .editorial-page { padding-block: 32px 48px; }
  .editorial-heading { padding-bottom: 18px; }
  .footer-links { column-gap: 16px; }
}

@media (max-width: 410px) {
  .main-nav .nav-play { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-movement { animation: none; }
  .site-body .button-primary, .question-list summary::after { transition: none; }
}
