/* Hallmark · macrostructure: photographic inspection report · tone: practical editorial · anchor hue: slate blue */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4 */
@font-face {
  font-family: Pretendard;
  src: url("./assets/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font: Pretendard, "Apple SD Gothic Neo", system-ui, sans-serif;
  --page: #edf1f5;
  --paper: #fcfdff;
  --ink: #172439;
  --muted: #52647b;
  --line: #d1dce7;
  --accent: #1e5295;
  --accent-ink: #fff;
  --accent-pale: #e3edf9;
  --attention: #8f410e;
  --attention-pale: #fff3e1;
  --error: #9b2525;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { color: var(--ink); background: var(--page); font-family: var(--font); line-height: 1.45; }
h1, h2, h3, p, figure, dd, dl { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.045em; min-width: 0; overflow-wrap: anywhere; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 2; translate: 0 -125%; background: var(--paper); color: var(--ink); padding: 10px; }
.skip:focus { translate: 0 6px; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 835; letter-spacing: -.045em; font-size: 1.1rem; }
.demo-tag { color: var(--muted); font-size: .79rem; font-weight: 660; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-block: 37px 26px; }
.kicker { font-size: .78rem; color: var(--accent); font-weight: 750; margin-bottom: 7px; }
h1 { font-weight: 830; font-size: clamp(2.1rem, 4vw, 3.55rem); }
.views { display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.views button { min-height: 44px; border: 0; padding-inline: 13px; border-radius: 5px; font-size: .87rem; font-weight: 730; background: transparent; white-space: nowrap; }
.views button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
.views button[aria-pressed="false"]:hover { background: var(--accent-pale); }
.report { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.vehicle { display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 11px; gap: 8px; background: var(--page); }
.vehicle img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: center; border-radius: 9px; aspect-ratio: 3 / 2; }
.vehicle figcaption { color: var(--muted); font-size: .77rem; padding: 0 5px 2px; }
.body { padding: 21px 25px 17px; }
.vehicle-id { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
h2 { font-weight: 795; font-size: 1.68rem; }
.vehicle-id p { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.vehicle-id .state { color: var(--accent); margin: 0; font-weight: 740; padding: 4px 7px; background: var(--accent-pale); border-radius: 5px; white-space: nowrap; }
.score-band { display: flex; align-items: center; justify-content: space-between; gap: 13px; background: var(--accent); color: var(--accent-ink); border-radius: 9px; margin: 17px 0 19px; padding: 13px 16px; }
.score-band span:first-child { display: block; font-size: .77rem; }
.score-band strong { font-size: 2.2rem; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.score-band .scale { font-size: .83rem; white-space: nowrap; }
.score-band p { font-size: .83rem; flex-basis: 42%; }
h3 { font-size: 1rem; margin-bottom: 7px; }
.readings dl div { display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 43px; padding-inline: 7px; border-top: 1px solid var(--line); font-size: .9rem; }
.readings dd { font-weight: 760; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readings dd span:last-child { color: var(--muted); font-weight: 500; font-size: .8rem; }
.readings small { color: var(--accent); margin-left: 5px; font-weight: 690; }
.readings .attention { background: var(--attention-pale); }
.readings .attention small { color: var(--attention); }
.staff { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 27px; padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.staff-intro p { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.staff form { min-width: 0; }
label { display: block; font-weight: 700; margin-bottom: 7px; }
.entry-line, .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.entry-line { align-items: stretch; }
.input-wrap { flex: 1 1 128px; min-width: 0; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; padding-right: 10px; }
.input-wrap span { color: var(--muted); font-size: .84rem; }
input { background: transparent; border: 0; width: 100%; min-width: 0; min-height: 46px; padding-inline: 10px; font-weight: 700; border-radius: 7px; }
.hint, .error, .feedback { font-size: .86rem; margin-top: 9px; }
.hint { color: var(--muted); }
.error { color: var(--error); font-weight: 690; }
.feedback { color: var(--accent); }
.actions { margin-top: 17px; }
.primary, .secondary {
  display: inline-flex; justify-content: center; align-items: center; min-height: 46px;
  border: 1px solid var(--accent); border-radius: 7px; padding: 0 11px;
  font-weight: 720; font-size: .88rem; white-space: nowrap; text-decoration: none;
}
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.secondary { color: var(--accent); background: var(--paper); }
.secondary:hover { background: var(--accent-pale); }
footer { color: var(--muted); font-size: .82rem; padding: 16px 0 25px; }

@media(max-width: 735px) {
  .wrap { width: calc(100% - 34px); }
  .intro { display: grid; gap: 13px; padding-block: 25px 18px; }
  .views { justify-self: start; }
  .report, .staff { grid-template-columns: minmax(0, 1fr); }
  .vehicle img { min-height: 0; }
  .body { padding: 16px 14px 13px; }
  .staff { padding: 17px; gap: 19px; }
}
@media(max-width: 390px) {
  .wrap { width: calc(100% - 24px); }
  .score-band { padding-inline: 11px; }
  .score-band p { flex-basis: 48%; }
}
