/* Cevrienne: palette taken from the blue tit (cap blue, breast yellow, back green) */
:root {
  --paper: #f3f5ee;
  --paper-deep: #e8ecdf;
  --card: #ffffff;
  --ink: #1d3527;
  --ink-soft: #4a5c4f;
  --line: #cfd7c5;
  --tit-blue: #2a5aa6;
  --tit-blue-soft: #e2e9f4;
  --breast: #f2cd4b;
  --leaf: #5b8a36;
  --leaf-soft: #dfe8cd;
  --focus: #f2cd4b;

  --display: "Caprasimo", "Cooper Black", Georgia, serif;
  --body: "Karla", "Segoe UI", system-ui, sans-serif;

  --radius-door: 28px;
  --radius-card: 18px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tit-blue); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Buttons */
button, .btn { -webkit-tap-highlight-color: transparent; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 0.9375rem/1 var(--body);
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--tit-blue); border-color: var(--tit-blue); color: #fff; }
.btn-quiet { border-color: transparent; }
.btn-quiet:hover { background: var(--paper-deep); color: var(--ink); }
.btn-basket { background: var(--ink); color: var(--paper); }
.btn-basket:hover { background: var(--tit-blue); border-color: var(--tit-blue); color: #fff; }
.basket-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--breast); color: var(--ink); font-size: .8125rem; }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; padding: 8px 0; font: 500 .9375rem var(--body); color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Announcement bar */
.announce { background: var(--tit-blue); color: #fff; font-size: .875rem; }
.announce-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.announce p { margin: 0; }
.announce a { color: #fff; }
.announce a:hover { color: var(--breast); }
.announce-side span { opacity: .6; margin: 0 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.logo { font-family: var(--display); font-size: 1.875rem; text-decoration: none; color: var(--ink); line-height: 1; }
.logo:hover { color: var(--ink); }
.site-nav { display: flex; gap: 26px; margin-right: auto; }
.site-nav a { text-decoration: none; font-weight: 500; white-space: nowrap; }
.site-nav .nav-invoice { display: none; }
.site-nav a:hover { text-decoration: underline; color: var(--ink); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }

/* Currency picker: a pill in the header, a full row inside the mobile menu */
.currency { display: inline-flex; align-items: center; gap: 12px; }
.currency-desktop .currency-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.currency select {
  appearance: none; -webkit-appearance: none;
  font: 700 .9375rem/1 var(--body); color: var(--ink);
  padding: 11px 34px 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d3527' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.currency select:hover { border-color: var(--ink); }
.currency-mobile { display: none; }

/* Hero */
.hero { padding: 56px 0 28px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 36px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); max-width: 15ch; }
.hero-copy p { font-size: 1.1875rem; color: var(--ink-soft); max-width: 38ch; margin: 0 0 8px; }
.hero-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { position: relative; display: block; border-radius: var(--radius-door); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; background: var(--ink); }
.door img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 36, 26, 0) 45%, rgba(20, 36, 26, .72) 100%); }
.door:hover { color: #fff; }
.door:hover img { transform: scale(1.03); }
.door-label { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 16px; font-family: var(--display); font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.05; }
.door-cta { flex: none; font: 700 .9375rem/1 var(--body); background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 999px; }
.door:hover .door-cta { background: var(--breast); }

/* This month */
.this-month { padding: 0 0 8px; }
.month-card { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px 40px; align-items: baseline; background: var(--breast); border-radius: var(--radius-card); padding: 22px 28px; }
.month-card h2 { font-size: 1.375rem; }
.month-card p { margin: 0; }

/* Shop sections */
.shop, .guide, .how, .about, .contact { padding: 88px 0; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.shop-head h2, .how h2, .about h2, .contact h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); margin-bottom: 12px; }
.shop-head p { max-width: 56ch; color: var(--ink-soft); margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .9375rem/1 var(--body); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.legend { display: flex; gap: 20px; list-style: none; margin: 0 0 20px; padding: 0; font-size: .9375rem; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; }
.swatch.sow { background: var(--leaf); }
.swatch.crop { background: var(--breast); }

.grid { display: grid; gap: 20px; }
.grid-seeds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-birds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }

/* Seed packet card: crimped seal along the top edge, like a real packet */
.packet {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px 6px var(--radius-card) var(--radius-card);
  padding-top: 16px; overflow: hidden;
}
.packet::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, var(--leaf-soft) 0 3px, transparent 3px 6px);
  border-bottom: 1px solid var(--leaf-soft);
}
.packet[hidden] { display: none; }
.packet img { width: calc(100% - 24px); margin: 0 12px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.packet-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.packet h3 { font-size: 1.375rem; margin-bottom: 4px; }
.packet-detail { font-size: .875rem; color: var(--ink-soft); margin-bottom: 10px; }
.packet-blurb { font-size: .9375rem; line-height: 1.5; margin-bottom: 14px; }
.packet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--display); font-size: 1.375rem; }
.btn-add { padding: 10px 16px; font-size: .875rem; }
.btn-add.added { background: var(--leaf); border-color: var(--leaf); color: #fff; }

/* Sowing calendar strip */
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; list-style: none; margin: 0; padding: 0; }
.months li { display: grid; place-items: center; height: 24px; border-radius: 3px; background: var(--paper-deep); color: var(--ink-soft); font-size: .6875rem; font-weight: 700; }
.months li.sow { background: var(--leaf); color: #fff; }
.months li.crop { background: var(--breast); color: var(--ink); }
.months li.both { background: linear-gradient(135deg, var(--leaf) 50%, var(--breast) 50%); color: #fff; text-shadow: 0 0 2px rgba(0, 0, 0, .45); }

/* Bird food */
.shop-birds { background: var(--tit-blue-soft); }
.packet-bird::before { background: repeating-linear-gradient(90deg, #c9d6ec 0 3px, transparent 3px 6px); border-bottom-color: #c9d6ec; }
.attracts { font-size: .9375rem; margin-bottom: 14px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.sizes label { position: relative; cursor: pointer; }
.sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sizes span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .875rem; font-weight: 500; }
.sizes input:checked + span { border-color: var(--tit-blue); background: var(--tit-blue); color: #fff; }
.sizes input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Feeder guide */
.bird img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card); margin-bottom: 16px; }
.bird h3 { font-size: 1.5rem; margin-bottom: 8px; }
.bird p { color: var(--ink-soft); margin-bottom: 10px; max-width: 42ch; }
.bird a { font-weight: 700; }

/* How ordering works: a real sequence, so the steps are numbered */
.how { background: var(--ink); color: var(--paper); }
.how h2 { margin-bottom: 36px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; }
.steps li { counter-increment: step; border-top: 1px solid rgba(243, 245, 238, .25); padding-top: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--breast); color: var(--ink); font-family: var(--display); font-size: 1.25rem; margin-bottom: 16px; }
.steps h3 { font-size: 1.375rem; margin-bottom: 8px; }
.steps p { color: #c9d3c4; margin: 0; }
.steps a { color: var(--breast); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-door); }
.about p { max-width: 58ch; }

/* Contact */
.contact { background: var(--paper-deep); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-list { display: grid; grid-template-columns: 100px 1fr; gap: 12px 16px; margin: 28px 0 0; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; }
.contact-form { background: var(--card); border-radius: var(--radius-card); padding: 28px; border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field textarea:focus { border-color: var(--tit-blue); outline: none; box-shadow: 0 0 0 3px rgba(42, 90, 166, .2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form-status { margin: 14px 0 0; font-size: .9375rem; }
.form-status.error { color: #b3261e; }

/* Basket drawer */
.basket-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(20, 36, 26, .45); }
.basket {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--paper); box-shadow: -12px 0 40px rgba(20, 36, 26, .18);
  transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
.basket.open { transform: none; visibility: visible; transition: transform .25s ease; }
.basket-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.basket-head h2 { font-size: 1.625rem; }
.basket-close { background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 500 .875rem var(--body); cursor: pointer; color: var(--ink); }
.basket-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.basket-empty { padding: 32px 0; color: var(--ink-soft); }
.basket-items { list-style: none; margin: 0; padding: 0; }
.basket-items li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.basket-items .item-name { font-weight: 700; }
.basket-items .item-option { display: block; font-weight: 400; font-size: .875rem; color: var(--ink-soft); }
.basket-items .item-price { font-weight: 700; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font: 700 1rem var(--body); color: var(--ink); cursor: pointer; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }
.item-remove { justify-self: end; background: none; border: 0; padding: 0; font: 500 .875rem var(--body); color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.basket-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--card); }
.basket-foot[hidden] { display: none; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.basket-total strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.basket-note { font-size: .875rem; color: var(--ink-soft); }
.basket-foot .btn-text { display: block; margin: 10px auto 0; }

/* Policy pages */
.page-header { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 12px; }
.page-header p { color: var(--ink-soft); font-size: 1.125rem; margin: 0; }
.policy { padding: 48px 0 88px; }
.terms-content { max-width: 72ch; }
.terms-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.terms-section:first-child { padding-top: 0; }
.terms-section h2 { font-size: 1.5rem; margin-bottom: 14px; }
.terms-section p:last-child { margin-bottom: 0; }
.terms-list { margin: 0 0 1em; padding-left: 1.25em; }
.terms-list li { margin-bottom: 4px; }
.terms-updated { margin-top: 28px; color: var(--ink-soft); font-size: .9375rem; }
.invoice-container { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.invoice-container p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #dfe6da; padding: 64px 0 28px; font-size: .9375rem; }
.site-footer a { color: #dfe6da; }
.site-footer a:hover { color: var(--breast); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(223, 230, 218, .2); }
.footer-grid h2 { font: 700 1rem var(--body); color: #fff; margin-bottom: 14px; }
.footer-grid > div > a { display: block; text-decoration: none; margin-bottom: 8px; }
.footer-grid > div > a:hover { text-decoration: underline; }
.footer-logo { font-family: var(--display); font-size: 2rem; color: #fff; line-height: 1; margin-bottom: 14px; }
.footer-brand p:last-child { max-width: 34ch; }
.company-details { color: #b9c6b4; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; color: #b9c6b4; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Responsive */
/* The header folds into the Menu button before the nav, currency picker and buttons get cramped */
@media (max-width: 1100px) {
  .header-inner { gap: 12px; flex-wrap: wrap; min-height: 64px; }
  .logo { margin-right: auto; }
  .nav-toggle { display: inline-flex; order: 2; font: 700 .9375rem var(--body); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
  .header-actions { order: 1; }
  .header-actions .btn-quiet, .currency-desktop { display: none; }
  .site-nav .currency-mobile { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 500; }
  .site-nav { order: 3; display: none; flex-direction: column; gap: 0; width: 100%; margin: 0 0 12px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .site-nav .nav-invoice { display: block; }
}

@media (max-width: 1080px) {
  .grid-seeds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; gap: 16px; }
  .grid-birds, .grid-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-card { grid-template-columns: 1fr; gap: 6px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .shop-head { flex-direction: column; align-items: start; gap: 16px; }
  .announce-side { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 32px; }
  .hero-doors { grid-template-columns: 1fr; gap: 14px; }
  .door { aspect-ratio: 16 / 11; }
  .door-label { left: 20px; right: 20px; bottom: 18px; }
  .grid-seeds, .grid-birds, .grid-guide { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .shop, .guide, .how, .about, .contact { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { padding: 20px; }
  .contact-list { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dd { margin-bottom: 12px; }
  .announce-inner { justify-content: center; text-align: center; }
  .logo { font-size: 1.5rem; }
  .header-actions .btn-basket, .nav-toggle { padding: 9px 13px; }
}

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