@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f8ef;
  --produce: #eef0e4;
  --ink: #1b3527;
  --green: #254936;
  --green-hover: #163523;
  --leaf: #426449;
  --muted: #4c5c50;
  --line: #c8d0c1;
  --sprout: #e6efbd;
  --focus: #48773f;
  --gutter: clamp(1.25rem, 4.6vw, 4.5rem);
  --display: Fraunces, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 4.9rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

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

p, h1, h2, h3, figure { margin: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; }

h2 {
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.053em;
  text-wrap: balance;
}

section[id] { scroll-margin-top: 2rem; }

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

.section-space { padding-block: clamp(3.25rem, 7.4vw, 6.5rem); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: .65rem;
  left: .65rem;
  padding: .65rem .9rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: white;
}

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

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .7rem 1.2rem;
  border-radius: .38rem;
  border: 1px solid transparent;
  font: 700 .95rem / 1.25 var(--sans);
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button--primary { background: var(--green); border-color: var(--green); color: white; }
.button--primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.button--outline { border-color: #a7b6a5; color: var(--green); background: transparent; }
.button--outline:hover { background: #e7eddd; border-color: #849b85; }
.button--light { background: var(--sprout); color: var(--ink); }
.button--light:hover { background: #f0f6d4; }

.text-link {
  color: var(--green);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

.text-link:hover { color: var(--green-hover); text-decoration-thickness: 2px; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: grid;
  min-height: 4.8rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}

.brand img { border-radius: 50%; }

.brand span {
  font: 600 1.45rem / 1 var(--display);
  letter-spacing: -.048em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 3.2vw, 2.65rem);
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .32em;
}

.header-order { justify-self: end; min-height: 2.75rem; }

.delivery-note, .order-page-intro .delivery-note {
  margin-top: .7rem;
  color: var(--green);
  font-size: 1rem;
}

figcaption { margin-top: .5rem; color: var(--muted); font-size: .85rem; }

.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.45rem; }

.filters button {
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border: 1px solid #a8b5a3;
  border-radius: 2rem;
  background: transparent;
  color: var(--green);
  font-size: .9rem;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.filters button:hover { background: #dfe7d6; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.footer-inner .brand span { font-size: 1.3rem; }


.review-button {
  display: none;
  position: fixed;
  z-index: 2;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: var(--gutter);
  border-radius: 2rem;
  box-shadow: 0 6px 25px #1b352733;
}

.review-count {
  display: grid;
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding-inline: .2rem;
  place-items: center;
  border-radius: 2rem;
  background: var(--sprout);
  color: var(--ink);
}

.order-page-intro { margin-bottom: clamp(1.6rem, 4vw, 3rem); }

.order-page-intro h1 {
  margin-bottom: .65rem;
  font-size: clamp(2.7rem, 6.1vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.order-page-intro p { max-width: 38rem; color: var(--muted); font-size: 1.125rem; }

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4.5vw, 4rem);
  align-items: start;
}

.enquiry {
  position: sticky;
  top: 1.25rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--produce);
  color: var(--ink);
  scroll-margin-top: 1.25rem;
}

.enquiry h2 { font-size: clamp(2.05rem, 4vw, 2.85rem); }
.enquiry p { margin-top: .55rem; color: var(--muted); }
.enquiry-number { text-align: center; }

.enquiry-items {
  max-height: 14rem;
  margin: .65rem 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}
.enquiry-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.remove-crop {
  min-height: 2.75rem;
  padding: .35rem .2rem;
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.enquiry .enquiry-empty { margin-top: 1rem; }
.area-label { display: block; margin: 1.2rem 0 .35rem; font-weight: 700; }
.area-label span { color: var(--muted); font-weight: 400; }
.area-input {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: .6rem .75rem;
  border: 1px solid #a9b7a6;
  border-radius: .35rem;
  background: white;
  color: var(--ink);
}

.area-input::placeholder { color: var(--muted); }
.enquiry-action { width: 100%; margin-top: 1rem; }

@media (max-width: 46rem) {
  html { scroll-padding-top: 4.1rem; }
  .header-inner { min-height: 4rem; gap: .45rem; }
  .site-header .brand { gap: .42rem; }
  .site-header .brand img { width: 36px; height: 36px; }
  .site-header .brand span { font-size: 1.2rem; }
  .site-nav a { font-size: .94rem; }
  .header-order { padding-inline: .8rem; }
  .order-layout { grid-template-columns: 1fr; }
  .enquiry { position: static; }
  .review-button { display: inline-flex; }
  body:has(.review-button:not([hidden])) { padding-bottom: 4.75rem; }
}

@media (max-width: 31rem) {
  .site-header .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
