/* Untrodden: the quieter, corporate sibling of AllergyNav's styles.
   Mostly ink navy and neutrals; indigo is kept for links and the sunflower
   yellow only appears in the star. */
:root {
  --ink: #0b2540;
  --text: #1d3349;
  --muted: #4a5d70;
  --bg: #f8f6f1;
  --surface: #ffffff;
  --surface-2: #efece5;
  --line: #e2ddd2;
  --accent: #4f3fcb;
  --accent-strong: #3f31a8;
  --button: #0b2540;
  --button-hover: #1b3a5c;
  --on-button: #ffffff;
  --path: #b9c2cc;
  --sun: #ffc21a;
  --sun-shade: #f0a400;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(11 37 64 / 0.06), 0 8px 24px rgb(11 37 64 / 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f6f9;
    --text: #dbe6ee;
    --muted: #a3b5c4;
    --bg: #0a1a2a;
    --surface: #102538;
    --surface-2: #0d2131;
    --line: #1f3a50;
    --accent: #9d92f5;
    --accent-strong: #bdb5fa;
    --button: #f1f6f9;
    --button-hover: #cfdbe5;
    --on-button: #0b2540;
    --path: #2e4a63;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #f1f6f9;
  --text: #dbe6ee;
  --muted: #a3b5c4;
  --bg: #0a1a2a;
  --surface: #102538;
  --surface-2: #0d2131;
  --line: #1f3a50;
  --accent: #9d92f5;
  --accent-strong: #bdb5fa;
  --button: #f1f6f9;
  --button-hover: #cfdbe5;
  --on-button: #0b2540;
  --path: #2e4a63;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 6px;
}

[id] {
  scroll-margin-top: 80px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--accent);
}

@media (max-width: 520px) {
  .header-nav a:not(:last-child) {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .hero {
    padding: 112px 0 120px;
  }
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.hero-path {
  position: absolute;
  right: 2vw;
  bottom: 0;
  width: min(56vw, 600px);
  height: auto;
  pointer-events: none;
}

.hero-path > path {
  fill: none;
  stroke: var(--path);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 0.1 22;
}

.hero-star {
  fill: var(--sun);
}

.hero-star-shade {
  fill: var(--sun-shade);
}

@media (max-width: 767px) {
  .hero-path {
    width: 90vw;
    right: -30vw;
    opacity: 0.45;
  }
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  text-wrap: balance;
}

.lede {
  margin: 22px 0 34px;
  max-width: 600px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--button);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: var(--on-button);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

/* About */
.about {
  padding: 72px 0;
}

@media (min-width: 768px) {
  .about {
    padding: 96px 0;
  }
}

.about-inner {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .about-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.about-intro p {
  margin: 16px 0 0;
}

.about-intro h2 {
  margin-bottom: 4px;
}

.founder {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 24px !important;
  color: var(--muted);
}

.founder strong {
  color: var(--ink);
}

.principles {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 14px;
}

.principles h3 {
  font-size: 1.08rem;
}

.principles p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Brands */
.brands {
  padding: 72px 0 88px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lede {
  margin: 10px 0 28px;
  color: var(--muted);
}

.brand-card,
.product-card {
  display: flex;
  gap: 20px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.brand-card:hover,
.product-card:hover {
  color: inherit;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.brand-card {
  padding: 28px;
}

.brand-card img {
  flex: none;
  border-radius: 15px;
}

.brand-card h3 {
  font-size: 1.6rem;
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-card p {
  margin: 6px 0 0;
  max-width: 620px;
}

.tag {
  margin: 0 0 4px !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* The product sits under its brand, indented to show the family tree. */
.product-card {
  position: relative;
  align-items: center;
  margin: 14px 0 0 44px;
  padding: 18px 22px;
  box-shadow: none;
}

.product-card::before {
  content: "";
  position: absolute;
  left: -26px;
  top: -16px;
  width: 18px;
  height: calc(50% + 16px);
  border-left: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  border-bottom-left-radius: 10px;
}

.product-card img {
  flex: none;
  border-radius: 11px;
}

.product-card h3 {
  font-size: 1.1rem;
}

.product-card .by {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.product-card .cta {
  margin: 0 0 0 auto;
}

@media (max-width: 640px) {
  .brand-card {
    flex-direction: column;
    padding: 22px;
  }

  .product-card {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-left: 28px;
  }

  .product-card::before {
    left: -20px;
    width: 12px;
  }

  .product-card div {
    flex: 1 1 200px;
  }

  .product-card .cta {
    margin: 0;
  }
}

.more {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Closing */
.closing {
  padding: 80px 0 88px;
  text-align: center;
}

.closing-inner p {
  max-width: 560px;
  margin: 14px auto 28px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 36px 0 56px;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 12px;
}

.legal,
.copyright {
  margin: 0;
}

.legal strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
