:root { color-scheme: light; --ink: #221f1c; --paper: #faf9f6; --red: #ab311f; --line: #d5d1c8; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1440px; padding: 0 clamp(20px, 5vw, 84px) 44px; background: var(--paper); color: var(--ink); font: 16px/1.5 "DM Sans", "PingFang SC", sans-serif; }
.masthead, figcaption, .tabs { display: flex; align-items: center; }
.masthead { justify-content: space-between; padding: 24px 0; border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font: italic 900 30px/1 "Arial Black", sans-serif; letter-spacing: -2px; text-decoration: none; }
.mark { width: 25px; height: 23px; background: repeating-linear-gradient(110deg, var(--red) 0 5px, transparent 5px 8px); transform: skew(-8deg); }
.mast-label, figcaption { font-size: 13px; letter-spacing: .11em; }
main { margin-top: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(36px, 8vw, 120px); }
.plate { margin: 0; background-color: #edeae2; background-image: radial-gradient(#c9c5bb .75px, transparent .75px); background-size: 10px 10px; padding: clamp(20px, 3vw, 42px); border: 1px solid var(--line); }
figcaption { justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 10px; font-weight: 600; }
.plate img { display: block; width: 100%; max-height: 42vh; object-fit: contain; height: auto; margin: 18px auto 12px; }
.plate-title { display: grid; border-top: 1px solid var(--ink); padding-top: 12px; }
.plate-title span { font: italic 700 clamp(26px, 3.2vw, 48px)/1.1 Georgia, serif; }
.plate-title strong { margin-top: 4px; font-size: 14px; letter-spacing: .12em; }
.panel { width: 100%; max-width: 410px; }
.tabs { gap: 28px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 3px; text-decoration: none; color: #67635f; }
.tabs a[aria-current] { color: var(--red); box-shadow: inset 0 -3px var(--red); font-weight: 700; }
h1 { font-size: clamp(32px, 4vw, 50px); margin: 24px 0; letter-spacing: -.05em; line-height: 1.2; }
label, dt { display: block; font-size: 14px; font-weight: 600; margin: 20px 0 6px; }
input { width: 100%; min-height: 48px; border: 1px solid #928e85; border-radius: 3px; padding: 10px 14px; font: inherit; color: inherit; background: white; }
input:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.password { position: relative; }
.password input { padding-right: 64px; }
button { cursor: pointer; font: inherit; }
.password button { position: absolute; inset: 2px 2px 2px auto; background: transparent; border: 0; padding: 0 12px; color: var(--red); }
small { display: block; margin-top: 6px; color: #59554f; }
.primary, .secondary { margin-top: 26px; width: 100%; min-height: 48px; border: 0; border-radius: 3px; background: var(--red); color: white; font-weight: 700; }
.primary:hover { background: #8c2516; }
.secondary { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
[role=alert] { color: var(--red); }
dd { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .masthead { padding: 18px 0; }
  main { display: flex; flex-direction: column; gap: 32px; align-items: stretch; }
  .panel { order: -1; max-width: none; }
  .plate { display: grid; grid-template-columns: 1fr 110px; align-items: center; }
  figcaption { grid-column: 1 / -1; }
  .plate img { grid-column: 2; grid-row: 2; margin: 6px 0 0; }
  .plate-title { grid-column: 1; grid-row: 2; border: 0; }
}

.history-list { padding-inline-start: 1.5em; }
.history-list li { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history-list a { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.history-list a:hover strong { text-decoration: underline; }
.history-list time, .history-list span { color: #59554f; font-size: .9rem; }
.panel > a, .panel p a { color: var(--red); }
