/* ============================================================
   Ontosystematics — design system
   Register: scientific / systematic. Neutral ground, ruled
   structure, a single muted violet. Shares its design language
   with ethicalontology.org, which carries the same system in
   green: one apparatus, two inquiries, told apart by hue.
   Light + dark. No external requests, no webfonts.
   ============================================================ */

:root {
  --paper:      #ffffff;
  --paper-2:    #f7f7fa;
  --paper-3:    #eeeef4;
  --ink:        #1c1b22;
  --ink-2:      #3c3b46;
  --muted:      #6b6a77;
  --line:       #dedde5;
  --line-soft:  #eaeaf0;

  /* a slate-violet: the chart, not the doctrine */
  --accent:     #4b3f9e;
  --accent-ink: #3d3384;
  --accent-pale:#e1ddf4;

  --sel:        #e1ddf4;
  --measure:    40rem;

  --sans: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --serif: 'Source Serif 4','Source Serif Pro',Charter,'Iowan Old Style',Georgia,Cambria,'Times New Roman',serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #131218;
    --paper-2:    #17161e;
    --paper-3:    #1d1c26;
    --ink:        #e8e7ee;
    --ink-2:      #c3c1cd;
    --muted:      #8c8a98;
    --line:       #2c2a36;
    --line-soft:  #232231;
    --accent:     #a99cf0;
    --accent-ink: #bcb2f5;
    --accent-pale:#241f3e;
    --sel:        #262041;
  }
}
:root[data-theme="dark"] {
  --paper:#131218; --paper-2:#17161e; --paper-3:#1d1c26;
  --ink:#e8e7ee; --ink-2:#c3c1cd; --muted:#8c8a98;
  --line:#2c2a36; --line-soft:#232231;
  --accent:#a99cf0; --accent-ink:#bcb2f5; --accent-pale:#241f3e; --sel:#262041;
}
:root[data-theme="light"] {
  --paper:#ffffff; --paper-2:#f7f7fa; --paper-3:#eeeef4;
  --ink:#1c1b22; --ink-2:#3c3b46; --muted:#6b6a77;
  --line:#dedde5; --line-soft:#eaeaf0;
  --accent:#4b3f9e; --accent-ink:#3d3384; --accent-pale:#e1ddf4; --sel:#e1ddf4;
}

* { 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: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sel); }

p, ul, ol, blockquote { margin: 0 0 1.15em; }
a { color: var(--accent); text-underline-offset: 0.15em; text-decoration-thickness: 0.05em; }
a:hover { color: var(--accent-ink); }
strong { font-weight: 600; }
hr { border: 0; height: 1px; background: var(--line); margin: 2.75rem 0; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }

/* ---- masthead ---- */
.site-head {
  background: var(--paper);
  border-bottom: 2px solid var(--accent);
}
.site-head__inner {
  max-width: 56rem; margin: 0 auto; padding: 2.1rem 1.5rem 1.7rem;
  text-align: center;
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.4vw, 2.05rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.wordmark a { color: inherit; text-decoration: none; }
.wordmark__sub {
  display: block;
  margin: 0.55rem auto 0;
  max-width: 34rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 34rem) {
  .site-head__inner { padding-top: 1.6rem; }
  .wordmark__sub { letter-spacing: 0.13em; }
}

/* ---- prose ---- */
main { padding: 3rem 0 4rem; }

.lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.4em;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.008em;
  margin: 2.9rem 0 0.85rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-of-type { margin-top: 2.4rem; }

.prose p { color: var(--ink-2); }
.prose ul { padding-left: 1.15rem; color: var(--ink-2); }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--muted); }

/* a definition set out on its own, as the article sets out its terms */
.statement {
  margin: 1.3em 0 1.4em;
  padding: 0.9rem 1.15rem;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}
.statement p { margin: 0; color: inherit; }

/* ---- call to action ---- */
.cta {
  display: inline-block;
  margin: 0.4rem 0 0.5rem;
  padding: 0.62rem 1.15rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
}
.cta:hover { background: var(--accent-ink); color: #fff; }
@media (prefers-color-scheme: dark) {
  .cta { color: #10201f; }
  .cta:hover { color: #10201f; }
}

/* ---- the founding-article card ---- */
.record {
  margin: 1.6rem 0 0;
  padding: 1.4rem 1.5rem 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.record__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.record__title {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.2rem;
  color: var(--ink);
}
.record__sub {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink-2);
  margin: 0 0 0.9rem;
}
.record dl { margin: 0 0 1.1rem; font-size: 0.92rem; }
.record dt {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.65rem;
}
.record dd { margin: 0.1rem 0 0; color: var(--ink-2); }

.note {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- footer ---- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 1.6rem 0;
}
.site-foot__inner {
  max-width: 56rem; margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.87rem; color: var(--muted);
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }
.site-foot__col { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }

@media (max-width: 34rem) {
  main { padding: 2.2rem 0 3rem; }
  .lede { font-size: 1.1rem; }
  .prose h2 { font-size: 1.22rem; }
}

/* ---- figures ---------------------------------------------------------
   One image on the site, set slightly wider than the text measure so it
   reads as a plate rather than an inline illustration. ------------------ */
.fig {
  margin: 2.2rem 0 2.4rem;
}
.fig--wide {
  width: 52rem;
  max-width: calc(100vw - 3rem);
  margin-inline: calc(50% - 26rem);
}
.fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  background: var(--paper-3);
}
.fig figcaption {
  margin-top: 0.7rem;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--muted);
}
.fig figcaption strong { color: var(--ink-2); font-weight: 600; }

@media (max-width: 58rem) {
  .fig--wide { width: 100%; max-width: 100%; margin-inline: 0; }
}
@media (prefers-color-scheme: dark) {
  /* a bright sky against dark text ground is harsh; take the glare off */
  .fig img { filter: brightness(0.88) saturate(0.94); }
}
