@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #0a1622;
  --muted: #4d5860;
  --paper: #faf8f4;
  --warm: #f1eee8;
  --rule: #d9d4cb;
  --gold: #fab615;
  --focus: #976100;
  font: 100%/1.55 "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, fieldset, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: 2.65rem; line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
h2 { font-size: 1.55rem; line-height: 1.22; letter-spacing: -.03em; font-weight: 780; }
h3 { font-size: 1.07rem; line-height: 1.35; letter-spacing: -.02em; }
p, li { overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
[hidden] { display: none !important; }
:focus-visible, .pin-list li:target { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: #ffe5a1; color: var(--ink); }
.skip, .visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { top: .5rem; left: .5rem; z-index: 10; width: auto; height: auto; padding: .7rem; clip-path: none; background: white; }
.mast { background: var(--paper); border-bottom: 1px solid var(--rule); }
.mast-inner, .page, .notices { width: min(75rem, calc(100% - 6rem)); margin-inline: auto; }
.mast-inner { min-height: 4.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.studio-mark { display: flex; align-items: center; min-height: 44px; }
.studio-mark img { display: block; width: 10.5rem; height: auto; }
.mast nav, .form-actions, .art-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; }
.mast nav { gap: .45rem 1.25rem; }
.mast nav a, .mast .quiet { display: inline-flex; min-height: 44px; align-items: center; gap: .5em; font-size: .86rem; font-weight: 700; text-decoration: none; }
.mast nav a:hover, .mast .quiet:hover { text-decoration: underline; }
.quiet, .text-link { border: 0; background: transparent; padding: 0; font-weight: 680; }
.quiet, .text-link, .versions a { min-height: 44px; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: underline; text-underline-offset: .22em; font-size: .87rem; }
.primary, .secondary {
  display: inline-flex; justify-content: center; align-items: center; gap: .65rem; width: fit-content;
  min-height: 44px; border-radius: .55rem; padding: .6rem 1.15rem; font-size: .9rem; font-weight: 750;
  text-decoration: none; border: 1px solid transparent;
}
.primary { background: var(--gold); color: var(--ink); }
.secondary { background: var(--paper); color: var(--ink); border-color: #bdb7ad; }
@media (hover: hover) {
  .primary:enabled:hover, a.primary:hover { background: #ffc83d; }
  .secondary:enabled:hover, a.secondary:hover { background: #e9e4da; border-color: #968c7c; }
  .text-link:hover { text-decoration-thickness: 2px; }
}
.page { padding-block: 3.1rem 5rem; }
.lead { font-size: 1.075rem; max-width: 62ch; margin-top: .85rem; color: var(--muted); }
.notices:has(.notice) { padding-top: 1.2rem; }
.project-section > .notices { width: 100%; padding-top: 0; margin-bottom: 1rem; }
.notice { width: 100%; padding: .85rem 1rem; margin-bottom: .4rem; background: #e4efe6; color: #174d2b; border-radius: .5rem; }
.notice.error, .notice.warning, .errorlist { color: #82302a; background: #ffebe6; }
.errorlist { margin: .4rem 0; padding: .55rem 1.2rem; border-radius: .45rem; }
.errorlist .errorlist { margin: 0; padding: 0 .5rem; }
.auth-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(23rem, .87fr);
  width: min(79rem, calc(100% - 6rem)); min-height: min(41rem, calc(100svh - 10rem));
  margin: 2.5rem auto; overflow: hidden; background: white; border-radius: .9rem;
}
.auth-photo { background: var(--warm) url("studio-bench.webp") center / cover; }
.auth-panel { display: grid; align-items: center; padding: 3.75rem clamp(2rem, 4vw, 4.5rem); }
.auth-copy { width: 100%; max-width: 27rem; margin-inline: auto; }
.auth-copy .lead { margin: 1rem 0 2rem; font-size: 1rem; }
.auth-foot { color: var(--muted); font-size: .84rem; border-top: 1px solid var(--rule); padding-top: 1.1rem; margin-top: 1.65rem; }
.stack { display: grid; gap: 1rem; }
label, legend { display: block; font-size: .875rem; font-weight: 700; }
label small { font: inherit; font-weight: 450; }
input:not([type="hidden"], [type="file"]), textarea {
  display: block; width: 100%; margin-top: .3rem; border: 1px solid #a9a59d; border-radius: .45rem;
  background: white; padding: .65rem .8rem; min-height: 44px; caret-color: var(--ink);
}
textarea { resize: vertical; }
.field-help, .muted, .pin-instructions { color: var(--muted); font-size: .86rem; }
.field-help { margin-block: .25rem; }
.field-help ul { padding-left: 1.1rem; }
.project-list, .downloads, .pin-list { padding: 0; list-style: none; }
.project-list, .empty { margin-top: 2.25rem; }
.project-list li, .downloads li { border-bottom: 1px solid var(--rule); }
.project-list li:first-child, .downloads li:first-child { border-top: 1px solid var(--rule); }
.project-list a, .downloads li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem .25rem; }
.project-list a { text-decoration: none; }
.project-list a:hover strong { text-decoration: underline; }
.project-list strong { display: block; font-size: 1.23rem; font-weight: 750; }
.project-list small { color: var(--muted); }
.open-arrow { display: grid; place-items: center; border-radius: 50%; background: var(--warm); width: 2.65rem; height: 2.65rem; flex: none; }
.project-list a:hover .open-arrow, .project-list a:focus-visible .open-arrow { background: var(--gold); }
.empty, .empty-line { background: var(--warm); border-radius: .65rem; padding: 1.35rem; }
.empty p { margin-top: .45rem; }
.empty-line { color: var(--muted); margin-top: 1rem; }
.project-title p { margin-top: .5rem; color: var(--muted); }
.section-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 1.6rem 0 .5rem; border-block: 1px solid var(--rule); }
.section-links a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font-size: .9rem; font-weight: 650; }
.section-links a:hover { text-decoration: underline; }
.project-section { padding-block: 2.4rem; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; margin-bottom: 1rem; }
.section-intro { max-width: 68ch; color: var(--muted); margin: .5rem 0 1.2rem; }
.brief { max-width: 48rem; margin-top: .65rem; }
summary { width: fit-content; min-height: 44px; padding-block: .55rem; font-size: .92rem; font-weight: 670; }
.brief form { margin-top: .65rem; }
.vehicle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.vehicle-slot { min-width: 0; padding-top: .9rem; border-top: 1px solid var(--rule); }
.vehicle-slot h3 { margin-bottom: .55rem; }
.vehicle-empty, .vehicle-image {
  display: grid; width: 100%; aspect-ratio: 1.65; border-radius: .5rem; background: var(--warm); overflow: hidden;
}
.vehicle-empty { align-content: center; justify-items: center; gap: .4rem; color: var(--muted); font-size: .8rem; }
.vehicle-image img { width: 100%; height: 100%; object-fit: contain; }
.photo-form { display: grid; gap: .35rem; margin-top: .75rem; }
input[type="file"] { width: 100%; max-width: 100%; font-size: .78rem; min-height: 2.8rem; padding-block: .2rem; }
input::file-selector-button { background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: .3rem; padding: .4rem; font: inherit; }
.versions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .45rem; }
.versions a { display: inline-flex; align-items: center; padding-inline: .6rem; border-radius: .35rem; font-size: .8rem; text-decoration: none; font-weight: 620; }
.versions a:hover { text-decoration: underline; }
.versions a[aria-current] { background: var(--ink); color: white; }
.review-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(18rem, 1fr); align-items: start; gap: 1.5rem; }
.artwork, .review-notes { min-width: 0; }
.artwork-heading, .art-tools, .note-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.artwork-heading { background: var(--ink); color: white; padding: .85rem 1rem; border-radius: .65rem .65rem 0 0; }
.version { font-size: .78rem; font-weight: 500; color: #d4dce2; }
.state { font-size: .75rem; font-weight: 700; color: #ffe0a0; }
.state.good { color: #aee3bc; }
.art-mat { display: grid; place-items: center; background: #dedbd4; padding: 1.5rem; border-radius: 0 0 .65rem .65rem; }
.art-region { position: relative; display: inline-grid; max-width: 100%; }
.art-region > img { display: block; max-width: 100%; max-height: max(50svh, 20rem); width: auto; height: auto; }
.art-tools { margin-top: .6rem; }
.pin-surface { position: absolute; inset: 0; min-width: 0; border: 0; padding: 0; background: transparent; cursor: crosshair; z-index: 3; touch-action: manipulation; }
.pin-surface:focus-visible { outline-color: var(--gold); outline-offset: 2px; }
.pin-mark {
  display: grid; place-items: center; position: absolute; transform: translate(-50%, -50%);
  width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--gold); color: var(--ink);
  font-size: .75rem; font-weight: 800; line-height: 1; text-decoration: none; border: 2px solid var(--ink);
}
.pin-mark::before { content: ""; position: absolute; inset: -.35rem; }
.pin-mark:focus { outline: 3px solid white; outline-offset: 1px; z-index: 2; }
.draft-mark { z-index: 4; pointer-events: none; border-style: dashed; background: white; font-size: 1.15rem; font-style: normal; }
.review-notes { border: 1px solid var(--rule); background: white; border-radius: .65rem; padding: 1.15rem; }
.review-notes > .muted { margin-top: .55rem; }
.count, .note-no { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding-inline: .25rem; border-radius: 50%; font-size: .78rem; }
.count { background: var(--warm); vertical-align: .08em; }
.pin-list li, .pin-form { border-top: 1px solid var(--rule); padding-top: .9rem; margin-top: .95rem; }
.pin-list li { scroll-margin: 1.5rem; }
.pin-list li p { font-size: .9rem; white-space: normal; }
.note-head { justify-content: flex-start; margin-bottom: .45rem; }
.note-head time, .reply strong { color: var(--muted); font-size: .74rem; }
.note-no { background: var(--gold); font-weight: 800; }
.reply { padding: .6rem .75rem; margin: .45rem 0 .2rem .4rem; background: var(--warm); border-radius: .35rem; }
.reply-form summary { font-size: .8rem; }
.coords { border: 0; padding: 0; }
.coords > div { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.decision { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1.1rem 1.25rem; border-radius: .65rem; background: var(--warm); margin-top: 1.5rem; }
.decision p { color: var(--muted); margin-top: .3rem; font-size: .88rem; }
.decision > .field-help { flex-basis: 100%; margin: 0; }
.downloads { margin-top: .7rem; }
.downloads li > span { font-weight: 650; }
.downloads li small { display: block; color: var(--muted); font-size: .8rem; font-weight: 450; }
.downloads li .secondary { flex: none; }
@media(max-width: 60rem) {
  .mast-inner, .page, .notices, .auth-layout { width: calc(100% - 3rem); }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
  .auth-panel { padding: 2.5rem 2rem; }
}
@media(max-width: 45rem) {
  .mast-inner, .page, .notices, .auth-layout { width: calc(100% - 2rem); }
  .mast-inner { min-height: 4rem; gap: .65rem; }
  .mast nav { gap: .8rem; }
  .studio-mark img { width: 7.6rem; }
  .page { padding-block: 2rem 3rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .auth-layout { display: block; min-height: 0; margin-block: 2rem; background: var(--paper); overflow: visible; }
  .auth-photo { display: none; }
  .auth-panel { padding: 1rem 0; }
  .review-layout { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .art-mat { padding: 1.1rem; }
  .section-links { gap: .1rem .85rem; margin-top: 1rem; }
  .section-links a { min-height: 44px; }
  .project-section { padding-block: 1.6rem; }
}
@media(max-width: 28rem) {
  .vehicle-grid { grid-template-columns: 1fr; }
  .vehicle-empty, .vehicle-image { aspect-ratio: 2.25; }
  .form-actions { gap: .45rem; }
}
