:root {
  --purple: #463075;
  --purple-dark: #2d1d52;
  --lilac: #9581bc;
  --lilac-soft: #e9e3f1;
  --cream: #f9ead7;
  --cream-soft: #fff9f1;
  --white: #ffffff;
  --ink: #292331;
  --muted: #6a6470;
  --line: #ded7e4;
  --max-width: 1180px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 20px 48px rgba(45, 29, 82, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: "Lato", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-heart {
  font-size: 1rem;
  line-height: 1;
}

.header-link {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(70, 48, 117, 0.45);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--purple);
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.25rem, 11vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.7rem, 5.5vw, 2.3rem);
  line-height: 1;
}

p {
  margin: 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--cream);
}

.hero {
  display: grid;
  gap: 44px;
  align-items: center;
  min-height: calc(100svh - 78px);
  padding-block: 52px 70px;
}

.hero-lead {
  max-width: 630px;
  margin-top: 24px;
  color: #514a57;
  font-size: clamp(1.08rem, 4.2vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  margin-top: 30px;
}

.hero-actions p {
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-actions p span {
  margin-inline: 3px;
  color: var(--lilac);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--purple);
  box-shadow: 0 12px 26px rgba(70, 48, 117, 0.2);
  color: var(--white);
}

.button-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 16px 32px rgba(70, 48, 117, 0.24);
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual::before {
  position: absolute;
  inset: -14px 16px 40px -14px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--cream);
  content: "";
}

.hero-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.hero-visual figcaption {
  position: relative;
  width: calc(100% - 28px);
  margin: -34px 14px 0;
  padding: 16px 18px;
  border: 1px solid rgba(70, 48, 117, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(45, 29, 82, 0.1);
}

.hero-visual figcaption span {
  display: block;
  color: var(--lilac);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-visual figcaption strong {
  display: block;
  margin-top: 3px;
  color: var(--purple);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.1;
}

.catalog-section {
  padding-block: 86px;
  background: var(--cream-soft);
}

.section-heading {
  display: grid;
  gap: 22px;
  margin-bottom: 36px;
}

.section-heading > p {
  max-width: 520px;
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eadbc9;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 3px 7px;
  scrollbar-width: thin;
}

.chip {
  flex: none;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #dbcbb9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--purple);
  cursor: pointer;
  font: 700 0.82rem/1 "Lato", Arial, sans-serif;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.chip:hover {
  border-color: var(--lilac);
  background: var(--white);
}

.chip.is-active {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}

.result-count {
  color: var(--muted);
  font-size: 0.8rem;
}

.result-count strong {
  color: var(--purple);
}

.product-grid {
  display: grid;
  gap: 16px;
}

.product-card {
  overflow: hidden;
  border: 1px solid #eadbc9;
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(149, 129, 188, 0.5);
  box-shadow: var(--shadow-soft);
}

.product-card.is-hidden {
  display: none;
}

.product-card > a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-media {
  position: relative;
  overflow: hidden;
  background: var(--lilac-soft);
}

.card-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .card-media img {
  transform: scale(1.025);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--purple);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 24px;
}

.card-kicker {
  margin-bottom: 10px;
  color: var(--lilac);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-body h3 {
  max-width: 18ch;
}

.card-body > div > p:last-child {
  margin-top: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--purple);
  font-size: 0.84rem;
  font-weight: 900;
}

.card-link span {
  font-size: 1.2rem;
}

.manifesto {
  position: relative;
  overflow: hidden;
  padding-block: 88px;
  background: var(--purple-dark);
  color: var(--white);
}

.manifesto::after {
  position: absolute;
  right: -170px;
  bottom: -240px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.manifesto-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
}

.manifesto-number {
  color: rgba(255, 255, 255, 0.15);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 6rem;
  font-weight: 600;
  line-height: 0.8;
}

.manifesto h2 {
  max-width: 860px;
  color: var(--white);
}

.manifesto-grid > div > p:last-child {
  max-width: 740px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.site-footer {
  padding-block: 42px 24px;
  background: #211734;
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.brand-footer {
  color: var(--cream);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.82rem;
}

.footer-grid nav a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;
}

.copyright {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.7rem;
}

@media (min-width: 700px) {
  .shell {
    width: min(calc(100% - 64px), var(--max-width));
  }

  .hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.84fr);
    gap: 58px;
    padding-block: 62px 78px;
  }

  .hero-frame img {
    aspect-ratio: 4 / 5;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    align-items: end;
  }

  .filter-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .product-card-featured {
    grid-column: 1 / -1;
  }

  .product-card-featured > a {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  }

  .product-card-featured .card-media img {
    height: 100%;
    min-height: 390px;
    aspect-ratio: auto;
  }

  .product-card-featured .card-body {
    padding: 36px;
  }

  .manifesto {
    padding-block: 110px;
  }

  .manifesto-grid {
    grid-template-columns: 120px 1fr;
    gap: 50px;
  }

  .manifesto-number {
    font-size: 8rem;
  }

  .footer-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card-featured {
    grid-column: span 2;
  }

  .product-card-featured > a {
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  }

  .product-card-featured + .product-card {
    grid-column: 3;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-link {
    font-size: 0.7rem;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  h1 {
    font-size: clamp(3.15rem, 14.7vw, 4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .catalog-section {
    padding-block: 72px;
  }

  .filters {
    width: calc(100% + 16px);
    margin-right: -16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .product-card,
  .card-media img {
    transition: none;
  }
}
