/* DeeDee desk: punk spiral-notebook skin.
   Shared nb-* classes (nb-paper, nb-ransom, nb-highlight, nb-sticky, nb-polaroid,
   nb-index-card, nb-doodle, nb-tape) are meant for reuse on other ticker pages. */
:root {
  color-scheme: light;
  --desk: #24211e;
  --paper: #fbfaf6;
  --rule: rgba(84, 132, 204, .38);
  --margin-red: rgba(214, 58, 58, .6);
  --ink: #1f1f22;
  --muted: #55525a;
  --blue-pen: #23409a;
  --red-pen: #c8251f;
  --gold: #ffd84a;
  --pink: #ff5fa8;
  --line: 28px;
  --margin-x: 96px;
  --hand: "Caveat", "Gochi Hand", cursive;
  --type: "Special Elite", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
p, h1, h2, h3, h4, figure { margin: 0; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/var(--line) var(--sans);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.05), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,.25), transparent 50%),
    var(--desk);
}
a { color: var(--blue-pen); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--red-pen); }
a:focus-visible { outline: 2px dashed var(--red-pen); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

/* Top bar on the desk */
.top .wrap, .top .wrap > div, .hero-links { display: flex; align-items: center; gap: 14px; }
.top .wrap { min-height: 54px; justify-content: space-between; flex-wrap: wrap; }
.top a { color: #f4efe2; font: .9rem var(--type); text-decoration: none; }
.top a:hover { color: var(--gold); }
.brand-name span { color: var(--gold); }
.top a.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-dd { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; flex: none; }

/* The page */
.nb-paper {
  position: relative;
  margin-block: 8px 24px;
  padding: 30px 84px 40px calc(var(--margin-x) + 26px);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent calc(var(--margin-x) - 1px), var(--margin-red) calc(var(--margin-x) - 1px), var(--margin-red) calc(var(--margin-x) + 1px), transparent calc(var(--margin-x) + 1px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px) var(--line)),
    radial-gradient(ellipse at 30% 20%, rgba(0,0,0,.025), transparent 60%),
    radial-gradient(ellipse at 70% 90%, rgba(120,90,40,.05), transparent 55%);
  background-position: 0 0, 0 calc(var(--line) * 3), 0 0, 0 0;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 1px 0 #e9e5da, 0 18px 40px rgba(0,0,0,.45), inset -10px 0 18px -14px rgba(0,0,0,.18);
  overflow: hidden;
}
.nb-spiral {
  position: absolute; inset: 0 auto 0 0; width: 34px;
  background:
    radial-gradient(circle at 17px 14px, var(--desk) 0 6px, rgba(0,0,0,.35) 6.5px, transparent 7.5px) 0 0 / 34px var(--line) repeat-y;
}
.nb-spiral::before {
  content: ""; position: absolute; inset: 0 auto 0 -6px; width: 26px;
  background: repeating-linear-gradient(170deg, transparent 0 9px, #3a3a3e 9px 12px, #8b8b92 12px 13px, transparent 13px var(--line));
  background-position: 0 6px; opacity: .9;
}

/* Doodles */
.nb-doodles { position: absolute; inset: 0; pointer-events: none; }
.nb-doodle { position: absolute; display: block; height: auto; mix-blend-mode: multiply; }
.nb-doodle-strip { display: none; }
.nb-doodle-strip .nb-doodle { position: static; }

/* Tagline */
.nb-tagline { font: 700 2.1rem/1.1 "Caveat", "Gochi Hand", cursive; color: var(--blue-pen); transform: rotate(-2deg); margin: 10px 0 14px; letter-spacing: .01em; }
.nb-tagline-foot { font-size: 1.35rem; margin: 26px 0 0; text-align: right; transform: rotate(-1deg); color: var(--muted); }

/* Hero */
.hero { padding: 6px 0 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 250px); gap: 30px; align-items: center; }
.eyebrow { color: var(--red-pen); font: .85rem/1.5 var(--type); letter-spacing: .06em; text-transform: uppercase; }
.hero .eyebrow { display: flex; gap: 7px; align-items: center; }
.dek { color: var(--muted); max-width: 46ch; }
.hero-links { margin-top: 8px; }
.hero-links a { font: 1.35rem var(--hand); font-weight: 700; }

.nb-hero-copy { position: relative; }
.nb-kiss { width: 2.3em; height: auto; margin: -.45em 0 -.5em .1em; transform: rotate(-33deg); mix-blend-mode: multiply; opacity: .93; pointer-events: none; }

/* Polaroid */
.nb-polaroid { position: relative; background: #f7f3ea; padding: 10px 10px 40px; transform: rotate(3deg); box-shadow: 0 10px 22px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.2); justify-self: center; width: 100%; max-width: 240px; }
.nb-polaroid .portrait { display: block; width: 100%; height: 270px; object-fit: cover; object-position: center 24%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.nb-polaroid::after { content: ""; position: absolute; inset: 10px 10px 40px; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.14), transparent 40%, transparent 70%, rgba(255,240,210,.12)); }

/* Tape */
.nb-tape { position: absolute; width: 74px; height: 22px; background: rgba(238, 228, 190, .78); box-shadow: 0 1px 2px rgba(0,0,0,.12); z-index: 2;
  clip-path: polygon(3% 8%, 12% 0, 25% 10%, 40% 2%, 55% 9%, 70% 0, 86% 8%, 100% 3%, 97% 92%, 85% 100%, 70% 91%, 55% 100%, 40% 92%, 25% 100%, 12% 90%, 0 97%); }
.nb-tape-left { top: -10px; left: -18px; transform: rotate(-32deg); }
.nb-tape-right { top: -10px; right: -18px; transform: rotate(28deg); }
.nb-tape-top { top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

/* Magazine cut-out ransom titles */
.nb-ransom { display: flex; flex-wrap: wrap; gap: .18em .42em; align-items: center; line-height: 1; margin: 6px 0 6px; }
.nb-ransom a { color: inherit; text-decoration: none; display: contents; }
h1.nb-ransom { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 17ch; }
h2.nb-ransom { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3.nb-ransom { font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
h4.nb-ransom { font-size: 1.45rem; margin-bottom: 10px; }
.nb-sticky h4.nb-ransom { font-size: 1.7rem; }
.nb-word { display: inline-flex; white-space: nowrap; align-items: center; }
.nb-clip {
  position: relative; display: inline-block; line-height: 1; margin: 0 .035em;
  box-shadow: 1px 2px 0 rgba(0,0,0,.22), 2px 4px 6px rgba(0,0,0,.18);
  filter: drop-shadow(1px 2px 1px rgba(0,0,0,.25));
}
.nb-clip.has-tape::after { content: ""; position: absolute; top: -6px; left: 15%; width: 70%; height: 9px; background: rgba(238,228,190,.85); transform: rotate(-8deg); }
.nb-f-serif { font-family: "Abril Fatface", serif; }
.nb-f-dmserif { font-family: "DM Serif Display", serif; }
.nb-f-anton { font-family: "Anton", sans-serif; }
.nb-f-bebas { font-family: "Bebas Neue", sans-serif; font-size: 1.15em; }
.nb-f-slab { font-family: "Alfa Slab One", serif; }
.nb-f-type { font-family: "Special Elite", monospace; font-weight: 700; }
.nb-f-marker { font-family: "Permanent Marker", cursive; }
.nb-c-white { background: #fff; color: #111; }
.nb-c-news { background: #dedbd2; color: #111; }
.nb-c-black { background: #121214; color: #fff; }
.nb-c-gold { background: #ffd23f; color: #111; }
.nb-c-pink { background: #ff4fa0; color: #111; }
.nb-c-red { background: #d7261e; color: #fff; }
.nb-c-cream { background: #efe5cf; color: #141414; }
.nb-press .nb-c-news { background: #ddd5c3; }
.nb-press .nb-c-red { background: #c3271f; color: #f5ecd8; }
.nb-press .nb-c-black { background: #161515; color: #f5ecd8; }
.nb-press .nb-clip { min-width: .82em; text-align: center; box-shadow: 1px 2px 0 rgba(0,0,0,.25), 3px 5px 8px rgba(0,0,0,.2); }
.nb-press .nb-word { gap: .04em; }
.nb-kicker { font-size: clamp(1.6rem, 3vw, 2.3rem); gap: .2em .42em; margin: 10px 0 14px; }
.issue-banner { grid-column: 1 / -1; scroll-margin-top: 12px; }
.nb-c-dots { background: radial-gradient(circle, rgba(0,0,0,.28) 1.1px, transparent 1.4px) 0 0 / 5px 5px, #f3efe4; color: #111; }

/* Readable block-letter subheads (only the page title uses cut-out letters) */
.nb-block { font-family: "Anton", "Bebas Neue", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.08; color: var(--ink); }
.nb-block a { color: inherit; text-decoration: none; }
.nb-block a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--red-pen); }
h2.nb-block { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3.nb-block { font-size: 1.45rem; margin-bottom: 12px; }
h3.nb-headline { font: 800 clamp(1.35rem, 2.4vw, 1.8rem)/1.2 var(--sans); letter-spacing: -.015em; margin: 0 0 22px; max-width: 40ch; }
h3.nb-headline a { color: var(--ink); text-decoration: none; }
h3.nb-headline a:hover { text-decoration: underline; text-decoration-color: var(--red-pen); text-decoration-thickness: 3px; }
h4.nb-block { font-size: 1.2rem; margin-bottom: 8px; color: var(--red-pen); }
h4.nb-marker { font-family: "Permanent Marker", cursive; text-transform: none; font-size: 1.6rem; color: #1b1a2a; letter-spacing: 0; }

/* Section heading */
.section-heading { display: flex; flex-wrap: wrap; gap: 3px 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#notes-status { font: 1.25rem var(--hand); color: var(--blue-pen); font-weight: 700; }
.notes-heading { margin-top: 18px; }

/* Issue layout */
#stories { margin-bottom: 18px; }
.issue { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.story { scroll-margin-top: 12px; }
.story > .eyebrow { margin-bottom: 4px; }
.blurb { max-width: 66ch; font-family: var(--sans); color: #1c2033; }
.blurb > * + * { margin-top: var(--line); }
.reaction-beat { display: flow-root; }
.reaction-stamp { float: right; width: clamp(86px, 20vw, 116px); margin: 0 0 6px 14px; }
.reaction-stamp img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 0 #fff) drop-shadow(2px 3px 3px rgba(0,0,0,.28)); }

/* Highlighter swipes */
.nb-highlight {
  padding: 0 .22em; margin: 0 -.06em; border-radius: .7em .25em .8em .3em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(100deg, rgba(255,232,0,0) 1%, rgba(255,232,0,.78) 3%, rgba(255,224,0,.6) 96%, rgba(255,232,0,0) 99%);
  mix-blend-mode: multiply; font-weight: 600;
}
.nb-highlight.nb-pink { background: linear-gradient(98deg, rgba(255,110,180,0) 1%, rgba(255,110,180,.55) 3%, rgba(255,120,190,.42) 96%, rgba(255,110,180,0) 99%); }

/* Sticky note */
.nb-sticky { position: relative; margin-top: 34px; padding: 22px 22px 20px; background: #ffe86a; transform: rotate(-1.6deg); max-width: 520px;
  box-shadow: 0 12px 18px -10px rgba(0,0,0,.4), 0 1px 1px rgba(0,0,0,.12); font: 1.45rem/1.32 var(--hand); color: #1b1a2a; }
.nb-sticky::before { content: ""; position: absolute; inset: 0 0 auto; height: 18px; background: rgba(0,0,0,.04); }
.nb-sticky p { margin-top: 6px; }

/* Sources = receipts */
.sources { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 26px; font: .9rem/1.6 var(--type); }
.sources a { color: var(--ink); }
.sources a:hover { color: var(--red-pen); }

/* Index card (market) */
.nb-index-card {
  position: relative; padding: 26px 18px 18px; background: #fff;
  background-image: linear-gradient(transparent 52px, rgba(214,58,58,.55) 52px 54px, transparent 54px), repeating-linear-gradient(transparent 0 25px, rgba(84,132,204,.28) 25px 26px);
  border: 2px dashed #8b93a6; border-radius: 2px; transform: rotate(.8deg);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}
.nb-index-card > h3 { margin-bottom: 14px; }
.market-context { color: var(--muted); font: .82rem/1.45 var(--type); }
.return-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0 10px; }
.return { display: grid; padding: 6px 8px; font: 1rem/1.4 var(--type); }
.return strong { font: 700 1.5rem/1.2 var(--sans); justify-self: start; }
.down { color: var(--red-pen); }
.up { color: #1d7a3e; }
.nb-scrawl { font: 1.4rem/1.25 var(--hand); color: var(--blue-pen); margin: 26px 0 14px; transform: rotate(-1.5deg); }
.nb-scratch { position: relative; display: inline-block; color: var(--ink); }
.nb-scratch .nb-fix { position: absolute; left: 50%; top: -1.05em; transform: translateX(-50%) rotate(-6deg); white-space: nowrap; color: var(--red-pen); font-weight: 700; }
.nb-taped { position: relative; margin: 16px 2px 8px; padding: 10px 8px 6px; border: 2px dashed var(--blue-pen); border-radius: 10px 4px 12px 6px; background: #fff; }
.tradingview-widget-container { margin-top: 4px; }
.tradingview-widget-container__widget { min-height: 45px; }
.tradingview-widget-copyright { font: .72rem var(--type); }
.flow { margin-top: 18px; padding-top: 6px; }
.flow p { font-size: .97rem; line-height: 26px; }

footer { padding: 6px 0 28px; color: #cfc8ba; font: .85rem var(--type); }

@media (max-width: 860px) {
  .issue { grid-template-columns: 1fr; }
  .market { grid-row: 2; max-width: 520px; }
}
@media (max-width: 700px) {
  :root { --margin-x: 44px; }
  body { font-size: 16px; }
  .nb-paper { padding: 18px 14px 30px calc(var(--margin-x) + 12px); }
  .nb-doodles { display: none; }
  .nb-doodle-strip { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin: 0 0 12px; }
  .nb-doodle-strip img { width: 44px; height: auto; opacity: .85; }
  .hero { grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; }
  .nb-polaroid { padding: 6px 6px 22px; }
  .nb-polaroid::after { inset: 6px 6px 22px; }
  .nb-polaroid .portrait { height: 140px; }
  .nb-tape { width: 46px; height: 15px; }
  .nb-tagline { font-size: 1.6rem; }
  h1.nb-ransom { font-size: 1.65rem; }
  h3.nb-headline { font-size: 1.25rem; }
  .nb-kicker { font-size: 1.22rem; gap: .2em .3em; }
  .nb-sticky { font-size: 1.3rem; }
}
@media (max-width: 380px) {
  .hero { grid-template-columns: minmax(0, 1fr) 86px; }
  .nb-polaroid .portrait { height: 110px; }
}

/* Credits */
.nb-credits { margin-top: 10px; text-align: right; font: .74rem/1.5 var(--type); color: var(--muted); }
.nb-credits a { color: var(--muted); }

/* Reduced motion: no draw-in or decorative motion; final states stay */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .rough-annotation path { stroke-dashoffset: 0 !important; }
}

/* Server-rendered issue + archive (search engines, AI readers, no-JS). desk.js replaces #stories on load. */
.ssr-story .blurb p { margin: 0 0 1em; }
.ssr-perf, .ssr-flow, .ssr-disclaimer { margin: .75em 0; }
.ssr-sources { margin: .25em 0 1em 1.25em; }
.nb-archive { margin: 2.5rem auto 1rem; }
.nb-archive ul { list-style: none; padding: 0; margin: .75rem 0 0; }
.nb-archive li { margin: .35rem 0; }
