/* Hallmark · Formwork · tracing paper, a blue datum and the 96KEY amber */
@font-face {
  font-family: Onest;
  src: url("./assets/onest-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --white: #fff;
  --ink: #122237;
  --muted: #435068;
  --brand-blue: #1a5596;
  --blue-deep: #102845;
  --amber: #ffbb29;
  --amber-pressed: #eea600;
  --line: #cbd1d8;
  --shell: 80rem;
  --gutter: clamp(1.125rem, 4.2vw, 3.75rem);
  font-family: Onest, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: .875rem;
  left: .875rem;
  z-index: 1;
  padding: .5rem .75rem;
  color: var(--ink);
  background: var(--white);
  translate: 0 -180%;
}

.skip-link:focus { translate: 0; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.4vw, 3.5rem);
}

.brand { display: block; flex-shrink: 0; padding-block: .5rem; }
.brand img { width: 9.0625rem; }
.header__nav { display: flex; align-items: center; gap: 1.75rem; margin-inline-start: auto; }
.header__nav a, .footer a { text-underline-offset: .26em; text-decoration-color: var(--line); }
.header__nav a:hover, .footer a:hover { text-decoration-color: currentColor; }

.demo {
  padding: .21rem .58rem;
  color: var(--blue-deep);
  border: 1px solid #b7c6d7;
  background: #edf2f8;
  font-size: .875rem;
  font-weight: 650;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2.125rem, 5.3vw, 5.125rem);
  padding-block: clamp(2.75rem, 6.05vw, 5.75rem);
}

.hero h1 {
  font-size: clamp(2.75rem, 5.15vw, 4.8125rem);
  font-weight: 850;
  line-height: 1.01;
  letter-spacing: -.069em;
}

.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--brand-blue); }

.hero__address {
  margin-top: 1.625rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-style: normal;
  font-weight: 680;
}

.hero__address span { white-space: nowrap; }
.hero__hours { margin-top: .15rem; color: var(--muted); }

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.375rem;
  padding: .65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: .1875rem;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  font-size: 1rem;
  font-weight: 760;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.button--call { background: var(--amber); color: #171e25; }
.button--call:hover, .button--call:active { background: var(--amber-pressed); }
.button--map { color: var(--brand-blue); border-color: var(--brand-blue); }
.button--map:hover, .button--map:active { background: #e4ecf4; }
.button span { font-size: 1.125rem; line-height: 1; }

.work-photo {
  border-top: .35rem solid var(--amber);
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: .625rem .625rem 0 #c9d6e5;
}

.work-photo img { width: 100%; aspect-ratio: 67/45; object-fit: cover; }
.work-photo figcaption { padding: .625rem .875rem; color: #e5edf7; font-size: .875rem; }

h2 {
  font-size: clamp(2rem, 3.4vw, 3.125rem);
  font-weight: 810;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.services {
  padding-block: clamp(2.125rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5.25rem);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.repairs { margin: 1.45rem 0 0; padding: 0; list-style: none; }
.repairs li {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.16fr) max-content;
  gap: 1rem 1.375rem;
  align-items: baseline;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.repairs li:first-child { border-top: 2px solid var(--brand-blue); }
.repairs h3 { font-size: clamp(1.1875rem, 2vw, 1.5rem); line-height: 1.1; letter-spacing: -.035em; }
.repairs p { color: var(--muted); }
.repairs .repairs__price { color: var(--brand-blue); font-weight: 700; }

.entrance { color: var(--white); background: var(--blue-deep); }
.entrance__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
}

.entrance__copy p { max-width: 34rem; margin-top: .5rem; color: #dbe7f6; }
.entrance__copy .entrance__route {
  margin-top: 1.125rem;
  color: var(--white);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
}

.entrance__photo { border: 1px solid #65778f; border-left: .35rem solid var(--amber); }
.entrance__photo img {
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: cover;
  object-position: 50% 8%;
}

.button--light { border-color: #92a6bf; color: var(--white); }
.button--light:hover, .button--light:active { background: #2b4665; }
.entrance :focus-visible { outline-color: var(--amber); }

.footer { background: var(--white); }
.footer__inner {
  min-height: 4.625rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  padding-block: 1rem;
  color: var(--muted);
}

.footer a { color: var(--brand-blue); font-weight: 690; }

@media (max-width: 55rem) {
  .hero h1 { font-size: clamp(2.5625rem, 5.5vw, 3.5rem); }
  .repairs li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: .4rem 1.25rem; }
  .repairs h3 { grid-row: span 2; }
}

@media (max-width: 43.75rem) {
  .header__inner { min-height: 3.875rem; justify-content: space-between; }
  .brand img { width: 8rem; }
  .header__nav { display: none; }
  .hero, .entrance__inner { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.5rem; padding-block: 1.875rem 2.375rem; }
  .hero h1 { font-size: clamp(2.375rem, 10.7vw, 4rem); }
  .hero__address { margin-top: 1.125rem; }
  .actions { margin-top: 1.125rem; }
  .hero .actions > * { flex: 1 1 8.25rem; }
  .work-photo { margin-inline-end: .375rem; box-shadow: .375rem .375rem 0 #c9d6e5; }
  .repairs li { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .repairs h3 { grid-row: auto; }
  .entrance__inner { gap: 1.5rem; }
  .entrance__photo img { aspect-ratio: 1.18; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
