/* Stathmos — civic-standards project. Institutional, restrained. */

:root {
  --bone:   #F4F0E8;
  --paper:  #FBF9F4;   /* a touch lighter than bone, for cards/wells */
  --ink:    #1A1B1F;
  --stone:  #675F54;
  --cobalt: #0C3F7C;
  --navy:   #08305F;
  --hair:   #DED7C8;   /* warm hairline on light */

  --bg:      var(--bone);
  --fg:      var(--ink);
  --muted:   var(--stone);
  --accent:  var(--cobalt);
  --rule:    var(--hair);
  --well:    var(--paper);

  --measure: 40rem;    /* reading column */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #16171B;
    --fg:     #ECE7DC;
    --muted:  #A79E8F;
    --accent: #9CBBE4;   /* lightened cobalt for AA on dark */
    --rule:   #2E3138;
    --well:   #1D1F24;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bone);
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---- masthead ---- */

.masthead {
  padding: 64px 0 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mono-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1;
}
.greek {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 20px 0 0;
}
.tagline {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 400;
  margin: 22px 0 0;
  max-width: 34ch;
}

/* tick-ruler divider — the "measure" motif */
.measure-rule {
  height: 12px;
  margin: 44px 0 0;
  border-top: 1px solid var(--rule);
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0, var(--rule) 1px,
    transparent 1px, transparent 32px
  );
  background-size: 32px 6px;
  background-repeat: repeat-x;
  background-position: left top;
  opacity: 0.9;
}

/* ---- sections ---- */

main { padding: 8px 0 0; }

section { padding: 40px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

p { margin: 0 0 16px; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  max-width: 40ch;
}

strong { font-weight: 600; }

/* standards register */
.register {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--well);
  overflow: hidden;
}
.std {
  display: block;
  padding: 20px 22px;
  color: inherit;
}
.std:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.std-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.std-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
}
.std-name .arrow { color: var(--accent); }
.std-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.std-desc { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.register-note {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 2px 0;
}

/* commitments */
ul.commit {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.commit li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--rule);
  max-width: 62ch;
}
ul.commit li:first-child { border-top: 0; }
ul.commit li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

/* status note */
.status-note {
  font-size: 15.5px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  max-width: 58ch;
}

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

footer {
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  padding: 34px 0 56px;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.foot-grid a { color: var(--accent); }
.foot-legal {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .wordmark { font-size: 29px; }
  .tagline { font-size: 19px; }
  body { font-size: 16px; }
}
