:root {
  --beige: #efebe2;
  --purple: #4f1964;
  --maroon: #b03029;
  --ink: #241a20;
  --cream: #fbf9f2;
  --line: rgba(79, 25, 100, .35);
  --page-width: 2400px;
  --gutter: clamp(1.25rem, 4.5vw, 7rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: clamp(5.5rem, 10vw, 10rem); }
body { margin: 0; color: var(--purple); background: var(--beige); font-family: Arapey, Georgia, serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.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; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -4rem; padding: .65rem 1rem; color: var(--cream); background: var(--purple); transition: top .2s ease; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(8rem, 13vw) 1fr minmax(11rem, 16vw); align-items: center; gap: clamp(.75rem, 1.8vw, 2rem); width: min(100%, var(--page-width)); min-height: clamp(5rem, 10vw, 10rem); margin: 0 auto; padding: 1rem var(--gutter); background: rgba(239, 235, 226, .96); backdrop-filter: blur(10px); }
.brand { width: clamp(6.7rem, 9.5vw, 11rem); }
.brand img { width: 100%; height: auto; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 5rem); font-family: Elsie, Georgia, serif; font-size: clamp(.85rem, 1.35vw, 1.55rem); font-weight: 900; white-space: nowrap; }
.primary-nav a { padding: .6rem 0; transition: color .2s ease, transform .2s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--maroon); transform: translateY(-2px); }
.login-link { color: var(--maroon); }
.search { display: flex; align-items: center; height: clamp(2rem, 2.75vw, 2.6rem); border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; overflow: hidden; }
.search input { min-width: 0; width: 100%; height: 100%; padding: 0 .65rem 0 .9rem; color: var(--ink); background: none; border: 0; outline: 0; font-size: clamp(.9rem, 1vw, 1.1rem); }
.search input::placeholder { color: var(--purple); opacity: .55; }
.search button { display: grid; width: 2.5rem; height: 100%; place-items: center; flex: 0 0 auto; padding: 0; color: var(--ink); border: 0; background: none; cursor: pointer; }
.search svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.menu-toggle { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(22rem, 1.04fr); align-items: center; gap: clamp(2rem, 7vw, 10rem); width: min(100%, var(--page-width)); margin: 0 auto; padding: clamp(2rem, 5vw, 6rem) var(--gutter) clamp(4rem, 7vw, 9rem); }
.hero__copy { max-width: 44rem; text-align: center; justify-self: center; }
.eyebrow { margin: 0 0 .85rem; color: var(--maroon); font-family: Elsie, Georgia, serif; font-size: clamp(.72rem, .85vw, 1rem); letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Satisfy, cursive; font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(3.1rem, 4.3vw, 6rem); }
.hero__text { max-width: 33rem; margin: clamp(1.5rem, 2.5vw, 2.8rem) auto 0; font-size: clamp(1.2rem, 1.45vw, 1.8rem); line-height: 1.5; }
.hero__link { display: inline-flex; gap: .6rem; align-items: center; margin-top: 1.7rem; padding-bottom: .25rem; border-bottom: 1px solid currentColor; color: var(--maroon); font-family: Elsie, Georgia, serif; font-size: clamp(.85rem, 1vw, 1.1rem); transition: gap .2s ease; }
.hero__link:hover, .hero__link:focus-visible { gap: .9rem; }

.hero__visual { position: relative; isolation: isolate; width: min(100%, 32rem); aspect-ratio: 1.17 / 1; justify-self: end; overflow: hidden; border-radius: clamp(1.75rem, 4vw, 4.75rem); background: var(--cream); }
.hero-carousel::after { position: absolute; z-index: 3; inset: 0; padding: 2px; content: ""; border-radius: inherit; background: linear-gradient(105deg, var(--maroon), #f1d298, var(--purple), #f1d298, var(--maroon)) 0 / 200% 100%; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: carousel-border 4s linear infinite; }
.hero-carousel__eyebrow { position: absolute; z-index: 4; top: clamp(1rem, 2vw, 1.5rem); left: clamp(1rem, 2vw, 1.5rem); margin: 0; padding: .45rem .8rem; color: var(--purple); border-radius: 999px; background: rgba(251, 249, 242, .88); font-family: Elsie, Georgia, serif; font-size: clamp(.85rem, 1.2vw, 1.15rem); font-weight: 900; }
.hero-carousel__viewport { width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; }
.hero-carousel__track { display: flex; width: 400%; height: 100%; transition: transform .55s ease; will-change: transform; }
.hero-carousel__slide { position: relative; flex: 0 0 25%; min-width: 0; }
.hero-carousel__slide::after { position: absolute; inset: 45% 0 0; content: ""; background: linear-gradient(transparent, rgba(36, 26, 32, .72)); pointer-events: none; }
.hero-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel__slide span { position: absolute; z-index: 1; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); left: clamp(1rem, 2vw, 1.75rem); color: var(--cream); font-family: Elsie, Georgia, serif; font-size: clamp(1.4rem, 2.4vw, 2.4rem); font-weight: 900; text-align: center; }
@keyframes carousel-border { to { background-position: 200% 0; } }

.section-screen { width: min(100%, var(--page-width)); margin: 0 auto; padding: clamp(4rem, 7vw, 7rem) var(--gutter); scroll-margin-top: clamp(5.5rem, 10vw, 10rem); }
.section-heading { text-align: center; }
.section-heading p, .about h2 { margin: 0; color: var(--maroon); font-family: Satisfy, cursive; font-size: clamp(2.8rem, 4vw, 5rem); line-height: 1; }
.section-heading h2 { margin-top: .45rem; font-size: clamp(2.7rem, 4vw, 4.7rem); }

.curation { display: flex; flex-direction: column; justify-content: center; }
.curation-grid { display: grid; grid-template-columns: 1.55fr repeat(2, .85fr); grid-template-rows: repeat(2, auto); gap: clamp(2rem, 3.5vw, 3.5rem) clamp(2rem, 5vw, 6rem); width: min(100%, 72rem); margin: clamp(2rem, 3.5vw, 3.5rem) auto 0; }
.curation-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: clamp(.75rem, 1.2vw, 1rem); min-width: 0; font-family: Elsie, Georgia, serif; font-size: clamp(1.1rem, 1.5vw, 1.55rem); font-style: normal; font-weight: 900; text-align: center; }
.curation-media { position: relative; display: block; flex: 0 0 auto; width: clamp(7.5rem, 12vw, 12rem); aspect-ratio: .85; overflow: hidden; border-radius: 58% 42% 64% 36% / 66% 45% 55% 34%; }
.curation-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.curation-tile--featured { grid-row: span 2; font-size: clamp(1.2rem, 1.6vw, 1.7rem); }
.curation-tile--featured .curation-media { width: clamp(14rem, 28vw, 27rem); }
.curation-tile:hover img, .curation-tile:focus-visible img { transform: scale(1.035); }

.categories { display: flex; flex-direction: column; justify-content: center; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3.4vw, 3rem) clamp(1rem, 3vw, 3.5rem); width: min(100%, 82rem); margin: clamp(2rem, 4vw, 3.25rem) auto 0; }
.category-card { display: grid; justify-items: center; gap: clamp(.6rem, 1.1vw, 1rem); min-width: 0; color: var(--purple); font-family: Elsie, Georgia, serif; font-size: clamp(1.05rem, 1.45vw, 1.45rem); font-weight: 900; text-align: center; }
.organic-media {
  display: block;
  width: min(100%, 14rem);
  aspect-ratio: .85;
  overflow: hidden;
  border-radius: 58% 42% 64% 36% / 66% 45% 55% 34%;
}
.organic-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.category-card:hover img, .category-card:focus-visible img { transform: scale(1.06); }

.about { display: grid; place-items: center; text-align: center; }
.about__content { max-width: 68rem; }
.about h2 + p { margin-top: clamp(1.8rem, 3.6vw, 3.4rem); }
.about h2:not(:first-child) { margin-top: clamp(2.5rem, 5vw, 5.5rem); }
.about p { max-width: 65rem; margin: .4rem auto 0; font-size: clamp(1.2rem, 1.5vw, 1.8rem); line-height: 1.5; }
.site-footer { padding: 1.5rem var(--gutter); color: var(--cream); background: var(--purple); text-align: center; font-size: 1rem; }
.site-footer p { margin: 0; }

:focus-visible { outline: 3px solid var(--maroon); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } .hero-carousel::after { animation: none; } }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 8rem 1fr auto; }
  .primary-nav { gap: 1.25rem; }
  .search input { display: none; }
  .search { width: 2.75rem; }
  .hero { grid-template-columns: .9fr 1.1fr; gap: 3rem; }
  .curation-grid { width: min(100%, 64rem); gap: 1.75rem 3rem; }
  .category-grid { gap: 1.75rem; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto auto; min-height: 5.5rem; padding-top: .7rem; }
  .brand { width: 7.5rem; }
  .menu-toggle { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; color: var(--purple); border: 0; background: transparent; cursor: pointer; }
  .menu-toggle svg { width: 1.55rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
  .primary-nav { position: absolute; top: 100%; right: var(--gutter); left: var(--gutter); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.25rem; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 .75rem 1.5rem rgba(79, 25, 100, .12); font-size: 1.1rem; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border-bottom: 0; }
  .search { justify-self: end; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 2.75rem; padding-top: 3.25rem; }
  .hero__copy { max-width: 36rem; }
  .hero__visual { justify-self: center; width: min(100%, 28rem); }
  .section-screen { padding-top: 4.75rem; padding-bottom: 4.75rem; }
  .section-heading p, .about h2 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .section-heading h2 { font-size: clamp(2.45rem, 11vw, 3.7rem); }
  .curation { justify-content: flex-start; }
  .curation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; width: min(100%, 33rem); height: auto; gap: 1.8rem 1.25rem; }
  .curation-tile--featured { grid-row: auto; grid-column: span 2; }
  .curation-media { width: min(100%, 8.5rem); }
  .curation-tile--featured .curation-media { width: min(100%, 18rem); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 31rem); gap: 2rem 1.25rem; }
  .organic-media { width: min(100%, 9.5rem); }
  .about__content { max-width: 35rem; }
  .about p { font-size: 1.15rem; }
}

@media (max-width: 380px) {
  .brand { width: 6.5rem; }
  .site-header { gap: .25rem; }
  .hero { padding-top: 2.5rem; }
  h1 { font-size: 2.8rem; }
  .hero__text { font-size: 1.1rem; }
}
