:root {
  --parchment: #f4f1ea;
  --linen: #e7e1d6;
  --clay-dust: #d8cfc1;
  --charcoal: #2f2a26;
  --umber: #6b4e3d;
  --oxide: #a44a3f;
  --moss: #6a7b5b;
  --ash: #a8a39a;
  --paper: rgba(244, 241, 234, 0.94);
  --surface: rgba(247, 243, 236, 0.96);
  --line: rgba(47, 42, 38, 0.14);
  --line-soft: rgba(47, 42, 38, 0.08);
  --radius-xl: 3px;
  --radius-lg: 2px;
  --radius-md: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--charcoal);
  background:
    linear-gradient(rgba(244, 241, 234, 0.94), rgba(244, 241, 234, 0.94)),
    linear-gradient(90deg, rgba(107, 78, 61, 0.025) 0, rgba(107, 78, 61, 0.025) 1px, transparent 1px, transparent 24px),
    linear-gradient(rgba(107, 78, 61, 0.02) 0, rgba(107, 78, 61, 0.02) 1px, transparent 1px, transparent 24px);
  background-size: auto, 24px 24px, 24px 24px;
}

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

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 28px auto 56px;
}

.hero,
.stats,
.search-panel,
.potter-card,
.product-card,
.split-section,
.note-panel {
  background: var(--paper);
  border: 1px solid var(--line);
}

.hero {
  padding: 28px;
  border-radius: var(--radius-xl);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand,
.hero h1,
.section-heading h2,
.split-section h2,
.note-panel h2,
.hero-panel h2,
.stats strong,
.product-content h3,
.potter-content h3,
.revenue-list h3 {
  font-family: "Cormorant Garamond", serif;
}

.brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.topbar-links {
  display: flex;
  gap: 22px;
  color: var(--umber);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.8fr;
  gap: 36px;
  margin-top: 56px;
}

.hero-copy {
  padding: 18px 0 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--umber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  font-weight: 600;
}

.catalogue-mark,
.panel-label,
.stats-label {
  margin: 0 0 14px;
  color: var(--ash);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-label {
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  max-width: 11ch;
  font-weight: 600;
}

.hero-text,
.section-heading p,
.note-panel p,
.hero-panel li,
.revenue-list p,
.potter-card p,
.product-meta,
.search-summary {
  color: var(--umber);
  line-height: 1.72;
}

.hero-text {
  max-width: 58ch;
  margin-top: 22px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button-primary {
  background: var(--charcoal);
  color: var(--parchment);
}

.button-secondary {
  background: transparent;
}

.button:hover,
.card-link:hover,
.topbar a:hover {
  color: var(--oxide);
}

.button-primary:hover {
  background: var(--umber);
  color: var(--parchment);
}

.button-secondary:hover {
  background: rgba(107, 78, 61, 0.06);
}

.hero-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  align-self: end;
  background: var(--surface);
}

.hero-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 20px 0 64px;
  padding: 0;
  border-radius: var(--radius-xl);
}

.stats article {
  padding: 20px 22px;
  background: transparent;
}

.stats article + article {
  border-left: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 600;
}

.section {
  margin-top: 72px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.split-section h2,
.note-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
}

.search-panel,
.split-section,
.note-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.panel-rule {
  height: 1px;
  margin-bottom: 18px;
  background: var(--line);
}

.search-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--umber);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
  color: var(--charcoal);
  background: rgba(244, 241, 234, 0.72);
}

.search-summary {
  margin: 16px 0 0;
  font-weight: 600;
  font-style: italic;
}

.product-grid,
.potter-grid,
.revenue-list {
  display: grid;
  gap: 22px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 26px;
}

.potter-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-card,
.potter-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.product-card {
  background: var(--surface);
}

.product-image,
.potter-image {
  min-height: 160px;
  padding: 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(216, 207, 193, 0.18), rgba(231, 225, 214, 0.06)),
    linear-gradient(90deg, rgba(107, 78, 61, 0.03) 0, rgba(107, 78, 61, 0.03) 1px, transparent 1px, transparent 16px);
  background-size: auto, 16px 16px;
}

.potter-image {
  min-height: 180px;
}

.image-badge {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.88);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalogue-id {
  color: var(--ash);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-content,
.potter-content {
  padding: 20px;
}

.product-content h3,
.potter-content h3,
.revenue-list h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.product-meta {
  margin: 0 0 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.tag {
  display: inline-flex;
  padding: 4px 0;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-link {
  color: var(--charcoal);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.potter-content p {
  margin: 0 0 18px;
}

.potter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.potter-meta span {
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 24px;
}

.revenue-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.revenue-list article {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid var(--line);
}

.note-panel {
  margin-bottom: 40px;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(244, 241, 234, 0.74);
  border: 1px dashed var(--line);
  color: var(--umber);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-grid,
  .split-section,
  .search-row,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .stats article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    margin-top: 10px;
  }

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

  .topbar-links {
    flex-wrap: wrap;
  }

  .hero,
  .search-panel,
  .split-section,
  .note-panel {
    padding: 18px;
  }
}
