:root {
  font: 1rem/1.45 "Helvetica Neue", Arial, sans-serif;
  --paper: #f7f4ec;
  --surface: #fffdf7;
  --ink: #1d3046;
  --muted: #565950;
  --blue: #214781;
  --line: #c9c7bb;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
button, a, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid #1471b4; outline-offset: 3px; }
.wrap { width: min(74rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
#panel:focus { outline: none; }
[id] { scroll-margin-top: 1rem; }

header, footer { border-color: var(--line); border-style: solid; border-width: 0 0 1px; }
footer { border-width: 1px 0 0; }
.bar, .site-nav, .hero-actions, .actions, .foot {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bar { min-height: 4.25rem; justify-content: space-between; }
.brand {
  flex: none;
  font: 700 1.7rem/1 Georgia, serif;
  letter-spacing: -.055em;
  text-decoration: none;
}
.brand em { font-weight: 400; }
.brand small {
  display: block;
  margin-top: .25rem;
  font: 700 .625rem/1.2 Arial, sans-serif;
  letter-spacing: .16em;
}
.site-nav { gap: clamp(.5rem, 2vw, 1.25rem); }
.location, .note, .sub, .foot p { color: var(--muted); font-size: .875rem; }
.catalog, .quiet, .foot a {
  color: var(--blue);
  font-size: .875rem;
  text-underline-offset: .25em;
}
.catalog, .quiet { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .25rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  margin-top: clamp(1rem, 3vw, 2.25rem);
  background: #eae8df;
}
.intro { padding: clamp(1.5rem, 4.6vw, 3.5rem); }
.eyebrow {
  color: #665c4f;
  font: 500 .8125rem/1.4 ui-monospace, monospace;
  letter-spacing: .035em;
}
h1, h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
h1 { font-size: clamp(3.25rem, 6.6vw, 5.25rem); line-height: .96; margin: .95rem 0 1rem; }
h1 em { color: #304e83; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; }
.buyer { font-size: clamp(1.06rem, 2vw, 1.25rem); max-width: 36ch; }
.byline { color: #615c52; font-size: .875rem; margin-top: .4rem; }
.hero-actions { margin-top: 1.3rem; gap: .65rem; flex-wrap: wrap; }
.hero figure { position: relative; min-height: 16rem; }
.hero img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero figcaption {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  background: #182b37ed;
  color: white;
  padding: .25rem .5rem;
  font-size: .75rem;
}
.primary, .secondary, .choose {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: .55rem 1rem;
  font-weight: 650;
  text-decoration: none;
}
.primary, .choose { color: white; background: var(--blue); }
.primary:hover, .choose:hover { background: #16365f; }
.secondary { color: var(--blue); background: transparent; }
.secondary:hover { background: #e9edf2; }

.catalogue, .studio { margin-block: clamp(1.75rem, 5vw, 3.75rem); }
.section-head, .heading, .catalog-foot, .item-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.section-head h2 { margin-top: .25rem; }
.section-head .note { text-align: right; }
.part-search { display: block; max-width: 30rem; margin: .75rem 0; font-size: .9375rem; font-weight: 650; }
.part-search input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: .25rem;
  border: 1px solid #929ca9;
  border-radius: 4px;
  color: var(--ink);
  background: white;
  padding: .4rem .6rem;
}
.filters, .steps { display: flex; flex-wrap: wrap; gap: .35rem; }
.filters { margin-block: .75rem .5rem; padding: .4rem 0; border-block: 1px solid var(--line); }
.filters button, .steps button, .item button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .875rem;
  padding: .45rem .75rem;
}
.filters button[aria-pressed="true"] { background: #243b58; color: white; border-radius: 4px; }
.filters button:hover:not([aria-pressed="true"]), .item button:hover { background: #e9edf2; }
#items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.625rem, 1.5vw, 1.125rem);
  margin: .9rem 0;
}
.catalogue-empty { grid-column: 1 / -1; padding: 1rem; border: 1px dashed var(--line); border-radius: 5px; }
.catalogue-empty p { margin-bottom: .65rem; }
.item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.item-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.5;
  padding: .7rem;
  border-bottom: 1px solid #ece8dc;
  border-radius: 6px 6px 0 0;
  background: white;
}
.item-photo img { position: absolute; width: 91%; height: 88%; object-fit: contain; }
.item-photo small { position: absolute; bottom: .25rem; right: .3rem; background: white; font-size: .6875rem; padding: .1rem .3rem; }
.item-copy { flex: 1; padding: .75rem .8rem .25rem; overflow-wrap: anywhere; }
.item h3 { font-size: 1.0625rem; }
.item p { font-size: .875rem; color: var(--muted); margin-top: .22rem; }
.item-action { padding: .4rem .8rem .7rem; gap: .4rem; }
.item-action strong, .total strong { font-variant-numeric: tabular-nums; }
.item button { border: 1px solid #949caa; border-radius: 3px; padding-inline: .625rem; }
.item button[aria-pressed="true"] { background: #dde5ed; }
.catalog-foot {
  padding: .65rem 0 max(.65rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: .875rem;
}
#basket { min-width: 0; }
.basket-names {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.catalog-foot a { flex: none; }

.steps { border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.steps button { border-bottom: 3px solid transparent; }
.steps button[aria-current="step"] { border-color: var(--blue); font-weight: 700; }
.steps button:disabled { color: #666f75; }
.heading { margin-bottom: 1rem; }
.specs {
  width: 100%;
  table-layout: fixed;
  border: 1px solid var(--line);
  border-spacing: 0;
  border-radius: 6px;
  background: var(--surface);
}
.specs th, .specs td { padding: .75rem 1rem; text-align: left; overflow-wrap: anywhere; border-bottom: 1px solid #e1ded4; }
.specs th:first-child { width: 22%; font-size: .875rem; }
.specs tbody th { color: var(--muted); font-weight: 550; }
.specs tr:last-child > * { border-bottom: 0; }
.specs th + th, .specs th + td, .specs td + td { border-left: 1px solid #e1ded4; }
.specs thead { background: #e9edf2; }
.specs thead th { font-size: 1.25rem; }
.choose { font-size: .875rem; }

.sheet {
  min-width: 0;
  padding: clamp(.9rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.build-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); gap: 1rem; align-items: start; }
.build-summary { position: sticky; top: 1rem; }
.base { border-left: 4px solid #4b6795; padding-left: .75rem; margin-bottom: 1.1rem; }
.base h3 { font-size: 1.25rem; }
.controls, .access-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }
.screen-field { grid-column: 1 / -1; }
.controls label, .access summary { font-size: .875rem; font-weight: 650; }
.controls select, .controls input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: .25rem;
  border: 1px solid #949caa;
  border-radius: 4px;
  background-color: white;
  color: var(--ink);
  padding: .35rem .65rem;
}
.access { margin-top: 1rem; border-top: 1px solid var(--line); }
.access summary { min-height: 44px; padding-block: .7rem; cursor: pointer; }
.access-options { gap: 0 .85rem; }
.access-options label { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .875rem; cursor: pointer; }
.access-options input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: var(--blue); }
.total { display: grid; gap: .15rem; margin-bottom: .75rem; }
.total strong { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.balance { color: #305845; font-size: .9375rem; font-weight: 650; margin-bottom: .8rem; }
.balance:empty { display: none; }
.build-summary button { width: 100%; }
.message {
  max-width: 44rem;
  margin: .65rem 0;
  padding: .85rem 1rem;
  background: #e9edf2;
  border-left: 3px solid #4b6795;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.actions { flex-wrap: wrap; gap: .55rem; }
.foot { justify-content: space-between; align-items: flex-start; padding-block: 1.4rem; }
.foot p { margin-block: .35rem; }
.foot b { font-size: .9375rem; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  animation: reveal-site 1.25s ease-out both;
}
.splash-sign { padding: 2rem 1rem; }
.splash-sign span { display: block; font: 700 clamp(2.5rem, 8vw, 4.75rem)/1 Georgia, serif; letter-spacing: -.055em; }
.splash-sign em { font-weight: 400; }
.splash-sign small { display: block; margin-top: .75rem; font-size: .8125rem; letter-spacing: .23em; }
.splash-sign p { margin-top: 1.35rem; color: #d7deea; }
@keyframes reveal-site {
  0%, 68% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { animation-duration: .65s; animation-timing-function: steps(1, end); }
}
@media (max-width: 60rem) {
  #items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  #items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar { min-height: 3.65rem; gap: .6rem; }
  .brand { font-size: 1.45rem; }
  .location { display: none; }
  .hero, .build-layout { grid-template-columns: minmax(0, 1fr); }
  .hero figure { min-height: 0; height: clamp(9.75rem, 38vw, 17rem); }
  .hero img { object-position: 55% 43%; }
  .build-summary { position: static; }
}
@media (max-width: 34rem) {
  .intro { padding: 1.25rem; }
  h1 { font-size: clamp(2.65rem, 11vw, 3.55rem); }
  .section-head, .heading { flex-direction: column; gap: .4rem; align-items: flex-start; }
  .section-head .note { text-align: left; }
  .filters { gap: .125rem; }
  .filters button { padding-inline: .5rem; }
  .item h3 { font-size: .9375rem; }
  .item-copy { padding: .5rem .55rem .2rem; }
  .item-action { padding: .35rem .55rem .5rem; flex-wrap: wrap; }
  .item-action button { width: 100%; }
  .catalog-foot { gap: .5rem; }
  .catalog-foot .secondary { font-size: .875rem; padding-inline: .6rem; }
  .basket-names { display: none; }
  .specs th, .specs td { padding: .55rem .4rem; font-size: .875rem; }
  .specs thead th { font-size: 1rem; }
  .specs th:first-child { width: 22%; font-size: .8125rem; }
  .choose { width: 100%; padding: .35rem; }
  .access-options { grid-template-columns: minmax(0, 1fr); }
  .actions { display: grid; }
  .foot { flex-direction: column; }
}
