/* Little Green · shared styles for index.html and privacy.html.
   Load after w3.css. */

/* ---------- Fonts: served from our own fonts/ folder, not Google ---------- */
/* Jost is a variable font: one file covers both regular (400) and bold (700). */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jost-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;
}
/* Extra Latin letters such as š and ž */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playwrite TZ";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/playwrite-tz.woff2") format("woff2");
}

/* ---------- Base: W3.CSS 6 reads these variables ---------- */
:root {
  --w3-font-family: "Jost", sans-serif;
  --w3-heading-font-family: "Playwrite TZ", cursive;
  --w3-font-size: 18px;
  --w3-text-color: #5B5B5B;
  --w3-focus-ring: #4a7c36;    /* keyboard focus outline in brand green */
  --w3-accent-color: #4a7c36;
}

h1, h2, h3 {
  color: #111111;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a {
  color: #4a7c36;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

hr {
  border: 0;
  border-top: 1px solid #E3E1DC;
  margin: 24px 0 0 0;
}

/* ---------- Layout ---------- */
/* Header uses W3's w3-flex-wrap + w3-gap; this lines up the baselines */
.lg-header {
  align-items: baseline;
  row-gap: 0;
  margin-bottom: 24px;
}
.lg-header h1,
.lg-header p {
  margin-bottom: 0;
}
/* Footer links sit on the right on wider screens; w3-mobile stacks them below 601px */
@media (min-width: 601px) {
  .lg-footer-links { text-align: right; }
}

/* ---------- Brand colours (white text passes WCAG AA 4.5:1) ---------- */
.lg-forest {
  color: #fff !important;
  background-color: #4a7c36 !important;
}
.lg-clay {
  color: #fff !important;
  background-color: #a5582f !important;
}
.lg-tilt {
  transform: rotate(-3deg);
}

/* Veggie box: eggs and honey line under the price */
.lg-addons {
  margin-top: 24px;
}

/* ---------- Other pages ---------- */
/* Comfortable line length for long text */
.lg-prose {
  max-width: 720px;
}
.lg-prose h2 {
  font-size: 1.35rem;
  margin-top: 32px;
}
.lg-prose ul {
  padding-left: 1.25em;
}

/* ---------- Little Green page (littlegreen.ee) ---------- */
/* Rounded "veggiebox.ee →" button in the header */
.lg-pill {
  color: #111111 !important;
  background-color: #F3F1ED !important;
}
.lg-pill:hover,
.lg-pill:focus {
  background-color: #E3E1DC !important;
}
/* Header with title left and button right; both centred on phones */
@media (max-width: 600px) {
  .lg-header-split {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }
  .lg-header-split .w3-flex-spacer {
    margin-inline-start: 0;
  }
}
/* Links inside coloured tags stay white */
.lg-clay a,
.lg-forest a {
  color: #fff;
}

/* "What we grow": 2 columns on phones, 5 on wider screens */
.lg-veg {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 601px) {
  .lg-veg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.lg-veg li {
  padding: 8px 16px 16px 16px;
}
.lg-veg-name {
  display: block;
  font-family: var(--w3-heading-font-family);
  font-size: 1.25rem;
  color: #111111;
  margin: 8px 0;
}

/* Cards (farm products and articles) */
.lg-card {
  padding: 8px 16px;
  position: relative;
}
/* Article cards: the whole card is clickable through the title link */
.lg-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.lg-card h3 a {
  color: #111111;
  text-decoration: none;
}
.lg-card:hover h3 a,
.lg-card h3 a:focus {
  text-decoration: underline;
}
.lg-card-cta {
  color: #4a7c36;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
/* Articles that are not out yet */
.lg-coming h3,
.lg-coming p {
  color: #767676;
}
