@font-face {
  font-family: "Alegreya";
  src: url("assets/fonts/alegreya-variable-latin.woff2?v=2431eca3ed8e") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Recoleta";
  src: url("assets/fonts/recoleta-black.woff2?v=e006960bf482") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

:root {
  color-scheme: light;
  --bg: #fff9e9;
  --surface: #ffffff;
  --surface-2: #f7e6ad;
  --ink: #0a0c09;
  --ink-soft: #51472f;
  --line: #d7b149;
  --gold: #d7a929;
  --gold-strong: #805d1d;
  --gold-soft: #f8e7aa;
  --green: #805d1d;
  --wing: #eef0ec;
  --black: #0a0c09;
  --sky-blue: #61cefd;
  --honeycomb: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  --radius-sm: 12px;
  --max-w: 1240px;
  --font-display: "Recoleta", Georgia, serif;
  --font-ui: "Alegreya", Georgia, serif;
}

html[data-theme="night"] {
  color-scheme: dark;
  --bg: #0d2038;
  --surface: #172d46;
  --surface-2: #29425e;
  --ink: #fff8df;
  --ink-soft: #e2dcc7;
  --line: #c99a35;
  --gold: #f1ba35;
  --gold-strong: #f2cb72;
  --gold-soft: #443817;
  --green: #b7d47a;
  --wing: #243c55;
  --black: #09111d;
  --sky-blue: #002353;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--sky-blue);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 0;
  left: -20vw;
  width: 140vw;
  height: min(58svh, 38rem);
  background-image: url("/assets/brand/meadow-clouds.webp?v=0adffd1f370b");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: max(100%, 70rem) auto;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  background: var(--sky-blue);
  opacity: 0;
  pointer-events: none;
}

html[data-theme="night"] body::before {
  opacity: 0;
}

html[data-theme="night"] body::after {
  height: 100svh;
  background: var(--sky-blue) url("/assets/brand/meadow-night-sky.webp?v=094b87929a2f") center top / max(100%, 70rem) auto no-repeat;
  opacity: 1;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-strong);
  outline-offset: 3px;
}

button {
  font: inherit;
}

main {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), var(--max-w));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 32px), var(--max-w));
  margin: 0 auto;
  padding: 0.7rem 0.25rem;
  background: transparent;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.header-brand img {
  width: clamp(7.5rem, 12vw, 9rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 0 #d7b149);
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding: 0.24rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
  transform: translateY(-180%);
}

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

.cart-trigger {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font: 900 0.8rem/1 var(--font-ui);
  cursor: pointer;
}

.cart-trigger-icon {
  display: grid;
  width: 1.8rem;
  aspect-ratio: 1.1547;
  place-items: center;
  clip-path: var(--honeycomb);
  background: var(--surface);
  color: var(--ink);
}

.cart-trigger-icon svg {
  width: 1.45rem;
  height: 1.25rem;
  overflow: visible;
}

/* Direct #services visits need a usable layout before the deferred stylesheet activates. */
.services-section {
  scroll-margin-top: 9rem;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: var(--bg);
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.service-icon {
  width: 2.625rem;
  height: 2.625rem;
  color: var(--gold-strong);
}

.service-item p,
.service-link {
  margin-top: 0.75rem;
}

.service-link {
  display: inline-flex;
  color: var(--green);
  font-weight: 850;
}

@media (max-width: 620px) {
  .services-section {
    scroll-margin-top: 8rem;
  }
}

.basket-handle,
.basket-body {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.basket-comb {
  fill: var(--gold);
  stroke: currentColor;
  stroke-width: 0.75;
}

.cart-count {
  display: grid;
  width: 1.65rem;
  aspect-ratio: 1.1547;
  place-items: center;
  clip-path: var(--honeycomb);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.hero-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: stretch;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  min-height: min(720px, calc(100dvh - 98px));
  margin-top: 0.8rem;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  border: 3px solid var(--gold);
  border-radius: 3.5rem 3.5rem 8rem 3.5rem;
  background: var(--gold-soft);
  box-shadow: 0 12px 0 var(--line);
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  aspect-ratio: 1.1547;
  z-index: -1;
  clip-path: var(--honeycomb);
  background: var(--surface);
}

.hero-section::before {
  width: 12rem;
  top: -5rem;
  left: 24%;
}

.hero-section::after {
  width: 7rem;
  right: 35%;
  bottom: -3rem;
}

.page-insect-layer {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: min(82svh, 50rem);
  overflow: hidden;
  pointer-events: none;
}

.page-insect {
  --insect-drag-x: 0px;
  --insect-drag-y: 0px;
  --insect-facing: 1;
  --insect-angle: 0deg;
  position: absolute;
  width: clamp(2.8rem, 4.8vw, 4.6rem);
  height: auto;
  pointer-events: auto;
  touch-action: none;
  transform: translate3d(var(--insect-drag-x), var(--insect-drag-y), 0) scaleX(var(--insect-facing)) rotate(var(--insect-angle));
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.page-insect-1 {
  --insect-angle: -8deg;
  top: 11%;
  right: 4%;
}

.page-insect-2 {
  --insect-facing: -1;
  --insect-angle: 6deg;
  top: 35%;
  left: 2%;
  width: clamp(2.5rem, 4vw, 3.8rem);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem);
  color: var(--ink);
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 8rem;
  aspect-ratio: 1.1547;
  right: -1rem;
  bottom: 1rem;
  clip-path: var(--honeycomb);
  background: #e8ca68;
}

html[data-theme="night"] .hero-copy::after {
  background: #315073;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  color: var(--green);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

h1 {
  max-width: 10.8ch;
  margin-top: 1.1rem;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 7vw, 5.7rem);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero-lede {
  max-width: 62ch;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
}

.hero-copy .button-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 9px 0 #6a4c1f;
}

.button-secondary {
  border: 2px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

html[data-theme="night"] .button-secondary {
  background: var(--surface-2);
}

.hero-media {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  overflow: visible;
}

.hero-illustration::before {
  content: "";
  position: absolute;
  width: 82%;
  aspect-ratio: 1.1547;
  top: 4%;
  right: -8%;
  z-index: -1;
  clip-path: var(--honeycomb);
  background: var(--wing);
}

.hero-media::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: -7%;
  width: 62%;
  aspect-ratio: 1.1547;
  z-index: -1;
  clip-path: var(--honeycomb);
  background: var(--gold);
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  top: 4%;
  left: 3%;
  width: 94%;
  max-width: none;
  max-height: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 12px 0 #d7b149);
  animation: logo-float 5s ease-in-out infinite;
}

@keyframes logo-float {
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

.hero-media figcaption {
  position: absolute;
  left: clamp(0.5rem, 2vw, 1rem);
  bottom: clamp(0.8rem, 2vw, 1.25rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: min(88%, 30rem);
  padding: 0.8rem 0.95rem;
  border: 2px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
  box-shadow: 0 7px 0 var(--line);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
}

.hero-media figcaption span {
  flex: 0 0 auto;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--gold);
  border-radius: 0.5rem;
  color: var(--gold-strong);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-media figcaption strong {
  max-width: 25ch;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    align-items: center;
    flex-direction: row;
    padding-block: 0.45rem;
  }

  nav {
    min-width: 0;
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-media {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  main {
    width: min(calc(100% - 20px), var(--max-w));
  }

  .site-header {
    display: grid;
    grid-template-areas: "brand" "navigation";
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem 0.4rem;
    width: 100%;
    padding: 0.25rem max(0.625rem, env(safe-area-inset-right)) 0.35rem max(0.625rem, env(safe-area-inset-left));
    border-bottom: 2px solid var(--line);
    background: var(--bg);
  }

  .header-brand {
    grid-area: brand;
    justify-self: start;
    max-width: 100%;
  }

  .header-brand img {
    width: 5rem;
  }

  .site-header nav {
    grid-area: navigation;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header nav a {
    min-height: 44px;
    flex: 0 0 auto;
    padding-inline: 0.48rem;
    font-size: 0.76rem;
  }

  .site-header nav a[href*="contact"] {
    display: none;
  }

  body[data-storefront] .site-header {
    grid-template-areas: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: 0.25rem;
  }

  body[data-storefront] .site-header .header-brand {
    grid-area: auto;
    grid-column: 1;
    grid-row: 1;
  }

  body[data-storefront] .site-header nav,
  body[data-storefront] .site-header .header-actions {
    display: contents;
  }

  body[data-storefront] .site-header nav a {
    width: 100%;
    justify-content: center;
    padding-inline: 0.25rem;
  }

  body[data-storefront] .site-header nav a:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-storefront] .site-header nav a:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }

  body[data-storefront] .site-header nav a:nth-of-type(3) {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-storefront] .site-header nav a:nth-of-type(4) {
    grid-column: 2;
    grid-row: 2;
  }

  body[data-storefront] .site-header nav a:nth-of-type(n + 5) {
    display: none;
  }

  body[data-storefront] .site-header .cart-trigger {
    grid-column: 3;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 0.25rem;
    font-size: 0.76rem;
  }

  body[data-storefront] .site-header .cart-trigger-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(2.7rem, 17vw, 4rem);
  }

  .hero-copy {
    padding: 2rem 1rem;
  }

  .page-insect-layer {
    height: min(88svh, 44rem);
  }

  .page-insect-1 {
    top: 10%;
    right: 2%;
  }

  .page-insect-2 {
    display: none;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-media figcaption {
    align-items: flex-start;
    font-size: 0.92rem;
  }

  .hero-media figcaption span {
    display: none;
  }

  .hero-logo {
    top: 5%;
    left: 4%;
    width: 92%;
    height: 72%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
  }
}
