/* ─────────────────────────────────────────────────────────────────────────────
   dylan.dmtrecordsllc.com — shared guide styling.
   Every guide links THIS file, so restyling here restyles every guide at once.

   Direction: "DMT-adjacent personal" — same type family as the DMT sites (Geist +
   Geist Mono, mono uppercase labels) and the same orange accent, but on a light
   paper canvas instead of DMT's near-black. Long-form reading wants a light
   ground, and it keeps this clearly Dylan's, not the label's.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --paper: #fbfaf8;
  --paper-2: #f3f1ec;
  --ink: #17170f;
  --ink-2: #45443c;
  --ink-3: #7a786d;
  --rule: #e2ded4;
  --accent: #ff6600;
  --accent-ink: #b34700; /* accessible orange for text on paper */
  --g: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --m: 'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--g);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Reading column — ~68ch keeps lines comfortable on desktop, full-width on phones. */
.wrap {
  width: 100%;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 22px;
}

/* ── masthead ───────────────────────────────────────────────────────────────── */
.top {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  margin-bottom: 48px;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--m);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent-ink); }
/* The logo is an illustration on a BLACK field (and the cap is black too, so the
   background can't be knocked out without eating the hat). Leaning into it: a dark
   rounded badge reads as an intentional mark on the light paper — and it's the
   visual handshake back to DMT's near-black sites. */
.brand-mark {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 9px;
  background: #000;
  object-fit: cover;
  object-position: 50% 30%; /* bias up: keeps hat + face in a square crop */
  flex-shrink: 0;
}

/* ── root page (deliberately NOT a guide index — guides are linked from ManyChat) ── */
.card {
  padding: 72px 0 96px;
  text-align: center;
}
.card .mark {
  width: 108px;
  height: 108px;
  margin: 0 auto 26px;
  border-radius: 22px;
  background: #000;
  object-fit: cover;
  object-position: 50% 30%;
}
.card h1 { font-size: clamp(26px, 6vw, 36px); margin-bottom: 12px; }
.card p { color: var(--ink-2); max-width: 30rem; margin: 0 auto 18px; }
.card .handles {
  font-family: var(--m);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 26px;
}
.top-note {
  font-family: var(--m);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── guide header ───────────────────────────────────────────────────────────── */
.kicker {
  font-family: var(--m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
  text-wrap: balance;
}
.standfirst {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.meta {
  font-family: var(--m);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 36px;
}

/* ── body copy ──────────────────────────────────────────────────────────────── */
h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  text-wrap: balance;
}
h3 {
  font-size: 18px;
  margin: 32px 0 8px;
}
p { margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 24px; }
li { margin: 0 0 8px; }
strong { font-weight: 650; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }
img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 24px 0; }

/* Numbered steps — the mono index ties back to the DMT "chart desk" look. */
.steps { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 22px;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--m);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 3px 7px;
}

/* Callout — for the one thing you don't want them to miss. */
.note {
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin: 26px 0;
}
.note p:last-child { margin-bottom: 0; }
.note .label {
  font-family: var(--m);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 6px;
}

/* Call to action at the end of a guide. */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 9px;
  margin: 8px 0 4px;
}
.cta:hover { color: #fff; opacity: 0.92; }

/* ── footer ─────────────────────────────────────────────────────────────────── */
.foot {
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  padding: 24px 0 56px;
  font-family: var(--m);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.foot a { color: var(--ink-3); }

/* ── print / save-as-PDF ────────────────────────────────────────────────────────
   Guides are documents, so ⌘P should produce something you'd actually send. */
@media print {
  :root { --paper: #fff; --paper-2: #f4f4f2; }
  body { font-size: 11.5pt; line-height: 1.55; }
  .top, .foot, .cta { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  h1 { font-size: 24pt; }
  h2 { font-size: 14pt; margin-top: 20pt; page-break-after: avoid; }
  h3 { page-break-after: avoid; }
  .note, .steps > li, img { page-break-inside: avoid; }
  a { color: var(--ink); text-decoration: none; }
  /* Show link targets in print, since a reader can't tap paper. */
  .body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
