/* Self-hosted (SIL Open Font License 1.1), so visitors never contact Google. */
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/familjen-grotesk-latin.woff2") format("woff2");
  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: "Dancing Script";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/dancing-script-latin.woff2") format("woff2");
  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;
}

:root {
  --fennel: #E4E6D2;
  --fennel-deep: #CDD2B1;
  --chestnut: #4A2A12;
  --chestnut-soft: #6B4A30;
  --sunflower: #DDA62B;
  --sunflower-light: #F0C95E;
  --field: #2F3B26;
  --field-text: #EEF0DF;
  --ladybird: #C9412F;

  --sans: "Familjen Grotesk", system-ui, sans-serif;
  --script: "Dancing Script", cursive;

  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2.25rem, 5vw, 2.75rem);
  --script-size: clamp(2.25rem, 6vw, 3.6rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 62ch;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fennel);
  color: var(--chestnut);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ladybird); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; max-width: var(--measure); }
h2, h3 { margin: 0; line-height: 1.15; }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--fennel) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fennel-deep);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.nav .nav-order { background: var(--sunflower); padding: 0.45rem 1rem; border-radius: 999px; }
.nav .nav-order:hover { background: var(--sunflower-light); text-decoration: none; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font: inherit; font-weight: 600; color: inherit;
    background: none; border: 1.5px solid var(--chestnut); border-radius: 999px; padding: 0.35rem 0.9rem;
  }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem;
    background: var(--fennel); border-bottom: 1px solid var(--fennel-deep);
  }
  .nav.open ul { display: flex; }
  .nav li a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--fennel-deep); }
  .nav li:last-child a { border: 0; margin-top: 0.75rem; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero-photo { position: relative; height: min(82vh, 46rem); min-height: 30rem; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 22, 10, 0.72) 0%, rgba(30, 22, 10, 0.15) 55%, transparent 75%);
}
.hero-text { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.hero h1 { font-family: var(--script); font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1.05; margin: 0 0 1rem; max-width: 16ch; text-wrap: balance; font-weight: 700; text-shadow: 0 2px 12px rgba(20, 14, 5, 0.35); }
.hero p { font-size: var(--step-1); line-height: 1.35; max-width: 30ch; margin-bottom: 1.5rem; }
.hero-logo {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(-4rem, -6vw, -2.5rem);
  width: clamp(8.5rem, 22vw, 15rem);
  filter: drop-shadow(0 6px 14px rgba(40, 25, 5, 0.35));
  animation: bloom 1.6s cubic-bezier(.2,.8,.2,1) both 0.2s;
}
@keyframes bloom { from { transform: rotate(-70deg) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
@media (max-width: 600px) { .hero-logo { top: 1rem; bottom: auto; right: 1rem; width: 7rem; } }

.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--sunflower); color: var(--chestnut); border: 0; border-radius: 999px;
  padding: 0.8rem 1.6rem;
}
.btn:hover { background: var(--sunflower-light); }

/* ---------- Sections ---------- */
section { padding-block: clamp(4rem, 10vw, 7.5rem); }
.script-title {
  font-family: var(--script); font-weight: 600; font-size: var(--script-size);
  line-height: 1.1; margin: 0 0 0.5em; color: var(--chestnut);
  position: relative; z-index: 2;
}
.lede { font-size: var(--step-1); line-height: 1.4; max-width: 34ch; }

.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .split.flip > :first-child { order: 2; }
}
.photo-pebble { border-radius: 46% 54% 42% 58% / 40% 44% 56% 60%; overflow: hidden; aspect-ratio: 3 / 4; width: min(100%, 24rem); justify-self: center; }
@media (max-width: 819px) { .photo-pebble { width: min(80%, 20rem); } }
.photo-pebble img { width: 100%; height: 100%; object-fit: cover; }

/* About */
#about .script-title { margin-left: -0.1em; }

/* Events */
#events { background: var(--field); color: var(--field-text); }
#events .script-title { color: var(--sunflower-light); }
.event-list { list-style: none; padding: 0; margin: 1.75rem 0 2rem; font-size: var(--step-1); line-height: 1.3; }
.event-list li { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid rgba(238, 240, 223, 0.18); }
.event-list svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--sunflower); transform: translateY(0.1rem); }
#events a { color: var(--sunflower-light); }
#events .photo-pebble { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; }

/* Why local */
.local-facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.local-facts li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; align-items: start; max-width: var(--measure); }
.local-facts svg { width: 2.5rem; height: 2.5rem; color: var(--field); }
.local-facts strong { display: block; }
.carbon {
  margin-top: 2.5rem; padding: 1.5rem 1.75rem; background: var(--sunflower);
  border-radius: 1.5rem 1.5rem 1.5rem 0.25rem; max-width: 30rem;
}
.carbon p { margin: 0; font-size: var(--step-1); line-height: 1.3; font-weight: 500; }

/* Instagram */
#instagram { background: var(--fennel-deep); }
.ig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.ig-head p { margin: 0; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.4rem, 1.2vw, 0.9rem); }
@media (min-width: 900px) { .ig-grid { grid-template-columns: repeat(6, 1fr); } }
.ig-grid a { aspect-ratio: 1; overflow: hidden; border-radius: 0.6rem; background: var(--fennel); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ig-grid a:hover img { transform: scale(1.04); }

/* Subscriptions: season calendar */
.gift {
  display: grid; gap: 0.5rem 2rem; grid-template-columns: 1fr; align-items: center;
  margin: 2.5rem 0 3rem; padding: 1.5rem 1.75rem; border: 2px dashed var(--ladybird); border-radius: 1.25rem;
  max-width: 52rem;
}
@media (min-width: 700px) { .gift { grid-template-columns: 1fr auto; } }
.gift h3 { font-size: var(--step-1); }
.gift p { margin: 0.25rem 0 0; }

.calendar { width: 100%; border-collapse: collapse; }
.calendar th, .calendar td { text-align: left; vertical-align: middle; }
.calendar thead th { font-weight: 500; font-size: var(--step--1); color: var(--chestnut-soft); padding: 0 0 0.6rem; }
.calendar thead th.m { text-align: center; }
.calendar tbody tr { border-top: 1.5px solid var(--chestnut); }
.calendar tbody tr:last-child { border-bottom: 1.5px solid var(--chestnut); }
.calendar tbody th { padding: 1.5rem 1.5rem 1.5rem 0; width: 34%; }
.plan-name { font-size: var(--step-2); font-weight: 700; display: block; line-height: 1.1; }
.plan-sub { display: block; color: var(--chestnut-soft); font-weight: 400; font-size: var(--step-0); margin-top: 0.25rem; }
.calendar td.m { text-align: center; padding: 0.5rem 0; position: relative; }
.bloom { width: 2.4rem; height: 2.4rem; color: var(--sunflower); display: inline-block; }
.bloom.ghost { color: transparent; stroke: var(--chestnut-soft); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: 0.6; }
.season { display: block; font-size: 0.8rem; color: var(--chestnut-soft); margin-top: 0.15rem; }
.calendar td.prices { padding: 1.5rem 0 1.5rem 1.5rem; white-space: nowrap; }
.price { display: block; font-variant-numeric: tabular-nums; }
.price b { font-size: var(--step-1); }
.choose { margin-top: 0.6rem; padding: 0.5rem 1.1rem; font-size: var(--step--1); }

@media (max-width: 760px) {
  .calendar thead { display: none; }
  .calendar, .calendar tbody, .calendar tr { display: block; }
  .calendar tr { display: grid !important; grid-template-columns: repeat(6, 1fr); padding: 1.25rem 0; }
  .calendar tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 0.75rem; }
  .calendar td.m { display: block; }
  .calendar td.m::before { content: attr(data-month); display: block; font-size: 0.75rem; color: var(--chestnut-soft); }
  .calendar td.prices { grid-column: 1 / -1; padding: 0.75rem 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: baseline; }
  .calendar td.prices .choose { margin: 0 0 0 auto; }
  .bloom { width: 2rem; height: 2rem; }
}

.cal-note { font-size: var(--step--1); color: var(--chestnut-soft); margin-top: 0.75rem; }
.styles { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 760px) { .styles { grid-template-columns: 1fr 1fr; } }
.styles h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.styles p { margin: 0; }
.deposit { margin-top: 1.5rem; font-weight: 500; }

/* Collection */
.collection { margin-top: clamp(3rem, 7vw, 4.5rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1.5px solid var(--chestnut); }
.sub-title { font-size: var(--step-2); }
.places { display: grid; gap: 2rem; grid-template-columns: 1fr; margin: 1.5rem 0 2rem; }
@media (min-width: 760px) { .places { grid-template-columns: 1fr 1fr; } }
.place { border-left: 4px solid var(--sunflower); padding: 0.25rem 0 0.25rem 1.25rem; }
.place h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.place p { margin: 0; }
.tbc { display: inline-block; font-size: var(--step--1); background: var(--fennel-deep); padding: 0.1rem 0.6rem; border-radius: 999px; margin-top: 0.4rem; }

/* Order form */
#order { background: var(--field); color: var(--field-text); }
#order .script-title { color: var(--sunflower-light); }
.order-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .order-grid { grid-template-columns: 1fr 20rem; align-items: start; } }
form { display: grid; gap: 1.75rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
legend, label.field-label { font-weight: 600; font-size: var(--step-0); margin-bottom: 0.5rem; padding: 0; }
.hint { font-size: var(--step--1); opacity: 0.8; font-weight: 400; display: block; }
input[type=text], input[type=email], select {
  font: inherit; color: var(--chestnut); width: 100%; max-width: 32rem;
  background: var(--field-text); border: 2px solid transparent; border-radius: 0.6rem; padding: 0.7rem 0.9rem;
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--sunflower); outline-offset: 2px; }
input[aria-invalid=true] { border-color: var(--ladybird); }
.field { display: grid; gap: 0.35rem; }
.error { color: #FFB4A6; font-size: var(--step--1); font-weight: 500; min-height: 0; }
.error:empty { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; padding: 0.65rem 1.1rem; border-radius: 0.75rem; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(238, 240, 223, 0.45); line-height: 1.25;
}
.choice small { display: block; opacity: 0.8; font-size: 0.85rem; }
.choice input:checked + span { background: var(--sunflower); color: var(--chestnut); box-shadow: none; }
.choice input:focus-visible + span { outline: 3px solid var(--sunflower-light); outline-offset: 3px; }

.checkbox { display: flex; gap: 0.7rem; align-items: center; cursor: pointer; font-weight: 600; }
.checkbox input { width: 1.3rem; height: 1.3rem; accent-color: var(--sunflower); }
.reveal[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }


.summary {
  background: var(--field-text); color: var(--chestnut); border-radius: 1.25rem; padding: 1.5rem;
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.summary h3 { font-size: var(--step-1); margin-bottom: 0.75rem; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 0; font-variant-numeric: tabular-nums; }
.summary dt { color: var(--chestnut-soft); }
.summary dd { margin: 0; padding-left: 1rem; text-align: right; font-weight: 500; }
.summary .total { border-top: 1.5px solid var(--chestnut); padding-top: 0.6rem; margin-top: 0.3rem; font-weight: 700; font-size: var(--step-1); color: var(--chestnut); }
.summary p { font-size: var(--step--1); margin: 1rem 0 0; }

.thanks { background: var(--field-text); color: var(--chestnut); border-radius: 1.25rem; padding: 2rem; max-width: 40rem; }
.thanks h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.thanks:focus { outline: none; }
.ref { font-weight: 700; background: var(--sunflower); padding: 0.05rem 0.5rem; border-radius: 0.3rem; }

/* Footer */
footer { background: var(--chestnut); color: var(--fennel); padding-block: 3rem; font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
footer img { width: 4.5rem; }
footer p { margin: 0; }
footer .foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Additions for the live site ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.order-lede { margin-bottom: 2.5rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:disabled:hover { background: var(--sunflower); }
.ts-widget { min-height: 65px; }
.form-status {
  max-width: 32rem; margin: 0; padding: 0.9rem 1.1rem; border-radius: 0.75rem;
  background: rgba(201, 65, 47, 0.18); box-shadow: inset 0 0 0 1.5px #FFB4A6; font-weight: 500;
}
.form-status:empty { display: none; }
.form-status a { color: inherit; }
.thanks p:last-child { margin-bottom: 0; }
.thanks a { color: inherit; }
.ig-grid a:focus-visible { outline-offset: 2px; }

/* Small text pages (privacy, 404) */
.page { padding-block: clamp(3rem, 8vw, 5rem); }
.page h1 { font-family: var(--script); font-weight: 700; font-size: var(--script-size); line-height: 1.1; margin: 0 0 0.5em; }
.page h2 { font-size: var(--step-1); margin: 2rem 0 0.5rem; }
.page ul { max-width: var(--measure); padding-left: 1.25rem; }
.page li { margin-bottom: 0.4rem; }
