:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --surface: #fffaf4;
  --text: #252525;
  --muted: #6d6760;
  --dark: #1f2933;
  --dark-text: #f5eee5;
  --line: rgba(37, 37, 37, 0.16);
  --line-dark: rgba(245, 238, 229, 0.18);
  --accent: #b8874e;
  --accent-2: #708d81;
  --hero-shade: rgba(21, 26, 31, 0.62);
  --radius: 6px;
  --shadow: 0 22px 60px rgba(25, 29, 35, 0.18);
}

body.theme-sage {
  --bg: #eef3ef;
  --surface: #fbfffc;
  --text: #24312c;
  --muted: #607067;
  --dark: #22352f;
  --dark-text: #eef7f0;
  --line: rgba(36, 49, 44, 0.16);
  --line-dark: rgba(238, 247, 240, 0.2);
  --accent: #7ea58c;
  --accent-2: #c7a161;
  --hero-shade: rgba(28, 45, 38, 0.62);
}

body.theme-night {
  color-scheme: dark;
  --bg: #111827;
  --surface: #1b2430;
  --text: #f3efe8;
  --muted: #aeb6bf;
  --dark: #090f17;
  --dark-text: #f3efe8;
  --line: rgba(243, 239, 232, 0.16);
  --line-dark: rgba(243, 239, 232, 0.2);
  --accent: #a8b8c9;
  --accent-2: #d4a55d;
  --hero-shade: rgba(7, 10, 15, 0.72);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

body.theme-clay {
  --bg: #f5eee9;
  --surface: #fffaf6;
  --text: #372b26;
  --muted: #755f54;
  --dark: #3d2c26;
  --dark-text: #fff8f2;
  --line: rgba(55, 43, 38, 0.16);
  --line-dark: rgba(255, 248, 242, 0.2);
  --accent: #bf735f;
  --accent-2: #6d8979;
  --hero-shade: rgba(60, 42, 34, 0.62);
}

body.theme-ink {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #172033;
  --muted: #627085;
  --dark: #162133;
  --dark-text: #f2f6fb;
  --line: rgba(23, 32, 51, 0.16);
  --line-dark: rgba(242, 246, 251, 0.2);
  --accent: #5275a6;
  --accent-2: #c0a15c;
  --hero-shade: rgba(17, 27, 44, 0.64);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  margin: 0;
}

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

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

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(18px, 4vw, 48px);
}

.topbar {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(210px, 1fr) auto minmax(160px, auto);
  left: 0;
  padding: 14px clamp(18px, 4vw, 44px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-mark {
  border: 2px solid var(--accent);
  display: inline-block;
  height: 38px;
  position: relative;
  width: 28px;
}

.brand-mark::before,
.brand-mark::after {
  background: var(--accent);
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand-mark::before {
  height: 22px;
  width: 2px;
}

.brand-mark::after {
  height: 2px;
  width: 16px;
}

.brand strong,
.footer strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2vw, 28px);
}

.nav a,
.phone-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav a:hover,
.phone-link:hover {
  color: var(--accent);
}

.phone-link {
  justify-self: end;
}

.palette-bar {
  align-items: center;
  background: var(--dark);
  bottom: 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 6px;
  left: 50%;
  padding: 8px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 30;
}

.palette-bar button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--dark-text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
}

.palette-bar button.is-active,
.palette-bar button:hover {
  border-color: var(--accent);
}

.swatch {
  border: 1px solid rgba(255, 255, 255, 0.48);
  display: inline-block;
  height: 14px;
  width: 14px;
}

.swatch-stone {
  background: #b8874e;
}

.swatch-sage {
  background: #7ea58c;
}

.swatch-night {
  background: #a8b8c9;
}

.swatch-clay {
  background: #bf735f;
}

.swatch-ink {
  background: #5275a6;
}

.hero {
  color: var(--dark-text);
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-media {
  background-image:
    linear-gradient(90deg, var(--hero-shade), rgba(0, 0, 0, 0.18)),
    url("public/assets/hero-cross.png");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.hero-content {
  min-height: calc(92vh - 132px);
  padding-bottom: 96px;
  padding-top: clamp(96px, 15vw, 190px);
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1,
.intro h2,
.section-head h2,
.audience h2,
.process h2,
.contact h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  max-width: 920px;
}

.hero-copy {
  color: color-mix(in srgb, var(--dark-text) 78%, transparent);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  margin: 28px 0 0;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.04em;
  min-height: 48px;
  padding: 0 18px;
  text-transform: uppercase;
}

.button-main {
  background: var(--accent);
  color: #121212;
}

.button-ghost {
  border-color: color-mix(in srgb, var(--dark-text) 38%, transparent);
  color: var(--dark-text);
}

.hero-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  bottom: 0;
  color: var(--text);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.hero-strip div {
  border-right: 1px solid var(--line);
  min-height: 116px;
  padding: 24px clamp(18px, 5vw, 46px);
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.hero-strip span {
  color: var(--muted);
  display: block;
  line-height: 1.5;
  margin-top: 8px;
}

.section-soft,
.catalog,
.process {
  padding: clamp(76px, 10vw, 132px) 0;
}

.intro-grid {
  display: grid;
  gap: clamp(34px, 7vw, 86px);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
}

.intro h2,
.section-head h2,
.audience h2,
.process h2,
.contact h2 {
  font-size: clamp(36px, 5.6vw, 70px);
  max-width: 780px;
}

.intro-copy {
  border-left: 3px solid var(--accent);
  padding-left: clamp(22px, 4vw, 42px);
}

.intro-copy p,
.audience p,
.process p,
.contact p,
.product-line p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  margin: 0;
}

.intro-copy p + p {
  margin-top: 18px;
}

.section-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  padding-bottom: 34px;
}

.product-line {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  padding: clamp(34px, 6vw, 76px) 0;
}

.product-line--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
}

.product-line--reverse figure {
  order: 2;
}

.product-line figure {
  aspect-ratio: 1.05;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 0;
  overflow: hidden;
}

.product-line img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-line span,
.timeline span,
.audience article span {
  color: var(--accent);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.product-line h3,
.audience h3,
.timeline h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 18px;
}

.audience,
.contact {
  background: var(--dark);
  color: var(--dark-text);
  padding: clamp(76px, 10vw, 132px) 0;
}

.audience-grid {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(240px, 0.7fr));
}

.audience article {
  border-left: 1px solid var(--line-dark);
  padding-left: clamp(22px, 3vw, 38px);
}

.audience p,
.contact p {
  color: color-mix(in srgb, var(--dark-text) 70%, transparent);
}

.process-grid {
  align-items: start;
  display: grid;
  gap: clamp(34px, 8vw, 96px);
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
}

.timeline {
  border-left: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(24px, 4vw, 46px);
}

.timeline li {
  display: grid;
  gap: 18px;
  grid-template-columns: 64px 1fr;
  padding: 0 0 42px;
  position: relative;
}

.timeline li::before {
  background: var(--accent);
  content: "";
  height: 11px;
  left: calc(clamp(24px, 4vw, 46px) * -1 - 6px);
  position: absolute;
  top: 6px;
  width: 11px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline h3 {
  font-size: clamp(26px, 3.4vw, 42px);
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: clamp(34px, 7vw, 80px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
}

.contact-card {
  border-left: 1px solid var(--line-dark);
  display: grid;
  font-style: normal;
  gap: 18px;
  padding-left: clamp(24px, 4vw, 46px);
}

.contact-card a {
  color: var(--dark-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.contact-card span {
  color: color-mix(in srgb, var(--dark-text) 66%, transparent);
  line-height: 1.55;
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 28px 0 96px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.footer span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .phone-link {
    justify-self: start;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 720px;
  }

  .hero-strip,
  .intro-grid,
  .product-line,
  .product-line--reverse,
  .audience-grid,
  .process-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    position: relative;
  }

  .product-line--reverse figure {
    order: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: relative;
  }

  .palette-bar {
    bottom: 10px;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
  }

  .palette-bar button {
    flex: 0 0 auto;
  }

  .hero-content {
    min-height: 620px;
    padding-top: 72px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-strip div {
    border-right: 0;
    min-height: 0;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .product-line figure {
    aspect-ratio: 1.25;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .timeline li::before {
    left: -28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
