@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap");

/* ============ Concept 2 — "Editorial" ============
   Bright print-magazine minimalism: white page, warm off-white panels,
   one restrained walnut/ochre accent. High-contrast Fraunces display for the
   pivotal quote + headings, Newsreader for reading prose, Inter for the
   labels / nav / meta "furniture". Left-aligned, asymmetric, thin rules. */
:root {
  --page: #ffffff;
  --panel: #f7f4ee;       /* warm off-white surface */
  --panel-2: #efe9df;     /* current-track / highlight */
  --ink: #1c1a17;
  --ink-2: #3a352d;
  --mut: #5f5a50;         /* ~6.8:1 on white */
  --mut-2: #6f695c;       /* ~5.5:1 on white */
  --rule: #e7e1d6;        /* hairline */
  --rule-2: #d9d2c4;      /* stronger rule */
  --accent: #6b4f2a;      /* deep walnut, ~7.6:1 on white */
  --accent-2: #8a6a34;    /* brighter interaction ochre, ~5:1 */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 68rem;
  --read: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 0.96rem + 0.32vw, 1.12rem);
  line-height: 1.68;
  font-optical-sizing: auto;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #ecdcc2; color: var(--accent); }

.skip-link {
  position: fixed; left: 1rem; top: -3rem; z-index: 50;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  padding: .6rem .95rem; text-decoration: none; border-radius: 2px;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 1px; }

/* --- editorial furniture (labels / kickers) --- */
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--mut);
  margin: 0 0 1.2rem;
}
.sec-label {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mut);
  margin: 0 0 1.5rem;
  display: flex; align-items: center; gap: .7rem;
}
.sec-label::before {
  content: ""; flex: none; width: 1.9rem; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* --- concentric Trinity mark --- */
.mark { display: block; color: var(--ink); }
.brand-mark, .foot-mark { display: inline-flex; }
.mark--head { width: 26px; height: 26px; color: var(--accent); }
.mark--hero { width: clamp(280px, 46vw, 560px); height: auto; color: var(--accent); opacity: .07; }
.mark--foot { width: 22px; height: 22px; color: var(--mut-2); }
.mark--symbol { width: 84px; height: 84px; color: var(--accent); }

/* ============ header ============ */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; max-width: var(--maxw); margin: 0 auto;
  padding: 1.25rem clamp(1.15rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-word {
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .28em; color: var(--ink); padding-left: .1em;
}
.site-nav { display: flex; gap: clamp(.7rem, 2vw, 1.7rem); flex-wrap: wrap; }
.site-nav a {
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; color: var(--mut); padding: .3rem 0;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--ink); border-color: var(--rule-2); }
.site-nav a:active { color: var(--accent-2); }
.site-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

/* ============ landing — left-aligned, asymmetric ============ */
.landing {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.4rem, 7vw, 5.5rem) clamp(1.15rem, 4vw, 2.5rem) 4rem;
}
.hero { position: relative; overflow: hidden; text-align: left; }
.hero-mark {
  position: absolute; top: -6%; right: -10%; z-index: 0;
  display: block; pointer-events: none;
}
.hero > :not(.hero-mark) { position: relative; z-index: 1; }

.pivot { margin: 0; max-width: 44rem; border: none; padding: 0; }
.pivot p {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.05rem, 1.2rem + 3.9vw, 3.7rem);
  line-height: 1.1; letter-spacing: -0.012em; margin: 0 0 1.6rem;
  color: var(--ink); text-wrap: balance;
}
.pivot > footer { margin: 0; }
.cite {
  display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  text-decoration: none; padding: .4rem .8rem; border: 1px solid var(--rule-2);
  border-radius: 999px; background: var(--panel);
  transition: border-color .15s, background .15s, color .15s;
}
.cite:hover { border-color: var(--accent); background: #fff; color: var(--accent-2); }
.cite:active { background: var(--panel-2); }

/* doors — feature teasers */
.doors {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: clamp(2.6rem, 6vw, 3.8rem) 0 0; text-align: left;
}
.door {
  position: relative; display: grid; gap: .6rem;
  padding: 1.9rem 1.9rem 2rem;
  text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--rule-2); border-top: 2px solid var(--accent);
  transition: border-color .18s, background .18s, transform .18s;
}
.door:hover { background: var(--panel); border-top-color: var(--accent-2); transform: translateY(-2px); }
.door:active { background: var(--panel-2); }
.door-k {
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.door-t {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.6rem);
  line-height: 1.12; letter-spacing: -0.01em;
}
.door-d { font-family: var(--serif); font-size: .95rem; color: var(--ink-2); line-height: 1.55; max-width: 24rem; }
.door-go {
  position: absolute; top: 1.7rem; right: 1.6rem; font-family: var(--sans);
  color: var(--accent); font-size: 1.05rem; transition: transform .18s;
}
.door:hover .door-go { transform: translate(3px, -3px); }

.hero-sub {
  margin: clamp(2.6rem, 6vw, 3.6rem) 0 0; max-width: var(--read);
  font-family: var(--serif); font-style: italic; color: var(--mut);
  font-size: 1.08rem; line-height: 1.6;
}

/* ============ interior pages ============ */
.page {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.15rem, 4vw, 2.5rem) 3.5rem;
}
.page-hero { max-width: var(--read); margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.page-hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.2rem, 1.35rem + 3.4vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.018em; margin: 0 0 1.15rem; color: var(--ink);
}
.lede {
  font-family: var(--serif); font-size: clamp(1.12rem, 1rem + .45vw, 1.34rem);
  line-height: 1.55; color: var(--ink-2); margin: 0;
}

.section { max-width: var(--maxw); margin: 0 auto clamp(2.6rem, 6vw, 3.8rem); }
.prose { max-width: var(--read); }
.prose p { margin: 0 0 1.2rem; }
.prose .drop::first-letter {
  font-family: var(--display); font-weight: 600; float: left; font-size: 3.6em;
  line-height: .74; padding: .04em .1em 0 0; color: var(--accent);
}

/* stats — refined figure row */
.stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 4vw, 2.8rem);
  margin-top: clamp(1.9rem, 4vw, 2.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.stat { display: grid; }
.s-num {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); line-height: 1;
  letter-spacing: -0.01em; color: var(--ink);
  font-feature-settings: "lnum", "tnum";
}
.s-lab {
  font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mut); margin-top: .45rem;
}

/* parts — ruled editorial list */
.part-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.part {
  display: flex; align-items: baseline; gap: 1.3rem; padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule); transition: background .15s;
}
.part:hover { background: var(--panel); }
.p-rn {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--accent);
  min-width: 2.6rem; letter-spacing: .12em;
}
.p-nm { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); }

/* members — hairline grid */
.members {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.member { background: #fff; padding: 1.5rem 1.6rem; }
.m-role { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mut-2); margin: 0 0 .35rem; }
.m-name { font-family: var(--display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em; margin: 0 0 .75rem; }
.m-contact { display: grid; gap: .25rem; font-family: var(--sans); font-size: .84rem; margin: 0; }
.m-contact a { color: var(--ink-2); text-decoration: none; transition: color .15s; }
.m-contact a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.m-contact a:active { color: var(--accent-2); }

/* org */
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.7rem; margin: 0; }
.org-grid div { display: grid; gap: .35rem; }
.org-grid dt { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mut-2); }
.org-grid dd { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.mono { font-family: var(--sans); font-size: .98rem; letter-spacing: .01em; font-feature-settings: "tnum", "lnum"; }

/* symbol aside — warm panel */
.symbol {
  display: flex; gap: 1.9rem; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--rule); padding: 1.9rem;
}
.symbol p { margin: 0; font-family: var(--serif); color: var(--ink-2); max-width: 42rem; }
.symbol-mark { flex: none; }

/* ============ audio mockup — warm editorial panel ============ */
.mock-tag {
  font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .12em;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  padding: .12rem .55rem; text-transform: uppercase;
}
.player {
  display: flex; align-items: center; gap: 1.3rem;
  background: var(--panel); color: var(--ink); border: 1px solid var(--rule-2);
  padding: 1.2rem 1.4rem;
}
.p-play {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff; font-size: 1.05rem;
  cursor: pointer; display: grid; place-items: center;
  transition: background .15s, transform .1s;
}
.p-play:hover { background: var(--accent-2); }
.p-play:active { transform: scale(.94); }
.p-body { flex: 1; min-width: 0; }
.p-now { margin: 0 0 .6rem; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.p-eyebrow { font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); margin-right: .6rem; }
.p-bar { height: 4px; background: var(--rule-2); border-radius: 4px; overflow: hidden; }
.p-fill { display: block; width: 22%; height: 100%; background: var(--accent); }
.p-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--sans); font-size: .72rem; color: var(--mut); margin-top: .55rem; font-feature-settings: "tnum"; }
.p-speed { border: 1px solid var(--rule-2); border-radius: 999px; padding: .08rem .55rem; color: var(--ink-2); }

.tracks { list-style: none; margin: 1rem 0 0; padding: 0; border: 1px solid var(--rule); border-top: none; }
.track {
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: center;
  gap: .8rem; padding: .85rem 1.15rem; border-top: 1px solid var(--rule);
  font-family: var(--serif); font-size: 1rem; cursor: default; transition: background .15s;
}
.track:hover { background: var(--panel); }
.track.is-current { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.t-num { font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--mut-2); font-feature-settings: "tnum"; }
.t-title { font-family: var(--serif); color: var(--ink); }
.track.is-current .t-title { font-weight: 600; color: var(--accent); }
.t-play { color: var(--accent); font-size: .82rem; }
.mock-note { font-family: var(--sans); font-size: .74rem; color: var(--mut); margin: 1rem 0 0; }

/* ============ footer ============ */
.site-foot { border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.foot-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.5rem clamp(1.15rem, 4vw, 2.5rem);
  display: grid; gap: 1rem; grid-template-columns: auto 1fr auto; align-items: center;
}
.foot-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sans); font-size: .84rem; font-weight: 500; letter-spacing: .03em; color: var(--mut); }
.foot-note { margin: 0; font-family: var(--serif); font-size: .92rem; color: var(--mut); max-width: 34rem; line-height: 1.55; }
.foot-copy { margin: 0; font-family: var(--sans); font-size: .72rem; letter-spacing: .04em; color: var(--mut-2); text-align: right; }

/* ============ responsive ============ */
@media (max-width: 720px) {
  .doors { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; text-align: left; }
  .foot-copy { text-align: left; }
  .symbol { flex-direction: column; gap: 1.2rem; }
  .site-head { flex-wrap: wrap; }
  .mark--hero { opacity: .05; }
}
@media (max-width: 420px) {
  .brand-word { letter-spacing: .2em; font-size: .86rem; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: .78rem; }
  .door { padding: 1.5rem 1.5rem 1.6rem; }
}
@media print {
  .site-nav, .doors, .player, .p-play, .skip-link, .hero-mark { display: none; }
  body { background: #fff; color: #000; }
  .site-head, .site-foot { border-color: #ccc; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- interior pages: sections span the full content width, matching the
   Kogukond/EUA page — section rules, the parts list and the audio player all fill
   the column like the member/org grids do. Only the running body text keeps a
   readable measure. Left-aligned, never centered. --- */
.section { margin-left: 0; margin-right: 0; }
.section.prose { max-width: var(--maxw); }
.page-hero { max-width: 46rem; }
.prose p { max-width: none; }   /* body text fills the column, matching the Kogukond grids */
