:root {
  color-scheme: light;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --surface-0: oklch(97.4% 0.008 120);
  --surface-1: oklch(94.8% 0.012 120);
  --surface-2: oklch(89.2% 0.018 120);
  --ink-strong: oklch(18.5% 0.012 140);
  --ink-soft: oklch(38% 0.018 140);
  --line: oklch(77% 0.02 140);
  --accent: oklch(56% 0.12 148);
  --accent-muted: oklch(90% 0.03 148);
  --shadow-soft: 0 24px 70px -36px oklch(14% 0.01 140 / 0.18);
  --page-max: 84rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-gap: clamp(4.5rem, 11vw, 10rem);
  --radius: 1.5rem;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: oklch(15.5% 0.012 150);
  --surface-1: oklch(19.2% 0.014 150);
  --surface-2: oklch(24.5% 0.018 150);
  --ink-strong: oklch(93.5% 0.008 120);
  --ink-soft: oklch(76% 0.016 120);
  --line: oklch(34% 0.024 150);
  --accent: oklch(72% 0.11 148);
  --accent-muted: oklch(22% 0.028 148);
  --shadow-soft: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-strong);
  background:
    radial-gradient(circle at top left, color-mix(in oklch, var(--accent) 14%, transparent) 0, transparent 34rem),
    radial-gradient(circle at top right, color-mix(in oklch, var(--accent) 9%, transparent) 0, transparent 24rem),
    linear-gradient(180deg, var(--surface-1) 0%, var(--surface-0) 24%, var(--surface-0) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--ink-strong);
  color: var(--surface-0);
  transform: translateY(-140%);
  transition: transform 180ms var(--ease-smooth);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--accent);
}

::selection {
  color: var(--surface-0);
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-shell {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: clamp(1.1rem, 2vw, 1.75rem) var(--gutter) clamp(4rem, 6vw, 5.5rem);
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.35rem 1.4rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
}

.brand__eyebrow,
.section-kicker,
.product-card__state,
.product-card__eyebrow,
.theme-toggle__label,
.locale-switch__link,
.brand__name {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand__eyebrow,
.section-kicker,
.product-card__state,
.product-card__eyebrow,
.theme-toggle__label,
.locale-switch__link {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--ink-soft);
}

.brand__name {
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink-strong);
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.locale-switch,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface-0) 86%, var(--surface-1));
  backdrop-filter: blur(14px);
}

.locale-switch {
  padding: 0.22rem;
  border-radius: 999px;
}

.locale-switch__link {
  border-radius: 999px;
  padding: 0.7rem 0.85rem;
  transition:
    background-color 180ms var(--ease-smooth),
    color 180ms var(--ease-smooth);
}

.locale-switch__link.is-active {
  color: var(--ink-strong);
  background: color-mix(in oklch, var(--accent) 14%, var(--surface-0));
}

.theme-toggle {
  gap: 0.8rem;
  padding: 0.3rem 0.45rem 0.3rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-strong);
  cursor: pointer;
  transition:
    transform 180ms var(--ease-smooth),
    border-color 180ms var(--ease-smooth),
    background-color 180ms var(--ease-smooth);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  min-height: 2rem;
  padding-inline: 0.8rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 14%, var(--surface-0));
  font-size: 0.93rem;
}

main {
  display: grid;
  gap: var(--section-gap);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.hero {
  padding-block: clamp(2rem, 6vw, 7rem) clamp(2rem, 4vw, 4rem);
  border-top: 1px solid color-mix(in oklch, var(--line) 52%, transparent);
}

.hero__lead h1,
.section-heading h2,
.product-card h3,
.contact-link {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero__lead h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3.6rem, 8vw, 8.5rem);
  line-height: 0.94;
}

.hero__lead h1 span {
  display: block;
  margin-top: 1.25rem;
  max-width: 16ch;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.hero__aside {
  padding-top: clamp(0.6rem, 2vw, 1.8rem);
}

.hero__aside p,
.manifesto__body p,
.product-card__content p,
.products__teaser p,
.contact__body p {
  max-width: 38ch;
}

.hero__actions,
.contact__body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.button,
.product-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}

.button {
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  transition:
    transform 180ms var(--ease-smooth),
    background-color 180ms var(--ease-smooth),
    color 180ms var(--ease-smooth),
    border-color 180ms var(--ease-smooth);
}

.button:hover,
.product-link:hover,
.contact-link:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--ink-strong);
  color: var(--surface-0);
}

.button--ghost {
  border: 1px solid var(--line);
  color: var(--ink-strong);
}

.manifesto,
.products,
.contact {
  padding-top: clamp(1.4rem, 2vw, 2rem);
  border-top: 1px solid color-mix(in oklch, var(--line) 62%, transparent);
}

.section-heading {
  display: grid;
  gap: 0.75rem;
}

.section-heading h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.35rem, 4.8vw, 4.4rem);
  line-height: 0.98;
}

.manifesto__body,
.products__teaser,
.contact__body {
  display: grid;
  gap: 1.1rem;
}

.manifesto__body {
  grid-column: 2;
}

.manifesto__notes {
  display: grid;
  gap: 0.8rem;
  grid-column: 1;
  margin-top: clamp(-5rem, -8vw, -2rem);
  max-width: 22rem;
}

.manifesto__notes p {
  margin: 0;
  padding-block: 0.85rem;
  border-top: 1px solid color-mix(in oklch, var(--line) 68%, transparent);
  color: var(--ink-soft);
}

.product-card {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem 2rem;
  grid-column: 1 / span 2;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  border: 1px solid color-mix(in oklch, var(--line) 68%, transparent);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--surface-0) 86%, transparent), color-mix(in oklch, var(--surface-0) 94%, var(--surface-1))),
    color-mix(in oklch, var(--accent) 3%, var(--surface-0));
  box-shadow: var(--shadow-soft);
}

.product-card__meta {
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

.product-card__logo {
  width: clamp(10rem, 16vw, 13rem);
  height: auto;
  margin-bottom: 0.55rem;
}

.product-card h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.product-card__eyebrow {
  margin: 0.25rem 0 0;
}

.product-card__content {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.product-link,
.contact-link {
  justify-self: start;
  position: relative;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.product-link::after,
.contact-link::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.12em;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 220ms var(--ease-smooth);
}

.product-link:hover::after,
.product-link:focus-visible::after,
.contact-link:hover::after,
.contact-link:focus-visible::after {
  transform: scaleX(0.72);
}

.products__teaser {
  grid-column: 2;
}

.contact__body {
  grid-column: 2;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 56rem) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header__controls {
    justify-content: space-between;
  }

  .section-grid,
  .product-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__lead h1,
  .section-heading h2 {
    max-width: none;
  }

  .manifesto__body,
  .manifesto__notes,
  .products__teaser,
  .contact__body,
  .product-card {
    grid-column: auto;
    margin-top: 0;
  }
}

@media (max-width: 38rem) {
  body {
    background:
      radial-gradient(circle at top left, color-mix(in oklch, var(--accent) 12%, transparent) 0, transparent 18rem),
      linear-gradient(180deg, var(--surface-1) 0%, var(--surface-0) 20%, var(--surface-0) 100%);
  }

  .site-header__controls,
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .locale-switch,
  .theme-toggle,
  .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
