/* site.css — additions for the live site that the design did not need.
   Everything here reuses the design's own tokens and classes. */

/* topic filter: hide cards that don't match the chosen topic */
.post.is-filtered{display:none}
.grid-empty{grid-column:1 / -1;padding:32px 0;color:var(--ink-soft);
  font-family:var(--mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.grid-empty[hidden]{display:none}
.chip{cursor:pointer}

/* post-grid graphics, as locked in Claude Design: black & white = grayscale;
   color = a hue layer over the image, so only the colored field changes */
.post-media{isolation:isolate}
.post-media[data-treat="bw"] .media-img{filter:grayscale(1)}
.post-media .tint{position:absolute;inset:0;mix-blend-mode:hue;background:var(--tint);pointer-events:none}

/* post-card titles: more room between lines (Dr. Erick, 2026-09-22), matching the
   1.5 line height Claude Design gave the article titles. Letter spacing unchanged. */
.posts-grid .post .post-title{line-height:1.5}

/* archive page */
.archive-head{padding:40px 0 0}
.archive .chips{margin-bottom:56px}
.archive .posts-grid{margin-top:0}
.archive .post-sm{grid-column:span 4}

/* in-article images and numbered lists (Notion posts can include both) */
.article-figure{margin:48px auto}
.article-figure img{width:100%;height:auto;display:block;border-radius:8px}
.article-figure figcaption{font-family:var(--mono);font-size:11px;letter-spacing:.06em;
  color:var(--ink-soft);margin-top:12px}
.article-body ol{margin:0 0 30px;padding-left:28px;display:flex;flex-direction:column;gap:14px}
.article-body ol li{font-size:18px;line-height:1.6;color:color-mix(in srgb,var(--ink) 90%, transparent)}
.article-body ol li::marker{font-family:var(--mono);color:var(--ink-soft)}

/* article pages: the design's fixed desktop spacing; tablets and phones step
   down to the same margins blog.css gives the homepage */
:root[data-reading="on"]{--gap:64px;--pad:112px}
@media (max-width:920px){:root[data-reading="on"]{--pad:22px;--gap:24px}}
@media (max-width:560px){:root[data-reading="on"]{--pad:16px;--gap:20px}}

/* skip link for keyboard users */
.skip{position:absolute;left:-9999px;top:0}
.skip:focus{left:16px;top:16px;z-index:100;background:var(--accent);color:var(--accent-ink);
  padding:10px 14px;border-radius:99px;font-family:var(--mono);font-size:12px}

/* people who ask their device for less motion get a still page */
@media (prefers-reduced-motion:reduce){
  .marquee-track,.hero-asterisk,.foot-asterisk{animation:none}
  .rotor-word{animation:none}
  .featured,.topics,.post,.about,.manif-line{opacity:1 !important;transform:none !important;transition:none}
}

/* Keep the site navigation available on smaller screens. */
@media(max-width:920px){.topbar{flex-wrap:wrap;gap:16px}.topnav{display:flex;flex-wrap:wrap;gap:16px;width:100%;font-size:13px}}
.chip-cream.is-active{background:#fff;border-color:#fff}
.newsletter .subscribe-link{color:#0d1a00;border-color:#0d1a00}

/* Long biography: retain site colors and give the prose a readable measure. */
.bio-page{padding-top:40px;padding-bottom:64px}.bio-header{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:40px;align-items:center;margin:32px 0 48px}.bio-header .section-title{margin:0;line-height:1.2}.bio-dek{color:var(--ink-soft);font-size:18px;line-height:1.6;margin-top:24px}.bio-portrait{width:240px;height:300px;object-fit:cover;object-position:50% 15%;border-radius:12px;border:1px solid var(--rule)}.bio-prose{max-width:74ch;font-size:19px;line-height:1.8}.bio-prose p{margin:0 0 28px}.bio-independence{max-width:74ch;padding:24px;border:1px solid var(--rule);border-radius:12px;margin:40px 0 32px;background:var(--panel)}.bio-independence p{margin:12px 0 0;line-height:1.7}@media(max-width:700px){.bio-header{grid-template-columns:1fr;gap:24px}.bio-portrait{width:180px;height:225px}.bio-prose{font-size:17px;line-height:1.75}.bio-header .section-title{font-size:clamp(30px,8vw,48px)}}

.signup-section{padding:48px 16px;background:#012148}.mm-input-group input:focus-visible{outline:2px solid #c5ff3a;outline-offset:3px}#mm-submit-btn:focus-visible{outline:2px solid white;outline-offset:3px}
/* Overlay Base & Open State */
#drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998; 
}

#drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer Base & Open State */
#macro-drawer {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 600px;
    max-width: 100vw; 
    height: 100vh;
    background-color: #1a1a1a; /* Dark theme */
    color: #e0e0e0;
    z-index: 999; 
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.5);
    padding: 40px 20px;
    box-sizing: border-box;
}

#macro-drawer.open {
    transform: translateX(0);
}