/* ─────────────────────────────────────────────────────────────────
   Auto Shift Media — corporate design system

   Editorial / architectural feel: warm off-white canvas, deep charcoal
   text, copper accent for restraint. Serif display ("Source Serif 4")
   pairs with a clean sans ("Inter") for body. Generous vertical
   rhythm (96-128px between sections), no hero gradients, no stock
   imagery — typography and grid carry the trust signal.

   Deliberately distinct from Pitlane (stone + blue + Geist) so the
   parent-company identity reads as its own thing.
   ───────────────────────────────────────────────────────────────── */

:root {
  /* Surface */
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-soft: #f3f1e9;

  /* Text */
  --text: #1a1a1a;
  --text-soft: #4a4843;
  --text-muted: #8b8881;

  /* Borders */
  --border: #e6e3d8;
  --border-strong: #b8b5a8;

  /* Accent — warm copper */
  --accent: #a8552e;
  --accent-deep: #8a431f;
  --accent-soft: #f4e8df;

  /* Typography */
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --max-prose: 680px;
  --max-content: 1080px;
  --rhythm-section: 112px;
  --rhythm-section-mobile: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip-link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration: underline; }

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

::selection { background: var(--accent-soft); color: var(--accent-deep); }

/* ───── Layout helpers ───── */

.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 720px) {
  .container { padding: 0 40px; }
}

.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
}
.prose p { color: var(--text-soft); }

/* ───── Site header ───── */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background-color: rgba(250, 249, 245, 0.92);
}

.site-header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 720px) {
  .site-header-inner { padding: 22px 40px; }
}

.brand {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--text);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  /* The "shift" — a small wedge subtraction. Suggests motion without
     being literal/cheesy. Geometric, abstract, scales as a favicon. */
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.site-nav {
  display: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 720px) {
  .site-nav { display: flex; }
}
.site-nav a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.is-current { color: var(--text); font-weight: 600; }

/* Mobile menu */
.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}
@media (min-width: 720px) {
  .mobile-menu-button { display: none; }
}

/* ───── Type scale ───── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.h-display {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 24px;
}

.h-section {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 20px;
}

.h-sub {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 12px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 32px;
  max-width: 580px;
}

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

ul, ol { color: var(--text-soft); padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 10px; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 64px 0;
}

/* ───── Hero ───── */

.hero {
  padding: 96px 0 80px;
}
@media (min-width: 720px) {
  .hero { padding: 128px 0 96px; }
}

/* ───── Quick facts strip ───── */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0 0;
}
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); padding: 40px 0; }
}
.fact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.fact-value {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ───── Section ───── */

.section {
  padding: var(--rhythm-section-mobile) 0;
}
@media (min-width: 720px) {
  .section { padding: var(--rhythm-section) 0; }
}

.section-soft {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ───── Product card ───── */

.product-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: 1fr; max-width: 720px; }
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.product:hover {
  border-color: var(--border-strong);
  text-decoration: none;
}
.product:hover .product-arrow { transform: translateX(4px); }

.product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.product-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: #16a34a;
  border-radius: 50%;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}

.product-desc {
  color: var(--text-soft);
  margin: 0 0 20px;
  max-width: 520px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.product-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

/* ───── Buttons ───── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--bg);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

/* ───── Inline link with arrow ───── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}
.link-arrow:hover .arrow { transform: translateX(3px); }
.arrow { display: inline-block; transition: transform 0.18s ease; }

/* ───── Two-column blocks (about / values) ───── */

.two-col {
  display: grid;
  gap: 48px;
}
@media (min-width: 920px) {
  .two-col { grid-template-columns: 1fr 2fr; gap: 80px; }
}

.values {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .values { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
}
.value-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.value-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.value-body {
  color: var(--text-soft);
  font-size: 15px;
}

/* ───── Definition list (contact, facts) ───── */

.dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}
@media (min-width: 600px) {
  .dl { grid-template-columns: 180px 1fr; row-gap: 16px; }
}
.dl dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 4px;
}
.dl dd {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 15px;
}
@media (min-width: 600px) {
  .dl dd { margin-bottom: 0; }
}

/* ───── Footer ───── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 64px 0 40px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}
.footer-tag {
  color: var(--text-soft);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; color: var(--text-soft); }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--text); text-decoration: underline; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
@media (min-width: 720px) {
  .footer-meta { flex-direction: row; justify-content: space-between; }
}

/* ───── Mobile nav drawer (lightweight, no JS framework) ───── */

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  padding: 24px;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-drawer-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer-nav a {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.012em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

/* ───── Privacy / Terms (legal prose) ───── */

.legal {
  padding: 96px 0;
}
.legal-prose {
  max-width: var(--max-prose);
  margin: 0 auto;
}
.legal-prose h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 48px 0 16px;
}
.legal-prose h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.legal-prose p, .legal-prose li {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-prose strong { color: var(--text); font-weight: 600; }
.legal-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
