/* Via Carrera — simple, symmetric, Scandinavian */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-soft: #4a4a4a;
  --line: #d9d9d9;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* The page is as tall as the screen and the content is centred in it, so on a
   normal desktop or laptop everything fits without scrolling. Every size below
   scales smoothly with the height of the window (vh), within sensible limits.
   On very small screens it simply scrolls. */
.page {
  max-width: 760px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(16px, 4vh, 56px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: clamp(76px, 19vh, 176px);
  height: clamp(76px, 19vh, 176px);
  margin-bottom: clamp(10px, 2.6vh, 28px);
}

.motto {
  margin: 0;
  font-size: clamp(11px, 1.9vh, 15px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.divider {
  width: 48px;
  margin: clamp(14px, 3.6vh, 44px) auto;
  border: none;
  border-top: 1px solid var(--line);
}

.intro p {
  margin: 0 0 clamp(8px, 1.8vh, 18px);
  font-size: clamp(14px, 2.5vh, 19px);
  line-height: 1.6;
}

.intro p:last-child {
  margin-bottom: 0;
}

.cars {
  margin-top: clamp(14px, 3.6vh, 40px);
}

.cars-button {
  display: inline-block;
  padding: clamp(10px, 2vh, 18px) clamp(30px, 4vh, 44px);
  font-size: clamp(12px, 1.9vh, 15px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.cars-button:hover,
.cars-button:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.contact h2 {
  margin: 0 0 clamp(2px, 0.8vh, 8px);
  font-size: clamp(11px, 1.9vh, 15px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact a {
  font-size: clamp(14px, 2.4vh, 18px);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.15s ease;
}

.contact a:hover {
  opacity: 0.55;
}

/* Phones: a little less side padding and slightly smaller body text. */
@media (max-width: 480px) {
  .page {
    padding: 20px;
  }
  .intro p {
    font-size: 15px;
  }
}
