/* larderby.co.uk: one stylesheet, no build step. Colours and type from docs/MARKA.md ("Larder"). */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --forest: #1f4d3a;
  --forest-deep: #143528;
  --forest-mid: #2a6650;
  --forest-soft: #e3eee7;
  --honey: #e9a23b;
  --honey-hover: #f0b65c;
  --honey-soft: #fcefd3;
  --honey-text: #8a5a0f;
  --honey-deep: #6b4206;
  --cream: #fbf6ec;
  --cream-deep: #f5eddc;
  --paper: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7dfcf;
  --red: #b42318;
  --red-soft: #fdecea;
  --radius: 14px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest-mid); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 20; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--forest); letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; margin: 16px 0 20px; }
h2 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.12; margin: 0 0 14px; }
h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 36em; }
.intro { font-size: 18px; color: var(--muted); max-width: 42em; margin-bottom: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--honey-soft); color: var(--honey-deep); font-size: 14px; font-weight: 600; padding: 5px 14px; border-radius: 999px; }
.kicker { font-family: var(--sans); color: var(--honey-text); font-weight: 650; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }

/* Header */
.top { background: rgba(251, 246, 236, 0.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 23px; color: var(--forest); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.links { display: flex; gap: 24px; }
.links a { color: var(--muted); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.links a:hover, .links a[aria-current="page"] { color: var(--forest); }
.top .end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.top .signin { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.top .signin:hover { color: var(--forest); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 15px; background: var(--paper); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 200px; box-shadow: 0 12px 32px rgba(28, 25, 23, 0.12); display: grid; }
.menu nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.menu nav a:hover { background: var(--cream); }
@media (max-width: 880px) {
  .links, .top .signin { display: none; }
  .menu { display: block; }
  .top .wrap { gap: 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.btn.primary { background: var(--honey); color: var(--ink); }
.btn.primary:hover { background: var(--honey-hover); color: var(--ink); }
.btn.secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn.secondary:hover { background: var(--forest-soft); }
.btn.light { background: var(--cream); color: var(--forest); }
.btn.light:hover { background: var(--paper); }
.top .btn { min-height: 42px; padding: 9px 16px; font-size: 15px; white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 20px; } .brand svg { width: 28px; height: 28px; } .top .btn { padding: 8px 12px; font-size: 14px; } .menu summary { padding: 8px 10px; } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { padding: 64px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--forest-mid); flex: none; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 40px; } }

/* Devices */
.devices { position: relative; padding: 0 44px 64px 0; }
.tablet { background: #1f1d1b; border-radius: 22px; padding: 12px; box-shadow: 0 24px 60px rgba(31, 77, 58, 0.18); }
.tablet img { border-radius: 12px; }
.phone { background: #1f1d1b; border-radius: 28px; padding: 10px; width: 210px; box-shadow: 0 24px 50px rgba(28, 25, 23, 0.28); }
.phone img { border-radius: 20px; }
.devices .phone { position: absolute; right: 0; bottom: 0; width: 30%; min-width: 140px; }
.phone.solo { width: 280px; margin: 0 auto; }
@media (max-width: 560px) { .devices { padding-right: 0; padding-bottom: 0; } .devices .phone { display: none; } }

/* Sections */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--cream-deep); }
section.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--forest); color: #e8f0ea; }
section.dark h2, section.dark h3 { color: #fbf6ec; }
section.dark .intro, section.dark p { color: #cfe0d5; }
@media (max-width: 700px) { section { padding: 56px 0; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.top-align { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split .media-first { order: -1; } }

/* Rules strip */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.rule strong { display: block; font-size: 16px; }
.rule span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }

.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--forest-soft); color: var(--forest); }
.icon svg { width: 22px; height: 22px; }
.icon.honey { background: var(--honey-soft); color: var(--honey-deep); }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; }
.product .for { color: var(--muted); }
.product ul { margin: 6px 0 24px; padding-left: 20px; color: var(--ink); }
.product li { margin: 6px 0; }
.product .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.product .more::after { content: " →"; }
@media (max-width: 800px) { .products { grid-template-columns: 1fr; } }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.ticks li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.ticks strong { display: block; font-size: 17px; margin-bottom: 2px; }
.ticks span { color: var(--muted); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }
.feature h3 { font-family: var(--sans); font-size: 18px; font-weight: 650; color: var(--ink); letter-spacing: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Label sample: drawn like the printed 58 mm label */
.label-card { background: #fff; color: #1c1917; width: min(100%, 360px); margin: 0 auto; border-radius: 6px; padding: 22px 22px 18px; box-shadow: 0 1px 0 #e7dfcf, 0 18px 40px rgba(28, 25, 23, 0.14); font-family: "Arial Narrow", Arial, var(--sans); position: relative; transform: rotate(-1.5deg); }
.label-card::before, .label-card::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: radial-gradient(circle at 6px 0, transparent 5px, #fff 5.5px) 0 0 / 12px 8px repeat-x; }
.label-card::before { top: -8px; transform: rotate(180deg); }
.label-card::after { bottom: -8px; }
.label-card .name { font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: 0.01em; text-transform: uppercase; }
.label-card .second { font-size: 17px; margin-top: 2px; }
.label-card .grid { display: grid; grid-template-columns: 1fr 92px; gap: 12px; align-items: end; margin-top: 12px; }
.label-card .useby { font-weight: 800; font-size: 15px; letter-spacing: 0.06em; }
.label-card .day { font-weight: 900; font-size: 64px; line-height: 0.95; letter-spacing: 0.01em; }
.label-card .date { font-weight: 800; font-size: 22px; margin-top: 6px; }
.label-card .prep { font-size: 14px; margin-top: 8px; }
.label-card .allergens { font-size: 14px; font-weight: 800; margin-top: 4px; }
.label-card .qr { width: 92px; height: 92px; }
.label-notes { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.label-notes li { display: flex; gap: 10px; }
.label-notes b { color: var(--forest); font-weight: 650; min-width: 22px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--honey); color: var(--ink); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-family: var(--sans); font-size: 19px; font-weight: 650; color: var(--ink); letter-spacing: 0; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Status chips, the same colours as the handheld and the board */
.chip { display: inline-block; border-radius: 8px; padding: 2px 10px; font-size: 14px; font-weight: 650; }
.chip.off { background: var(--red-soft); color: var(--red); }
.chip.reduce { background: var(--honey-soft); color: var(--honey-deep); }
.chip.soon { background: #f3eee3; color: var(--ink); }
.chip.done { background: var(--forest-soft); color: var(--forest); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--forest); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--forest); color: #fbf6ec; font-size: 13px; font-weight: 650; padding: 3px 12px; border-radius: 999px; }
.plan h3 { margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 15px; min-height: 3.2em; }
.price { font-family: var(--display); font-weight: 600; color: var(--forest); font-size: 44px; line-height: 1; }
.price small { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--muted); }
.annual { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.plan ul { padding-left: 20px; margin: 18px 0 0; color: var(--ink); font-size: 15px; }
.plan li { margin: 5px 0; }
.soon { color: var(--muted); font-size: 16px; margin-top: 8px; }
.boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
@media (max-width: 760px) { .boxes { grid-template-columns: 1fr; } }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.box ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.box li { margin: 6px 0; }
.offer { margin-top: 20px; background: var(--honey-soft); border: 1px solid #f2d79f; border-radius: 18px; padding: 22px 26px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.offer p { margin: 0; max-width: 46em; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* CTA band */
.band { background: var(--forest); color: #e8f0ea; border-radius: 24px; padding: 48px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { color: #fbf6ec; margin: 0 0 8px; }
.band p { margin: 0; color: #cfe0d5; max-width: 38em; }
@media (max-width: 600px) { .band { padding: 32px 24px; } }

/* Form */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } .form { padding: 22px; } }
label, legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 1.5px solid #d6ccb9; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--forest-mid); box-shadow: 0 0 0 3px var(--forest-soft); }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; border: 1.5px solid #d6ccb9; border-radius: 10px; padding: 11px 14px; margin: 0; cursor: pointer; background: #fff; }
.choices label:has(input:checked) { border-color: var(--forest); background: var(--forest-soft); }
.choices input { accent-color: var(--forest); width: 18px; height: 18px; margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { color: var(--muted); font-size: 14px; margin: 0; }
.form .btn { width: 100%; }

/* FAQ */
details.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
details.faq + details.faq { margin-top: 12px; }
details.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--forest-mid); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
footer { background: var(--forest-deep); color: #cfe0d5; padding: 56px 0 40px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer .brand { color: #fbf6ec; }
footer h4 { color: #fbf6ec; font-size: 15px; margin: 4px 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: #cfe0d5; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 20px; font-size: 13.5px; color: #a9c2b3; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* Simple pages: privacy, thanks, sorry, 404 */
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(34px, 4.6vw, 48px); }
.page h2 { font-size: 24px; margin-top: 36px; }
.page p, .page li { color: #3f3b37; }
