:root {
  --bg: #0e1319;
  --bg-raised: #131a22;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f3f5f8;
  --text-soft: #c3cad4;
  --muted: #8d99a8;
  --link: #bcd0e8;
  --plate-white: #ffffff;
  --plate-cream: #fffdf9;

  --font: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 2px;
}

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
}
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 200px; height: auto; }

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 150px) var(--gutter) clamp(72px, 12vh, 140px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 32px;
}
.hero h1 {
  margin: 0 0 24px;
  font-weight: 300;
  font-size: clamp(2.3rem, 5.2vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.hero p {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--text-soft);
  max-width: 44ch;
}
.hero-mark {
  position: relative;
  justify-self: end;
  width: 100%;
}
.hero-mark img {
  width: min(560px, 46vw);
  height: auto;
  margin-right: calc(-1 * var(--gutter) - 6vw);
  margin-left: auto;
}

/* Rows */
.row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px 48px;
  border-top: 1px solid var(--line);
}
.row h2 {
  margin: 0.2em 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.prose { font-size: 1.125rem; }
.prose p { color: var(--text-soft); }
.prose p:first-child { color: var(--text); }
.specialties {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 32px;
  color: var(--text-soft);
  max-width: var(--measure);
}
.specialties li { padding: 6px 0; border-top: 1px solid var(--line); }

/* Products */
.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.product { display: block; color: inherit; }
.product:hover { text-decoration: none; }
.plate {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  padding: 12%;
  margin-bottom: 18px;
  transition: transform 160ms ease;
}
.product:hover .plate { transform: translateY(-2px); }
.plate img { width: 100%; max-width: 300px; height: auto; }
.plate-picturesque { background: var(--plate-white); }
.plate-ranchpickup { background: var(--plate-cream); }
.product-name { display: block; font-size: 1.375rem; font-weight: 500; margin-bottom: 6px; }
.product-tagline { display: block; color: var(--muted); margin-bottom: 10px; }
.product-desc { display: block; color: var(--text-soft); margin-bottom: 14px; max-width: 46ch; }
.product-features {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 46ch;
}
.product-features li { padding: 6px 0; border-top: 1px solid var(--line); }
.product-url { display: inline-block; color: var(--link); border-bottom: 1px solid var(--line-strong); }
.product:hover .product-url { border-bottom-color: var(--link); }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.timeline li:first-child { border-top: 0; padding-top: 0; }
.year {
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.timeline p { color: var(--text-soft); max-width: 58ch; }

/* Button */
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  font-weight: 500;
}
.button:hover { text-decoration: none; border-color: var(--text); background: var(--bg-raised); }

/* Company facts */
.company-facts p { color: var(--text-soft); }
.company-facts p:first-child { color: var(--text); font-size: 1.25rem; line-height: 1.4; }

/* Footer */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 1rem;
}
.foot img { width: 22px; height: auto; opacity: 0.8; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .hero-mark { order: -1; justify-self: start; margin-bottom: 24px; }
  .hero-mark img { width: 120px; margin: 0; }
  .row { grid-template-columns: 1fr; gap: 16px; padding: 44px var(--gutter); }
  .products { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .top { padding-top: 20px; }
  .brand img { width: 160px; }
  .timeline li { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
  .specialties { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .plate { transition: none; }
  .product:hover .plate { transform: none; }
}
