/* thirstygarden.com — colours from the brand guide (docs/huisstijl.md in the app repo).
   Text colours on white or #F4F7F2 all reach at least 4.5:1; #3C9A5F is only used for
   decoration (borders), never for normal text. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/fonts/dm-sans-latin-wght-normal.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: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/fonts/dm-sans-latin-ext-wght-normal.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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --dark-green: #1e5136;
  --green: #3c9a5f;
  --deep-green: #183f2b;
  --light-bg: #f4f7f2;
  --grey-green: #3f4f45;
  --text: #1f2a24;
  --border: #d5dfd7;
  --wrap: 46rem;
  --header-h: 4.25rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--dark-green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--deep-green);
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  outline: 3px solid var(--dark-green);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link: visible only when focused */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--dark-green);
  color: #fff;
}

.skip-link:focus {
  top: 0.5rem;
  color: #fff;
}

/* Header with the language switch, sticky so it stays reachable on long pages */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.home .header-inner {
  justify-content: flex-end;
}

.brand {
  display: block;
  line-height: 0;
  margin-left: -0.6rem; /* the logo file has built-in whitespace */
}

.brand img {
  width: 150px;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--dark-green);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.lang-switch a:hover {
  background: var(--light-bg);
}

/* Language sections */
.lang-section {
  padding: 2rem 0 2.5rem;
}

.lang-section + .lang-section {
  border-top: 4px solid var(--green);
}

h1,
h2,
h3 {
  color: var(--dark-green);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}

.updated {
  margin: 0 0 1.5rem;
  color: var(--grey-green);
  font-size: 0.9375rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

strong {
  font-weight: 700;
}

/* Home page */
.hero-logo {
  margin: 0 0 0.5rem;
  line-height: 0;
}

.hero-logo img {
  width: 100%;
  max-width: 30rem;
  margin-left: -1.25rem; /* the logo file has built-in whitespace */
}

.lead {
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--dark-green);
  font-weight: 500;
}

.platform {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-left: 4px solid var(--green);
  background: var(--light-bg);
  color: var(--grey-green);
}

.link-list,
.contact-list {
  list-style: none;
  padding-left: 0;
}

.link-list a {
  font-weight: 600;
}

/* Tables (privacy policy) */
.table-wrap {
  margin: 0 0 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--dark-green);
  border-bottom: 2px solid var(--dark-green);
}

/* Wide tables would not fit next to each other on a phone: stack every row as a card. */
@media (max-width: 47.99rem) {
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tr {
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--border);
  }

  td {
    padding: 0.2rem 0;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: var(--dark-green);
    font-size: 0.875rem;
  }
}

/* Footer */
.site-footer {
  background: var(--light-bg);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2rem;
  font-size: 0.9375rem;
  color: var(--grey-green);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.35rem 0;
  font-weight: 600;
}

.footer-links a[aria-current='page'] {
  text-decoration-thickness: 0.16em;
}

.footer-contact li {
  margin-bottom: 0.25rem;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 2.375rem;
  }

  .lang-section {
    padding: 3rem 0 3.5rem;
  }
}
