:root{
  /* Paper + ink */
  --bg:#f6efe6;
  --paper:#fbf6ef;
  --panel:#fffaf3;
  --panel2:#f7efe5;

  --text:#121212;
  --muted:#5f5f5f;

  --line:rgba(0,0,0,.10);
  --line2:rgba(0,0,0,.16);

  --accent:#c43a2f; /* muted tomato */
  --ok:#2f8f6b;
  --warn:#b07a1a;
  --bad:#b12a2a;

  --radius:16px;
  --shadow: 0 18px 50px rgba(0,0,0,.10);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --serif: "Libre Baskerville", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(196,58,47,.07), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, rgba(0,0,0,.05), transparent 60%),
    var(--bg);
}


/* Typography */
h1, h2, h3, .masthead{
  font-family: var(--serif);
  letter-spacing: -0.015em;
}

.tag, .nav a, .kicker, .small, p, li, .btn{
  font-family: var(--font);
}

/* Layout */
.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 14px 26px;
}



/* Layout */
.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 14px 26px;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding: 8px 4px 14px;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.masthead{
  font-family:var(--serif);
  letter-spacing:.06em;
  font-weight:800;
  text-transform:uppercase;
  font-size: 15px;
}

.tag{
  color:var(--muted);
  font-size: 12.5px;
}

/* Nav */
.nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}

.nav a{
  text-decoration:none;
  color:var(--text);
  font-size:13px;
  padding:8px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}

.nav a:hover{
  border-color: var(--line2);
  background: rgba(255,255,255,.55);
}

.nav a.is-active{
  border-color: var(--line2);
  background: rgba(255,255,255,.80);
}

/* Generic */
.cover{ display:block; }

.sep{
  height:1px;
  background: var(--line);
  margin: 18px 0 10px;
}

/* Buttons */

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.25);
  background: transparent;
  font-size: 12px;
}

.btn:hover{
  background: rgba(0,0,0,.04);
}

.btn.primary:hover{
  background: #000;
}





.btn.primary{
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}






.btn.subtle{
  background: rgba(255,255,255,.65);
}

.dot{
  width:8px; height:8px;
  border-radius:999px;
  background: var(--accent);
  display:inline-block;
}

/* Footer */
.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links a{
  color: var(--muted);
  text-decoration:none;
}

.footer-links a:hover{
  color: var(--text);
  text-decoration:underline;
}

.small{ color: var(--muted); }

/* ------------------------------- */
/* Split Cover: Art Left, Interface Right */
/* ------------------------------- */

.split{
  max-width: 1120px;
  margin: 14px auto 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);

  /* Desktop should feel like a cover, not a long page */
  min-height: calc(100vh - 140px);
  max-height: calc(100vh - 140px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.split-top{ padding: 2px 2px 0; }

.split-title{
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color:#111;
  max-width: 22ch;
}

.split-sub{
  margin: 0 0 6px;
  color: var(--muted);
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.5;
}



/* The “grey bars” fix: make them editorial straps, not UI pills */
.issue{
  display:flex;
  gap:14px;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#777;
  flex-wrap:wrap;
}


.issue .pill{
  background:none;
  padding:0;
  border-radius:0;
  font-weight:700;
}

.issue .pill::after{
  content:"•";
  margin-left:12px;
  color:#aaa;
}

.issue .pill:last-child::after{ content:""; }

.split-grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr; /* ~57/43 */
  gap: 14px;
  align-items: stretch;
  min-height: 0;
}

.split-hero{
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.02);
  display: grid;
}

.split-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Show more hat + shoulders (less “zoomed in”) */
  object-position: 50% 10%;

  image-rendering: pixelated;
}

.split-right{
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 0;
}

.panel{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.panel h2{
  margin: 0;
  font-size: 19px;
  font-family: var(--serif);
  letter-spacing: -0.01em;
}


.panel p{
  margin: 0;
  color: var(--text);
  font-size: 13px;
}


.panel .dek{
  margin: -4px 0 6px;
  color: var(--muted);
  font-size: 12.5px;
}





.list{
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed rgba(0,0,0,.15);
}

.list li{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0,0,0,.15);
}

.list .k{
  font-weight: 700;
  font-size: 13px;
}

.list .m{
  color: var(--muted);
  font-size: 11.5px;
}


.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top: 4px;
}

.note{
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  color: var(--muted);
  font-size: 12.5px;
}

/* Mobile: stack hero then panels */
@media (max-width: 900px){
  .topbar{ align-items:flex-start; }
  .split{ min-height: auto; }
  .split-grid{ grid-template-columns: 1fr; }
  .split-hero img{ max-height: 46vh; }
  .split-right{ grid-template-rows: auto auto; }
  .footer{ flex-direction:column; align-items:flex-start; }
}
.cover-credit{
  position:absolute;
  left:12px;
  bottom:12px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.92);
  text-shadow:0 2px 10px rgba(0,0,0,.45);
  pointer-events:none;
}
.split-hero{ position:relative; }
/* Consistent framing per cover */
#cover_img{ object-position:50% 12%; }
#cover_img[data-cover="zoe"]{ object-position:50% 20%; }
#cover_img[data-cover="dn"]{ object-position:50% 12%; }
#cover_img[data-cover="wren"]{ object-position:50% 12%; }

/* --- Cover framing (consistent editorial window) --- */
#cover_img{
  object-fit:cover;
  object-position:50% 14%;
}

/* Detective Wren: keep hat + eyes comfortable */
#cover_img[data-cover="wren"]{
  object-position:50% 12%;
}

/* Detective’s Notebook splash: tends to need slightly lower framing */
#cover_img[data-cover="dn"]{
  object-position:50% 18%;
}

/* --- Blink cover layer (Wren only) --- */
.split-hero{ position:relative; }

.cover-blink{
  position:absolute;
  inset:0;
  opacity:0;                 /* off by default */
  pointer-events:none;
  background-repeat:no-repeat;
  background-size:200% 100%; /* 2 frames side-by-side */
  background-position:0% 0;  /* frame 1 */
  image-rendering:pixelated;
}

/* Slow, editorial blink: mostly open, brief closed */
@keyframes wrenBlink{
  0%, 92%   { background-position:0% 0; }    /* eyes open */
  93%, 95%  { background-position:100% 0; }  /* blink */
  96%, 100% { background-position:0% 0; }    /* open again */
}
/* Desktop cover mode: one screen, no scroll */
@media (min-width: 900px){
  html, body{ height: 100%; overflow: hidden; }

  /* Hide below-the-fold chrome */

  html, body{
    height: 100%;
    overflow: hidden;
  }



  .sep{ display:none; }









  /* Make the page a fixed 100vh frame: header + cover */
  .wrap{
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 12px 14px; /* remove bottom padding that causes scroll */
  }

  /* Allow the main area to shrink without pushing the viewport */
  .cover{ min-height: 0; }

  /* The cover should fill the remaining space, not use vh guesses */
  .split{
    height: 100%;
    max-height: none;
    min-height: 0;
    margin: 0;         /* remove the extra 14px top margin */
    overflow: hidden;  /* keep it cover-like */
  }
}
  /* Legal strip: visible, but doesn't create scroll */
  .footer{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;

    background: rgba(251,246,239,.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);

    padding: 8px 14px;
    font-size: 12px;
    line-height: 1.2;
  }

  .footer .small{ font-size: 12px; }

  /* Keep the cover clear of the fixed footer */
  .wrap{ padding-bottom: 56px; }
