/* standingquestions.com — hand-written CSS, no build step.
   Editorial field-report aesthetic: warm paper & ink, serif body, mono for log artifacts. */

:root {
  --bg: #f6f1e7;
  --ink: #221e17;
  --muted: #6e6354;
  --accent: #a83c18;
  --accent-contrast: #faf6ee;
  --code-bg: #ece5d6;
  --code-ink: #3a342a;
  --rule: #d8cfbc;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130e;
    --ink: #e9e1d0;
    --muted: #9c907a;
    --accent: #e07e4b;
    --accent-contrast: #16130e;
    --code-bg: #211c14;
    --code-ink: #cfc5af;
    --rule: #332c1f;
  }
}

* { box-sizing: border-box; }

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* editorial masthead rule */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  z-index: 10;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 120ms ease, color 120ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

code, pre {
  font-family: var(--mono);
}

code {
  font-size: 0.84em;
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

pre {
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* ---------- landing page ---------- */

.landing {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) 1.5rem 4rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.hero {
  font-size: clamp(2.5rem, 7.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 2rem;
}

.hero .rederive {
  font-style: italic;
  color: var(--accent);
}

.deck {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  margin: -0.6rem 0 2.4rem;
}

.pitch {
  font-size: clamp(1.15rem, 2.4vw, 1.3rem);
  line-height: 1.6;
  max-width: 38rem;
  margin: 0 0 3rem;
}

.log-caption {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.log-sample {
  margin: 0 0 3rem;
}

.log-sample .key { color: var(--muted); }
.log-sample .delta {
  color: var(--accent);
  font-weight: 500;
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--accent);
  margin-left: 0.15em;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 4rem;
}

.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.75em 1.2em;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  transition: background 130ms ease, color 130ms ease, border-color 130ms ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* staggered entrance */
.reveal {
  animation: fade-up 0.65s ease both;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }
.reveal:nth-child(6) { animation-delay: 0.4s; }
.reveal:nth-child(7) { animation-delay: 0.48s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .cursor { animation: none; }
}

/* ---------- site footer (both pages) ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2;
  color: var(--muted);
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- article page ---------- */

.site-nav {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover { color: var(--accent); }

.article {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem 4rem;
}

.article h1 {
  font-size: clamp(2.1rem, 6vw, 3.3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.2rem;
}

.byline {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 2.2rem;
}

.byline a { color: var(--muted); }
.byline a:hover { color: var(--accent); }

.lede {
  font-style: italic;
  font-size: 1.05em;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.lede a { color: inherit; }

.article h2 {
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.6em 0 0.7em;
}

.article p { margin: 0 0 1.2rem; }

.article ul, .article ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.article li { margin-bottom: 0.7rem; }

.article pre { margin: 1.4rem 0 1.6rem; }

/* epistemic tags: [observed] / [inferred] / [literature] */
.tag {
  font-family: var(--mono);
  font-size: 0.74em;
  font-style: normal;
  color: var(--muted);
}

strong.tag { color: var(--accent); font-weight: 500; }

.coda {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 3px solid var(--accent);
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1.45;
}

.article .site-footer { margin-top: 4rem; }

/* ---------- blog index ---------- */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4rem;
}

.post-list li { margin-bottom: 1.6rem; }

.post-list .post-title {
  font-size: 1.4rem;
  font-weight: 500;
}

.post-list .post-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
