:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 18rem;
}

body {
  margin: 0;
  background: #fff;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.5rem;
  color: #fff;
  background: #000;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.entry {
  width: min(100%, 76rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: appear 180ms ease-out;
}

.entry__header {
  display: flex;
  min-height: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.entry__body {
  width: min(100%, 44rem);
  align-self: center;
  padding-block: clamp(3rem, 10vh, 8rem);
}

.entry__footer {
  min-height: 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.cover .entry__body {
  width: min(100%, 56rem);
}

.eyebrow,
.quiet-label,
.index-control {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.index-control {
  margin-left: auto;
  padding: 0.3rem 0;
  text-decoration: none;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  font-size: clamp(2.75rem, 9vw, 8rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h2,
.prompt {
  max-width: 22ch;
  margin-bottom: 2.25rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 450;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.fragment,
.object-copy,
.acknowledgement {
  max-width: 38rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.fragment {
  margin-bottom: 2.5rem;
}

.acknowledgement {
  margin-bottom: clamp(2.5rem, 8vh, 6rem);
}

.byline,
.status,
.note {
  font-size: 0.9rem;
  line-height: 1.6;
}

.status {
  margin-top: 2rem;
  letter-spacing: 0.1em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}

.action,
.text-action {
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.action {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid #000;
}

.text-action {
  padding: 0.65rem 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.action:hover,
.action:focus-visible {
  color: #fff;
  background: #000;
}

.text-action:hover,
.text-action:focus-visible,
.index-control:hover,
.index-control:focus-visible {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}

form {
  width: min(100%, 38rem);
}

label,
legend {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

textarea,
input[type="text"],
input[type="email"],
input[type="search"] {
  width: 100%;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
}

textarea {
  min-height: 9rem;
  padding: 0.8rem;
  resize: vertical;
}

input[type="text"],
input[type="email"],
input[type="search"] {
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
}

.field {
  margin-bottom: 1.5rem;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-weight: 400;
  line-height: 1.5;
}

.checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0.2rem 0 0;
  accent-color: #000;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 clamp(4rem, 10vh, 8rem);
  padding: 0;
  border-top: 1px solid #000;
  list-style: none;
}

.index-grid li {
  border-bottom: 1px solid #000;
}

.index-grid a {
  display: block;
  min-height: 3.5rem;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
}

.index-grid a:hover,
.index-grid a:focus-visible {
  padding-left: 0.75rem;
}

.search-results {
  min-height: 3rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.search-results li + li {
  margin-top: 0.75rem;
}

.search-results button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.index-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-top: 2rem;
  border-top: 1px solid #000;
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0.75rem 0 0;
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 38rem) {
  .index-grid,
  .index-footer {
    grid-template-columns: 1fr;
  }

  .index-footer {
    align-items: start;
  }
}

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

/* Full writing entries can unfold beyond the opening viewport. */
.reading-entry .entry__body { align-self: start; margin-inline: auto; }
.reading-entry .entry__header { position: sticky; top: 0; background: #fff; padding-block: .75rem; z-index: 2; }
.reading-entry h2 { margin-top: 2rem; }
.reading-text { max-width: 36rem; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.8; }
.reading-text p { margin-bottom: 1.5rem; white-space: pre-wrap; }
.section-pause { height: 3rem; }
.collection-contents { margin-top: 4rem; }
.collection-contents > a { display: flex; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid #000; padding-block: 1.25rem; text-decoration: none; line-height: 1.5; }
.collection-contents > a:hover { text-decoration: underline; }
a.action { text-decoration: none; }

.reading-section { margin-top: 4rem; }
.reading-section h3 { font-size: 1rem; font-weight: 500; }
.book-list { padding: 0; list-style: none; }
ol.book-list { list-style: decimal; padding-left: 1.5rem; }
.book-list li { padding-block: 1.5rem; border-bottom: 1px solid #000; }
.book-list h4 { font-size: 1.2rem; font-weight: 500; margin: 0 0 .5rem; line-height: 1.4; }
.book-list p { margin-bottom: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.book-response { margin-top: 1.5rem; }
.book-response summary { cursor: pointer; padding-block: .5rem; }
.book-response form { margin-top: 1rem; }
.book-response ul:empty { display: none; }

.text-date { font-size: .8rem; line-height: 1.6; margin-top: .75rem; }
.book-list h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: .75rem; }

.index-doorways a { padding: 1.5rem .75rem 1.5rem 0; }
.index-doorways strong { display: block; font-weight: 500; margin-bottom: .6rem; }
.index-doorways span { display: block; font-size: .9rem; line-height: 1.5; }

.anime-section { margin-top: 4rem; scroll-margin-top: 5rem; }
.anime-reviews { display: grid; gap: 0; }
.anime-review { padding: 2rem 0; border-top: 1px solid currentColor; }
.anime-review h4 { font-size: 1.25rem; line-height: 1.5; margin: .5rem 0 1rem; font-weight: 500; }
.anime-review blockquote { margin: 1rem 0; font-size: 1.15rem; line-height: 1.65; }
.anime-watchlist { padding-left: 1.25rem; line-height: 1.6; }
.anime-watchlist li { padding: .5rem 0; }

.book-contents-title { margin-top: 3rem; }
.book-part { margin: 2.5rem 0; }
.book-part h3 { margin: .5rem 0 1rem; }
.book-chapters { list-style: none; padding: 0; margin: 0; }
.book-chapters li { padding: .6rem 0; line-height: 1.5; }

.original-line { margin: 2.5rem 0 3rem; padding: 2rem 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.original-line blockquote { margin: 1.5rem 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.5; white-space: pre-line; }
.reading-text[aria-label="Poetry"] p { white-space: pre-wrap; }

.events-calendar { display: block; width: 100%; height: 560px; margin: 1.5rem 0; border: 1px solid currentColor; background: white; }
@media (max-width: 600px) { .events-calendar { height: 480px; } }

.entry-navigation { display: flex; gap: 1.5rem; align-items: center; }

.style-brief { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.7; margin: 2.5rem 0; }

.index-page .entry__body { width: 100%; padding-block: clamp(2rem, 5vh, 4rem); }
.index-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; }
.index-heading h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 0; }
.index-heading p { margin: 0; }
.index-layout { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: clamp(3rem, 8vw, 7rem); }
.index-page .index-grid { grid-template-columns: 1fr; margin-bottom: 2rem; }
.index-page .index-doorways a { position: relative; padding: 1.35rem 2rem 1.35rem 0; }
.index-page .index-doorways strong { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .35rem; }
.index-page .doorway-arrow { position: absolute; top: 1.5rem; right: 0; font-size: 1.5rem; }
.index-page .index-doorways a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.index-socials { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.7rem; }
.index-socials a { text-decoration: none; width: fit-content; }
.index-socials a:hover { text-decoration: underline; }
.index-invitation { display: inline-block; margin-top: 3rem; }
.index-search label { font-size: .85rem; }
.index-page .search-results:empty { display: none; }
@media (max-width: 650px) {
  .index-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .index-socials { flex-direction: row; flex-wrap: wrap; gap: 1rem 1.5rem; }
  .index-elsewhere { border-top: 1px solid #000; padding-top: 1.5rem; }
  .index-invitation { margin-top: 2rem; }
}

/* Each source number marks a separate poem; original numbering is retained. */
.poem { margin-block: 4rem; max-width: 32rem; }
.poem:first-child { margin-top: 2.5rem; }
.poem-number { font-size: 1rem; font-weight: 400; margin: 0 0 1.5rem; }
.poem p { white-space: pre-wrap; margin: 0; }
