:root {
  --bg: #fffdf9;
  --surface: #ffffff;
  --surface-alt: #f8f8f7;
  --ink: #222222;
  --muted: #595959;
  --line: #dddddb;
  --accent: #f1641e;
  --accent-hover: #d94f0d;
  --accent-soft: #fff2eb;
  --focus: #4d9de0;
  --shadow-soft: 0 6px 20px rgba(34, 34, 34, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 999px;
  --max-width: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -180px, #fff8f4 0%, transparent 55%),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.hero {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.topbar,
.hero-grid,
.section,
.story-layout,
.policy-grid,
.listing-grid,
.hero-stats,
.filter-bar,
.catalog-controls,
.listing-tags,
.listing-footer,
.listing-meta {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #ffd8c5;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.hero-copy h1,
.section-heading h2,
.hero-panel h2,
.listing-card h3 {
  font-family: "Crimson Pro", serif;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-link {
  color: var(--ink);
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: 0 8px 16px rgba(241, 100, 30, 0.25);
}

.button-secondary,
.button-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--surface-alt);
  box-shadow: none;
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  padding: 24px;
}

.hero-copy,
.hero-panel,
.story-card,
.listing-card,
.policy-card {
  backdrop-filter: none;
}

.hero-copy {
  padding: 8px 6px 8px;
}

.eyebrow,
.panel-label,
.story-kicker,
.policy-card p:first-child,
.listing-category,
.listing-badge,
.search-field span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6f6f6f;
}

.hero-copy h1 {
  margin: 8px 0 14px;
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.02;
  font-weight: 600;
}

.hero-text,
.story-card p,
.listing-description,
.policy-card p:last-child,
#customer-promise,
.panel-list {
  color: var(--muted);
  line-height: 1.55;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.hero-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stats dd {
  margin: 8px 0 0;
  font-size: 1.42rem;
  font-weight: 700;
}

.hero-panel {
  align-self: stretch;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  color: var(--ink);
}

.hero-panel h2 {
  margin: 8px 0 12px;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 600;
}

.panel-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.panel-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
}

.panel-card-label {
  margin: 0 0 8px;
  font-weight: 700;
}

.section {
  padding: 48px 0 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  max-width: none;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
  line-height: 1.05;
  font-weight: 600;
}

.story-layout,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.story-card,
.policy-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: none;
}

.story-card-feature {
  background: #fffaf7;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.catalog-controls {
  display: flex;
  justify-content: flex-end;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field input {
  min-width: min(300px, 100vw - 60px);
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.search-field input:focus-visible,
.button:focus-visible,
.filter-chip:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: #ffcfb8;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.listing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  border-color: #c8c8c7;
  box-shadow: var(--shadow-soft);
}

.listing-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f3f1;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--line);
}

.listing-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.listing-meta,
.listing-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.listing-card h3 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.2;
  font-weight: 700;
}

.listing-description {
  margin: 0;
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-tags span {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: #f2f2f1;
  color: #5e5e5e;
  font-size: 0.8rem;
}

.listing-pricing {
  display: grid;
  gap: 2px;
}

.listing-price {
  font-size: 1.06rem;
  font-weight: 700;
}

.listing-compare {
  color: var(--muted);
  text-decoration: line-through;
}

.policy-grid {
  margin-bottom: 20px;
}

.empty-state {
  margin: 24px 0 0;
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .story-layout,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading-row,
  .topbar,
  .listing-footer {
    align-items: start;
  }

  .section-heading-row,
  .topbar {
    flex-direction: column;
  }

  .catalog-controls {
    width: 100%;
    justify-content: stretch;
  }

  .search-field,
  .search-field input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 10px;
  }

  .hero {
    border-radius: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .story-card,
  .policy-card {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-panel,
  .story-card,
  .listing-card,
  .policy-card {
    animation: rise-in 700ms ease both;
  }

  .listing-card:nth-child(2),
  .policy-card:nth-child(2) {
    animation-delay: 90ms;
  }

  .listing-card:nth-child(3),
  .policy-card:nth-child(3) {
    animation-delay: 160ms;
  }

  .listing-card:nth-child(4) {
    animation-delay: 230ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
