@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --action: #a52f5a;
  --action-hover: #892447;
  --soft: #fff6fa;
  --text: #332d35;
  --muted: #665d65;
  --turquoise: #08babc;
  font-family: "Nunito Sans", sans-serif;
  color: var(--text);
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.page { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.brand { padding-block: 2rem; }
.brand__logo { width: 8rem; margin-inline: auto; }
.hero { display: grid; gap: 1.5rem; }
h1 { font-size: 2rem; line-height: 1.25; font-weight: 700; }
.hero__copy > p { margin-block: 1rem; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  width: 100%;
  border-radius: .5rem;
  background: var(--action);
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.hero__illustration { display: block; margin-inline: auto; max-width: 100%; border-radius: 1.5rem; transition: transform 180ms ease, box-shadow 180ms ease; }
.stations { margin-top: 2rem; }
h2 { font-size: 1.5rem; line-height: 1.333; }
.stations__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.station { padding: 1rem; border-radius: 1rem; background: var(--soft); transition: transform 180ms ease, box-shadow 180ms ease; }
.station img { margin-inline: auto; }
.station h3 { margin-top: .75rem; font-size: 1rem; line-height: 1.5; }
.station p { margin-top: .25rem; font-size: .8125rem; line-height: 1.54; color: var(--muted); }
.coverage { margin-top: 2rem; padding: 1.5rem; border-radius: 1.5rem; background: var(--soft); text-align: center; }
.coverage h2 { margin-block: 1.25rem; }
.coverage h2 span { display: block; }
.coverage__phone { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.location-icon { display: block; width: 1.5rem; height: 1.5rem; margin-inline: auto; }
.footer { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; padding-block: 1.25rem 2rem; border-top: 1px solid #eee8ec; color: var(--muted); font-size: .8125rem; line-height: 1.54; text-align: center; }
.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: .75rem; background: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 4px; }
.button:active { transform: translateY(1px); }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--action-hover); box-shadow: 0 5px 14px #a52f5a26; transform: translateY(-2px); }
  .station:hover, .hero__illustration:hover { transform: translateY(-4px); box-shadow: 0 8px 20px #a52f5a14; }
}

@media (min-width: 48rem) {
  .page { width: min(100% - 5rem, 70rem); }
  .brand { padding-block: 2rem 4rem; }
  .brand__logo { margin-inline: 0; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3rem; }
  .hero__copy { max-width: 28rem; padding-inline: 1.5rem 0; }
  h1 { font-size: clamp(2rem, 3vw, 3rem); }
  .hero__copy .button { width: min(100%, 21rem); }
  .stations { margin-top: 7rem; }
  .stations__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .station { padding: 1.5rem 1rem; }
  .station img { margin-inline: 0; }
  .coverage { margin-top: 5rem; padding-block: 1.5rem; }
  .coverage h2 { font-size: 1.5rem; }
  .coverage h2 span { display: inline; }
  .coverage .button { width: auto; min-width: 18rem; }
  .footer { flex-direction: row; justify-content: space-between; gap: 1.5rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .button:hover, .button:active, .station:hover, .hero__illustration:hover { transform: none; }
}
