:root {
  --bg: #f6f7f9;
  --ink: #0b0d12;
  --muted: #4a5060;
  --card: #ffffff;
  --line: #dfe2e8;
  --night: #0b0d12;
  --night-ink: #f2f4f8;
  --night-muted: #a9b0c0;
  --night-line: #232838;
  --accent: #22c55e;
  --accent-hover: #4ade80;
  --accent-on: #04130a;
  --accent-ink: #0b7a3b;
  --accent-soft: #4ade80;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 1.0625rem; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.site-head :focus-visible, .hero-section :focus-visible, .foot :focus-visible { outline-color: var(--accent); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-on); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 6.5vw, 4.75rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 800; margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

/* header */
.site-head { background: var(--night); color: var(--night-ink); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; gap: 1rem; flex-wrap: wrap; }
.mark { font-weight: 800; font-size: 1.1rem; color: var(--night-ink); text-decoration: none; }
.top ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.top ul a { text-decoration: none; color: var(--night-muted); padding: .5rem 0; display: inline-block; min-height: 24px; }
.top ul a:hover { color: var(--night-ink); }
main { flex: 1; }
.hero-section { background: var(--night); color: var(--night-ink); padding: 2rem 0 5rem; height: 100%; display: flex; align-items: center; }
.hero-section .wrap { width: 100%; }
main:has(.hero-section) { display: flex; flex-direction: column; }
main:has(.hero-section) .hero-section { flex: 1; }
.hero-body { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
.portrait { width: min(100%, 22rem); height: auto; border-radius: 1.5rem; display: block; box-shadow: 0 0 0 1px var(--night-line), 0 1.5rem 3rem rgba(0,0,0,.45); }
@media (min-width: 60rem) { .hero-body { grid-template-columns: 1fr 22rem; } .portrait { width: 22rem; } }
.hero-text h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.lede { font-size: 1.25rem; color: var(--night-muted); max-width: 42rem; margin: 1.75rem 0 0; }
.lede a { color: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.btn { display: inline-block; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-on); font-weight: 700; text-decoration: none; padding: .9rem 1.6rem; border-radius: 999px; }
.btn:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--accent-soft); }
.btn-outline:hover { background: var(--accent); color: var(--accent-on); }
.btn-light { background: var(--ink); border-color: var(--ink); color: var(--night-ink); }
.btn-light:hover { background: #262b3a; border-color: #262b3a; }

/* content pages */
main section, main article { padding: 3.5rem 0 5rem; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.prose p, .prose li { max-width: 46rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: .35rem 0; }
.prose > p:first-of-type { margin-top: 1.25rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.crumbs { margin: 0 0 1rem; }
.meta { color: var(--muted); font-size: .95rem; }
code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .92em; background: #e9ecf1; padding: .1em .35em; border-radius: .3rem; }

.cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.prose .cards { padding: 0; max-width: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.card h2 { font-size: 1.25rem; margin: 0; }
.card a { color: var(--accent-ink); }
.card p { margin: 0; }

/* footer */
.foot { background: var(--night); color: var(--night-ink); padding: 3rem 0 2.5rem; border-top: 1px solid var(--night-line); }
.foot-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.foot nav a { color: var(--night-muted); text-decoration: none; display: inline-block; padding: .4rem 0; min-height: 24px; }
.foot nav a:hover { color: var(--night-ink); text-decoration: underline; }
.li-link { color: var(--accent-soft); display: inline-block; line-height: 0; padding: .25rem; border-radius: .4rem; }
.li-link:hover { color: var(--night-ink); }
.li-icon { display: block; }
.copy { margin: 2rem 0 0; color: var(--night-muted); font-size: .95rem; }

@media (max-width: 40rem) {
  main section, main article { padding: 2.5rem 0 3.5rem; }
  .hero-section { padding: 2rem 0 3.5rem; }
  .lede { font-size: 1.1rem; }
  .foot-row { align-items: flex-start; }
}

/* cookie consent banner */
.cookie-settings-link { background: none; border: none; padding: .4rem 0; margin: 0; color: var(--night-muted); text-decoration: none; cursor: pointer; font: inherit; display: inline-block; min-height: 24px; }
.cookie-settings-link:hover { color: var(--night-ink); text-decoration: underline; }
.consent-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 999; max-width: 34rem; margin: 0 auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.25); padding: 1.25rem 1.5rem; }
.consent-banner[hidden] { display: none; }
.consent-banner-inner p { margin: 0 0 1rem; font-size: .92rem; }
.consent-banner-inner a { color: var(--accent-ink); }
.consent-banner-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.consent-banner-actions .btn, .consent-banner-actions .btn-outline { padding: .6rem 1.25rem; font-size: .9rem; }
.consent-banner .btn-outline { color: var(--accent-ink); border-color: var(--accent-ink); background: transparent; }
.consent-banner .btn-outline:hover { background: var(--accent-ink); color: #fff; }
@media (max-width: 40rem) {
  .consent-banner { left: .75rem; right: .75rem; bottom: .75rem; padding: 1rem 1.1rem; }
  .consent-banner-actions { flex-direction: column; }
  .consent-banner-actions .btn, .consent-banner-actions .btn-outline { width: 100%; text-align: center; }
}
