:root {
  --bg: #f6f0e7;
  --bg-2: #efe4d4;
  --panel: rgba(255, 250, 244, 0.72);
  --panel-strong: #fff8f0;
  --line: rgba(94, 68, 42, 0.16);
  --text: #24170f;
  --muted: #735945;
  --accent: #ae4d2b;
  --accent-2: #29493d;
  --shadow: 0 24px 80px rgba(53, 28, 10, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --body: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 141, 90, 0.2), transparent 28%),
    radial-gradient(circle at right 20%, rgba(41, 73, 61, 0.16), transparent 24%),
    linear-gradient(180deg, #f9f4ee 0%, var(--bg) 40%, #f2e7d7 100%);
}

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

button,
input,
a {
  font: inherit;
}

.page-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.hero,
.section,
.footer {
  position: relative;
}

.hero {
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.96), rgba(248, 237, 221, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4));
  box-shadow: var(--shadow);
}

.topbar,
.hero-grid,
.section,
.feature-band,
.footer {
  backdrop-filter: blur(12px);
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #20150f, #764c2d);
  color: #fff7ef;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
}

h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

h3 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.catalog-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.catalog-link {
  padding: 12px 18px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}

.catalog-link:hover,
.button:hover,
.archive-card:hover,
.collection-card:hover {
  transform: translateY(-2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  margin-top: 36px;
}

.hero-copy {
  padding: 24px 8px 24px 0;
}

.hero-text,
.feature-copy p,
.archive-copy p,
.footer p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

.button {
  padding: 14px 22px;
}

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

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.46);
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.hero-gallery-card,
.collection-card,
.archive-card,
.stat-card,
.footer {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-gallery-card {
  position: relative;
  min-height: 220px;
  padding: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.85), rgba(246, 235, 220, 0.72));
}

.hero-gallery-card:nth-child(3n + 1) {
  transform: translateY(18px);
}

.hero-gallery-card:nth-child(3n + 2) {
  transform: translateY(-10px);
}

.hero-gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
}

.hero-gallery-card strong,
.collection-card strong,
.archive-card strong,
.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1rem;
}

.hero-gallery-card span,
.collection-card span,
.archive-meta,
.stat-card span {
  color: var(--muted);
}

.section {
  margin-top: 26px;
  padding: 28px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.82), rgba(247, 236, 223, 0.75));
}

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

.collection-grid,
.archive-grid,
.feature-stats {
  display: grid;
  gap: 18px;
}

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

.collection-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel);
}

.collection-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 20px;
}

.collection-card p,
.archive-card p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.feature-copy,
.stat-card {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(36, 23, 15, 0.96), rgba(78, 49, 32, 0.9));
  color: #fff4e8;
}

.feature-copy p {
  color: rgba(255, 241, 227, 0.82);
}

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

.stat-card {
  min-height: 176px;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.88), rgba(245, 231, 216, 0.84));
  color: var(--text);
}

.stat-card em {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.archive-heading {
  align-items: center;
}

.search {
  display: grid;
  gap: 8px;
  min-width: min(100%, 300px);
  color: var(--muted);
}

.search input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

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

.archive-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.78);
  cursor: pointer;
  text-align: left;
}

.archive-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.archive-card p {
  margin: 12px 0 0;
}

.archive-meta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(34, 22, 14, 0.96), rgba(61, 36, 22, 0.94));
  color: #fff5ea;
}

.footer p {
  margin-top: 6px;
  color: rgba(255, 240, 224, 0.74);
}

.product-modal {
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 18px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 32px 100px rgba(22, 10, 4, 0.28);
  background: linear-gradient(180deg, #fff8f0, #f3e5d4);
}

.product-modal::backdrop {
  background: rgba(19, 12, 8, 0.58);
  backdrop-filter: blur(6px);
}

.modal-close {
  display: inline-flex;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  margin-top: 12px;
}

.modal-visual {
  display: grid;
  gap: 12px;
}

.modal-visual img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.modal-copy {
  padding: 6px;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-copy .button {
  margin-top: 18px;
}

@media (max-width: 1120px) {
  .hero-grid,
  .feature-band,
  .modal-layout,
  .footer,
  .collection-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 10px;
  }

  .hero,
  .section,
  .footer,
  .product-modal {
    border-radius: 24px;
    padding: 18px;
  }

  .topbar,
  .section-heading,
  .archive-heading,
  .hero-actions,
  .footer,
  .hero-grid,
  .feature-band,
  .feature-stats,
  .collection-grid,
  .archive-grid,
  .modal-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar,
  .section-heading,
  .archive-heading {
    align-items: start;
  }

  h2 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .hero-gallery-card:nth-child(3n + 1),
  .hero-gallery-card:nth-child(3n + 2) {
    transform: none;
  }
}
