@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-tight-medium.ttf") format("truetype");
}
:root {
  color-scheme: light;
  --page: #fff; --ink: #090a0b; --muted: #65666a; --line: #dedee0; --accent: #090a0b;
  --reader-size: 1.25rem;
  --ui-font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --reading-font: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
}
:root[data-theme="dark"] { color-scheme: dark; --page: #0b0c0d; --ink: #f2f2f3; --muted: #a2a2a6; --line: #303033; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--ui-font); -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { padding: 0; background: none; border: 0; border-radius: 0; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; }
a:hover, button:hover { text-decoration: underline; text-underline-offset: .3em; }
button:disabled { opacity: .35; cursor: default; text-decoration: none; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
::selection { color: var(--page); background: var(--ink); }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; transform: translateY(-200%); background: var(--page); padding: .75rem; }
.skip-link:focus { transform: none; }
.site-header, .library-view, .site-footer { width: min(100% - var(--gutter) * 2, 1300px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: flex-end; gap: 2rem; padding-block: 1.5rem; }
.collection-logo { width: 100%; }
.reader-logo { width: clamp(140px, 15vw, 190px); }
:root[data-theme="dark"] .collection-logo, :root[data-theme="dark"] .reader-logo { filter: invert(1) grayscale(1); }
.header-actions { display: flex; align-items: center; gap: 2.5rem; font-size: .875rem; }
.header-actions a, .header-actions button { padding-block: .75rem; }
.theme-button { min-width: 44px; }
.header-actions button, .reader-tools button, .ending-actions button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 2px; line-height: 1.2; }
.header-actions button:hover:not(:disabled), .reader-tools button:hover:not(:disabled), .ending-actions button:hover:not(:disabled) { border-color: var(--muted); background: var(--line); text-decoration: none; }
.header-actions button:focus-visible, .reader-tools button:focus-visible, .ending-actions button:focus-visible { outline-offset: 3px; }
.library-view { padding-block: clamp(1.5rem, 4vw, 4rem) 6rem; }
.library-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2rem; margin-block: 0 clamp(2.5rem, 5vw, 5rem); }
.library-heading h1 { margin: 0; width: min(78%, 860px); line-height: 1; }
.library-heading > p { margin: 0; color: var(--muted); font-size: 1rem; white-space: nowrap; }
.collection-label { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 1.1rem; color: var(--muted); font-size: .875rem; }
.continue-panel { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; padding-block: 1rem; margin-bottom: 1.5rem; border-block: 1px solid var(--line); font-size: .875rem; }
.continue-panel p { margin: 0; line-height: 1.7; }
#continueTitle { font-weight: 600; margin-left: .3rem; }
.continue-meta { color: var(--muted); margin-left: .5rem; }
.continue-panel a { padding: .5rem 0 .5rem 1rem; text-decoration: underline; text-underline-offset: .25em; }
.story-list { border-top: 1px solid var(--line); }
.story-entry { --story-accent: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 22%); align-items: center; gap: clamp(1rem, 3.5vw, 3.5rem); padding-block: clamp(2rem, 4vw, 4rem); border-bottom: 1px solid var(--line); }
.story-entry.without-art { grid-template-columns: minmax(0, 1fr); }
.entry-copy { padding-block: 1rem; }
.entry-action { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .65rem; row-gap: .2rem; }
.entry-reading-time { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.entry-copy h2 { max-width: 16ch; margin: 0; font-size: clamp(2.5rem, 4.9vw, 5rem); line-height: 1.07; font-weight: 500; letter-spacing: -.05em; text-wrap: balance; }
.entry-copy h2 a { text-decoration: none; }
.entry-copy h2 a:hover { color: var(--story-accent); }
:root[data-theme="dark"] .entry-copy h2 a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--story-accent); text-decoration-thickness: 2px; }
.entry-excerpt { max-width: 37ch; margin: 1.75rem 0 1.7rem; font-family: var(--reading-font); font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.read-link { display: inline-block; padding-block: .6rem; border-bottom: 1px solid var(--story-accent); font-size: .9375rem; }
.read-link:hover { text-decoration: none; border-color: var(--ink); }
.entry-art { display: block; justify-self: end; width: 100%; }
.entry-art img { width: 100%; }
.entry-art:hover { text-decoration: none; }
.loading-text, .load-error { padding-block: 2rem; line-height: 1.7; }
.reader-view { min-height: 100vh; }
.reading-progress { position: fixed; z-index: 30; inset: 0 0 auto; height: 2px; pointer-events: none; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--accent); }
.reader-nav { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 76px; padding: .75rem var(--gutter); border-bottom: 1px solid var(--line); background: var(--page); font-size: .875rem; }
.reader-nav a, .reader-nav button { min-height: 44px; display: inline-flex; align-items: center; }
.back-link { justify-self: start; }
.reader-nav-title { color: var(--muted); }
.reader-tools { display: flex; flex-wrap: wrap; min-width: 0; justify-content: flex-end; gap: .5rem; }
.story { width: min(100% - var(--gutter) * 2, 1140px); margin-inline: auto; padding: clamp(3rem, 7vw, 6.5rem) 0 5rem; }
.story-title-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 24%); align-items: center; gap: clamp(2rem, 5vw, 5rem); margin-bottom: clamp(3.5rem, 7vw, 7rem); }
.story-title-block.without-art { display: block; }
.story-title-copy { min-width: 0; }
.story-eyebrow { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0 0 2rem; color: var(--muted); font-size: .875rem; }
.story-title-copy h1 { margin: 0; max-width: 14ch; font-size: clamp(3rem, 6.8vw, 6.5rem); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.story-title-copy h1:focus, .story-copy:focus { outline: none; }
.story-author { margin: 2rem 0; font-size: 1rem; }
.begin-link { display: inline-block; padding-block: .6rem; border-bottom: 1px solid var(--accent); font-size: .9375rem; }
.begin-link:hover { text-decoration: none; border-color: var(--ink); }
.story-art { width: 100%; margin: 0; }
.story-art img { width: 100%; }
.story-title-block.art-wide { grid-template-columns: 1fr; }
.art-wide .story-art { width: 100%; max-width: 900px; margin-inline: auto; }
.story-copy, .story-ending, .future-section { width: min(100%, 680px); margin-inline: auto; }
.story-copy { font-family: var(--reading-font); font-size: var(--reader-size); line-height: 1.8; scroll-margin-top: 100px; overflow-wrap: break-word; }
.story-copy p { margin: 0 0 1.25em; }
.story-copy h2 { font-family: var(--ui-font); font-size: 1rem; margin: 3em 0 1.5em; }
.story-divider { height: 1px; width: 2rem; background: var(--line); margin: 3rem auto; }
.story-ending { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.end-mark { display: block; width: 1.4rem; height: 2px; background: var(--accent); margin-bottom: 2rem; }
.story-ending > p { margin: 0 0 1.5rem; color: var(--muted); font-size: .875rem; }
.ending-actions { display: flex; gap: 2rem; font-size: .9375rem; }
.ending-actions a, .ending-actions button { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding-block: 1.5rem 3rem; font-size: .875rem; color: var(--muted); }
.site-footer p { margin: 0; }
.share-status { position: fixed; z-index: 40; bottom: 1rem; left: 50%; transform: translateX(-50%); max-width: calc(100% - 2rem); margin: 0; padding: .8rem 1rem; background: var(--ink); color: var(--page); font-size: .875rem; line-height: 1.6; }
.share-status:empty { display: none; }
.noscript { margin: 2rem var(--gutter); line-height: 1.6; }
.noscript a { text-decoration: underline; }
h1, h2 { overflow-wrap: anywhere; }
.share-status { overflow-wrap: anywhere; }
body.is-reading .site-header, body.is-reading .site-footer { display: none; }
@media (max-width: 900px) {
  .story-entry { grid-template-columns: minmax(0, 1fr) minmax(140px, 25%); gap: 1.5rem; }
  .reader-nav { grid-template-columns: auto minmax(0, 1fr); gap: 1rem; }
  .reader-nav-title { display: none; }
}
@media (max-width: 620px) {
  .site-header { gap: 1rem; padding-block: 1.3rem; }
  .header-actions { gap: 1rem; }
  .header-actions > a { display: none; }
  .library-heading { display: block; margin-bottom: 2.5rem; }
  .library-heading h1 { width: 100%; }
  .library-heading > p { margin-top: 1rem; }
  .story-entry { grid-template-columns: minmax(0, 1fr) minmax(85px, 28%); gap: 1.25rem; position: relative; padding-block: 2.5rem; }
  .story-entry.without-art { grid-template-columns: 1fr; }
  .entry-copy { padding: 0; }
  .entry-copy h2 { font-size: clamp(1.9rem, 6.8vw, 2.7rem); letter-spacing: -.04em; }
  .entry-excerpt { font-size: 1rem; margin-block: 1.2rem 1rem; }
  .entry-art { align-self: start; margin-top: 2.5rem; }
  .read-link { font-size: .875rem; }
  .reader-nav { grid-template-columns: minmax(0, 1fr); gap: .65rem; padding-inline: 1rem; font-size: .875rem; }
  .reader-logo { width: 150px; }
  .reader-tools { justify-content: flex-start; gap: .5rem; }
  .story-title-block { grid-template-columns: minmax(0, 1fr) minmax(85px, 28%); gap: 1.25rem; }
  .story-title-copy h1 { font-size: clamp(2.25rem, 8vw, 3.5rem); }
  .story-eyebrow { display: block; font-size: .875rem; margin-bottom: 1.25rem; }
  #storyMeta { display: block; margin-top: .45rem; }
  .story-author { margin-block: 1.25rem; }
  .story-art { align-self: start; margin-top: 2.75rem; }
  .continue-panel { align-items: start; }
  .continue-meta { display: block; margin-left: 0; }
  .site-footer { font-size: .875rem; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
