:root {
  color-scheme: light dark;
  --bg: #f5f1e8;
  --panel: #fffaf0;
  --panel-strong: #f0e2c5;
  --text: #1f1d19;
  --muted: #6b6255;
  --line: rgba(31, 29, 25, 0.16);
  --accent: #8a4b2a;
  --accent-dark: #5b301d;
  --shadow: 0 24px 70px rgba(37, 28, 18, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(138, 75, 42, 0.18), transparent 34rem),
    linear-gradient(135deg, var(--bg), #ebe1cf 55%, #d8c7ab);
  color: var(--text);
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 250, 240, 0.92), rgba(240, 226, 197, 0.78));
  box-shadow: var(--shadow);
}

.eyebrow,
.card-topline {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.intro {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.section {
  margin-top: 34px;
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 430px;
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.5;
}

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

.card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 14px 40px rgba(37, 28, 18, 0.08);
}

.card.collection {
  background: linear-gradient(145deg, rgba(255, 250, 240, 0.94), rgba(235, 211, 170, 0.9));
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--panel);
  font-weight: 800;
  text-decoration: none;
}

.card a:hover,
.card a:focus-visible {
  background: var(--accent);
  outline: none;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1160px);
    padding-top: 20px;
  }

  .hero {
    border-radius: 24px;
  }

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

  .card {
    min-height: 220px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120d;
    --panel: #241b12;
    --panel-strong: #382717;
    --text: #fff4df;
    --muted: #cbb99f;
    --line: rgba(255, 244, 223, 0.16);
    --accent: #d18652;
    --accent-dark: #f0ba87;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(209, 134, 82, 0.16), transparent 34rem),
      linear-gradient(135deg, var(--bg), #21170f 55%, #2c2117);
  }

  .hero,
  .card {
    background: rgba(36, 27, 18, 0.82);
  }

  .card.collection {
    background: linear-gradient(145deg, rgba(55, 39, 23, 0.96), rgba(78, 48, 27, 0.9));
  }

  .card a {
    background: var(--text);
    color: #1f1d19;
  }
}
