:root {
  --brand: #888946;
  --brand-dark: #484e21;
  --brand-soft: #eeefdf;
  --ink: #20231b;
  --muted: #6b6f5f;
  --paper: #fffdf7;
  --white: #ffffff;
  --line: rgba(32, 35, 27, 0.12);
  --shadow: 0 24px 80px rgba(32, 35, 27, 0.14);
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 124px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px clamp(32px, 5vw, 76px) 18px;
  color: var(--white);
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: color 260ms ease, height 260ms ease;
}

.site-header.is-scrolled {
  height: 96px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.brand {
  width: clamp(101px, 10.5vw, 143px);
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  transition: transform 240ms ease, filter 240ms ease;
}

.brand,
.primary-nav {
  position: relative;
  z-index: 1;
}

.brand:hover {
  transform: translate3d(0, -1px, 0);
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 240ms ease;
}

.site-header.is-scrolled .brand img {
  filter: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 34px);
  padding-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.primary-nav a {
  position: relative;
  padding: 10px 0;
  opacity: 0.88;
  transition: opacity 220ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.primary-nav a:hover {
  opacity: 1;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: var(--header-height) 22px 72px;
  color: var(--white);
  isolation: isolate;
}

#about,
#categories {
  scroll-margin-top: 148px;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17, 20, 12, 0.48), rgba(17, 20, 12, 0.42)),
    radial-gradient(circle at 50% 44%, rgba(136, 137, 70, 0.22), rgba(17, 20, 12, 0.56) 70%);
}

.hero__content {
  width: min(920px, 100%);
  text-align: center;
  padding-top: 24px;
}

.handwritten-title {
  position: relative;
  width: min(920px, 100%);
  min-height: clamp(230px, 36vw, 430px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: var(--white);
}

.handwritten-title__frame {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(100%, 800px);
  height: auto;
  aspect-ratio: 2 / 1;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0.92;
  overflow: visible;
}

.handwritten-title__frame path {
  stroke-width: clamp(8px, 1.2vw, 13px);
  stroke-dasharray: 2800;
  stroke-dashoffset: 2800;
  opacity: 0;
  animation: drawFrame 2.35s 2.45s cubic-bezier(0.43, 0.13, 0.23, 0.96) forwards;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--brand-dark);
}

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

h1 {
  max-width: min(100%, 720px);
  margin: 0 auto;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", "Marker Felt", cursive;
  font-size: clamp(2.6rem, 5.3vw, 4.68rem);
  font-style: normal;
  line-height: 1.05;
  font-weight: 700;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  opacity: 1;
  clip-path: inset(0 100% 0 0);
  animation: writeTitle 1.85s 420ms cubic-bezier(0.45, 0, 0.18, 1) forwards;
}

.hero__copy {
  max-width: 620px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 4px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 240ms ease, background 240ms ease, color 240ms ease, box-shadow 240ms ease;
  will-change: transform;
}

@keyframes drawFrame {
  0% {
    opacity: 0;
    stroke-dashoffset: 2800;
  }

  8% {
    opacity: 1;
  }

  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes writeTitle {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes categoryImageFirst {
  0% {
    opacity: 1;
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  44% {
    opacity: 1;
    transform: scale(1.07) translate3d(-1.2%, 0, 0);
  }

  52%,
  92% {
    opacity: 0;
    transform: scale(1.075) translate3d(-1.6%, 0, 0);
  }

  100% {
    opacity: 1;
    transform: scale(1.02) translate3d(0, 0, 0);
  }
}

@keyframes categoryImageSecond {
  0%,
  44% {
    opacity: 0;
    transform: scale(1.02) translate3d(1.2%, 0, 0);
  }

  52% {
    opacity: 1;
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  92% {
    opacity: 1;
    transform: scale(1.07) translate3d(1.2%, 0, 0);
  }

  100% {
    opacity: 0;
    transform: scale(1.075) translate3d(1.6%, 0, 0);
  }
}

.button--light {
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

.button:hover {
  transform: translate3d(0, -2px, 0);
  background: var(--brand-soft);
}

.intro-section {
  padding: clamp(70px, 9vw, 118px) 22px clamp(44px, 6vw, 78px);
  background: var(--paper);
}

.intro-section__inner {
  width: min(930px, 100%);
  margin: 0 auto;
  text-align: center;
}

.intro-section h2 {
  max-width: 850px;
  margin: 0 auto 20px;
  color: var(--ink);
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 900;
}

.intro-section p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.75;
  font-weight: 500;
}

.categories-section {
  padding: clamp(26px, 4vw, 52px) 0 clamp(86px, 10vw, 132px);
  overflow: hidden;
}

.categories-heading {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 18px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--white);
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.icon-button:hover {
  transform: translate3d(0, -1px, 0);
  border-color: rgba(136, 137, 70, 0.46);
  background: var(--brand-soft);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-carousel {
  --side-space: max(20px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 390px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: var(--side-space);
  padding: 10px var(--side-space) 28px;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-y;
}

.category-carousel::-webkit-scrollbar {
  display: none;
}

.category-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.category-card {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--brand-soft);
  box-shadow: var(--shadow);
  transform: translate3d(0, 0, 0);
  isolation: isolate;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 12, 8, 0.05), rgba(9, 12, 8, 0.7));
  transition: background 340ms ease;
}

.category-card__media {
  position: absolute;
  inset: 0;
  background: var(--fallback, linear-gradient(135deg, #eff0de, #c6c89c));
  transform: scale(1.01) translate3d(0, 0, 0);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
  will-change: transform;
}

.category-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(136, 137, 70, 0.12), rgba(72, 78, 33, 0.1));
  pointer-events: none;
}

.category-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position, center);
  opacity: 1;
  transform: scale(1.02) translate3d(0, 0, 0);
  will-change: opacity, transform;
}

.category-card__media img:nth-child(2) {
  opacity: 0;
}

.category-card__media img:nth-child(1):not(:only-child) {
  animation: categoryImageFirst 9s infinite cubic-bezier(0.42, 0, 0.2, 1);
}

.category-card__media img:nth-child(2) {
  animation: categoryImageSecond 9s infinite cubic-bezier(0.42, 0, 0.2, 1);
}

.category-card__content {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 28px;
  color: var(--white);
  transform: translate3d(0, 18px, 0);
  transition: transform 340ms ease;
}

.category-card h3 {
  max-width: 320px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  line-height: 1.05;
  font-weight: 800;
}

.category-card:hover::after {
  background: linear-gradient(180deg, rgba(9, 12, 8, 0.08), rgba(9, 12, 8, 0.78));
}

.category-card:hover .category-card__media {
  filter: saturate(1.05);
  transform: scale(1.075) translate3d(0, -8px, 0);
}

.category-card:hover .category-card__content {
  transform: translate3d(0, 0, 0);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: clamp(34px, 7vw, 96px);
  padding: clamp(54px, 7vw, 84px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.footer-brand img {
  width: min(140px, 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(210px, 0.8fr) minmax(210px, 0.7fr);
  gap: clamp(28px, 4vw, 64px);
}

.footer-column {
  min-width: 0;
}

.footer-kicker {
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.site-footer p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.site-footer a {
  display: table;
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 0.94rem;
  font-weight: 700;
}

.opening-hours dl {
  margin: 0;
}

.opening-hours div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.opening-hours div + div {
  padding-top: 14px;
}

.opening-hours dt,
.opening-hours dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
}

.opening-hours dt {
  color: var(--muted);
  font-weight: 600;
}

.opening-hours dd {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition: opacity 850ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 820px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    height: 102px;
    padding: 18px 20px 14px;
  }

  .primary-nav {
    gap: 16px;
    padding-top: 11px;
    font-size: 0.8rem;
  }

  .brand {
    width: 103px;
  }

  .hero {
    min-height: 94svh;
    align-items: end;
    padding-bottom: 78px;
  }

  .hero__content {
    text-align: center;
  }

  h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__copy {
    margin-left: 0;
  }

  .categories-heading {
    width: min(100% - 32px, 1180px);
  }

  .categories-heading {
    align-items: flex-start;
  }

  .carousel-controls {
    display: none;
  }

  .category-carousel {
    --side-space: 16px;
    grid-auto-columns: minmax(268px, 82vw);
  }
}

@media (max-width: 980px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand img {
    width: 120px;
  }

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

  .footer-column:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: auto;
    gap: 12px;
    padding: 18px 18px 12px;
  }

  .site-header.is-scrolled {
    position: absolute;
    height: auto;
  }

  .primary-nav {
    gap: 12px;
    padding-top: 9px;
    max-width: calc(100vw - 150px);
    font-size: 0.74rem;
  }

  .primary-nav a {
    padding-block: 8px;
  }

  .handwritten-title {
    width: min(100%, 430px);
    min-height: 220px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
  }

  .handwritten-title__frame {
    width: min(112%, 430px);
  }

  h1 {
    font-size: clamp(2.02rem, 9vw, 2.56rem);
  }

  .categories-heading {
    display: block;
  }

  .category-card {
    min-height: 470px;
  }

  .category-card__content {
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .store-list {
    grid-template-columns: 1fr;
  }

  .footer-column:first-child {
    grid-column: auto;
  }

  .opening-hours div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
