/* Anvil Lane Motor Works: workshop signage. Condensed black type, hazard yellow, number plates. */

:root {
  --asphalt: #101214;
  --panel: #1b1f24;
  --hazard: #ffd400;
  --steel: #a7b0b8;
  --white: #f5f5f2;

  --bg: var(--asphalt);
  --fg: var(--white);
  --accent: var(--hazard);
  --accent-ink: #101214;
  --focus: var(--hazard);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --toggle-radius: 6px;
  --slot-line: rgba(255, 212, 0, .55);

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--body); font-size: 1.0625rem; }

.heading {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: .95;
  max-width: 16ch;
}

.button {
  display: inline-block;
  padding: .9rem 1.5rem;
  border: 0;
  border-radius: 6px;
  background: var(--hazard);
  color: var(--asphalt);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s;
}
.button:hover { background: #fff; }

.stripe { height: 1.25rem; background: repeating-linear-gradient(-45deg, var(--hazard) 0 1.25rem, var(--asphalt) 1.25rem 2.5rem); }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
}
.wordmark { font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1; text-decoration: none; }
.wordmark span { display: block; font-size: .95rem; font-weight: 700; letter-spacing: .2em; color: var(--hazard); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a { font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--hazard); }
@media (max-width: 46rem) { .site-nav__extra { display: none; } }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem var(--gutter) 5.5rem;
}
.hero__shade { background: linear-gradient(90deg, rgba(16, 18, 20, .9) 0%, rgba(16, 18, 20, .86) 58%, rgba(16, 18, 20, .1) 100%); }
@media (max-width: 46rem) { .hero__shade { background: rgba(16, 18, 20, .64); } }

.hero__title { font-family: var(--display); font-weight: 900; font-size: clamp(3.4rem, 10vw, 9rem); line-height: .88; }
.hero__lede { max-width: 31rem; margin-top: 1.5rem; font-size: 1.15rem; }

.plate { margin-top: 2rem; max-width: 34rem; }
.plate__label { display: block; margin-bottom: .6rem; font-weight: 600; }
.plate__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.plate__input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 3.6rem;
  padding: .3rem 1rem .3rem 3.4rem;
  border: 3px solid #101214;
  border-radius: 8px;
  outline-offset: 4px;
  background: var(--hazard) linear-gradient(#1f4fa8, #1f4fa8) left / 2.5rem 100% no-repeat;
  color: #101214;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plate__input::placeholder { color: rgba(16, 18, 20, .62); }
.plate__status { min-height: 1.6em; margin-top: .75rem; font-weight: 600; color: var(--hazard); }

/* ---------- Shop ---------- */

.shop { padding-block: clamp(4.5rem, 9vw, 8rem); }
.shop__grid { display: grid; gap: 3rem clamp(2rem, 6vw, 6rem); }
@media (min-width: 58rem) { .shop__grid { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.shop__text { max-width: 33rem; margin-top: 1.5rem; color: var(--steel); font-size: 1.1rem; }

.gauges { display: grid; gap: .75rem; }
.gauges li { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-left: 6px solid var(--hazard); background: var(--panel); }
.gauges strong { font-family: var(--display); font-weight: 900; font-size: 3.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.gauges span { color: var(--steel); }

/* ---------- Prices ---------- */

.prices { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--white); color: var(--asphalt); --focus: #101214; }
.prices__note { margin-top: 1rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.filter { padding: .6rem 1.1rem; border: 2px solid var(--asphalt); border-radius: 6px; background: none; font-weight: 600; cursor: pointer; }
.filter:hover { background: #e6e6e0; }
.filter[aria-pressed="true"] { background: var(--asphalt); color: var(--hazard); }
.filter-count { margin-top: 1rem; color: #4b5158; }

.price-table { width: 100%; margin-top: 2rem; border-collapse: collapse; text-align: left; }
.price-table thead th { padding: .6rem .75rem; background: var(--asphalt); color: var(--hazard); font-size: .9rem; }
.price-table tbody th, .price-table td { padding: 1rem .75rem; border-bottom: 2px solid var(--asphalt); vertical-align: baseline; }
.price-table tbody th { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1.1; }
.price-table td:last-child { font-family: var(--display); font-weight: 900; font-size: 1.8rem; text-align: right; white-space: nowrap; }
.price-table th:last-child { text-align: right; }

@media (max-width: 40rem) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .price-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding-block: 1rem; border-bottom: 2px solid var(--asphalt); }
  .price-table tbody th, .price-table td { padding: 0; border: 0; }
  .price-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .price-table td:last-child { grid-column: 2; grid-row: 1; }
}

/* ---------- Promise ---------- */

.promise { padding-block: clamp(4.5rem, 9vw, 8rem); }
.rules { display: grid; gap: 2rem; margin-top: 2.5rem; counter-reset: none; }
@media (min-width: 54rem) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rules li { padding-top: 1.25rem; border-top: 6px solid var(--hazard); }
.rules h3 { font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; }
.rules p { margin-top: .75rem; color: var(--steel); }

.gallery { display: grid; gap: 1rem; margin-top: clamp(3rem, 7vw, 5rem); }
@media (min-width: 46rem) { .gallery { grid-template-columns: 2fr 1fr 1fr; } }
.gallery .slot { height: clamp(14rem, 30vw, 22rem); border-radius: 6px; }
.slot--1 { background: linear-gradient(90deg, transparent 24%, #2c3238 24% 26%, transparent 26% 49%, #2c3238 49% 51%, transparent 51% 74%, #2c3238 74% 76%, transparent 76%), linear-gradient(180deg, #3a4149 0 55%, #23272c 55%); }
.slot--2 { background: repeating-linear-gradient(180deg, #4a5058 0 1.1rem, #3d434a 1.1rem 1.25rem); }
.slot--3 { background: radial-gradient(circle at 30% 70%, #d9a441 0 12%, transparent 13%), linear-gradient(180deg, #5a4a3a, #2e2620); }

.quote { max-width: 50rem; margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.quote__flag { display: inline-block; padding: .15rem .6rem; border-radius: 4px; background: var(--hazard); color: var(--asphalt); font-size: .85rem; font-weight: 600; }
.quote blockquote { margin-top: 1rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.05; }
.quote figcaption { margin-top: 1rem; color: var(--steel); }

/* ---------- Book ---------- */

.book { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--panel); }
.book__grid { display: grid; gap: 3rem clamp(2rem, 6vw, 6rem); }
@media (min-width: 56rem) { .book__grid { grid-template-columns: 1fr 1fr; } }
.book__text { max-width: 26rem; margin-top: 1.25rem; color: var(--steel); }
.hours { margin-top: 2rem; max-width: 24rem; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid #3a4047; }
.hours dt { font-weight: 600; }

.form { display: grid; gap: 1.1rem; align-content: start; }
.form .button { justify-self: start; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.field input:not(.plate__input), .field select { width: 100%; min-height: 3.1rem; padding: .7rem .9rem; border: 2px solid #5a626b; border-radius: 6px; background: var(--asphalt); color-scheme: dark; }
.field .plate__input { width: 100%; max-width: 16rem; }
.form__status { min-height: 1.6em; font-weight: 600; color: var(--hazard); }

/* ---------- Footer ---------- */

.site-footer { padding-block: 2.5rem 6.5rem; color: var(--steel); }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer p { max-width: 36rem; }
