/* Els estils de les webs (../preu-llum/public/estil.css i DESIGN.md): sempre clar, lletra de 20 px, un sol color de marca. */
:root {
  --bg: #fff; --ink: #1a1a18; --muted: #4d4d47; --line: #cfcfc6; --soft: #f3f3ee;
  --accent: #0b6e4f; --accent-dark: #08573e;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 20px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: anywhere; }
a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; text-decoration: none; color: var(--ink); padding: 8px 0; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 99px; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
footer { margin-top: 56px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 24px 0 8px; text-wrap: balance; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 40px 0 14px; text-wrap: balance; }
.lead { margin: 12px 0; }
.updated { margin: 0; color: var(--muted); font-size: .9rem; }

/* Les tres webs: una targeta gran per a cadascuna, tota clicable */
.sites { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: 4px; min-height: 56px; padding: 14px 16px; border: 2px solid var(--accent); border-radius: 12px; color: var(--ink); text-decoration: none; }
.card b { color: var(--accent); font-size: 1.2rem; }
.card span { color: var(--muted); font-size: .95rem; }
.card:hover, .card:active { background: var(--soft); }
