* { box-sizing: border-box; }
:root { color-scheme: dark; }
html { scroll-padding-top: 24px; }
body.personal {
  --ink: #f6f0e8; --ink-2: #c8c4d6; --accent: #ffd200; --accent-ink: #141425;
  --font-ui: Inter, system-ui, sans-serif; --font-display: 'Barlow Condensed', Impact, sans-serif;
  --bg-sunken: #211c39; --rule-strong: #67557d; --density-default: 48px;
  margin: 0; background: #101426; color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.65;
}
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .db-btn:focus-visible { outline: 3px solid #ffd200; outline-offset: 5px; }
.skip-link { position: absolute; top: 8px; left: 16px; padding: 10px 20px; z-index: 5; background: #ffd200; color: #101426; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.preview-notice { background: #30254b; color: #e4dbf5; padding: 7px 20px; text-align: center; font-size: 12px; }
.masthead { border-bottom: 1px solid #353149; background: #101426; }
.masthead-inner { max-width: 1160px; margin: auto; padding: 25px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.author-name { font-family: var(--font-display); font-size: 30px; line-height: 1.05; font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 30px; flex-wrap: wrap; }
.masthead nav a { color: #c8c4d6; font-size: 14px; text-decoration: none; padding: 8px 0; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: #ffd200; }
.hero { isolation: isolate; position: relative; background: radial-gradient(ellipse at 92% 38%, #533173 0, transparent 57%), linear-gradient(155deg, #17244a, #15162c 62%, #101426); }
.hero::before { content: ''; position: absolute; inset: 21% 0 12% 38%; background: #7751a31c; clip-path: polygon(100% 0,100% 65%,0 100%,22% 28%); z-index: -1; }
.hero-inner { max-width: 1160px; margin: auto; padding: 40px 36px 56px; }
.eyebrow { color: #b8b8d4; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 30px; }
.hero-stage { position: relative; min-height: 490px; container-type: inline-size; }
.hero h1 { position: relative; z-index: 2; width: 54%; font-family: var(--font-display); font-size: clamp(80px, 12vw, 156px); line-height: .88; font-weight: 800; text-transform: uppercase; letter-spacing: -2px; margin: 0; }
.hero h1 em { display: inline-block; color: #ffd200; padding-right: 10px; }
.avatar { position: absolute; top: 0; right: 0; width: 48%; height: auto; max-width: 490px; filter: drop-shadow(0 18px 22px #080d2870); }
.hero-copy { max-width: 760px; }
.hero h2 { font-family: Inter, sans-serif; font-size: clamp(23px, 2.6vw, 34px); font-weight: 500; line-height: 1.25; letter-spacing: -.6px; border-left: 3px solid #ffd200; padding-left: 22px; margin: 0 0 24px; }
.hero-copy > p { color: #c8c4d6; font-size: 17px; max-width: 62ch; margin: 0 0 26px; }
.start.db-btn { --db-btn-fg: #141425; --db-btn-bg: #ffd200; border-radius: 0; padding-inline: 22px; gap: 32px; font-size: 15px; font-weight: 700; }
.start.db-btn:hover { --db-btn-bg: #ffe152; }
.topics-strip { padding: 18px 36px; background: #211c39; border-block: 1px solid #4b3b65; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; color: #c9b9e8; font-family: var(--font-display); font-size: 23px; letter-spacing: 1px; text-transform: uppercase; }
.topics-strip span:not(:last-child)::after { content: '/'; margin-left: 28px; color: #ffd200; }
.content-width { max-width: 920px; margin-inline: auto; padding-inline: 36px; }
.opening { position: relative; padding-block: 48px; background: #f2e9d8; color: #191927; }
.opening::after { content: ''; position: absolute; right: 0; top: 0; border-top: 30px solid #211c39; border-left: 30px solid transparent; }
.opening h2 { font-family: var(--font-display); font-size: clamp(42px, 5vw, 66px); font-weight: 700; line-height: 1; max-width: 17ch; margin: 16px 0 20px; }
.opening h2 a { text-decoration: none; }
.opening > div > p { max-width: 55ch; color: #45414e; }
.entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: #b4acc2; font-size: 12px; margin: 0 0 12px; }
.status { padding: 3px 7px; }
.status.draft { background: #352d47; color: #e6d6ff; }
.status.published { color: #e7e1ed; padding-left: 0; }
.opening .entry-meta, .reading .entry-meta { color: #575063; }
.opening .draft, .reading .draft { background: #e5d7b5; color: #594513; }
.opening .published, .reading .published { color: #575063; }
.text-link { color: #d2b1fb; display: inline-block; padding-block: 8px; margin-top: 14px; font-size: 15px; font-weight: 600; }
.opening .text-link, .reading .text-link { color: #50326f; }
.journey-section { padding-block: 56px; }
.section-heading { font-family: var(--font-display); font-size: clamp(42px, 6vw, 70px); text-transform: uppercase; font-weight: 700; line-height: 1; margin: 0 0 24px; }
.section-intro { color: #c8c4d6; max-width: 60ch; }
.journey-page { min-height: 68svh; padding-block: 56px 80px; }
.page-lede { font-size: 23px; max-width: 45ch; }
.entry-list { position: relative; list-style: none; padding: 0; margin: 42px 0 0 7px; border-left: 1px solid #67557d; }
.entry-list > li { position: relative; padding: 0 0 40px 34px; }
.entry-list > li:last-child { padding-bottom: 6px; }
.entry-list > li:nth-child(even) { padding-left: 64px; }
.entry-marker { width: 13px; height: 13px; background: #b48bd8; border: 2px solid #101426; position: absolute; left: -7px; top: 9px; transform: rotate(45deg); }
.entry-list > li:first-child .entry-marker { background: #ffd200; }
.entry-list h2 { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
.entry-list h2 a { text-decoration: none; }
.entry-list article > p:not(.entry-meta) { max-width: 58ch; color: #c8c4d6; margin-block: 12px; }
.entry-date { font-size: 12px; }
.topic-list { display: flex; gap: 12px; flex-wrap: wrap; padding: 0; list-style: none; margin: 12px 0 0; font-size: 12px; color: #cbb8dd; }
.topic-list li::before { content: '#'; }
.empty-state { border-left: 1px solid #67557d; padding: 22px; color: #c8c4d6; margin-top: 32px; }
.reading-page { background: #f2e9d8; color: #191927; padding: 52px 24px 70px; min-height: 75svh; }
.reading { max-width: 730px; margin-inline: auto; }
.reading h1 { font-family: var(--font-display); font-size: clamp(44px, 6vw, 74px); font-weight: 700; line-height: 1; margin: 24px 0; }
.reading .eyebrow { color: #685b75; }
.back-link { display: inline-block; margin-bottom: 30px; color: #50326f; font-size: 14px; }
.article-byline { color: #62586b; font-size: 13px; line-height: 1.7; margin-bottom: 36px; }
.prose { font-family: Newsreader, Georgia, serif; font-size: 23px; line-height: 1.65; }
.prose p { margin: 0 0 24px; }
.prose h2 { font-family: var(--font-display); font-size: 35px; line-height: 1.2; margin: 40px 0 20px; }
.prose blockquote { border-left: 3px solid #6b468a; padding-left: 24px; margin-inline: 0; font-size: 28px; }
.about-avatar { width: 190px; height: auto; float: right; margin: 0 0 24px 32px; }
.sources { border-top: 1px solid #c4b9a9; margin-top: 40px; padding-top: 24px; font-size: 14px; }
.sources h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.reading a:focus-visible, .opening a:focus-visible { outline-color: #50326f; }
.entry-navigation { border-top: 1px solid #c4b9a9; padding-top: 24px; margin-top: 32px; display: flex; justify-content: space-between; gap: 24px; }
.entry-navigation a { font-weight: 600; max-width: 28ch; font-size: 15px; }
.entry-navigation span { display: block; font-weight: 400; font-size: 12px; margin-bottom: 8px; }
.footer { background: #050608; border-top: 1px solid #34334c; padding: 26px max(24px, calc((100% - 1088px) / 2)); display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer img { display: block; width: 180px; height: auto; }
.footer p { margin: 0; color: #aba5b6; font-size: 12px; }
.footer > a:last-child { margin-left: auto; color: #aba5b6; font-size: 12px; }
.error-page { padding-block: 80px; min-height: 70svh; }
@media (min-width: 1100px) { .hero-stage { min-height: 540px; } }
@media (max-width: 760px) {
  .masthead-inner { padding: 24px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .author-name { font-size: 28px; }
  .hero-inner { padding: 32px 24px 40px; }
  .hero-stage { min-height: 390px; }
  .hero h1 { font-size: clamp(72px, 15vw, 110px); }
  .avatar { top: 65px; width: 51%; }
  .hero-copy > p { font-size: 16px; }
  .content-width { padding-inline: 24px; }
  .topics-strip { padding: 16px 24px; gap: 8px 16px; font-size: 19px; }
  .topics-strip span:not(:last-child)::after { margin-left: 16px; }
  .reading-page { padding-top: 36px; }
  .prose { font-size: 21px; }
}
@media (max-width: 480px) {
  .hero-stage { min-height: 440px; }
  .hero h1 { font-size: 80px; width: 100%; }
  .avatar { top: 194px; width: 67%; max-width: 230px; right: 0; }
  .hero h2 { font-size: 24px; }
  .eyebrow { font-size: 11px; }
  .entry-list > li:nth-child(even) { padding-left: 34px; }
  .entry-list h2 { font-size: 30px; }
  .about-avatar { width: 140px; float: none; margin: 0 0 24px; }
  .footer { gap: 12px; }
  .footer img { width: 150px; }
  .footer > a:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
