/* Layout: a single narrow column read like a register of entities; mono "registry lines" carry the legal facts. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --fg: #16212c;
  --muted: #5a6876;
  --line: #d9dee5;
  --accent: #1e5a86;
  --brass: #9a6b1f;
  --org: var(--accent);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
.org-financialeducation { --org: #1f6b4e; }
.org-saveukrainiansoul { --org: #1d5bb8; }
.org-polishculture { --org: #b3243a; }
.org-templeashdod { --org: #24407a; }
.org-agsoftware { --org: #5b3fa0; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10161d; --surface: #17202a; --fg: #e6ebf0; --muted: #9aa8b6;
    --line: #2a3643; --accent: #6fb0e0; --brass: #d4a65a; color-scheme: dark;
  }
  :root:not([data-theme="light"]) .org-financialeducation { --org: #5cc79c; }
  :root:not([data-theme="light"]) .org-saveukrainiansoul { --org: #7fa9f0; }
  :root:not([data-theme="light"]) .org-polishculture { --org: #f07a8c; }
  :root:not([data-theme="light"]) .org-templeashdod { --org: #93acea; }
  :root:not([data-theme="light"]) .org-agsoftware { --org: #b49cf0; }
}
:root[data-theme="dark"] {
  --bg: #10161d; --surface: #17202a; --fg: #e6ebf0; --muted: #9aa8b6;
  --line: #2a3643; --accent: #6fb0e0; --brass: #d4a65a; color-scheme: dark;
}
:root[data-theme="dark"] .org-financialeducation { --org: #5cc79c; }
:root[data-theme="dark"] .org-saveukrainiansoul { --org: #7fa9f0; }
:root[data-theme="dark"] .org-polishculture { --org: #f07a8c; }
:root[data-theme="dark"] .org-templeashdod { --org: #93acea; }
:root[data-theme="dark"] .org-agsoftware { --org: #b49cf0; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
}
.wrap {
  max-width: 60rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--org); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--org); outline-offset: 2px; border-radius: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--fg); }
.mark {
  width: 2.1rem; height: 2.1rem; border-radius: 6px; display: grid; place-items: center;
  background: var(--fg); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: -.02em;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

/* Type */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; max-width: 65ch; }
.eyebrow { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.registry { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); letter-spacing: .01em; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Hero */
.hero { padding-block: 3.5rem 2.5rem; display: grid; gap: 1rem; }
.creds { display: flex; flex-wrap: wrap; gap: .4rem; }
.cred { font-family: var(--font-mono); font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; color: var(--fg); background: var(--surface); }

section { padding-block: 2.25rem; border-top: 1px solid var(--line); display: grid; gap: 1.25rem; }

/* Register of organizations */
.register { list-style: none; margin: 0; padding: 0; display: grid; }
.register li { border-top: 1px solid var(--line); }
.register li:last-child { border-bottom: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.5rem; align-items: center;
  padding: 1.15rem .25rem; text-decoration: none; color: var(--fg);
  border-left: 3px solid transparent; transition: background .15s, border-color .15s;
}
.entry:hover { background: var(--surface); border-left-color: var(--org); }
.entry > div { min-width: 0; display: grid; gap: .25rem; }
.entry h3 { color: var(--fg); }
.entry p { color: var(--muted); font-size: .98rem; }
.entry .path { font-family: var(--font-mono); font-size: .82rem; color: var(--org); white-space: nowrap; }
@media (max-width: 560px) {
  .entry { grid-template-columns: 1fr; }
}

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 2.5rem; }
.two-col > div { min-width: 0; display: grid; gap: .5rem; align-content: start; }
ul.plain { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }

.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.25rem 1.4rem; display: grid; gap: .6rem; max-width: 34rem;
}
.contact-row { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; }
.contact-row .k { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 4.5rem; }
.contact-row .v { user-select: all; font-weight: 600; }

/* Org page header */
.org-hero { padding-block: 2.5rem 2rem; display: grid; gap: 1rem; }
.crumb { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb b { color: var(--org); font-weight: 500; }
.org-rule { width: 3rem; height: 4px; background: var(--org); border-radius: 2px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; font-size: .98rem; }
.facts dt { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding-top: .2rem; }
.facts dd { margin: 0; min-width: 0; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }

.status { display: inline-block; font-family: var(--font-mono); font-size: .75rem; padding: .1rem .55rem; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; background: var(--surface); }
.site-footer .wrap { padding-block: 2rem; display: grid; gap: 1rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .92rem; }
.foot-links a { color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
