:root {
  --ink: #1a1a1a;
  --quiet: #5c5c5c;
  --line: #e6e6e6;
  --paper: #fff;
  --measure: 36rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Literata", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.4rem 5rem;
}

.mark {
  color: var(--ink);
  margin: 0 0 1.4rem;
}

.lotus {
  display: block;
  width: 4.75rem;
  height: auto;
}

.wheel {
  display: block;
  width: 2.25rem;
  height: auto;
  margin: 0 0 0.85rem;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lede {
  margin: 0 0 2.4rem;
  color: var(--quiet);
}

.stories {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stories button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.stories button:hover .story-title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.story-title {
  display: block;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
}

.story-blurb {
  display: block;
  margin-top: 0.3rem;
  color: var(--quiet);
  font-size: 1.05rem;
  line-height: 1.45;
}

.reader-head {
  margin-bottom: 1.75rem;
}

.reader-head h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.7rem, 4.5vw, 2.2rem);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav button,
.others button {
  padding: 0.15rem 0;
  color: var(--quiet);
  background: transparent;
  border: 0;
  font-size: 1rem;
}

.nav button:hover,
.others button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nav button:disabled {
  color: #b0b0b0;
  cursor: default;
  text-decoration: none;
}

.passage p {
  margin: 0 0 1rem;
}

.ending-title {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.choices {
  display: flex;
  flex-direction: column;
  margin-top: 1.8rem;
}

.choices button {
  display: block;
  width: 100%;
  padding: 0.85rem 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}

.choices button:last-child {
  border-bottom: 1px solid var(--line);
}

.choices button:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.colophon {
  margin-top: 2.4rem;
  color: var(--quiet);
  font-size: 1rem;
}

.colophon p {
  margin: 0 0 0.7rem;
}

.others {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 1.6rem;
}

@media (max-width: 36rem) {
  .wrap {
    padding-top: 2.2rem;
  }

  .story-title {
    font-size: 1.4rem;
  }
}
