/* ==========================================================
   d/j/r site v0 — placeholder shell
   Visual identity: Sinister Apparatus
   Field-document aesthetic translated to web
   ========================================================== */

:root {
  --ink:    #1A1410;
  --orange: #B8542E;
  --tape:   #E8DCC1;
  --paper:  #FAF7EE;
  --muted:  #6B6358;
  --rule:   #C9BFA8;
  --paper-warm:    #FBF4E8;   /* cascadia */
  --paper-organic: #F5F2E5;   /* whisper drive */
  --paper-cool:    #EFEFE9;   /* unknown */
  --accent-cascadia:    #B07A2E;
  --accent-whisper:     #6B7A52;
  --accent-unknown:     #1A1410;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--orange); }

.mono {
  font-family: "Consolas", "JetBrains Mono", "SF Mono", Menlo,
               "Courier New", monospace;
  font-size: 0.78em;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ===== Layout ===== */

.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 28px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Top bar ===== */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 64px;
}

.topbar .mark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topbar .mark small {
  display: block;
  font-family: "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 400;
}

.topbar nav a {
  font-family: "Consolas", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 20px;
}

.topbar nav a:hover,
.topbar nav a.active {
  color: var(--ink);
}

/* ===== Section indicator (DYMO tape) ===== */

.tape {
  display: inline-block;
  background: var(--tape);
  color: var(--ink);
  font-family: "Consolas", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 12px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* ===== Hero ===== */

.hero {
  margin-bottom: 64px;
}

.hero h1 {
  font-family: "Aptos Display", "Aptos", -apple-system, sans-serif;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  font-weight: 600;
}

.hero .accent { color: var(--orange); }

.hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 580px;
  color: var(--ink);
  margin: 0;
}

/* ===== Content sections ===== */

.section { margin-bottom: 48px; }

.section h2 {
  font-family: "Aptos Display", "Aptos", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
}

.section p { margin: 0 0 12px; max-width: 640px; }

.section ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.section ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.section ul li:last-child { border-bottom: none; }

/* ===== Card grid (portal) ===== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 48px 0;
}

@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border: 1px solid var(--ink);
  padding: 24px 20px;
  display: block;
  background: var(--paper);
  transition: background 0.2s;
}

.card:hover { background: var(--tape); }

.card .card-label {
  font-family: "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card .card-title {
  font-family: "Aptos Display", sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.1;
}

.card .card-note {
  font-size: 14px;
  color: var(--muted);
}

/* ===== Status notice ===== */

.notice {
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  background: var(--paper);
  margin: 32px 0;
}

.notice .notice-label {
  font-family: "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.notice p { margin: 0; font-size: 15px; }

/* ===== Footer ===== */

.sitefoot {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.sitefoot .credit { color: var(--ink); font-weight: 600; }

/* ===== Per-page palette shifts ===== */

body.page-cascadia { background: var(--paper-warm); }
body.page-cascadia .hero .accent { color: var(--accent-cascadia); }
body.page-cascadia .topbar { border-color: var(--accent-cascadia); }
body.page-cascadia .notice { border-left-color: var(--accent-cascadia); }
body.page-cascadia .notice .notice-label { color: var(--accent-cascadia); }

body.page-whisperdrive { background: var(--paper-organic); }
body.page-whisperdrive .hero .accent { color: var(--accent-whisper); }
body.page-whisperdrive .topbar { border-color: var(--accent-whisper); }
body.page-whisperdrive .notice { border-left-color: var(--accent-whisper); }
body.page-whisperdrive .notice .notice-label { color: var(--accent-whisper); }
body.page-whisperdrive .mycelium {
  display: block;
  width: 100%;
  height: 80px;
  margin: 48px 0;
  background-image:
    radial-gradient(circle at 20% 50%, var(--rule) 1px, transparent 1.5px),
    radial-gradient(circle at 60% 30%, var(--rule) 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, var(--rule) 1px, transparent 1.5px);
  background-size: 100% 100%;
  position: relative;
  opacity: 0.5;
}

body.page-unknown { background: var(--paper-cool); }
body.page-unknown .hero .accent { color: var(--accent-unknown); border-bottom: 4px solid var(--orange); }
body.page-unknown .grid-hint {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  height: 60px;
  margin: 48px 0;
  opacity: 0.4;
}
body.page-unknown .grid-hint span {
  background: var(--rule);
}

/* ===== Print-safe / utilities ===== */

.spacer-sm { height: 24px; }
.spacer-md { height: 48px; }
.spacer-lg { height: 80px; }

::selection { background: var(--orange); color: var(--paper); }
