/* ============================================================
   Beetle — page identity (beetle.html only)
   Loaded after main.css → site.css → quiet.css. Everything is scoped
   to body.beetle-page so the rest of the site is unaffected.
   Brand spec: assets/beetle/brand/README.md
   ============================================================ */

body.beetle-page {
  /* Beetle palette: natural-history plate meets lab notebook */
  --bt-paper:   #f6f2e7;   /* warm ivory */
  --bt-paper-2: #fffdf7;   /* plate */
  --bt-ink:     #13241c;   /* forest near-black: mark, headings */
  --bt-ink-2:   #4d5a50;   /* secondary text (6.5:1 on paper) */
  --bt-rule:    #d9d2bf;
  --bt-accent:  #d4431f;   /* vermilion: graphics only (4.1:1) */
  --bt-accent-text: #b03514; /* vermilion for text/links (5.6:1) */
  /* muted condition colours, one per exposure curriculum */
  --bt-b1: #5e7a4f;  /* moss  */
  --bt-b2: #a87a26;  /* ochre */
  --bt-b3: #4f6f84;  /* slate */
  --bt-b4: #a35d48;  /* clay  */
  --bt-b5: #76668a;  /* heather */

  /* map onto the site tokens so header, dock and links follow */
  --background-color: var(--bt-paper);
  --surface-color: var(--bt-paper-2);
  --default-color: #1d2a23;
  --heading-color: var(--bt-ink);
  --ink-2: var(--bt-ink-2);
  --line: var(--bt-rule);
  --accent-color: var(--bt-accent-text);
  --accent-deep: var(--bt-accent-text);
  --accent-soft: #f6e3dc;
  --header-bg: rgba(246,242,231,0.95);
  --header-ink: var(--bt-ink);
  --block-bg: #0f1a14;
  background: var(--bt-paper);
}
html[data-theme="dark"] body.beetle-page {
  --bt-paper: #0f1914; --bt-paper-2: #16231c; --bt-ink: #ece6d4; --bt-ink-2: #a9b0a2;
  --bt-rule: #2c3a32; --bt-accent: #ff6f4a; --bt-accent-text: #ff8a6a;
  --bt-b1: #93b37f; --bt-b2: #d6a94f; --bt-b3: #8fb0c6; --bt-b4: #d98f78; --bt-b5: #b4a3c9;
  --default-color: #dcd7c8; --accent-soft: rgba(255,111,74,0.14);
  --header-bg: rgba(15,25,20,0.94); --block-bg: #08100c;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.beetle-page {
    --bt-paper: #0f1914; --bt-paper-2: #16231c; --bt-ink: #ece6d4; --bt-ink-2: #a9b0a2;
    --bt-rule: #2c3a32; --bt-accent: #ff6f4a; --bt-accent-text: #ff8a6a;
    --bt-b1: #93b37f; --bt-b2: #d6a94f; --bt-b3: #8fb0c6; --bt-b4: #d98f78; --bt-b5: #b4a3c9;
    --default-color: #dcd7c8; --accent-soft: rgba(255,111,74,0.14);
    --header-bg: rgba(15,25,20,0.94); --block-bg: #08100c;
  }
}

.beetle-page main a:focus-visible,
.beetle-page .bt-hero a:focus-visible,
.beetle-page details.more > summary:focus-visible {
  outline: 2px solid var(--bt-accent-text); outline-offset: 3px; border-radius: 2px;
}

/* ---------- hero ---------- */
.bt-hero { max-width: 1040px; margin: 0 auto; padding: 124px 24px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }
.bt-crumb { font-family: var(--mono-font); font-size: 12px; letter-spacing: .04em; color: var(--bt-ink-2); margin: 0 0 22px; }
.bt-crumb a { color: var(--bt-ink-2); text-decoration: underline; text-decoration-color: var(--bt-rule); text-underline-offset: 3px; }
.bt-crumb a:hover { color: var(--bt-accent-text); }
.bt-hero--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.bt-hero h1 { font-family: var(--heading-font); font-weight: 600; color: var(--bt-ink);
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.018em; margin: 0 0 22px; text-wrap: balance; }
.bt-hero h1 .nm { color: var(--bt-accent-text); }
.bt-q { font-family: var(--heading-font); font-style: italic; font-size: clamp(20px, 2vw, 23px); line-height: 1.45;
  color: var(--bt-ink); margin: 0 0 20px; max-width: 34em; }
.bt-body { font-family: var(--default-font); font-size: 18px; line-height: 1.7; color: var(--default-color); margin: 0 0 26px; max-width: 37em; text-wrap: pretty; }
.bt-cta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; padding: 0; list-style: none; }
.bt-cta a { font-family: var(--ui-font); font-size: 16.5px; font-weight: 600; color: var(--bt-ink);
  text-decoration: underline; text-decoration-color: var(--bt-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.bt-cta a:hover { color: var(--bt-accent-text); }
.bt-cta .sub { display: block; font-family: var(--mono-font); font-size: 11.5px; font-weight: 400; color: var(--bt-ink-2); margin-top: 6px; letter-spacing: .02em; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .bt-hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 104px; }
}
@media (max-width: 640px) {
  .bt-hero { padding: 96px 16px 28px; }
  .bt-body { font-size: 17px; }
}
