:root {
  --bg: #f7f1e8;
  --surface: rgba(255, 252, 247, 0.92);
  --surface-strong: #fffaf2;
  --surface-alt: #efe4d4;
  --text: #1f1c18;
  --muted: #665d54;
  --line: rgba(31, 28, 24, 0.1);
  --sage: #5f7b60;
  --sage-dark: #3f5c43;
  --gold: #b7904f;
  --gold-soft: rgba(183, 144, 79, 0.14);
  --shadow: 0 20px 60px rgba(54, 42, 28, 0.12);
  --hero-text: #fbf7f0;
}

html[data-theme="dark"] {
  --bg: #141310;
  --surface: rgba(28, 25, 21, 0.94);
  --surface-strong: #1d1a16;
  --surface-alt: #25211d;
  --text: #f7f0e8;
  --muted: #c7b7a6;
  --line: rgba(255, 255, 255, 0.08);
  --sage: #809a7c;
  --sage-dark: #5b755d;
  --gold: #d3b06c;
  --gold-soft: rgba(211, 176, 108, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --hero-text: #f8f3eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
summary {
  font: inherit;
}

.page {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 10px 18px 0;
  font-size: 13px;
  color: var(--muted);
}

.nav {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(145deg, var(--sage), var(--sage-dark));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
  flex-wrap: wrap;
}

.navlinks a,
.navlinks summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.navlinks a.is-active,
.navlinks a:hover,
.navlinks summary:hover {
  color: var(--text);
}

details.menu {
  position: relative;
}

details.menu summary {
  list-style: none;
  cursor: pointer;
}

details.menu summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.menu-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
}

.menu-panel a:hover {
  background: var(--gold-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: opacity 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.theme-toggle {
  width: 44px;
  padding: 0;
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.primary {
  background: var(--sage);
  color: #fff;
}

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

.button:hover {
  opacity: 0.93;
}

.hero {
  margin-top: 14px;
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  color: var(--hero-text);
  background-size: cover;
  background-position: center;
}

.hero-inner {
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: end;
  padding: clamp(28px, 5vw, 72px);
}

.hero-copy {
  max-width: 760px;
  padding-bottom: clamp(10px, 1vw, 20px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 249, 240, 0.78);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255, 249, 240, 0.46);
}

h1,
h2,
h3,
.serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

h1 {
  margin: 12px 0 16px;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hero-subhead {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
  color: rgba(255, 249, 240, 0.9);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 249, 240, 0.18);
  background: rgba(255, 249, 240, 0.08);
  color: rgba(255, 249, 240, 0.92);
  font-size: 13px;
  backdrop-filter: blur(10px);
}

main section {
  margin-top: 24px;
}

.section {
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.95;
}

.section-copy,
.body-copy p,
.body-copy li {
  color: var(--muted);
  line-height: 1.82;
  font-size: 16px;
}

.body-copy {
  display: grid;
  gap: 18px;
}

.body-copy p,
.body-copy ul {
  margin: 0;
}

.body-copy ul {
  padding-left: 20px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.media-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  height: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(49, 39, 26, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 30px;
}

.stack {
  display: grid;
  gap: 16px;
}

.checkin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card,
.checkin-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 14px 36px rgba(49, 39, 26, 0.06);
}

.mini-card {
  padding: 18px;
}

.mini-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.02;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mini-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.checkin-card {
  padding: 22px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-alt));
}

.checkin-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.field select {
  min-height: 50px;
  width: 100%;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.checkin-button {
  width: 100%;
  margin-top: 6px;
}

.checkin-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkin-result h3 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 0.96;
}

.checkin-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.result-list li {
  padding-left: 16px;
  position: relative;
  color: var(--muted);
  line-height: 1.6;
}

.result-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sage);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.product h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1;
}

.product p,
.product ul {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.catalog-meta {
  color: var(--muted);
  line-height: 1.6;
}

.catalog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-filter {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  cursor: pointer;
}

.catalog-filter.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.catalog-empty {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.product-dynamic {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--sage-dark);
}

.product-summary {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.product-copy {
  display: grid;
  gap: 12px;
}

.product-copy p {
  margin: 0;
}

.product-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.testimonial {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(31, 28, 24, 0.1), rgba(31, 28, 24, 0.34));
  color: #fff;
}

.testimonial-inner {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 6vw, 78px);
}

.quote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  font-style: italic;
}

.quote-attrib {
  display: block;
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.footer {
  margin-top: 24px;
  padding: 34px 28px;
  border-radius: 28px;
  background: var(--sage-dark);
  color: #f6f1ea;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}

.footer h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.footer p,
.footer a {
  color: rgba(246, 241, 234, 0.88);
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(246, 241, 234, 0.72);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .nav {
    border-radius: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navlinks {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .split,
  .footer-grid,
  .card-grid,
  .product-grid,
  .checkin-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100%, calc(100% - 16px));
  }

  .topbar {
    padding-inline: 8px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .nav {
    position: static;
    top: auto;
    padding: 12px;
    gap: 10px;
  }

  .brand {
    font-size: 24px;
    min-width: 0;
  }

  .section,
  .testimonial,
  .hero,
  .footer {
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(44px, 16vw, 74px);
  }
}
