:root {
  color-scheme: light dark;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --line-height: 1.6;
  --max-width: 72rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius: 0.5rem;
  --focus-width: 3px;
  --focus-offset: 2px;

  --color-bg: #f7f5f2;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #3d3d3d;
  --color-accent: #8b3a1f;
  --color-accent-hover: #6e2e18;
  --color-border: #d4cfc7;
  --color-focus: #0b5cab;
  --shadow-soft: 0 1px 3px rgb(26 26 26 / 8%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-surface: #1c1c1c;
    --color-text: #f2f2f2;
    --color-text-muted: #c8c8c8;
    --color-accent: #e08a6a;
    --color-accent-hover: #f0a484;
    --color-border: #3a3a3a;
    --color-focus: #6eb6ff;
    --shadow-soft: 0 1px 3px rgb(0 0 0 / 35%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  line-height: var(--line-height);
  background: var(--color-bg);
  color: var(--color-text);
}

@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;
  }
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: var(--space-md);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
}

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

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

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

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}

.brand__lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand__lockup:hover .brand__name {
  color: var(--color-accent);
}

.brand__mark {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

.brand__legal {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: var(--space-xs) 0;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg);
}

.hero,
.content-section {
  scroll-margin-top: 5.5rem;
}

.hero {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.content-section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.content-section:last-of-type {
  border-bottom: none;
  margin-bottom: var(--space-lg);
}

.content-section h2 {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

.content-section p {
  margin: 0 0 var(--space-md);
  max-width: 42rem;
  color: var(--color-text-muted);
}

.feature-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 42rem;
  color: var(--color-text-muted);
}

.feature-list li {
  margin-bottom: var(--space-xs);
}

.feature-list li::marker {
  color: var(--color-accent);
}

.contact-actions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-actions li {
  margin-bottom: var(--space-sm);
}

.contact-actions a {
  font-weight: 600;
  text-decoration: none;
}

.contact-actions a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-text-muted);
}

.site-footer p {
  margin: 0;
}

@media (min-width: 48rem) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav__list {
    justify-content: flex-end;
  }
}
