/* approved.tools — "launch log" design system.
   Paper + ink, one signal-orange accent, serif display, mono metadata.
   Area stylesheets (pages.css, submit.css, admin.css) build on these tokens only. */

:root {
  --paper: #f7f6f2;
  --paper-2: #efede6;
  --card: #ffffff;
  --ink: #141413;
  --ink-2: #57554f;
  --ink-3: #8d8a83;
  --rule: #e3e0d8;
  --rule-strong: #cfcbc0;
  --accent: #ff4f00;
  --accent-soft: #ffe7db;
  --accent-ink: #ffffff;
  --ok: #17804a;
  --ok-soft: #dff3e7;
  --warn: #a45a00;

  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 0 rgba(20, 20, 19, 0.04), 0 8px 24px -12px rgba(20, 20, 19, 0.12);
  --wrap: 1080px;
  --gutter: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0f0e;
    --paper-2: #181816;
    --card: #151514;
    --ink: #f3f1ea;
    --ink-2: #aaa79e;
    --ink-3: #6f6c66;
    --rule: #262523;
    --rule-strong: #34322f;
    --accent: #ff6a2b;
    --accent-soft: #3a1a0c;
    --ok: #4cc283;
    --ok-soft: #10291c;
    --warn: #e0a24f;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0f0e;
  --paper-2: #181816;
  --card: #151514;
  --ink: #f3f1ea;
  --ink-2: #aaa79e;
  --ink-3: #6f6c66;
  --rule: #262523;
  --rule-strong: #34322f;
  --accent: #ff6a2b;
  --accent-soft: #3a1a0c;
  --ok: #4cc283;
  --ok-soft: #10291c;
  --warn: #e0a24f;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.01em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.serif { font-family: var(--font-display); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 1px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.wordmark .dot { color: var(--accent); }
.wordmark .tld { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--ink-3); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { padding: 6px 10px; border-radius: 999px; color: var(--ink-2); font-size: 14px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } }

.site-footer { margin-top: 96px; border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--ink-3); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.site-footer a:hover { color: var(--ink); }

/* ---------- buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, black); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.input { height: 44px; width: 100%; padding: 0 14px; border-radius: var(--radius-s); border: 1px solid var(--rule-strong); background: var(--card); outline: none; }
.input:focus { border-color: var(--ink); }
.input::placeholder { color: var(--ink-3); }

/* ---------- chips / stamps ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); font-size: 12px; white-space: nowrap; background: var(--card); }
a.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.stamp { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.stamp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stamp-accent { background: var(--accent-soft); color: var(--accent); }
.stamp-muted { background: var(--paper-2); color: var(--ink-2); }

/* ---------- product logo ---------- */
.logo { flex: none; width: 44px; height: 44px; border-radius: 11px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule); display: grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo .monogram { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--ink); }
.logo-lg { width: 72px; height: 72px; border-radius: 18px; }
.logo-lg .monogram { font-size: 40px; }
.logo-sm { width: 28px; height: 28px; border-radius: 7px; }
.logo-sm .monogram { font-size: 16px; }

/* ---------- launch log rows ---------- */
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.log-row { position: relative; display: grid; grid-template-columns: 28px 44px 1fr auto; align-items: center; gap: 14px; padding: 14px 10px; border-bottom: 1px solid var(--rule); border-radius: 0; transition: background .12s ease; }
.log-row:hover { background: var(--paper-2); }
.log-row .num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: right; }
.log-row .body { min-width: 0; }
.log-row .name { font-weight: 600; letter-spacing: -0.01em; }
.log-row .name a::after { content: ""; position: absolute; inset: 0; }
.log-row .tagline { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row .meta { display: flex; gap: 8px; align-items: center; position: relative; z-index: 1; }
.log-row.is-featured { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
@media (max-width: 640px) {
  .log-row { grid-template-columns: 44px 1fr; padding: 12px 4px; }
  .log-row .num, .log-row .meta .chip { display: none; }
  .log-row .meta { grid-column: 2; }
}

/* ---------- section heads ---------- */
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 48px 0 12px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: -0.01em; }
.section-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.section-head .more { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.section-head .more:hover { color: var(--ink); }

/* ---------- prose (articles) ---------- */
.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink); max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 1.6em 0 .4em; }
.prose h3 { font-size: 17px; margin: 1.4em 0 .3em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose a { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose li { margin: .25em 0; }

.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--rule-strong); border-radius: var(--radius); }
