:root,
[data-theme="light"] {
  --ink: #12110c;
  --muted: #3d3a32;
  --bg: #fcfbf7;
  --surface: #ffffff;
  --line: #8a8270;
  --amber: #d4a017;
  --amber-text: #6a4700;
  --on-accent: #1a1408;
  --field-veil: rgb(252 251 247 / 0.72);
  --display: "Fraunces", Georgia, serif;
  --serif: "Source Serif 4", Georgia, serif;
}

[data-theme="dark"] {
  --ink: #f4efe2;
  --muted: #c9c2ad;
  --bg: #12140f;
  --surface: #1c1f16;
  --line: #3d4334;
  --amber: #e8b84a;
  --amber-text: #f0c45c;
  --on-accent: #1a1408;
  --field-veil: rgb(18 20 15 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]),
  [data-theme="system"] {
    --ink: #f4efe2;
    --muted: #c9c2ad;
    --bg: #12140f;
    --surface: #1c1f16;
    --line: #3d4334;
    --amber: #e8b84a;
    --amber-text: #f0c45c;
    --on-accent: #1a1408;
    --field-veil: rgb(18 20 15 / 0.55);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--amber-text);
}

.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--field-veil), var(--bg) 72%),
    url("/brand/odometra-field.png") center / cover no-repeat;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
}

.theme-toggle button {
  font: inherit;
  font-size: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.theme-toggle button[aria-checked="true"] {
  background: var(--amber);
  color: var(--on-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.btn.primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--on-accent);
}

.hero {
  max-width: 40rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-mark {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.45);
}

.eyebrow {
  margin: 1.25rem 0 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--amber-text);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
}

.hero p {
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.features {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.features h2 {
  font-family: var(--display);
  font-weight: 500;
  text-align: center;
}

.lede {
  text-align: center;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem;
}

.grid h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.grid p {
  margin: 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  color: var(--muted);
}
