/* The Trader's Journey to Pro: clean, minimal, one column. */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #ececec;
  --soft: #f6f6f5;
  --up: #15803d;
  --down: #dc2626;
  --hold: #a16207;
  --watch: #2563eb;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0d;
    --text: #ededed;
    --muted: #a0a0a0;
    --faint: #707070;
    --line: #232325;
    --soft: #161618;
    --up: #4ade80;
    --down: #f87171;
    --hold: #facc15;
    --watch: #60a5fa;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { max-width: 100%; display: block; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.up { color: var(--up); }
.down { color: var(--down); }

/* admin strip */
.admin-strip { background: var(--text); color: var(--bg); text-align: center; font-size: 12.5px; padding: 5px; }
.admin-strip a { text-decoration: none; }

/* now banner */
.now { border-bottom: 1px solid var(--line); font-size: 13.5px; }
.now-inner { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.now-label {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
}
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--up); align-self: center; }
.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--up);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }
.now-text { flex: 1; min-width: 0; color: var(--text); }
.now-text a { text-decoration: underline; text-decoration-color: var(--faint); }
.now-time { flex: none; color: var(--faint); }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; gap: 20px; }
.nav a { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }

/* hero */
.hero { padding: 40px 0 36px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.lede { font-size: 17.5px; color: var(--muted); margin: 0; text-wrap: pretty; }
.pledge { display: inline-flex; align-items: center; gap: 8px; margin: 24px 0 0; font-size: 14px; font-weight: 500; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.human-mark { flex: none; display: block; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 20px 16px 20px 0; text-decoration: none; min-width: 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
a.stat:hover .stat-value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 500; }
.stat-value { font: 500 26px/1.25 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-sub { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.spark { display: block; flex-basis: 100%; margin-top: 4px; }

/* journal list */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.section-head h2 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 500; margin: 0; }
.section-head a { font-size: 13.5px; color: var(--muted); }
.entry { padding: 24px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry h3 { font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; margin: 6px 0 6px; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.entry p { margin: 0; color: var(--muted); font-size: 15.5px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--faint); }
.entry-meta a { color: var(--muted); }
.day { font-family: var(--mono); font-size: 12px; color: var(--text); background: var(--soft); padding: 1px 7px; border-radius: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font: 500 12px/1 var(--mono); padding: 5px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
a.tag:hover { color: var(--text); border-color: var(--faint); }
.tag-mistake { color: var(--down); border-color: color-mix(in srgb, var(--down) 30%, transparent); }
.empty { color: var(--muted); padding: 24px 0; }

/* post + pages */
.post, .page { padding: 16px 0 40px; }
.back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--text); }
.post-header { margin-bottom: 36px; }
.post-header h1, .page h1 { font-size: clamp(30px, 5.2vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 14px; text-wrap: balance; }
.page h1 { margin-top: 0; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.human-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.ai-note { color: var(--muted); }
.post-cover { margin: 0 0 36px; }
.post-cover img { width: 100%; border-radius: 6px; }
.draft-banner { background: var(--soft); border: 1px dashed var(--faint); border-radius: 6px; padding: 8px 12px; font-size: 13.5px; font-weight: 500; margin-bottom: 24px; }

.prose { font-size: 17px; line-height: 1.75; }
.prose > * { margin: 0 0 1.25em; }
.prose h2 { font-size: 23px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; margin: 2em 0 0.6em; }
.prose h3 { font-size: 18.5px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; margin: 1.8em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--faint); }
.prose strong { font-weight: 600; }
.prose figure { margin: 2.2em 0; }
.prose figure img { border-radius: 6px; margin: 0 auto; }
.prose figcaption { font-size: 13.5px; color: var(--faint); margin-top: 10px; text-align: center; }
.prose blockquote { margin: 2em 0; padding-left: 20px; border-left: 2px solid var(--text); }
.prose blockquote p { font-size: 19px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.prose cite { display: block; margin-top: 8px; font-style: normal; font-size: 13.5px; color: var(--muted); }
.prose cite::before { content: '— '; }
.prose hr { border: 0; text-align: center; margin: 2.6em 0; }
.prose hr::before { content: '· · ·'; color: var(--faint); letter-spacing: 0.4em; }

/* stock card */
.stock { --tone: var(--watch); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin: 2em 0; font-size: 15px; }
.stock.rating-buy { --tone: var(--up); }
.stock.rating-sell { --tone: var(--down); }
.stock.rating-hold { --tone: var(--hold); }
.stock-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.stock-ticker { font: 500 20px/1.2 var(--mono); letter-spacing: -0.02em; }
.stock-company { color: var(--muted); font-size: 14px; }
.stock-rating { margin-left: auto; color: var(--tone); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 6px; }
.stock-rating::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.stock-nums { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.stock-nums dt { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; }
.stock-nums dd { margin: 2px 0 0; font: 500 17px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.stock-thesis { margin: 14px 0 0; color: var(--muted); line-height: 1.6; }

/* mistakes */
.mistake { border-left: 2px solid var(--down); padding: 2px 0 2px 18px; margin: 2em 0; }
.mistake-head { display: flex; align-items: baseline; gap: 12px; }
.mistake-label { color: var(--down); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.mistake-cost { font: 500 13px var(--mono); color: var(--muted); }
.mistake-title { font-weight: 600; font-size: 17px; line-height: 1.45; margin: 4px 0 0; }
.mistake-lesson { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.mistake-list { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: m; }
.mistake-item { padding: 22px 0 22px 18px; border-bottom: 1px solid var(--line); border-left: 2px solid var(--down); margin-bottom: 12px; }
.mistake-item .mistake-cost { margin: 6px 0 0; }

.post-end { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; }
.post-end p { margin: 0; }
.post-end a { color: var(--muted); white-space: nowrap; }

/* footer */
.site-footer { margin-top: 48px; padding-top: 28px; padding-bottom: 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.site-footer p { margin: 0 0 8px; }
.pledge-line { display: flex; gap: 8px; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .now-inner { flex-wrap: wrap; row-gap: 2px; }
  .now-text { flex-basis: 100%; order: 3; }
  .now-time { margin-left: auto; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .brand { font-size: 14px; }
  .nav { gap: 14px; }
  .nav a { font-size: 13.5px; }
  .hero { padding: 24px 0 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 12px 16px 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-value { font-size: 22px; }
  .prose { font-size: 16.5px; }
  .stock-nums dd { font-size: 15px; }
  .post-end { flex-direction: column; }
}
.stat-sub.up .spark { color: var(--up); }
.stat-sub.down .spark { color: var(--down); }

/* logo lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); --logo-go: var(--up); min-width: 0; }
.logo-mark { flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.015em; white-space: nowrap; }
.brand-sub { font: 500 11.5px/1.3 var(--mono); color: var(--up); letter-spacing: 0.02em; }
@media (max-width: 640px) {
  .brand { gap: 8px; }
  .brand .logo-mark { width: 26px; height: 26px; }
  .brand-name { font-size: 14px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 13px; }
}

/* ---------- goal tracker ---------- */
.goal { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.goal-days { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.goal-line { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 14px; flex-wrap: wrap; }
.goal-now { font: 500 34px/1.1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.goal-sep { color: var(--faint); font-size: 15px; }
.goal-target { font: 500 20px/1.1 var(--mono); color: var(--muted); letter-spacing: -0.03em; }
.goal-pct { margin-left: auto; font: 500 14px var(--mono); color: var(--muted); }
.bar { position: relative; height: 8px; border-radius: 999px; background: var(--soft); overflow: visible; box-shadow: inset 0 0 0 1px var(--line); }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--text); min-width: 8px; }
.bar-pace { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--up); border-radius: 2px; }
.bar-pace::after { content: none; }
.goal-foot { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- quick thoughts in the feed ---------- */
.entry.note .note-body { margin-top: 8px; font-size: 16.5px; line-height: 1.65; }
.entry.note .note-body > * { margin: 0 0 0.8em; }
.entry.note .note-body > *:last-child { margin-bottom: 0; }
.entry.note .note-body p { color: var(--text); font-size: 16.5px; }
.entry.note .note-body figure { margin: 12px 0 0; }
.entry.note .note-body img { border-radius: 6px; max-height: 420px; object-fit: cover; }
.entry.note h3 { margin-bottom: 0; }
.note-time { text-decoration: none; color: var(--faint); }
.note-time:hover { color: var(--text); }
.kind { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }
.post-note .prose { font-size: 19px; }

/* ---------- trades ---------- */
.tabs { display: flex; gap: 4px; margin: 28px 0 8px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 2px; margin-right: 20px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--text); }
.tabs a span { font: 500 12px var(--mono); color: var(--faint); margin-left: 4px; }
.tab-note { font-size: 14px; color: var(--muted); margin: 12px 0 24px; }
.stats-trades { margin-bottom: 40px; }
.list-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 500; margin: 36px 0 4px; }
.trade { padding: 20px 0; border-bottom: 1px solid var(--line); }
.trade-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.trade-head .stock-ticker { font-size: 18px; }
.side { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 4px; background: var(--soft); color: var(--muted); }
.side.long { color: var(--up); }
.side.short { color: var(--down); }
.trade-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.trade-result { font: 500 22px/1.2 var(--mono); letter-spacing: -0.03em; margin: 10px 0 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.trade-result span { font-size: 14px; letter-spacing: 0; }
.trade-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 0; }
.trade-nums dt { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; }
.trade-nums dd { margin: 2px 0 0; font: 500 15px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.trade-nums small { color: var(--faint); font-size: 12px; }
.trade-sub { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.trade-notes { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.levels { margin-top: 10px; font-size: 13.5px; }
.levels summary { cursor: pointer; color: var(--muted); width: fit-content; }
.levels summary:hover { color: var(--text); }
.levels ol { list-style: none; padding: 0; margin: 8px 0 0; border-left: 1px solid var(--line); }
.levels li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 0 4px 14px; color: var(--muted); }
.levels li time { color: var(--faint); min-width: 92px; }
.levels b { font: 500 13px var(--mono); }
.levels em { font-style: normal; color: var(--faint); }

@media (max-width: 640px) {
  .goal-now { font-size: 28px; }
  .goal-target { font-size: 16px; }
  .trade-nums { grid-template-columns: 1fr 1fr; }
  .trade-meta { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; row-gap: 14px; padding-bottom: 16px; }
  .site-header .nav { width: 100%; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
}

/* ---------- comments ---------- */
.comments { margin-top: 48px; }
.c-list, .c-replies { list-style: none; padding: 0; margin: 0; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.c-replies { margin-top: 14px; padding-left: 18px; border-left: 2px solid var(--line); }
.c-replies .comment { padding: 8px 0 4px; border-bottom: 0; }
.c-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13.5px; }
.c-name { font-weight: 600; }
.c-badge { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bg); background: var(--text); padding: 2px 6px; border-radius: 4px; }
.c-time { color: var(--faint); text-decoration: none; font-size: 12.5px; }
.c-body { margin-top: 6px; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.c-tools { display: flex; align-items: flex-start; gap: 14px; margin-top: 8px; font-size: 13px; }
.c-reply summary { cursor: pointer; color: var(--muted); list-style: none; }
.c-reply summary::-webkit-details-marker { display: none; }
.c-reply[open] { flex: 1; }
.c-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); }
.c-link.danger { color: var(--down); }
.c-form { display: grid; gap: 8px; margin-top: 10px; }
.c-new { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.c-label { font-size: 13px; font-weight: 500; }
.c-hint { font-weight: 400; color: var(--faint); margin-left: 6px; }
.c-form input, .c-form textarea {
  width: 100%; font: 16px/1.5 var(--sans); color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; outline: none;
}
.c-form input:focus, .c-form textarea:focus { border-color: var(--text); }
.c-form textarea { resize: vertical; }
.c-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.c-check input { width: auto; margin-top: 3px; }
.c-btn { justify-self: start; height: 40px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--text); color: var(--bg); font: 600 14px var(--sans); cursor: pointer; }
.c-note { margin: 0; font-size: 12.5px; color: var(--faint); }
.c-error { color: var(--down); font-size: 14px; font-weight: 500; }
.c-flash { color: var(--up); font-size: 14px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-count { color: var(--faint); text-decoration: none; }
.c-count:hover { color: var(--text); }
:target.comment > .c-body { background: color-mix(in srgb, var(--up) 10%, transparent); border-radius: 4px; }
@media (max-width: 640px) { .c-btn { width: 100%; } .c-new { padding: 16px; } }
