/* The colours, type and shapes are addla's own (server/src/sitePage.js TOKENS_CSS and its header, button and footer slices), so the two sites read as one family.
   Light only, as addla's start page is. */
:root {
  color-scheme: light;
  --bg: #fffdfa; --alt: #f7f2eb; --panel: #ffffff; --line: #e9e2d8; --text: #1b1a1f; --muted: #5d5a66; --dim: #8a8691;
  --primary: #2e5b48; --primary-dark: #244a3a; --primary-soft: #e2ede5; --warm: #e0a43a; --warm-soft: #f6e7d0;
  --page-max: 1100px; --radius: 18px;
  --shadow: 0 10px 30px rgba(50, 36, 20, .10), 0 2px 6px rgba(50, 36, 20, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
a { color: var(--primary); }
.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* the header: the name, the links, the language */
header { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 250, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 10px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -.02em; text-decoration: none; }
.brand img { flex: none; width: 30px; height: 30px; }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[hreflang] { font-size: 13px; padding: 7px 12px; border-radius: 999px; }
nav a[hreflang]:hover { background: var(--alt); }

/* headings and the lead */
h1, h2 { font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 6.6vw, 54px); line-height: 1.05; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.15; margin: 0 0 12px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.4; color: var(--text); font-weight: 500; max-width: 30em; margin: 0 0 14px; }

/* sections, in addla's rhythm: warm white, then the alternate warm tone */
main { flex: 1; }
section { padding: 56px 0; }
section.alt { background: var(--alt); }
@media (min-width: 700px) { section { padding: 80px 0; } }
section p, section ul { max-width: 40em; }

.btn {
  display: inline-block; margin-top: 6px; background: var(--primary); color: #fff; border: 1px solid transparent; border-radius: 12px; padding: 13px 22px;
  font-weight: 600; font-size: 16px; line-height: 1.3; text-decoration: none; text-align: center; box-shadow: 0 6px 16px rgba(46, 91, 72, .22);
}
.btn:hover { background: var(--primary-dark); }

/* the projects: a row of white cards on the alternate tone, each with its words and, where there is one, a button */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 24px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.card p { flex: 1; color: var(--muted); font-size: 16px; margin: 0 0 18px; }
.card .btn { align-self: flex-start; margin-top: 0; }
.btn.ghost { background: var(--panel); border-color: var(--line); color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: var(--alt); }
.tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--alt); color: var(--muted); font-size: 13px; font-weight: 600; }

/* the company details: a white card with the thin line and the soft shadow */
dl.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; max-width: 40em;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow);
}
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) {
  dl.facts { grid-template-columns: 1fr; gap: 0; padding: 18px 20px; }
  dl.facts dd { margin-bottom: 12px; }
  dl.facts dd:last-child { margin-bottom: 0; }
}
ul.plain { margin: 0 0 14px; padding-left: 20px; }
ul.plain li { margin-bottom: 8px; }

/* the footer: a white band with a line over it, as addla's */
footer { background: var(--panel); border-top: 1px solid var(--line); padding: 16px 0 22px; color: var(--dim); font-size: 13px; line-height: 1.4; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
