@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Romanian s-comma and t-comma, loaded only when those glyphs appear */
@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans-400-ro-a.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0218-021B;
}
/* Romanian a-breve, loaded only when that glyph appears */
@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans-400-ro-b.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0102-0103;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --paper: #fbfcfc;
  --panel: #edf1f3;
  --ink: #13212e;
  --muted: #5d6d7b;
  --rule: #dce3e8;
  --accent: #16607a;
  --active: #2c7a5b;

  --sans: "Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 62ch;
  --gutter: clamp(1.5rem, 6vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- shell ---------- */

.wrap {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem 0;
}

.mark {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.mark img { display: block; width: auto; }
.mark-logo { height: 21px; }
.mark-glyph { height: 32px; width: 32px; }
.mark:hover img { opacity: .68; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: .9375rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 0 var(--ink);
}

main { padding-block: clamp(3.5rem, 9vw, 6.5rem) 0; }

/* ---------- display ---------- */

.hero { margin: 0; line-height: 0; }
.hero img {
  display: block;
  height: clamp(3.25rem, 9vw, 5.5rem);
  width: auto;
  max-width: min(100%, 27rem);
  object-fit: contain;
}

.lead {
  font-size: clamp(1.1875rem, 2.6vw, 1.4375rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
  margin: 1.25rem 0 0;
  text-wrap: balance;
}

.pagetitle {
  font-weight: 500;
  font-size: clamp(1.875rem, 5vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
}

.standfirst {
  color: var(--muted);
  margin: .875rem 0 0;
  max-width: 46ch;
}

/* ---------- the fact band ---------- */

.facts {
  background: var(--panel);
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-block: clamp(2rem, 5vw, 2.75rem);
}

.facts-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 3.5rem;
}

.fact { min-width: 0; }

.fact-label {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: .3rem;
}

.fact-value {
  font-family: var(--mono);
  font-size: clamp(1.125rem, 2.6vw, 1.4375rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.fact-value.is-active { color: var(--active); }

.facts-note {
  margin: 1.75rem 0 0;
  font-size: .875rem;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- prose ---------- */

.prose { padding-block: clamp(3rem, 7vw, 4.5rem) 0; }

.prose h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0 0 .5rem;
  letter-spacing: -0.005em;
}

.prose p {
  margin: 0 0 1.15rem;
  max-width: var(--measure);
}

.prose > section + section {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--rule);
}

.prose p:last-child { margin-bottom: 0; }

/* ---------- definition list ---------- */

.detail {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) 1fr;
  gap: 0;
}

.detail dt {
  color: var(--muted);
  font-size: .9375rem;
  padding: .875rem 1.5rem .875rem 0;
  border-top: 1px solid var(--rule);
}

.detail dd {
  margin: 0;
  padding: .875rem 0;
  border-top: 1px solid var(--rule);
  overflow-wrap: anywhere;
}


.code {
  font-family: var(--mono);
  font-size: .9375rem;
}

.status {
  color: var(--active);
  font-family: var(--mono);
  font-size: .9375rem;
}

@media (max-width: 34rem) {
  .detail { grid-template-columns: 1fr; }
  .detail dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .detail dd {
    border-top: 0;
    padding-top: .15rem;
  }
}

/* ---------- contact rows ---------- */

.channels {
  margin: 0;
  padding: 0;
  list-style: none;
}

.channels li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}

.channel-label {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: .3rem;
}

.channel-value {
  font-family: var(--mono);
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.channel-note {
  margin: .4rem 0 0;
  font-size: .9375rem;
  color: var(--muted);
}

/* ---------- footer ---------- */

.foot {
  margin-top: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: .9375rem;
  color: var(--muted);
}

.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.foot-legal { font-family: var(--mono); font-size: .8125rem; }
