@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

:root{
  --bg:         #08080A;
  --surface:    #131316;
  --surface-2:  #1C1C21;
  --border:     #2A2A31;
  --text:       #F1F1EF;
  --text-mute:  #bbbbc1;
  --text-dim:   #bbbbc2;

  --accent:        #B12C5B;
  --accent-bright: #E2678F;
  --accent-dim:    #4A1526;
  --accent-ink:    #FBEAF0;

  --err: #f28b82;

  --logo: 'Russo One', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 3px;
  --max-w: 1080px;
}

.light-mode{
  --bg:         #eaeaea;
  --surface:    #FFFFFF;
  --surface-2:  #F1F3F5;
  --border:     #E2E8F0;
  --text:       #0F172A;
  --text-mute:  #293442;
  --text-dim:   #64748B;
  --accent-bright: #9E1C48;
  --accent-dim:    #FCE7F0;
  --accent-ink:    #FFFFFF;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 12% -10%, rgba(177,44,91,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(177,44,91,0.06), transparent 60%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.light-mode body,
body.light-mode{
  background-image:
    radial-gradient(ellipse 900px 500px at 12% -10%, rgba(177,44,91,0.06), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(177,44,91,0.04), transparent 60%);
}

h1, h2, h3, h4{
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; color: var(--text); }
a{ color: var(--accent-bright); text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; display: block; }
::selection{ background: var(--accent); color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

hr.rule{ border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.page-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease-in-out, visibility .4s ease-in-out;
}
.page-loader.hidden,
.page-loader.fade-out{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.loader-inner{ text-align: center; }

.loader-mark{
  display: block;
  width: 220px;
  max-width: 60vw;
  height: auto;
  margin: 0 auto 20px;
}

.loader-bar{
  width: 180px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 14px;
}
.loader-bar-fill{
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loaderslide 1.1s ease-in-out infinite;
}
@keyframes loaderslide{
  0%{ transform: translateX(-120%); }
  50%{ transform: translateX(150%); }
  100%{ transform: translateX(320%); }
}
.loader-text{ font-family: var(--mono); color: var(--text-dim); font-size: 0.9rem; margin: 0; }

.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  
}
.light-mode .site-nav{
  background: rgba(255, 255, 255, 0.85);
}
.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25em 0;
  height: 62px;
}

.logo{
  max-width: 180px;
  display: inline-block;
  margin-top: 0.5em;
}
.light-mode .logo{
  transition: filter .3s ease;
}

.nav-controls{
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle{
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.theme-toggle svg{ display: block; pointer-events: none; }
.theme-toggle:hover{
  border-color: var(--accent-bright);
  background: var(--surface-2);
  color: var(--accent-bright);
}

.nav-links{
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.96rem;
}
.nav-links a{
  display: block;
  color: var(--text-mute);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover{ color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a.active{ color: var(--accent-bright); }
.nav-links a.active::before{ content: "./ "; color: var(--text-dim); }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 720px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .nav-links.open{ opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a{ padding: 12px 8px; border-bottom: 1px solid var(--border); }
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, transform .1s ease, background .15s ease;
}
.btn:hover{ border-color: var(--accent-bright); color: var(--text); text-decoration: none; background: var(--surface-2); }
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover{ background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); }
.btn[disabled]{ opacity: .4; cursor: not-allowed; }
.btn[disabled]:hover{ border-color: var(--border); background: var(--surface); }

.cell{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 0 0 20px;
  overflow: hidden;
}
.cell-head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.cell-head .tag{ color: var(--accent-bright); }
.cell-head .dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.cell-body{ padding: 20px; }
.cell-body.tight{ padding: 16px; }

.hero{ padding: 64px 0 40px !important; }

.prompt-line{
  font-family: var(--mono);
  color: var(--accent-bright);
  font-size: .97rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cursor{
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--accent-bright);
  animation: blink 1.1s steps(1) infinite;
  vertical-align: -2px;
}
@keyframes blink{ 50%{ opacity: 0; } }

.hero h1{
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.kw{ font-family: var(--logo); font-size: 0.6em; }
.kw span{ color: var(--accent); }

.hero .lede{
  font-size: 1.08rem;
  color: var(--text-mute);
  max-width: 800px;
  margin-bottom: 28px;
}
.hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; }

.section{ padding: 48px 0; }
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-head--offset{ margin-top: 48px; }
.section-head h2{ font-size: 1.4rem; margin: 0; }
.section-head h2 .idx,
.section-head h3 .idx{ color: var(--accent-bright); margin-right: 10px; }

.section-subhead{ justify-content: center; }

.section-head .more{ font-family: var(--mono); font-size: .85rem; white-space: nowrap; }
.section-sub{ color: var(--text-mute); max-width: 640px; margin: -12px 0 24px; }

.grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover{ border-color: var(--accent-bright); transform: translateY(-2px); }
.card-media{
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card-media img{ width: 100%; height: 100%; object-fit: cover; }
.card-media.empty{
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: .8rem;
}
.card-body{ padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta{
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card-title{ font-size: 1rem; margin: 0; }
.card-title a{ color: var(--text); text-decoration:underline;}
.card-title a:hover{ color: var(--accent-bright); text-decoration: none; }

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .95rem;
  margin-bottom: 0.95rem;
}

.card-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.log{ font-family: var(--mono); font-size: .92rem; }
.log-line{
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.log-line:last-child{ border-bottom: none; }
.log-time{ color: var(--text-dim); white-space: nowrap; }
.log-tag{ color: var(--accent); white-space: nowrap; }
.log-tag.evt{ color: var(--accent-bright); }
.log-msg{ color: var(--text); }
.log-msg a{ color: inherit; text-decoration: underline; text-decoration-color: var(--border); }
.log-msg a:hover{ text-decoration-color: var(--accent-bright); }

.state{
  font-family: var(--mono);
  font-size: .88rem;
  color: var(--text-mute);
  padding: 22px 4px;
}
.state.error{ color: var(--err); }

.skeleton{
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 4px;
}
@keyframes shimmer{ 0%{ background-position: 100% 0; } 100%{ background-position: 0 0; } }
.skeleton-card{ height: 260px; border-radius: 6px; border: 1px solid var(--border); }

.pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--text-mute);
}

.issue{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px;
}
.issue-cover{
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  aspect-ratio: 3 / 4;
}
.issue-cover img{ width: 100%; height: 100%; object-fit: cover; }
.issue-body h3{ font-size: 1.15rem; margin-bottom: 6px; }
.issue-body h3 a{ color: var(--text); }
.issue-body h3 a:hover{ color: var(--accent-bright); text-decoration: none; }
.issue-num{ color: var(--accent-bright); font-family: var(--mono); font-size: .78rem; margin-bottom: 8px; display: block; }
.issue-summary{ color: var(--text-mute); }
@media (max-width: 560px){
  .issue{ grid-template-columns: 1fr; }
  .issue-cover{ max-width: 160px; }
}

.tag-pill{
  display: inline-block;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text-mute);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
}

.about-statement{
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0;
}
.about-statement .hl{ color: var(--accent-bright); font-weight: 600; }

.team-section{ margin: 0 0 44px; }
.team-section:last-child{ margin-bottom: 0; }
.team-section .section-head h3{ font-size: 1.15rem; margin: 0; }

.member-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.member-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 14px;
  max-width: 240px;
  width: 100%;
  min-height: 150px;
  padding-top: 24px;

  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.member-card:hover{
  transform: translateY(-3px);
  border-color: var(--accent-bright);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 18px rgba(226, 103, 143, 0.2);
}
.member-pfp{
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--surface-2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.member-pfp img{ width: 100%; height: 100%; object-fit: cover; }
.member-pfp.empty{
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.3rem;
  background: var(--accent-dim);
}
.member-name{ font-size: 0.95rem; margin: 0 0 2px; color: var(--text); }
.member-role{
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.member-meta{ font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; }
.member-desc{ font-size: 0.95rem; color: var(--text-mute); margin: 0; line-height: 1.4; }

.contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.contact-card{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-card:hover{
  border-color: var(--accent-bright);
  box-shadow: 0 0 14px rgba(226, 103, 143, 0.18);
}

.contact-label{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-value{ font-size: 0.9rem; color: var(--text); word-break: break-word; }
.contact-value a{ color: var(--text); transition: color .15s ease; }
.contact-value a:hover{ color: var(--accent-bright); text-decoration: none; }
.contact-nav-links{ display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

.detail{ max-width: 720px; }
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.back-link:hover{ color: var(--accent-bright); text-decoration: none; }
.detail-cover{
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin-bottom: 26px;
  max-height: 420px;
}
.detail-cover img{ width: 100%; height: 100%; object-fit: cover; }
.detail h1{ font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.detail-meta{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--accent-bright);
  margin-bottom: 22px;
}
.detail-body{ font-size: 1.02rem; color: var(--text); margin-bottom: 26px; }
.detail-body p{ white-space: pre-line; }

.site-footer{
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 36px 0 46px;
  color: var(--text-dim);
  font-size: .88rem;
}
.site-footer .wrap{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links{ display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: .82rem; }
.footer-links a{ color: var(--text-mute); }
.footer-note{ font-family: var(--mono); font-size: .78rem; color: var(--text-dim); max-width: 420px; }

.page-head{ padding: 44px 0 8px; }
.page-head .prompt-line{ margin-bottom: 10px; }
.page-head h1{ font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.page-head .lede{ color: var(--text-mute); max-width: 800px; }



/* ==========================================================
   SHELL$ Newsletter — special treatment (scoped, on-brand)
   Applies to newsletter.html + issue-detail.html only, via the
   .newsletter-page class on <body>. Same layout/type system as
   the rest of the site — just a blue accent + a terminal boot
   line that types itself out.
   ========================================================== */

.newsletter-page{
  --accent:        #2563EB;
  --accent-bright: #5B9BFF;
  --accent-dim:    #16234A;
  --accent-ink:    #EAF1FF;
}
.newsletter-page.light-mode{
  --accent-bright: #1D4ED8;
  --accent-dim:    #DCE7FF;
}

/* the site logo art is drawn in the pink accent — rotate it to blue
   wherever it appears on these two pages (nav, footer, loader) */
.newsletter-page .logo,
.newsletter-page .loader-mark{
  filter: hue-rotate(230deg) saturate(1.9);
}

.newsletter-title{
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-shadow: 0 0 18px rgba(91, 155, 255, 0.35);
  font-family: var(--logo);
}

.prompt-symbol{
  color: var(--accent-bright);
  font-size: 0.65em;
  margin-left: 2px;
}

/* typing cursor used while js/boot-type.js types out the prompt line */
.newsletter-page .prompt-line .type-cursor{
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent-bright);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

/* latest issue gets a slightly livelier frame than a plain .cell */
.newsletter-page #issues-list .cell:first-of-type{
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 12px 30px rgba(37,99,235,0.12);
}
.newsletter-page #issues-list .cell:first-of-type .cell-head{
  background: linear-gradient(180deg, rgba(91,155,255,0.08), transparent);
}

.card-badge {
    margin-right: 6px;
    padding: 1px 6px;
    border: 1px solid currentColor;
    border-radius: 3px;
    font-size: 0.7em;
    text-transform: uppercase;
  }