:root {
  --demo-bg: #f4efe8;
  --demo-surface: rgba(255, 255, 255, 0.82);
  --demo-surface-strong: #fffaf6;
  --demo-text: #1b2329;
  --demo-text-soft: #5b6670;
  --demo-line: rgba(27, 35, 41, 0.12);
  --demo-accent: #8d6f60;
  --demo-accent-strong: #6d5245;
  --demo-shadow: 0 24px 60px rgba(17, 24, 29, 0.08);
  --demo-radius-lg: 30px;
  --demo-radius-md: 20px;
  --demo-radius-sm: 14px;
  --demo-container: 1180px;
  --demo-font-body: "Manrope", sans-serif;
  --demo-font-display: "Instrument Serif", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--demo-font-body);
  color: var(--demo-text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 30%),
    linear-gradient(180deg, var(--demo-bg) 0%, color-mix(in srgb, var(--demo-bg) 90%, white) 100%);
  line-height: 1.65;
}

body.theme-luna {
  --demo-bg: #f1e8e0;
  --demo-surface: rgba(255, 250, 245, 0.84);
  --demo-surface-strong: #fff8f2;
  --demo-text: #2c201b;
  --demo-text-soft: #6f5f55;
  --demo-accent: #a27b68;
  --demo-accent-strong: #7f5f50;
}

body.theme-mila {
  --demo-bg: #f5eef1;
  --demo-surface: rgba(255, 252, 253, 0.86);
  --demo-surface-strong: #fffdfd;
  --demo-text: #24181c;
  --demo-text-soft: #6f5a63;
  --demo-accent: #a77c8e;
  --demo-accent-strong: #7f5b6a;
}

body.theme-vandermeer {
  --demo-bg: #edf3f6;
  --demo-surface: rgba(255, 255, 255, 0.88);
  --demo-surface-strong: #ffffff;
  --demo-text: #17242d;
  --demo-text-soft: #5c6972;
  --demo-accent: #24637e;
  --demo-accent-strong: #18445a;
}

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

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

.demo-container {
  width: min(calc(100% - 2rem), var(--demo-container));
  margin: 0 auto;
}

.demo-site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--demo-bg) 78%, white 22%);
  border-bottom: 1px solid var(--demo-line);
}

.demo-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
}

.demo-brand {
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.demo-nav a {
  color: var(--demo-text-soft);
  white-space: nowrap;
  font-weight: 600;
}

.demo-nav a:hover,
.demo-nav a:focus-visible {
  color: var(--demo-text);
}

.demo-button-row {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 0.9rem;
  flex-wrap: nowrap;
}

.demo-nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--demo-line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
}

.demo-nav-toggle-line {
  width: 1rem;
  height: 2px;
  background: var(--demo-text);
}

.demo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.demo-button:hover,
.demo-button:focus-visible {
  transform: translateY(-1px);
}

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

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

.demo-main {
  padding-bottom: 4rem;
}

.demo-section {
  padding: 4.5rem 0;
}

.demo-section-alt {
  background: rgba(255, 255, 255, 0.36);
}

.demo-hero {
  padding: 2rem 0 4rem;
}

.demo-hero-grid,
.demo-contact-grid,
.demo-story-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.demo-hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

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

.demo-hero-grid > * {
  min-width: 0;
}

.demo-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--demo-accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-hero h1,
.demo-section h2,
.demo-contact-card h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.demo-hero h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 8vw, 6rem);
}

.demo-section h2,
.demo-contact-card h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.demo-lead,
.demo-copy,
.demo-card p,
.demo-quote p,
.demo-contact-list li,
.demo-footer-note {
  color: var(--demo-text-soft);
}

.demo-lead {
  max-width: 42rem;
  font-size: 1.15rem;
}

.demo-surface {
  background: var(--demo-surface);
  border: 1px solid var(--demo-line);
  border-radius: var(--demo-radius-lg);
  box-shadow: var(--demo-shadow);
}

.demo-highlight-card,
.demo-card,
.demo-quote,
.demo-contact-card,
.demo-story-card {
  background: var(--demo-surface);
  border: 1px solid var(--demo-line);
  border-radius: var(--demo-radius-lg);
  box-shadow: var(--demo-shadow);
}

.demo-highlight-card,
.demo-contact-card,
.demo-story-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.demo-card,
.demo-quote {
  padding: 1.7rem;
}

.demo-list,
.demo-contact-list,
.demo-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-list {
  display: grid;
  gap: 1rem;
}

.demo-list li {
  position: relative;
  padding-left: 1.4rem;
}

.demo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--demo-accent);
}

.demo-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.demo-mini-list li {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--demo-line);
  color: var(--demo-text-soft);
  font-weight: 600;
}

.demo-grid-3,
.demo-grid-2 {
  display: grid;
  gap: 1.5rem;
}

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

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

.demo-card h3,
.demo-quote strong,
.demo-story-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.demo-price {
  display: inline-block;
  margin-bottom: 0.95rem;
  color: var(--demo-accent-strong);
  font-size: 1rem;
  font-weight: 800;
}

.demo-card h3,
.demo-story-card h3 {
  font-size: 1.3rem;
}

.demo-card-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--demo-line);
  color: var(--demo-accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-quote {
  position: relative;
}

.demo-quote::before {
  content: "“";
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: rgba(0, 0, 0, 0.08);
  font-family: var(--demo-font-display);
  font-size: 5rem;
  line-height: 1;
}

.demo-quote footer {
  margin-top: 1rem;
  color: var(--demo-text);
  font-weight: 700;
}

.demo-contact-list {
  display: grid;
  gap: 0.8rem;
}

.demo-contact-list li strong {
  color: var(--demo-text);
}

.demo-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--demo-line);
}

.demo-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.demo-footer-note {
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .demo-hero-grid,
  .demo-story-grid,
  .demo-contact-grid,
  .demo-grid-3,
  .demo-grid-2 {
    grid-template-columns: 1fr;
  }

  .demo-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .demo-nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .demo-nav,
  .demo-button-row {
    display: none;
  }

  .demo-site-header.nav-open .demo-header-inner {
    grid-template-columns: 1fr auto;
  }

  .demo-site-header.nav-open .demo-nav,
  .demo-site-header.nav-open .demo-button-row {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .demo-site-header.nav-open .demo-nav {
    padding-top: 1rem;
  }

  .demo-site-header.nav-open .demo-button-row {
    padding: 1rem 0 1.4rem;
  }
}

@media (max-width: 720px) {
  .demo-section {
    padding: 3.5rem 0;
  }

  .demo-hero {
    padding: 1.25rem 0 3rem;
  }

  .demo-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .demo-section h2,
  .demo-contact-card h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .demo-lead {
    font-size: 1.02rem;
  }

  .demo-card,
  .demo-quote,
  .demo-highlight-card,
  .demo-contact-card,
  .demo-story-card {
    border-radius: 22px;
  }

  .demo-button {
    width: 100%;
  }

  .demo-footer-inner {
    align-items: stretch;
  }
}
