/* StateDrivingRecords.com
   The licence plate is the only ornament. Yellow marks what you can act on:
   the buy button, a hovered link, the band on a plate. Everything else is black on white. */

:root {
  --ink: #000;
  --tar: #43484d;
  --line: #c8cdd2;
  --panel: #eef0f2;
  --paper: #fff;
  --yellow: #ffd21f;
  --w: 72rem;
  --measure: 66ch;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.125rem/1.6 var(--body); color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { background: var(--yellow); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--yellow); }
.wrap { max-width: var(--w); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 9; background: var(--paper); padding: .5rem 1rem; }

/* Type */
h1, h2 { font-family: var(--display); margin: 0 0 .45em; }
h1 { font-size: clamp(2.9rem, 7vw, 5.25rem); font-weight: 700; line-height: .95; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; line-height: 1.02; margin-top: 1.5em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 1.5em 0 .35em; }
p, ul, ol, table, dl { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .3em; }
.lede { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; max-width: 46ch; }
.prose { max-width: var(--measure); }
.prose > h2:first-child { margin-top: 0; }
.muted { color: var(--tar); }
.small { font-size: .95rem; }

/* Header */
.strip { background: var(--ink); color: var(--paper); font-size: .92rem; padding: .45rem 0; }
.strip a { color: var(--paper); }
.strip a:hover { background: none; color: var(--yellow); }
.top { border-bottom: 3px solid var(--ink); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; padding-block: .9rem; }
.logo { display: inline-flex; align-items: center; gap: .3rem; font: 700 1.7rem/1 var(--display); text-decoration: none; }
.logo:hover { background: none; }
.logo .tld { background: var(--yellow); border: 2px solid var(--ink); border-radius: .35rem; padding: .1rem .35rem .14rem; font-size: 1.05rem; }
.mainnav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; font-weight: 500; }
.mainnav a { text-decoration: none; padding: .2rem 0; border-bottom: 3px solid transparent; }
.mainnav a:hover { background: none; border-bottom-color: var(--yellow); }
.mainnav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Buttons */
.btn, .mainnav a.btn { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; padding: .7rem 1.2rem; border: 3px solid var(--ink); border-radius: .5rem; }
.btn:hover, .mainnav a.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--line { background: var(--paper); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.mainnav a.btn { padding: .4rem .9rem; }

/* The price and button that lead a page */
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.5rem; }
.buy__price { font: 700 clamp(3.2rem, 6vw, 4.5rem)/1 var(--display); margin: 0; }
.buy .small { margin: .55rem 0 0; max-width: 40ch; color: var(--tar); }
.btn--big { font-size: 1.2rem; padding: .9rem 1.6rem; }
.pick { margin-top: 2.75rem; }

/* Page furniture */
main { display: block; }
.band { padding-block: clamp(2rem, 5vw, 3.5rem); }
.band--tint { background: var(--panel); }
.hero { padding-block: clamp(2.25rem, 6vw, 4.25rem) clamp(1.5rem, 3vw, 2.5rem); }
.crumbs { font-size: .95rem; color: var(--tar); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; border-bottom: 1px solid currentColor; }
.crumbs span { margin-inline: .35rem; }
.notice { border: 3px solid var(--ink); border-left-width: .9rem; border-radius: .5rem; padding: 1rem 1.25rem; max-width: var(--measure); background: var(--paper); }
.notice p:last-child { margin-bottom: 0; }

/* Licence plates */
.plates { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.9rem, 1fr)); gap: .7rem; }
.plates li { margin: 0; }
.plate { display: grid; justify-items: center; position: relative; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: .6rem; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink); font-family: var(--display); text-decoration: none; text-align: center; padding: .4rem .3rem .45rem; }
.plate__state { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; padding-inline: .3rem; }
.plate__abbr { font-size: 2.1rem; font-weight: 700; letter-spacing: .07em; line-height: 1; }
a.plate:hover, a.plate:focus-visible { background: var(--yellow); box-shadow: inset 0 0 0 3px var(--yellow), inset 0 0 0 4px var(--ink); }
.plate--hero { width: min(17rem, 100%); padding: .7rem 0 0; overflow: hidden; }
.plate--hero::before, .plate--hero::after { content: ""; position: absolute; top: .8rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--line); }
.plate--hero::before { left: .9rem; }
.plate--hero::after { right: .9rem; }
.plate--hero .plate__state { font-size: 1.05rem; }
.plate--hero .plate__abbr { font-size: 6.2rem; padding-bottom: .15rem; }
.plate__slogan { width: 100%; background: var(--yellow); border-top: 3px solid var(--ink); font-size: .95rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; padding: .18rem 0 .28rem; }
.statehero { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.statehero h1 { margin-bottom: .3em; }
@media (max-width: 46rem) { .statehero { grid-template-columns: 1fr; } .plate--hero { width: 12rem; } .plate--hero .plate__abbr { font-size: 4.4rem; } }

/* Tables */
.tablewrap { overflow-x: auto; margin-bottom: 1.1em; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: 0; }
th, td { text-align: left; padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 3px solid var(--ink); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 1.4rem; }
caption { text-align: left; color: var(--tar); font-size: .95rem; padding-bottom: .5rem; }

/* Steps: a real sequence, so they are numbered */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem 2rem; }
.steps li { counter-increment: step; margin: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .6rem; background: var(--yellow); border: 3px solid var(--ink); border-radius: .5rem; font: 700 1.6rem/1 var(--display); }
.steps h3 { margin-top: 0; }

/* Questions */
.faq { max-width: var(--measure); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: .9rem 2.2rem .9rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .55rem; font: 700 1.7rem/1 var(--display); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { margin-right: 2rem; }

/* Lists of links */
.cols { list-style: none; padding: 0; columns: 14rem auto; column-gap: 2rem; }
.cols li { break-inside: avoid; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem 2rem; }
.cards li { margin: 0; border-top: 3px solid var(--ink); padding-top: .7rem; }
.cards a { font: 600 1.45rem/1.15 var(--display); text-decoration: none; }
.cards p { margin: .35rem 0 0; color: var(--tar); font-size: 1rem; }
.src { font-size: .95rem; color: var(--tar); overflow-wrap: anywhere; }
.src summary { cursor: pointer; }
.src ul { margin-top: .5rem; }

/* Forms */
.field { margin-bottom: 1.1rem; max-width: 30rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.field .hint { display: block; font-size: .95rem; color: var(--tar); margin-bottom: .3rem; }
input[type="text"], input[type="email"], input[type="date"], input[type="search"], select { width: 100%; font: inherit; padding: .6rem .7rem; border: 2px solid var(--ink); border-radius: .4rem; background: var(--paper); color: var(--ink); }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; max-width: var(--measure); margin-bottom: 1.1rem; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .25rem; accent-color: var(--ink); }
.formstatus { font-weight: 600; margin-top: 1rem; }
.formstatus[data-kind="error"] { border-left: .5rem solid var(--ink); padding-left: .8rem; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
button.btn[disabled] { opacity: .5; cursor: default; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); margin-top: clamp(3rem, 6vw, 5rem); padding: 3rem 0 2rem; font-size: 1rem; }
.foot a { color: var(--paper); }
.foot a:hover { background: none; color: var(--yellow); }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem 2rem; margin-bottom: 2rem; }
.foot__h { font: 600 1.25rem/1.2 var(--display); margin: 0 0 .5rem; }
.foot ul + .foot__h { margin-top: 1.25rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot__legal { border-top: 1px solid #555; padding-top: 1.25rem; max-width: 60rem; color: #d6d9dc; }
.foot__legal p { margin-bottom: .6em; }

@media print { .strip, .top, .foot, .btn { display: none; } }
