:root {
  --ink: #edf2ea;
  --muted: #a5ada7;
  --night: #080c11;
  --panel: #0e1519;
  --line: rgba(220, 225, 210, .15);
  --violet: #9a67df;
  --violet-bright: #c29aff;
  --gold: #c8aa67;
  --green: #1e3931;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}
.journal-cover, .article-cover { display: block; width: 100%; height: auto; }
.journal-cover { align-self: center; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
* { box-sizing: border-box; }
#contact-form { flex: 1 1 28rem; min-width: 0; width: 100%; padding: 2rem; border: 1px solid var(--line); background: var(--panel); }
#contact-form label { display: block; margin-bottom: .4rem; font-size: 1rem; }
#contact-form input, #contact-form textarea { display: block; width: 100%; margin-bottom: 1.2rem; padding: .8rem; background: var(--night); border: 1px solid #59625e; color: var(--ink); font: inherit; }
#contact-form textarea { resize: vertical; }
#contact-form button { font-family: inherit; cursor: pointer; border: 0; }
#contact-status { font-size: .875rem; }
.contact-section > div { flex: 1 1 25rem; min-width: 0; }
.contact-section a { overflow-wrap: anywhere; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
.social-links a { min-height: 2.8rem; display: inline-flex; align-items: center; padding: .55rem 1rem; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.social-links a:hover, .social-links a:focus-visible { background: var(--gold); color: var(--night); }
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.footer-social a { color: var(--ink); text-decoration: none; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--violet-bright); }
@media (max-width: 800px) { #contact-form, .contact-section > div { flex-basis: auto; } }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 1rem/1.7 var(--sans); overflow-x: hidden; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; background: white; color: black; }
.skip-link:focus { top: 1rem; }
.site-header { position: absolute; z-index: 10; inset: 0 0 auto; height: 6rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(1.2rem, 5vw, 5.5rem); border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font: 600 1.05rem/1 var(--serif); letter-spacing: .28em; }
.brand-mark { display: grid; place-items: center; width: 2.1rem; aspect-ratio: 1; border: 1px solid var(--gold); color: var(--gold); transform: rotate(45deg); font-family: var(--serif); }
.brand-mark::first-letter { transform: rotate(-45deg); }
nav { display: flex; align-items: center; gap: 2.25rem; }
nav a { color: #e5e8e5; font-size: .85rem; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--violet-bright); }
.header-cta { justify-self: end; padding: .65rem 1.1rem; border: 1px solid rgba(255,255,255,.36); text-decoration: none; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.menu-button { display: none; }
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; isolation: isolate; }
.hero-art, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { object-fit: cover; object-position: 58% center; z-index: -3; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, rgba(4,8,11,.97) 0%, rgba(4,8,11,.78) 35%, rgba(4,8,11,.16) 70%), linear-gradient(0deg, var(--night) 0%, transparent 25%); }
.hero-copy { width: min(46rem, 90%); margin-left: clamp(1.2rem, 9vw, 10rem); padding-top: 6rem; }
.eyebrow { color: var(--gold); font-size: .76rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); }
h1 { max-width: 12ch; margin: .75rem 0 1.35rem; font-size: clamp(3.2rem, 6.7vw, 7.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 500; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero-intro { max-width: 38rem; color: #d1d5d1; font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-actions, .store-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button { min-height: 3.3rem; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .8rem 1.4rem; text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.button.primary { background: var(--violet); color: white; box-shadow: 0 8px 35px rgba(111,66,170,.3); }
.button.primary:hover { background: var(--violet-bright); color: #16101d; }
.button.ghost { border-bottom: 1px solid rgba(255,255,255,.4); }
.art-note { margin-top: 1.5rem; color: #8c9694; font-size: .76rem; }
.scroll-cue { position: absolute; right: 3rem; bottom: 3rem; display: flex; gap: .7rem; align-items: center; writing-mode: vertical-rl; font-size: .62rem; letter-spacing: .22em; color: #b5bcb7; }
.scroll-cue span { width: 1px; height: 3rem; background: var(--violet-bright); }
.intro-section { max-width: 86rem; margin: 0 auto; padding: 9rem clamp(1.2rem, 5vw, 4rem); display: grid; grid-template-columns: 5rem 1.1fr 1fr; gap: 3rem; border-bottom: 1px solid var(--line); }
.section-number, .card-index { font-family: var(--serif); color: var(--gold); }
.section-heading h2, .world-panel h2, .creator-section h2, .stores-section h2, .contact-section h2 { margin: .7rem 0 1.4rem; font-size: clamp(2rem, 3.8vw, 4rem); line-height: 1.12; font-weight: 500; }
.intro-copy { color: var(--muted); font-size: 1.05rem; }
.systems-section { max-width: 86rem; margin: 0 auto; padding: 1rem clamp(1.2rem, 5vw, 4rem) 9rem; }
.systems-heading { display: grid; grid-template-columns: minmax(12rem, .55fr) 1.45fr; gap: 2rem; align-items: start; margin-bottom: 3rem; }
.systems-heading .eyebrow { margin-top: .55rem; }
.systems-heading h2 { max-width: 22ch; margin: 0; font-size: clamp(2rem, 3.2vw, 3.5rem); line-height: 1.15; font-weight: 500; }
.systems-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.systems-grid article { position: relative; min-height: 17rem; padding: 2.1rem 1.8rem; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(154,103,223,.07), transparent 48%); }
.systems-grid article::after { content: ""; position: absolute; inset: auto 1.8rem 0; height: 1px; background: linear-gradient(90deg, var(--violet), transparent); opacity: 0; transition: opacity .25s ease; }
.systems-grid article:hover::after { opacity: 1; }
.systems-grid h3 { margin: 2.4rem 0 .65rem; font-size: 1.18rem; line-height: 1.3; font-weight: 500; }
.systems-grid p:last-child { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.system-icon { position: absolute; right: 1.7rem; top: 1.7rem; color: var(--violet-bright); font-size: 1.45rem; }
.world-section { min-height: 44rem; display: grid; grid-template-columns: 1.1fr .9fr; background: radial-gradient(circle at 85% 30%, rgba(117,75,170,.2), transparent 25%), linear-gradient(115deg, #111d19, #090d12 62%); border-block: 1px solid var(--line); }
.world-panel { max-width: 48rem; padding: 8rem clamp(2rem, 8vw, 9rem); }
.world-panel p, .world-panel li { color: var(--muted); }
.world-panel ul { margin: 2rem 0 0; padding: 0; list-style: none; }
.world-panel li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.world-panel li::before { content: "✦"; margin-right: 1rem; color: var(--violet-bright); }
blockquote { margin: 0; padding: 7rem clamp(2rem, 6vw, 6rem); display: flex; align-items: center; position: relative; background: rgba(0,0,0,.26); }
blockquote span { position: absolute; top: 3rem; left: 3rem; color: rgba(194,154,255,.2); font: 10rem/1 var(--serif); }
blockquote p { position: relative; font: 500 clamp(1.5rem, 2.6vw, 2.7rem)/1.45 var(--serif); }
.creator-section { max-width: 78rem; margin: 0 auto; padding: 10rem 2rem; display: grid; grid-template-columns: 18rem 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.creator-monogram { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); transform: rotate(45deg); background: radial-gradient(circle, rgba(154,103,223,.22), transparent 65%); }
.creator-monogram span { transform: rotate(-45deg); color: var(--gold); font: 500 3.5rem/1 var(--serif); letter-spacing: .08em; }
.creator-section > div:last-child p:not(.eyebrow) { max-width: 47rem; color: var(--muted); }
.stores-section { padding: 9rem 1.5rem; text-align: center; background: #0b1116; border-block: 1px solid var(--line); }
.stores-section h2 { margin-inline: auto; max-width: 18ch; }
.stores-section > p:not(.eyebrow) { max-width: 44rem; margin-inline: auto; color: var(--muted); }
.store-actions { justify-content: center; }
.store { width: 17rem; flex-direction: column; border: 1px solid var(--line); }
.store small { color: var(--muted); font-size: .65rem; }
.disabled { opacity: .62; cursor: not-allowed; }
.contact-section { max-width: 86rem; margin: 0 auto; padding: 8rem clamp(1.2rem, 5vw, 4rem); display: flex; justify-content: space-between; gap: 4rem; align-items: center; }
.contact-section > div { max-width: 48rem; }
.contact-section p:not(.eyebrow) { color: var(--muted); }
.button.outline { flex: 0 0 auto; border: 1px solid var(--gold); color: var(--gold); }
footer { min-height: 9rem; padding: 2rem clamp(1.2rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer p:last-child { justify-self: end; }
.footer-brand { color: var(--ink); }
.brand-logo { display: block; width: 9rem; max-width: 100%; height: auto; }
#hero-title { max-width: 100%; }
.hero-logo { display: block; width: min(100%, 34rem); height: auto; }
.footer-brand .brand-logo { width: 10rem; }
@media (max-width: 1100px) and (min-width: 801px) {
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; height: 5rem; }
  .header-cta { display: none; }
  .menu-button { display: block; background: none; border: 1px solid rgba(255,255,255,.3); color: white; padding: .55rem .8rem; }
  nav { display: none; position: absolute; top: 5rem; inset-inline: 0; padding: 1.5rem; background: rgba(8,12,17,.97); flex-direction: column; align-items: flex-start; }
  nav.open { display: flex; }
  .hero { min-height: 52rem; }
  .hero-art { object-position: 66% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,8,11,.9), rgba(4,8,11,.3)), linear-gradient(0deg, var(--night), transparent 55%); }
  .hero-copy { margin: auto 1.2rem 4.5rem; padding-top: 8rem; }
  .scroll-cue { display: none; }
  .intro-section { grid-template-columns: 1fr; gap: 1rem; padding-block: 6rem; }
  .section-number { display: none; }
  .systems-section { padding-bottom: 6rem; }
  .systems-heading { grid-template-columns: 1fr; gap: .5rem; margin-bottom: 2rem; }
  .systems-grid { grid-template-columns: 1fr; }
  .systems-grid article { min-height: 13rem; }
  .world-section { grid-template-columns: 1fr; }
  .world-panel, blockquote { padding: 5rem 1.5rem; }
  .creator-section { grid-template-columns: 1fr; padding-block: 6rem; }
  .creator-monogram { width: 10rem; margin: 0 auto; }
  .contact-section { align-items: flex-start; flex-direction: column; padding-block: 6rem; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p:last-child { justify-self: center; }
  .footer-brand { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Diary and microdemo pages share the existing arcane palette. */
section[id] { scroll-margin-top: 2rem; }
.site-header { grid-template-columns: auto 1fr auto; gap: 2rem; }
#main-nav { justify-content: center; gap: clamp(.75rem, 2vw, 2rem); }
#main-nav a { font-size: .875rem; }
.button, .header-cta, .eyebrow { font-size: .875rem; }
.store small { font-size: .8125rem; }
.button.primary { background: #7445ad; }
.button.primary:hover { background: var(--violet-bright); }
:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 5px; }
[hidden] { display: none !important; }
.journal-section, .play-callout { max-width: 86rem; margin: auto; padding: 5rem clamp(1.2rem, 5vw, 4rem); }
.section-top, .play-callout { display: flex; gap: 2rem; justify-content: space-between; align-items: center; }
.section-top { margin-bottom: 2rem; }
.section-top h2, .play-callout h2 { font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.2; font-weight: 500; margin: .7rem 0; }
.text-link { color: var(--violet-bright); text-underline-offset: .3rem; }
.journal-card { display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid var(--line); background: var(--panel); }
.journal-card-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.journal-card h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.3; font-weight: 500; }
.journal-card h3 a { text-decoration: none; }
.journal-card h3 a:hover { color: var(--violet-bright); }
.journal-card p, .play-callout p, .contact-placeholders p { color: var(--muted); }
.media-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; padding: 2rem; min-height: 15rem; border: 1px dashed #52605c; background: linear-gradient(135deg, #15231e, #151222); color: #cbd2cd; }
.media-placeholder small { color: var(--muted); font-size: .875rem; }
.media-placeholder.wide { aspect-ratio: 16/9; min-height: 12rem; }
.post-meta { color: var(--muted); font-size: .875rem; }
.sample-label { display: inline-block; padding: .25rem .65rem; border: 1px solid #725c32; color: #e2c88c; font-size: .875rem; }
.play-callout { border-block: 1px solid var(--line); background: #11111c; }
.play-callout > div { max-width: 47rem; }
.play-callout .button { flex-shrink: 0; }
.inner-page .site-header { position: relative; }
.page-shell { max-width: 78rem; padding: 4rem clamp(1.2rem, 5vw, 4rem) 7rem; margin: auto; min-height: 70vh; }
.page-shell h1 { max-width: 20ch; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.12; letter-spacing: -.035em; margin-block: 1rem 1.5rem; }
.page-lead { max-width: 45rem; color: var(--muted); font-size: 1.125rem; }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2.5rem 0 1rem; }
.filters button, button.outline { cursor: pointer; font-family: inherit; }
.filters button { background: transparent; color: #d8ded8; border: 1px solid #46534b; padding: .7rem 1rem; font-size: .875rem; }
.filters button[aria-pressed="true"] { background: #7445ad; border-color: #a779de; color: white; }
.filters button:hover { border-color: var(--violet-bright); }
#main-nav [aria-current="page"] { color: var(--violet-bright); text-decoration: underline; text-underline-offset: .4rem; }
.empty-panel { padding: 3rem 2rem; background: var(--panel); border: 1px solid var(--line); }
button.outline { background: none; }
.construction-panel { padding: clamp(2rem, 7vw, 6rem); text-align: center; border: 1px solid #4b3d62; background: radial-gradient(ellipse at top, #241a35, #0d1317 75%); }
.construction-panel h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); line-height: 1.2; font-weight: 500; }
.construction-panel p { max-width: 40rem; margin: 1rem auto; }
.muted { color: var(--muted); }
.page-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.article-body { max-width: 49rem; margin: 3rem auto; }
.article-body h1 { max-width: none; font-size: clamp(2.3rem, 4.5vw, 4rem); }
.article-body h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.3; margin-top: 3rem; font-weight: 500; }
.article-body > p { color: #c5ccc6; line-height: 1.9; }
.article-intro { font-size: 1.2rem; }
.sample-notice { padding: 1.3rem 1.5rem; border-left: 3px solid var(--gold); background: #201d17; margin: 2rem 0; color: #e0d2ae; }
.sample-notice p { margin-bottom: 0; }
.article-body figure { margin: 2.5rem 0; }
figcaption { color: var(--muted); font-size: .875rem; margin-top: .7rem; }
.article-end, .article-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; padding-top: 2rem; border-top: 1px solid var(--line); margin-top: 3rem; }
.article-pagination { font-size: .875rem; }
.article-pagination span { color: var(--muted); }
.contact-placeholders { flex-shrink: 0; }
@media(max-width: 1100px) {
  .header-cta { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
}
@media(max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; }
  #main-nav { align-items: flex-start; gap: .5rem; }
  #main-nav a { padding: .6rem; width: 100%; }
  .journal-card { grid-template-columns: 1fr; }
  .section-top, .play-callout { flex-direction: column; align-items: flex-start; }
  .article-pagination { position: static; display: flex; background: none; padding: 2rem 0; flex-direction: column; align-items: flex-start; }
  .article-body { margin-top: 2rem; }
}
