@font-face {
  font-family: Baskervville;
  src: url(assets/baskervville-normal.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Baskervville;
  src: url(assets/baskervville-italic.woff2) format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url(assets/dm-sans-normal-400-700.woff2) format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1b3830;
  --deep-green: #142e27;
  --paper: #f6f2e7;
  --light-paper: #fdfbf4;
  --stone: #ece6d6;
  --muted: #535b4f;
  --line: #c9c3b3;
  --light-line: #ffffff50;
  --muted-on-green: #e3ddce;
  --focus: #286b9e;
  --focus-on-green: #ffda8e;
  --heading: Baskervville, Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.4vw, 6rem);
  --section-space: clamp(3.5rem, 6.7vw, 6.5rem);
  --column-gap: clamp(2rem, 6vw, 6rem);
  --photo-padding: clamp(.42rem, 1vw, .75rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, dl, ul, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(2.7rem, 5.2vw, 5rem); letter-spacing: -.052em; }
h3 { font-size: clamp(1.65rem, 2.6vw, 2.35rem); letter-spacing: -.039em; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
:is(.utility, .workshop, .footer) :focus-visible { outline-color: var(--focus-on-green); }
section[id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 80rem); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 4; translate: 0 -200%; padding: .7rem 1rem; background: var(--light-paper); }
.skip-link:focus { translate: 0; }

.utility { background: var(--deep-green); color: var(--muted-on-green); font-size: .875rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.4rem; padding-block: .42rem; }
.utility a { color: var(--light-paper); text-decoration: none; white-space: nowrap; }
.utility a:hover { text-decoration: underline; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.7rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.wordmark {
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  font: italic 400 2.25rem/1 var(--heading);
  letter-spacing: -.073em;
  white-space: nowrap;
}
.header nav { display: flex; gap: clamp(1.1rem, 3vw, 3.1rem); align-items: center; font-size: .9375rem; font-weight: 600; }
.header nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.header nav a:hover { text-decoration: underline; }
.header .nav-contact { border: 1px solid var(--ink); padding-inline: .9rem; }
.menu-toggle { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 4.2vw, 4.5rem);
  padding-block: clamp(2.4rem, 5.8vw, 5.75rem);
}
.hero h1 { font-size: clamp(3.65rem, 5.65vw, 6.4rem); line-height: .99; letter-spacing: -.062em; }
.section-label { margin-bottom: 1rem; color: var(--muted); font-size: .9375rem; font-weight: 600; }
.hero-copy > p:not(.section-label) { max-width: 33ch; margin-top: 1.3rem; color: var(--muted); font-size: 1.0625rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.35rem; }
.hero .actions { margin-top: 1.55rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .6rem 1.15rem;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--light-paper);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--deep-green); text-decoration: underline; }
.button-inverse { background: var(--paper); color: var(--ink); }
.button-inverse:hover { background: var(--light-paper); }
.text-link, .details-link { display: inline-block; font-weight: 650; }
:is(.text-link, .details-link):hover { text-decoration-thickness: 2px; }
.framed-photo { padding: var(--photo-padding); border: 1px solid var(--line); }
.framed-photo img { width: 100%; height: auto; object-fit: cover; }
.framed-photo figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  padding: .53rem .1rem .06rem;
  color: var(--muted);
  font-size: .875rem;
}
.hero-visual img { aspect-ratio: 1.56; object-position: center; }

.marques { border-bottom: 1px solid var(--line); }
.marques-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: .75rem .85rem;
  padding: 1.18rem 0 1.25rem;
  border-top: 1px solid var(--line);
  list-style: none;
  text-align: center;
}
.marques li { font: 400 clamp(1.1rem, 2vw, 1.75rem)/1.15 var(--heading); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2rem; }
.section-heading > p { max-width: 34ch; color: var(--muted); }
.filters { display: flex; gap: .35rem .5rem; flex-wrap: wrap; margin-bottom: 1.65rem; }
.filters button {
  min-height: 2.75rem;
  padding: .42rem .73rem;
  border: 1px solid var(--line);
  background: transparent;
  font-size: .9375rem;
  font-weight: 650;
}
.filters button:hover { border-color: var(--ink); }
.filters [aria-pressed=true] { color: var(--light-paper); background: var(--ink); border-color: var(--ink); }
.motorcycles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem clamp(.9rem, 2.5vw, 2.2rem); }
.motorcycle { min-width: 0; border-top: 1px solid var(--line); padding-top: .55rem; }
.motorcycle-visual img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: contain; background: var(--light-paper); }
.motorcycle-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .2rem .7rem;
  margin: .62rem 0 .38rem;
  color: var(--muted);
  font-size: .875rem;
}
.motorcycle-brand { font-weight: 650; }
.details-link { margin-top: .62rem; font-size: .9375rem; }
.catalogue-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.05rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.workshop { background: var(--ink); color: var(--paper); }
.workshop-grid, .equipment, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: center;
}
.workshop-grid { padding-block: var(--section-space); }
.workshop .framed-photo { border-color: var(--light-line); }
.workshop .framed-photo figcaption, .workshop .section-label { color: var(--muted-on-green); }
.workshop-copy > p:not(.section-label) { color: var(--muted-on-green); margin: .9rem 0 1.4rem; max-width: 37ch; }
.workshop details { border-top: 1px solid var(--light-line); }
.workshop details:last-of-type { border-bottom: 1px solid var(--light-line); }
.workshop summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; padding: .66rem 0; min-height: 2.75rem; font-weight: 650; }
.workshop summary::-webkit-details-marker { display: none; }
.workshop summary::after { content: ''; flex: 0 0 .53rem; height: .53rem; margin-right: .15rem; border: solid currentColor; border-width: 0 1px 1px 0; rotate: 45deg; }
.workshop details[open] summary::after { rotate: 225deg; }
.workshop details p { max-width: 52ch; color: var(--muted-on-green); padding-bottom: .8rem; }
.workshop-action { margin-top: 1.4rem; }

.equipment-copy > p:not(.section-label) { max-width: 34ch; color: var(--muted); margin-top: .9rem; }
.equipment-list { border-bottom: 1px solid var(--line); margin: 1.3rem 0 1.2rem; }
.equipment-list > div { display: grid; grid-template-columns: 1fr 1.15fr; gap: .25rem .7rem; align-items: baseline; padding: .63rem 0; border-top: 1px solid var(--line); }
.equipment-list dt { font: 400 1.32rem/1.22 var(--heading); letter-spacing: -.027em; }
.equipment-list dd { margin: 0; color: var(--muted); }
.equipment-visual img { aspect-ratio: 4 / 3; }

.contact { background: var(--stone); border-top: 1px solid var(--line); }
.contact-grid { align-items: start; }
.contact address { font-style: normal; font-weight: 650; margin-top: 1.12rem; }
.contact-lines { display: flex; flex-direction: column; align-items: start; gap: .2rem; margin: .7rem 0 1.32rem; }
.hours { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.05rem, 3vw, 2.2rem); }
.hours dl { margin: .8rem 0 1rem; }
.hours dl > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .2rem .8rem; border-bottom: 1px solid var(--line); padding: .63rem 0; }
.hours dt { font-weight: 650; }
.hours dd { text-align: end; margin: 0; }
.hours small { display: block; color: var(--muted); font-size: .8125rem; }
.footer { background: var(--deep-green); color: var(--muted-on-green); font-size: .875rem; }
.footer-inner { display: flex; align-items: center; gap: .75rem 1.6rem; flex-wrap: wrap; padding-block: 1.35rem; }
.footer .wordmark { color: var(--paper); margin-right: auto; font-size: 2rem; }

dialog { position: fixed; width: min(36rem, calc(100% - 1.6rem)); max-height: calc(100dvh - 1.6rem); padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #112922b8; }
.dialog-close { position: absolute; top: .6rem; right: .6rem; }
.dialog-close button { border: 1px solid var(--line); padding: .35rem .65rem; background: var(--light-paper); font-weight: 650; }
.dialog-close span { margin-left: .22rem; font-size: 1.2em; }
.dialog-image { width: 100%; height: min(39dvh, 18rem); object-fit: contain; background: var(--light-paper); }
.dialog-body { padding: clamp(1.1rem, 4vw, 2rem); }
.dialog-body h2 { font-size: clamp(2.25rem, 6vw, 3.65rem); }
.dialog-description { color: var(--muted); margin: .8rem 0 1.2rem; }

@media (max-width: 61rem) {
  .hero h1 { font-size: clamp(3.1rem, 6vw, 4.4rem); }
  .motorcycles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  .utility-inner { font-size: .8125rem; }
  .header-inner { flex-wrap: wrap; min-height: 4rem; gap: 0; }
  .wordmark { font-size: 2.15rem; }
  .menu-toggle { display: inline-flex; gap: .47rem; align-items: center; padding: .45rem .56rem; min-height: 2.75rem; background: transparent; border: 1px solid var(--line); font-weight: 650; }
  .menu-icon { width: 1rem; height: .66rem; border-block: 1px solid; }
  .header nav { display: grid; flex-basis: 100%; gap: 0; grid-template-columns: repeat(2, 1fr); padding-bottom: .5rem; }
  .header nav a { padding: .45rem .3rem; }
  .header .nav-contact { border: 0; padding-inline: .3rem; text-decoration: underline; }
  .hero-inner, .workshop-grid, .equipment, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 1.65rem; }
  .hero h1 { font-size: clamp(2.95rem, 10.85vw, 4.4rem); }
  .hero-copy > p:not(.section-label) { margin-top: .95rem; }
  .hero .actions { margin-top: 1.15rem; }
  .marques-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .8rem; }
}

@media (max-width: 30rem) {
  .motorcycles { grid-template-columns: minmax(0, 1fr); }
  .hours dl > div { font-size: .9375rem; }
  .footer .wordmark { flex-basis: 100%; }
}
