/* Buyrus home page. Fonts are served from this site (no Google Fonts requests);
   all four are under the SIL Open Font License, see fonts/OFL.txt. */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin-wght-normal.woff2) format("woff2-variations"); }

/* Three styles, picked with the swatches in the footer.
   A: club green.  B: ivory with a green seal.  C: ink and brass. */
:root, [data-theme="a"] {
  --bg: #1F4D3A; --fg: #F4F1EA; --muted: #E2EBE5; --faint: #C3D5CB; --line: #3D6B57;
  --eyebrow: #F2A07B; --wdot: #E4572E; --hover: #F2A07B;
  --b-fill: #163A2C; --b-edge: #F4F1EA; --b-inner-fill: none; --b-inner: #F4F1EA;
  --b-top: #F4F1EA; --b-bot: #F2A07B; --b-dot: #E4572E; --b-letter: #F4F1EA; --b-bar: #E4572E;
  --card: #F4F1EA; --card-fg: #16181B; --card-muted: #3B3F45; --card-points: #1F4D3A;
  --btn: #1F4D3A; --btn-fg: #F4F1EA; --btn2: #1F4D3A;
  --h1-font: "Barlow Condensed", "Arial Narrow", sans-serif; --h1-size: 4.5rem; --h1-line: 1; --h1-track: .02em;
}
[data-theme="b"] {
  --bg: #F4F1EA; --fg: #16181B; --muted: #3B3F45; --faint: #5C6168; --line: #DDD6C8;
  --eyebrow: #7A5E30; --wdot: #B08A4E; --hover: #16181B;
  --b-fill: #1F4D3A; --b-edge: #1F4D3A; --b-inner-fill: #F4F1EA; --b-inner: #F4F1EA;
  --b-top: #F4F1EA; --b-bot: #D9BC8A; --b-dot: #D9BC8A; --b-letter: #1F4D3A; --b-bar: #B08A4E;
  --card: #1F4D3A; --card-fg: #F4F1EA; --card-muted: #E2EBE5; --card-points: #D9BC8A;
  --btn: #F4F1EA; --btn-fg: #1F4D3A; --btn2: #F4F1EA;
  --h1-font: "Fraunces", Georgia, serif; --h1-size: 3.75rem; --h1-line: 1.08; --h1-track: -.015em;
}
[data-theme="c"] {
  --bg: #16181B; --fg: #F4F1EA; --muted: #C9CBCF; --faint: #9A9DA3; --line: #2C2F34;
  --eyebrow: #D9BC8A; --wdot: #B08A4E; --hover: #D9BC8A;
  --b-fill: none; --b-edge: #B08A4E; --b-inner-fill: none; --b-inner: #B08A4E;
  --b-top: #F4F1EA; --b-bot: #B08A4E; --b-dot: #B08A4E; --b-letter: #F4F1EA; --b-bar: #B08A4E;
  --card: #1F4D3A; --card-fg: #F4F1EA; --card-muted: #E2EBE5; --card-points: #D9BC8A;
  --btn: #D9BC8A; --btn-fg: #16181B; --btn2: #F4F1EA;
  --h1-font: "Outfit", sans-serif; --h1-size: 3.6rem; --h1-line: 1.08; --h1-track: -.025em;
}

/* Only the chosen language is shown. */
html[lang="nl"] [lang="en"], html[lang="en"] [lang="nl"] { display: none !important; }

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font-family: "Manrope", system-ui, sans-serif; font-size: 1rem; line-height: 1.6;
  transition: background-color .25s, color .25s;
}
a { color: inherit; }
a:hover { color: var(--hover); }
:focus-visible { outline: 3px solid var(--eyebrow); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Header */
.top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: inherit; }
.mini-badge { width: 52px; height: 52px; }
.wordmark { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1; }
.dot { color: var(--wdot); }
.top-links { display: flex; gap: 20px; align-items: center; font-size: .95rem; }
.top-links > a { font-weight: 600; text-decoration: none; }
.lang-switch { color: var(--faint); display: flex; align-items: center; gap: 2px; }
.lang-switch button {
  font: inherit; color: var(--faint); background: none; border: 0; cursor: pointer;
  min-width: 44px; min-height: 44px; padding: 0 6px;
}
.lang-switch button[aria-pressed="true"] { color: var(--fg); font-weight: 700; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 20px; }
.hero-badge { flex: 0 1 320px; display: flex; justify-content: center; }
.badge { width: 100%; max-width: 320px; height: auto; }
.eyebrow { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: .19em; text-transform: uppercase; color: var(--eyebrow); }
h1 { margin: 0; font-family: var(--h1-font); font-weight: 700; font-size: var(--h1-size); line-height: var(--h1-line); letter-spacing: var(--h1-track); text-wrap: balance; }
[data-theme="b"] h1, [data-theme="c"] h1 { font-weight: 600; }
.lead { margin: 0; font-size: 1.19rem; color: var(--muted); max-width: 33rem; }

/* B: badge on the left. C: everything centred, no badge in the header. */
[data-theme="b"] .hero-badge { order: -1; }
[data-theme="c"] .hero { flex-direction: column; text-align: center; gap: 28px; padding-top: 48px; }
[data-theme="c"] .hero-text { flex: none; align-items: center; max-width: 820px; order: 2; }
[data-theme="c"] .hero-badge { flex: none; order: 1; }
[data-theme="c"] .badge { max-width: 240px; }
[data-theme="c"] .eyebrow, [data-theme="c"] .mini-badge { display: none; }

/* Badge parts */
.b-fill { fill: var(--b-fill); }
.b-edge { stroke: var(--b-edge); stroke-width: 4; }
[data-theme="c"] .b-fill { stroke: var(--b-edge); stroke-width: 3; }
[data-theme="c"] .mini-badge .b-fill { stroke-width: 4; }
.b-outer { fill: none; stroke: var(--b-top); stroke-width: 1.5; }
[data-theme="b"] .b-outer, [data-theme="c"] .b-outer { display: none; }
.b-inner { fill: var(--b-inner-fill); stroke: var(--b-inner); stroke-width: 2.5; }
.mini-badge .b-inner { stroke-width: 5; }
.b-top { fill: var(--b-top); font-size: 17px; letter-spacing: 4px; }
.b-bot { fill: var(--b-bot); font-size: 15px; letter-spacing: 3px; }
.b-dot { fill: var(--b-dot); }
.b-letter { fill: var(--b-letter); }
.mini-badge .b-letter { font-size: 78px; }
.b-bar { fill: var(--b-bar); }
.cond { font-family: "Barlow Condensed", sans-serif; font-weight: 700; }
.serif { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 62px; }
.sans { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 70px; }
.mark-sans { display: none; }
[data-theme="c"] .mark-serif { display: none; }
[data-theme="c"] .mark-sans { display: inline; }

/* Stipt */
#stipt { padding-bottom: 72px; scroll-margin-top: 16px; }
.card {
  background: var(--card); color: var(--card-fg); border-radius: 20px; padding: 40px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
}
.card-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 2rem; line-height: 1.2; }
.signal { color: #E4572E; }
.card p { margin: 0; font-size: 1.125rem; color: var(--card-muted); }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; font-weight: 600; color: var(--card-points); }
.actions { flex: 0 1 280px; display: flex; flex-direction: column; gap: 12px; }
.btn { display: block; text-align: center; padding: 14px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn.primary { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.btn.outline { border-color: var(--btn2); color: var(--btn2); }
.btn:hover { color: inherit; filter: brightness(1.08); }
.btn.primary:hover { color: var(--btn-fg); }
.btn.outline:hover { color: var(--btn2); }

/* Footer */
.foot { margin-top: auto; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 24px; }
.legal { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .82rem; color: var(--faint); }
.legal a { color: var(--faint); }
.style-switch { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--faint); }
.style-label { margin-right: 4px; }
.swatch {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.swatch::before {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  border: 2px solid var(--faint);
}
.sw-a::before { background: #1F4D3A; }
.sw-b::before { background: linear-gradient(90deg, #F4F1EA 50%, #1F4D3A 50%); }
.sw-c::before { background: #16181B; border-color: #B08A4E; }
.swatch[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--fg);
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .top { padding-top: 16px; padding-bottom: 8px; }
  .hero { padding-top: 24px; padding-bottom: 48px; gap: 32px; }
  .hero-text { flex-basis: 100%; }
  .hero-badge { flex-basis: 100%; }
  .badge { max-width: 220px; }
  h1 { font-size: calc(var(--h1-size) * .62); }
  .card { padding: 28px 22px; }
  .card-text, .actions { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
