:root {
  --paper: #fbf9f5;
  --card: #ffffff;
  --ink: #1f1c18;
  --soft: #5f5850;
  --faint: #8c847a;
  --line: #e7e1d7;
  --wash: #f3efe8;
  --accent: #7a2e3a;
  --accent-deep: #5f222c;
  --accent-wash: #f6ebec;
  --good: #2f6b4f;
  --warn: #8a5a12;
  --bad: #a2352b;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --read-size: 1.25rem;
  --radius: 6px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-deep);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 0.9em;
}

code {
  font-size: 0.9em;
  background: var(--wash);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}

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

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 249, 245, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.bar__row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}

.brand {
  font: 600 1.35rem/1 var(--serif);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--accent);
}

.brand--small {
  font-size: 1.05rem;
}

.bar__nav {
  display: flex;
  gap: 22px;
  flex: 1;
}

.bar__nav a, .bar__me a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 500;
}

.bar__nav a:hover, .bar__me a:hover {
  color: var(--ink);
}

.bar__nav a[aria-current=page] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-bottom: 17px;
  margin-bottom: -19px;
}

.bar__me {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar__me form {
  margin: 0;
}

.bar__me a, .bar__me button {
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.button--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button--quiet:hover {
  background: var(--wash);
  color: var(--ink);
  border-color: #d5cdc0;
}

.button--quiet[aria-pressed=true] {
  border-color: var(--accent);
  color: var(--accent);
}

.button--small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.875rem;
}

.bar .button {
  color: #fff;
}

button.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--soft);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

button.link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.link--danger, button.link--danger {
  color: var(--bad);
}

.label {
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}

.hint {
  color: var(--faint);
  font-size: 0.875rem;
  font-weight: 400;
}

.empty {
  color: var(--soft);
}

.problem {
  color: var(--bad);
  background: #fbeceb;
  border-left: 3px solid var(--bad);
  padding: 8px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.problem-text {
  color: var(--bad);
}

.saved {
  color: var(--good);
  background: #e9f3ed;
  border-left: 3px solid var(--good);
  padding: 8px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notice {
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.prose {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

.prose p:last-child {
  margin-bottom: 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 32px;
  padding-bottom: 28px;
  align-items: start;
}

.intro h1 {
  font-size: 2.6rem;
  max-width: 15em;
  margin-bottom: 14px;
}

.intro__lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--soft);
  max-width: 34em;
}

.intro__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.intro__new {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px 8px;
}

.mini {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini li + li {
  border-top: 1px solid var(--line);
}

.mini a {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink);
}

.mini a:hover .mini__title {
  color: var(--accent);
}

.mini__title {
  font: 600 1.05rem/1.3 var(--serif);
}

.mini__by {
  color: var(--faint);
  font-size: 0.875rem;
}

.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
}

.how ul {
  margin: 0 0 12px;
  padding-left: 1.1em;
}

.how li {
  margin-bottom: 6px;
  color: var(--soft);
}

.how li::marker {
  color: var(--accent);
}

.list-page {
  padding-top: 24px;
  padding-bottom: 48px;
}

.list-page__title {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px 28px;
}

.card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.card__title {
  margin: 2px 0 2px;
  font-size: 1.15rem;
}

.card__title a {
  color: var(--ink);
  text-decoration: none;
}

.card__title a:hover {
  color: var(--accent);
}

.card__by {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.card__by a {
  color: var(--soft);
  text-decoration: none;
}

.card__by a:hover {
  color: var(--accent);
}

.card__blurb {
  margin: 0 0 6px;
  color: var(--soft);
  font-size: 0.925rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  margin: 0;
  color: var(--faint);
  font-size: 0.8rem;
}

.cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(31, 28, 24, 0.12), 0 6px 18px -8px rgba(31, 28, 24, 0.25);
  background: var(--wash);
}

.cover--made {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14% 12% 12%;
  color: #fbf6ee;
  overflow: hidden;
  container-type: inline-size;
}

.cover__title {
  font: 600 13cqi/1.12 var(--serif);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.cover__by {
  font: 500 7.5cqi/1.2 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.cover--t0 {
  background: #7a2e3a;
}

.cover--t1 {
  background: #2f4858;
}

.cover--t2 {
  background: #4d5b3a;
}

.cover--t3 {
  background: #6b4f2f;
}

.cover--t4 {
  background: #3f3a5c;
}

.cover--t5 {
  background: #24413f;
}

.author {
  padding-top: 28px;
  padding-bottom: 48px;
}

.author__head {
  max-width: 46em;
  margin-bottom: 18px;
}

.author__head h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.author__bio {
  color: var(--soft);
}

.author .subbox {
  max-width: 46em;
  margin-bottom: 32px;
}

.subbox {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.subbox p:last-child, .subbox form {
  margin-bottom: 0;
}

.subbox form {
  margin-top: 10px;
}

.story {
  padding-top: 24px;
  padding-bottom: 48px;
}

.story__head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 32px;
}

.story__about h1 {
  font-size: 2.4rem;
  margin-bottom: 4px;
}

.story__by {
  color: var(--soft);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.story__by a {
  color: var(--soft);
}

.story__blurb {
  max-width: 40em;
  color: var(--ink);
  margin-bottom: 14px;
}

.story__facts {
  color: var(--faint);
  font-size: 0.9rem;
}

.story__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.story__actions form {
  margin: 0;
}

.story__new {
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}

.story__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.story__side {
  position: sticky;
  top: 76px;
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.toc__list li {
  border-bottom: 1px solid var(--line);
}

.toc__list a {
  display: grid;
  grid-template-columns: 2.5em minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 4px;
  color: var(--ink);
  text-decoration: none;
}

.toc__list a:hover {
  background: var(--wash);
}

.toc__list a:hover .toc__title {
  color: var(--accent);
}

.toc__here {
  background: var(--accent-wash);
}

.toc__n {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.toc__title {
  font: 500 1.05rem/1.35 var(--serif);
}

.toc__date {
  color: var(--faint);
  font-size: 0.85rem;
  white-space: nowrap;
}

.toc__lock {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.page-read {
  --page: var(--paper);
  --text: var(--ink);
  background: var(--page);
  color: var(--text);
}

.theme-sepia .page-read {
  --page: #f4ecd8;
  --text: #3a2f22;
  --line: #e2d6bb;
  --wash: #ece2c8;
  --soft: #6c5a44;
  --faint: #8f7c63;
}

.theme-dark .page-read {
  --page: #17161a;
  --text: #d8d3ca;
  --line: #2e2c33;
  --wash: #222127;
  --soft: #a8a196;
  --faint: #847e74;
  --accent: #d9919c;
  --accent-deep: #e8aeb7;
  --accent-wash: #2a2125;
  --card: #1e1d22;
}

.bar--read {
  background: var(--page);
  border-bottom-color: var(--line);
  backdrop-filter: none;
}

.theme-sepia .bar--read, .theme-dark .bar--read {
  background: var(--page);
}

.bar--read .bar__row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  gap: 20px;
}

.bar--read .brand {
  color: var(--text);
}

.bar__story {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--soft);
  text-decoration: none;
  font: 500 1rem/1 var(--serif);
}

.bar__contents {
  color: var(--soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
}

.bar__story:hover, .bar__contents:hover {
  color: var(--text);
}

.prefs {
  position: relative;
}

.prefs summary {
  list-style: none;
  cursor: pointer;
  font: 600 1rem/1 var(--serif);
  color: var(--soft);
  padding: 6px 8px;
  border-radius: var(--radius);
}

.prefs summary::-webkit-details-marker {
  display: none;
}

.prefs[open] summary, .prefs summary:hover {
  background: var(--wash);
  color: var(--text);
}

.prefs__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.3);
  min-width: 260px;
}

.prefs__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.prefs__row + .prefs__row {
  margin-top: 10px;
}

.prefs__row span {
  width: 3.2em;
  color: var(--faint);
  font-size: 0.85rem;
}

.prefs__row button {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--text);
  border-radius: var(--radius);
  padding: 6px 8px;
  font: 500 0.875rem/1 var(--sans);
  cursor: pointer;
}

.prefs__row button:hover {
  border-color: var(--soft);
}

.read {
  width: 100%;
  max-width: calc(45em + 48px);
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.chapter__label {
  font: 600 0.8rem/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.chapter__title {
  font-size: 2rem;
  margin-bottom: 24px;
}

.chapter__text {
  font-family: var(--serif);
  font-size: var(--read-size);
  line-height: 1.72;
  hyphens: auto;
  overflow-wrap: break-word;
}

.chapter__text p {
  margin: 0 0 1.05em;
}

.chapter__text hr {
  border: 0;
  text-align: center;
  margin: 1.8em 0;
}

.chapter__text hr::after {
  content: "* * *";
  color: var(--faint);
  letter-spacing: 0.5em;
}

.chapter__text blockquote {
  margin: 1.2em 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--line);
  color: var(--soft);
}

.size-down2 {
  --read-size: 1rem;
}

.size-down1 {
  --read-size: 1.125rem;
}

.size-up1 {
  --read-size: 1.375rem;
}

.size-up2 {
  --read-size: 1.5rem;
}

.size-up3 {
  --read-size: 1.7rem;
}

.paywall {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.paywall__lede {
  font: 400 1.15rem/1.55 var(--serif);
}

.paywall .subbox {
  background: var(--card);
}

.turn {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 18px;
}

.turn a {
  text-decoration: none;
  font-weight: 600;
}

.turn__contents {
  color: var(--soft);
  font-weight: 500 !important;
}

.turn__next {
  justify-self: end;
}

.end {
  text-align: center;
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.end p {
  color: var(--soft);
}

.end form {
  margin: 0;
}

.foot--read {
  border-top-color: var(--line);
  background: transparent;
}

.page-read .foot p {
  color: var(--faint);
}

.auth {
  max-width: 440px;
  padding-top: 36px;
  padding-bottom: 56px;
}

.auth h1 {
  font-size: 1.8rem;
}

.auth__links {
  margin-top: 18px;
  color: var(--soft);
  font-size: 0.925rem;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 8px;
}

.fields label, .upload__label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
  font-size: 0.925rem;
}

.fields .hint {
  font-weight: 400;
}

input:not([type=hidden]):not([type=file]):not([type=checkbox]), textarea, select {
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8d1c5;
  border-radius: var(--radius);
  padding: 9px 11px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(122, 46, 58, 0.35);
  outline-offset: 0;
  border-color: var(--accent);
}

.fields .button {
  align-self: flex-start;
}

.fields--row {
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.fields--row label {
  flex: 1;
}

.fields--row .button {
  align-self: flex-end;
  min-height: 42px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions--stack {
  flex-direction: column;
}

.actions--stack .button {
  width: 100%;
}

.write {
  padding-top: 22px;
  padding-bottom: 48px;
}

.write__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.write__head h1 {
  margin: 0 0 2px;
}

.write__head .hint {
  margin: 0;
}

.crumbs {
  color: var(--faint);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.crumbs a {
  color: var(--soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat:hover {
  border-color: #d5cdc0;
}

.stat__n {
  font: 600 1.6rem/1.1 var(--serif);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  color: var(--faint);
  font-size: 0.85rem;
}

.write__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.write__cols--story {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.panel--narrow {
  max-width: 560px;
}

.panel h1 {
  font-size: 1.7rem;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.panel__head h2 {
  margin: 0;
}

.panel__head form {
  margin: 0;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rows__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

ol.rows .rows__row {
  grid-template-columns: 2em minmax(0, 1fr) auto auto;
}

.rows__n {
  color: var(--faint);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rows__main {
  font: 500 1.02rem/1.3 var(--serif);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rows__main:hover {
  color: var(--accent);
}

.rows__meta {
  color: var(--faint);
  font-size: 0.85rem;
  white-space: nowrap;
}

.status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--soft);
  white-space: nowrap;
}

.status--live {
  background: #e6f1ea;
  color: var(--good);
}

.status--soon {
  background: #f6eedd;
  color: var(--warn);
}

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

.upload__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.upload__row label.button {
  cursor: pointer;
}

.upload__row .upload__remove {
  margin-left: 10px;
}

.upload__state {
  margin: 6px 0 0;
}

.danger {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.setup {
  border-left: 3px solid var(--accent);
}

.setup__steps {
  margin: 0 0 8px;
  padding-left: 1.3em;
}

.setup__steps li {
  margin-bottom: 6px;
}

.setup__done {
  color: var(--faint);
  text-decoration: line-through;
}

.setup__done a {
  color: var(--faint);
}

.fields--tight {
  margin: 0;
}

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.editor__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input.editor__title {
  font: 600 1.6rem/1.25 var(--serif) !important;
  padding: 10px 14px !important;
}

textarea.editor__body {
  font: 400 1.1rem/1.7 var(--serif) !important;
  padding: 16px 18px !important;
  min-height: 60vh;
}

.editor__side {
  position: sticky;
  top: 76px;
}

.editor__side p {
  font-size: 0.925rem;
}

.schedule {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px 12px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule legend {
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0 4px;
}

.schedule label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.editor__side .link {
  display: block;
  margin-top: 10px;
}

.library {
  padding-top: 24px;
  padding-bottom: 48px;
}

.library__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.shelf, .subs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.shelf__row, .subs__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.shelf__row > div:first-child, .subs__row > div:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shelf__title {
  font: 600 1.05rem/1.3 var(--serif);
  color: var(--ink);
  text-decoration: none;
}

.shelf__title:hover {
  color: var(--accent);
}

.shelf__by {
  color: var(--faint);
  font-size: 0.875rem;
}

.shelf__go {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.925rem;
}

.shelf__go a {
  text-decoration: none;
}

.subs__row form {
  margin: 0;
}

.doc {
  max-width: 46em;
  padding-top: 28px;
  padding-bottom: 48px;
}

.doc h2 {
  margin-top: 1.4em;
}

.notice-page {
  max-width: 46em;
  padding-top: 36px;
  padding-bottom: 56px;
}

.foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.foot__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 0.875rem;
}

.foot p {
  margin: 0;
  color: var(--soft);
}

.foot a {
  color: var(--soft);
}

.foot p a + a {
  margin-left: 16px;
}

@media (min-width: 1700px) {
  :root {
    --wrap: 1280px;
  }
}
@media (max-width: 900px) {
  .intro, .how, .story__body, .write__cols, .write__cols--story, .library__grid, .editor {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .intro h1 {
    font-size: 2rem;
  }
  .story__side, .editor__side {
    position: static;
  }
  .stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .stat__n {
    font-size: 1.25rem;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .bar__row {
    gap: 14px;
  }
  .bar__nav {
    gap: 14px;
  }
  .bar__me .button {
    display: none;
  }
  .brand {
    font-size: 1.15rem;
  }
  .bar__nav {
    gap: 12px;
  }
  .story__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .story__cover {
    width: 132px;
  }
  .story__about h1 {
    font-size: 1.7rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .read {
    padding: 20px 18px 32px;
  }
  .chapter__title {
    font-size: 1.6rem;
  }
  .bar__contents {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .rows__row, ol.rows .rows__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .rows__n, .rows__meta {
    display: none;
  }
  .foot__row {
    flex-direction: column;
    gap: 6px;
  }
}
