:root {
  --bg: #f4ebdc;
  --surface: #fff7e9;
  --surface-ink: #f2e2c9;
  --text: #211827;
  --muted: #716579;
  --line: rgba(55, 38, 61, 0.16);
  --accent: #7240a3;
  --accent-deep: #4c276f;
  --accent-soft: #eadcf4;
  --sage: #78866b;
  --warm: #b08454;
  --warm-soft: #e9d4b3;
  --white: #fffaf1;
  --shadow: 0 18px 45px rgba(45, 31, 53, 0.11);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(114, 64, 163, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.48), transparent 360px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(114, 64, 163, 0.44);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--text);
  color: var(--white);
  padding: 0.6rem 0.8rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(780px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 235, 220, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  background: url("/assets/favicon.svg") center / contain no-repeat;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.6rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.4rem, 6.5vw, 5.4rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.4rem);
  text-wrap: balance;
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  text-wrap: balance;
}

h3 {
  font-size: 1.2rem;
}

.tagline {
  margin: 1.1rem 0 0;
  color: var(--accent-deep);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 720;
  line-height: 1.2;
}

.hero-text {
  max-width: 62ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.65rem 1rem;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.button.secondary {
  background: var(--surface);
}

.button.secondary:hover {
  border-color: rgba(114, 64, 163, 0.35);
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: clamp(320px, 42vw, 460px);
  border: 1px solid rgba(55, 38, 61, 0.18);
  border-radius: 4px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(114, 64, 163, 0.04), transparent 34%),
    var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
}

#principles-heading {
  grid-column: 1 / -1;
  max-width: none;
  white-space: nowrap;
}

.band .narrow p,
.split p,
.prose p,
.prose li,
.product-hero p,
.contact-list {
  color: var(--muted);
  font-size: 1.08rem;
}

.band .narrow p:last-child,
.split p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.principle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(114, 64, 163, 0.045), transparent 42%),
    var(--white);
  padding: 1.2rem;
  box-shadow: 0 1px 0 rgba(45, 31, 53, 0.04);
}

.card h3 {
  margin-bottom: 0.65rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-panel p {
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.page-main {
  min-height: calc(100vh - 165px);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.prose {
  max-width: 760px;
}

.prose h1,
.product-hero h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.6rem, 3rem, 2.4rem);
}

.prose ul {
  margin: 1rem 0 1.75rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.product-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.product-hero > div {
  max-width: 820px;
}

.product-hero p:last-child {
  max-width: 62ch;
  margin-top: 1.3rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero,
  .section-heading,
  .contact-panel,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual img {
    max-height: 420px;
  }

  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap,
  .narrow {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    min-height: 86px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(2.8rem, 3.4rem, 3.4rem);
  }

  h2 {
    font-size: clamp(1.85rem, 2.4rem, 2.4rem);
  }

  #principles-heading {
    font-size: 1.78rem;
  }

  .tagline {
    font-size: 1.45rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    min-height: 120px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
