:root {
  --paper: #0d0d10;
  --paper-deep: #15151a;
  --ink: #f1efea;
  --ink-soft: #a5a3ab;
  --line: #2b2b33;
  --pink: #ff4f7b;
  --pink-dark: #ff6f95;
  --teal: #1b1b22;
  --yellow: #ff4f7b;
  --display: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --text: Charter, "Bitstream Charter", Georgia, serif;
  --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--pink-dark); }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 2.5rem 1.25rem; }

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--pink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  line-height: 1.05;
}
.brand img { flex: none; }
.site-header nav a {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.6rem 0.25rem;
}
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }

/* hero */
.hero {
  padding: 5rem 1.25rem 5.5rem max(1.25rem, calc((100vw - 68rem) / 2 + 1.25rem));
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  border-left: 8px solid var(--pink);
}
.hero h1 { max-width: 16ch; margin: 0 0 0.4em; font-weight: 800; letter-spacing: -0.035em; }
.lede { font-size: 1.3rem; color: var(--ink-soft); max-width: 36rem; }
.hero .lede { margin: 0 0 2rem; }

/* buttons */
.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  background: var(--pink);
  color: #0d0d10;
  border: 2px solid var(--pink);
  border-radius: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.button:hover { background: transparent; color: var(--pink); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.ghost:hover { color: var(--pink); border-color: var(--pink); }

/* story cards */
.story-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.story-card-link {
  display: block;
  height: 100%;
  padding: 0.75rem 0.75rem 1.25rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-top: 3px solid var(--pink);
  color: var(--ink);
  text-decoration: none;
}
.story-card-link:hover { border-color: var(--pink); }
.card-title {
  margin: 0 0.5rem 0.4rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
}
.story-card p { margin-left: 0.5rem; margin-right: 0.5rem; }
.story-card p { margin-top: 0; margin-bottom: 0.75rem; font-size: 1rem; color: var(--ink-soft); }
.story-cover { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 0.9rem; }
.story-cover-blank {
  display: grid;
  place-items: center;
  background: var(--teal);
  font-family: var(--display);
  font-weight: 800;
  font-size: 4rem;
  color: var(--pink);
  border: 1px solid var(--line);
}
.chapter-count {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--pink-dark);
}

/* story page */
.story-head { padding-bottom: 1rem; }
.crumb { font-family: var(--display); font-weight: 700; margin: 0 0 1rem; }
.chapter-list { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.chapter-list li { border-bottom: 1px solid var(--line); }
.chapter-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
}
.chapter-list a:hover .chapter-title { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 5px; }
.chapter-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: transparent;
  color: var(--pink);
  border: 1px solid var(--pink);
  font-family: var(--display);
  font-weight: 800;
}
.chapter-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.empty { padding: 1rem 0; color: var(--ink-soft); }

/* reading */
.reading { max-width: 42rem; }
.chapter-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--pink-dark);
}
.prose { font-size: 1.25rem; line-height: 1.75; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.next-release {
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  font-family: var(--display);
  color: var(--ink-soft);
}
.next-release strong { color: var(--ink); }

/* footer */
.site-footer {
  padding: 2rem 1.25rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: left;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.site-footer p { margin: 0; }
