@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #31282c;
  background: #f5f1e8;
  --display: "Instrument Serif", Georgia, serif;
  --plum: #3c2a3a;
  --paper: #fffdf7;
  --muted: #655d5d;
  --rule: #d9cec1;
  --accent: #245449;
  --wash: #e1ebdd;
}

* { box-sizing: border-box; }
body { margin: 0; }
body.wheel { --accent: #6d451c; --wash: #f6e5c4; }
[hidden] { display: none !important; }
header { color: #fff9ed; background: var(--plum); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1020px; margin: auto; padding: 13px 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 30px/1 var(--display); letter-spacing: -.015em; }
.studio-mark { width: 37px; height: 30px; color: #f0bb86; }
.practice-label { color: #f7ddb6; font-size: 13px; font-weight: 600; }

main { max-width: 1020px; margin: 0 auto; padding: clamp(23px, 4vw, 45px) 28px; }
article { display: grid; grid-template-columns: minmax(0, 1fr) 37%; overflow: hidden; border: 1px solid var(--rule); border-radius: 15px; background: var(--paper); }
.workbench { grid-area: 1 / 2; min-height: 100%; position: relative; background: #dbc3a2; }
.workbench img { position: absolute; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 72% 50%; }
.wheel .workbench img { object-position: 62% 50%; }
.details { grid-area: 1 / 1; min-width: 0; padding: clamp(22px, 3.7vw, 39px); }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; background: var(--wash); color: var(--accent); border-radius: 2rem; padding: 5px 10px; font: 600 13px/1.2 Arial, Helvetica, sans-serif; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.class-code { color: var(--muted); font: 14px/1.2 ui-monospace, monospace; letter-spacing: .035em; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(43px, 5.8vw, 68px); line-height: 1; margin: 13px 0 9px; }
.intro { margin: 0 0 19px; max-width: 47ch; font-size: 15px; line-height: 1.46; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px 15px; margin: 0; padding: 15px 0 16px; border-block: 1px solid var(--rule); }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 3px 0 0; font-size: 15px; line-height: 1.35; font-weight: 600; }

form { margin-top: 19px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
label { display: inline-block; margin-bottom: 7px; font-size: 15px; font-weight: 600; }
input { display: block; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #938681; border-radius: 6px; color: inherit; background: #fffefb; font: inherit; }
input::placeholder { color: #746c68; }
.note { margin: 6px 0 15px; line-height: 1.4; font-size: 13px; color: var(--muted); }
button { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; border: 0; border-radius: 6px; background: var(--plum); color: #fff; padding: 10px 16px; font: 600 15px/1.35 Arial, Helvetica, sans-serif; cursor: pointer; }
button:hover { background: #51364b; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid #a2512f; outline-offset: 3px; }
.receipt { margin-top: 17px; padding: 15px 17px; border-radius: 9px; color: var(--accent); background: var(--wash); }
.receipt-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.receipt-label span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; line-height: 1; }
h2 { margin: 7px 0 9px; font-size: clamp(30px, 3.5vw, 42px); line-height: 1.03; }
.receipt h2:focus { outline: 0; }
.receipt-reference { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; }
.receipt-reference dt { color: inherit; }
.receipt-reference dd { margin: 0; font: 600 15px/1.4 ui-monospace, monospace; overflow-wrap: anywhere; }
.receipt p { color: var(--accent); margin: 8px 0 6px; font-size: 13px; line-height: 1.45; max-width: 49ch; }
.repeat { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent); font-size: 14px; font-weight: 600; text-underline-offset: .2em; }

@media (max-width: 660px) {
  .masthead { padding: 12px 18px; }
  .wordmark { font-size: 26px; }
  .studio-mark { width: 30px; height: 25px; }
  main { padding: 17px 14px 23px; }
  article { grid-template-columns: minmax(0, 1fr); }
  .workbench { grid-area: 1 / 1; height: clamp(92px, 22vw, 138px); }
  .workbench img, .wheel .workbench img { object-position: 50% 53%; }
  .details { grid-area: 2 / 1; padding: 20px; }
  h1 { margin-top: 10px; }
  .intro { margin-bottom: 13px; font-size: 14px; }
  .facts { padding: 12px 0; gap: 8px 11px; }
  dd { font-size: 14px; }
  form { margin-top: 15px; }
  .note { margin-bottom: 11px; }
}

@media (max-width: 350px) {
  .details { padding: 15px; }
  .facts { grid-template-columns: 1.4fr 1fr; }
}
