:root {
  --night: #0b1018;
  --night-soft: #111925;
  --paper: #f3efe6;
  --paper-deep: #e8e0d2;
  --ink: #292821;
  --ivory: #f0eadf;
  --muted: #9b9488;
  --gold: #bd9763;
  --gold-soft: #d7bc94;
  --blue: #7994aa;
  --line-dark: rgba(215, 188, 148, 0.2);
  --line-paper: rgba(81, 70, 53, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ivory);
  background: var(--night);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.reading-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), #f0d6aa);
  box-shadow: 0 0 12px rgba(215, 188, 148, 0.55);
  transition: width 0.08s linear;
}

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

::selection {
  color: #fff;
  background: #947044;
}

.grain {
  position: fixed;
  z-index: 50;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.view {
  display: none;
  min-height: 100vh;
}
.view.active {
  display: block;
}

.sky-motion {
  position: fixed;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  transition: opacity 500ms ease;
  pointer-events: none;
}

body:has(.paper-page.active) .sky-motion,
body:has(.reader.open) .sky-motion {
  opacity: 0;
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 15% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 12%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 44% 33%, #d8e9f4 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 38%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 26% 60%, #fff 0 0.8px, transparent 1.3px);
  background-size:
    310px 270px,
    430px 360px,
    370px 420px,
    510px 330px,
    290px 390px;
  animation: star-pulse 5s ease-in-out infinite alternate;
}

.shooting-star {
  position: absolute;
  top: 13%;
  left: 78%;
  width: 100px;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
  filter: drop-shadow(0 0 4px #fff);
  transform: rotate(-35deg);
  animation: shooting 11s ease-in infinite;
}

.shooting-star::after {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px #fff;
  content: "";
}

.ambient-clouds {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 500ms ease;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.ambient-clouds::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 15% 70%,
      rgba(132, 190, 226, 0.055),
      transparent 36%
    ),
    radial-gradient(
      ellipse at 80% 45%,
      rgba(238, 232, 217, 0.045),
      transparent 32%
    );
  content: "";
}

.engraved-cloud {
  position: absolute;
  display: block;
  width: min(980px, 78vw);
  aspect-ratio: 2 / 1;
  background: url("./images/cloud-engraving.svg") center / contain no-repeat;
  opacity: 0.19;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px rgba(132, 190, 226, 0.035));
  will-change: transform;
}

.cloud-a {
  top: 9vh;
  left: -18vw;
  filter: sepia(0.1) saturate(0.72) brightness(1.02);
  animation: engraved-drift-right 36s ease-in-out infinite alternate;
}

.cloud-b {
  top: 50vh;
  right: -22vw;
  width: min(1120px, 88vw);
  opacity: 0.14;
  filter: hue-rotate(4deg) saturate(1.05) brightness(1.01);
  animation: engraved-drift-left 46s ease-in-out infinite alternate;
}

@keyframes engraved-drift-right {
  from {
    transform: translate3d(-6vw, 0, 0);
  }
  to {
    transform: translate3d(11vw, 1.6vh, 0);
  }
}

@keyframes engraved-drift-left {
  from {
    transform: translate3d(8vw, 0, 0);
  }
  to {
    transform: translate3d(-12vw, -1.2vh, 0);
  }
}

@keyframes star-pulse {
  from {
    opacity: 0.22;
  }
  to {
    opacity: 0.48;
  }
}

@keyframes shooting {
  0%,
  72% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-35deg);
  }
  74% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translate3d(-270px, 185px, 0) rotate(-35deg);
  }
  100% {
    opacity: 0;
  }
}

.hero {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 215px;
  padding: 16px 5vw 12px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(11, 16, 24, 0.92);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  transition:
    min-height 0.35s ease,
    padding 0.35s ease;
}

.hero.compact {
  display: grid;
  grid-template-columns: 220px 1fr 190px;
  min-height: 76px;
  height: 76px;
  padding: 8px 3vw;
}

.controls {
  position: absolute;
  top: 18px;
  right: 25px;
  display: flex;
  gap: 7px;
}

.controls button {
  padding: 7px 11px;
  color: #d8cdbd;
  border: 1px solid rgba(189, 151, 99, 0.35);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.controls button:hover {
  color: #fff;
  border-color: var(--gold);
  background: rgba(189, 151, 99, 0.08);
}

.brand {
  text-align: center;
}
.brand h1 {
  margin: 3px 0;
  color: #f0e8da;
  font: 400 clamp(37px, 4.3vw, 56px)/1 var(--serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand p {
  margin: 5px 0;
  color: #978e81;
  font: italic 13px var(--serif);
  letter-spacing: 0.08em;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--gold);
}

.ornament i {
  width: 100%;
  height: 1px;
  background: var(--line-dark);
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(680px, 100%);
  margin-top: 6px;
}

.main-menu > a {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 110px;
  padding: 4px 7px;
  color: inherit;
  border-radius: 7px;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}

.main-menu > a:hover {
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.025);
}

.main-menu b,
.main-menu small {
  font: 9px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-menu small {
  color: #797a7d;
  font-size: 8px;
}
.main-menu > i {
  color: #745e41;
  font-size: 10px;
}
.menu-icon {
  height: 27px;
  margin: 4px;
  color: var(--gold);
  font: 21px var(--serif);
}

.hero.compact .brand p,
.hero.compact .ornament,
.hero.compact .main-menu small {
  display: none;
}
.hero.compact .brand h1 {
  font-size: 21px;
  letter-spacing: 0.08em;
}
.hero.compact .main-menu {
  margin: 0;
}
.hero.compact .main-menu > a {
  flex-direction: row;
  gap: 6px;
  min-width: 0;
}
.hero.compact .menu-icon {
  height: auto;
  margin: 0;
  font-size: 16px;
}
.hero.compact .controls {
  top: 50%;
  transform: translateY(-50%);
}

.night-feature {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(350px, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(55px, 8vw, 120px);
  align-items: center;
  min-height: 690px;
  padding: 62px 8vw 100px;
  background:
    radial-gradient(circle at 72% 40%, rgba(40, 59, 83, 0.35), transparent 30%),
    linear-gradient(180deg, #0b1018, #0c121c);
}

.moon-picture {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 188, 148, 0.38);
  border-radius: 48% 48% 5px 5px;
  background: #0d1a27;
  box-shadow:
    0 30px 75px rgba(0, 0, 0, 0.48),
    0 0 0 7px #0b111b,
    0 0 0 8px rgba(189, 151, 99, 0.22);
}

.moon-picture::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 18, 0.04), rgba(5, 11, 18, 0.12)),
    radial-gradient(
      circle at 28% 24%,
      rgba(255, 235, 194, 0.12),
      transparent 28%
    );
  content: "";
  pointer-events: none;
}

.moon-picture .moon-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(0.86) contrast(1.04);
  transform: scale(1.035);
  transition:
    opacity 1.15s ease,
    filter 0.6s ease,
    transform 6s linear;
}

.moon-picture .moon-slide.active {
  opacity: 1;
  transform: scale(1.01);
}

.moon-picture:hover .moon-slide.active {
  filter: saturate(0.98) contrast(1.06) brightness(1.04);
}

.slide-dots {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 20px;
  display: flex;
  gap: 6px;
}

.slide-dots i {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(233, 220, 197, 0.62);
  border-radius: 50%;
  transition:
    width 0.5s ease,
    border-radius 0.5s ease,
    background 0.5s ease;
}

.slide-dots i.active {
  width: 18px;
  border-radius: 10px;
  background: rgba(233, 220, 197, 0.82);
}

.picture-caption {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 17px;
  color: rgba(233, 220, 197, 0.6);
  font: 8px var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .moon-picture .moon-slide {
    transition: opacity 0.01s linear;
  }
}

.night-feature article {
  max-width: 555px;
  font-family: var(--serif);
}

.night-feature article > small {
  display: inline-block;
  padding: 7px 11px;
  color: #c8a979;
  border: 1px solid rgba(189, 151, 99, 0.32);
  border-radius: 100px;
  font: 9px var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.night-feature h2 {
  margin: 23px 0 20px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.night-feature p {
  color: #aaa397;
  font-size: 18px;
  line-height: 1.72;
}

.short-rule {
  color: var(--gold);
}

.text-button {
  padding: 12px 0;
  color: #e3d4bd;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  font: 10px var(--sans);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s,
    letter-spacing 0.2s;
}

.text-button:hover {
  color: #fff;
  letter-spacing: 0.22em;
}

.headline-list {
  position: relative;
  z-index: 5;
  padding: 90px 8vw 110px;
  background: #0b1018;
}

.headline-list > header {
  display: flex;
  align-items: end;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto 25px;
  border-bottom: 1px solid var(--line-dark);
}

.headline-list > header span {
  padding-bottom: 12px;
  color: var(--gold);
  font: 11px var(--sans);
}
.headline-list > header h2 {
  margin: 0;
  padding-bottom: 9px;
  font: 400 36px/1 var(--serif);
}
.headline-list > header small {
  margin-left: auto;
  padding-bottom: 12px;
  color: #74767a;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#homeEssayList {
  max-width: 1120px;
  margin: auto;
}

.essay-row,
.archive-entry {
  display: grid;
  grid-template-columns: 48px 1fr 180px 25px;
  gap: 22px;
  align-items: center;
  width: 100%;
  padding: 27px 10px;
  color: inherit;
  border: 0;
  border-bottom: 1px solid rgba(215, 188, 148, 0.13);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    padding 0.25s,
    background 0.25s,
    border-color 0.25s;
}

.essay-row:hover,
.archive-entry:hover {
  padding-inline: 20px;
  border-color: rgba(189, 151, 99, 0.45);
  background: linear-gradient(90deg, rgba(189, 151, 99, 0.055), transparent);
}

.essay-row strong,
.archive-entry h2 {
  margin: 0;
  font: 400 clamp(21px, 2.3vw, 33px)/1.15 var(--serif);
}
.essay-row small,
.archive-entry small,
.archive-entry p {
  color: #747a82;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.essay-row i,
.archive-entry i {
  color: var(--gold);
  font-style: normal;
}

.personal-note {
  position: relative;
  z-index: 5;
  padding: 105px max(8vw, 25px);
  color: var(--ink);
  background: var(--paper);
  text-align: center;
}

.personal-note::before {
  display: block;
  width: 1px;
  height: 55px;
  margin: -130px auto 50px;
  background: var(--gold);
  content: "";
}

.note-label {
  color: #8a6b43;
  font: 9px var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.personal-note blockquote {
  max-width: 780px;
  margin: 25px auto;
  font: italic 400 clamp(30px, 4.2vw, 53px)/1.15 var(--serif);
  letter-spacing: -0.025em;
}

.personal-note p {
  color: #81786b;
  font: italic 15px var(--serif);
}

.night-journal {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(55px, 9vw, 130px);
  align-items: center;
  padding: 110px max(8vw, 25px);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(80, 103, 130, 0.18),
      transparent 27%
    ),
    #0c121b;
}

.night-journal::before {
  position: absolute;
  top: 9%;
  right: 8%;
  color: rgba(255, 255, 255, 0.022);
  font: 300px/1 var(--serif);
  content: "23";
  pointer-events: none;
}

.journal-intro {
  position: relative;
  z-index: 1;
}
.journal-kicker {
  color: var(--gold);
  font: 9px var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journal-intro h2 {
  margin: 24px 0 20px;
  font: 400 clamp(40px, 5vw, 68px)/0.98 var(--serif);
  letter-spacing: -0.04em;
}

.journal-intro p {
  max-width: 420px;
  color: #8d8a84;
  font: italic 16px/1.6 var(--serif);
}

.journal-paper {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 52px);
  color: var(--ink);
  border: 1px solid rgba(189, 151, 99, 0.3);
  background:
    repeating-linear-gradient(
      transparent 0 35px,
      rgba(98, 117, 135, 0.13) 36px
    ),
    #eee7da;
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.35);
  transform: rotate(0.35deg);
}

.journal-paper::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 105px;
  height: 24px;
  background: rgba(203, 185, 150, 0.42);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}

.journal-paper label {
  display: block;
  color: #856d4d;
  font: 9px var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.journal-paper textarea {
  display: block;
  resize: vertical;
  width: 100%;
  min-height: 215px;
  margin: 15px 0;
  padding: 4px 0;
  color: #3c3831;
  border: 0;
  outline: 0;
  background: transparent;
  font: italic 21px/36px var(--serif);
}

.journal-paper textarea::placeholder {
  color: rgba(73, 66, 56, 0.4);
}
.journal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.journal-actions > span {
  color: #83796c;
  font: 10px var(--sans);
}
.journal-actions button {
  padding: 10px 0;
  color: #6e5432;
  border: 0;
  border-bottom: 1px solid #9b7139;
  background: transparent;
  font: 10px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.journal-actions button span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 0.2s;
}
.journal-actions button:hover span {
  transform: translateX(4px);
}

.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

.night-page {
  position: relative;
  z-index: 5;
  padding: 0 24px 100px;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(36, 65, 103, 0.25),
      transparent 30%
    ),
    var(--night);
}

.sub-nav,
.paper-nav {
  position: sticky;
  z-index: 12;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1160px, 100%);
  margin: auto;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(11, 16, 24, 0.9);
  backdrop-filter: blur(15px);
}

.sub-nav a,
.paper-nav a {
  color: #a69b8a;
  font-size: 11px;
  text-decoration: none;
}
.sub-nav a:last-child,
.paper-nav a:last-child {
  text-align: right;
}

.archive-title {
  position: sticky;
  z-index: 10;
  top: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 230px;
  background: rgba(11, 16, 24, 0.92);
  transition: min-height 0.35s;
}

.archive-title h1 {
  margin: 7px;
  font: 400 clamp(72px, 11vw, 140px)/0.9 var(--serif);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.archive-title small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.archive-title p {
  color: #777;
  font: italic 14px var(--serif);
}
.archive-title.compact {
  min-height: 62px;
  border-bottom: 1px solid var(--line-dark);
}
.archive-title.compact > :not(h1) {
  display: none;
}
.archive-title.compact h1 {
  font-size: 29px;
}
.archive-list {
  width: min(1080px, 100%);
  margin: 34px auto;
}
.archive-entry {
  color: var(--ivory);
  text-decoration: none;
}

.paper-page,
.reader {
  color: var(--ink);
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 250, 220, 0.65),
      transparent 34%
    ),
    var(--paper);
}

.paper-page {
  position: relative;
  z-index: 5;
  padding: 0 24px 100px;
}
.paper-nav {
  background: rgba(243, 239, 230, 0.9);
  border-color: var(--line-paper);
}
.paper-nav a {
  color: #6f6556;
}

.article-masthead {
  position: sticky;
  z-index: 10;
  top: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 280px;
  margin: 0 -24px 65px;
  padding: 25px 9vw;
  border-bottom: 1px solid var(--line-paper);
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(15px);
  transition:
    min-height 0.35s,
    padding 0.35s;
}

.article-masthead > div {
  display: flex;
  justify-content: space-between;
  width: min(760px, 100%);
  margin-bottom: 18px;
  color: #817666;
  font: 9px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-masthead h1 {
  width: min(780px, 100%);
  margin: 0;
  font: 400 clamp(37px, 5vw, 63px)/1.05 var(--serif);
  text-align: center;
  letter-spacing: -0.025em;
}
.article-masthead.compact {
  min-height: 60px;
  margin-bottom: 40px;
  padding-block: 8px;
}
.article-masthead.compact > div {
  display: none;
}
.article-masthead.compact h1 {
  overflow: hidden;
  font: 12px var(--sans);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  overflow: auto;
  padding: 0 24px 95px;
}

.reader.open {
  display: block;
}
.reader-header {
  top: 0;
}
.reader-header button {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #675b4d;
  border: 0;
  background: none;
  cursor: pointer;
}

.paper-article {
  width: min(720px, 100%);
  margin: auto;
  font-family: var(--serif);
}
.paper-article > h1 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}
.paper-article em {
  color: #876a42;
}
.paper-article p {
  font-size: 18px;
  line-height: 1.9;
}
.paper-article .lead {
  color: #655b4f;
  font-size: 23px;
  font-style: italic;
  line-height: 1.6;
}
.paper-article blockquote {
  margin: 44px 0;
  padding: 5px 0 5px 28px;
  color: #655947;
  border-left: 1px solid #9b7947;
  font-size: 23px;
  font-style: italic;
  line-height: 1.6;
}
.paper-rule {
  width: 110px;
  margin: 40px 0;
  color: #9b7947;
  border-bottom: 1px solid rgba(155, 121, 71, 0.55);
}
.centered {
  padding-top: 65px;
  text-align: center;
}
.centered .paper-rule {
  margin: 40px auto;
}
.quote-mark {
  display: block;
  height: 55px;
  color: rgba(155, 121, 71, 0.5);
  font-size: 90px;
}

.reader-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line-paper);
}
.reader-nav button,
.reader-nav a {
  color: #675b4d;
  border: 0;
  background: none;
  font: 11px var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.reader-nav > :last-child {
  justify-self: end;
}
.reader-nav button:disabled {
  opacity: 0.25;
  cursor: default;
}

.recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 35px;
}
.recent-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-height: 145px;
  padding: 18px;
  color: var(--ink);
  border: 1px solid rgba(155, 121, 71, 0.25);
  background: rgba(255, 255, 255, 0.25);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.recent-card:hover,
.recent-card.active {
  border-color: #9b7139;
  background: rgba(255, 255, 255, 0.48);
}
.recent-card small {
  color: #867968;
}
.recent-card strong {
  margin-top: 12px;
  font: 400 18px/1.2 var(--serif);
}
.recent-card span {
  margin-top: auto;
  color: #9b7139;
}

body.day-mode {
  color: var(--ink);
  background: var(--paper);
}
body.day-mode .hero,
body.day-mode .night-feature,
body.day-mode .headline-list {
  color: var(--ink);
  background: var(--paper);
}
body.day-mode .hero {
  border-color: var(--line-paper);
  box-shadow: 0 12px 35px rgba(70, 55, 35, 0.08);
}
body.day-mode .brand h1 {
  color: var(--ink);
}
body.day-mode .main-menu small,
body.day-mode .night-feature p {
  color: #716a60;
}
body.day-mode .moon-picture {
  filter: sepia(0.16) brightness(1.08);
}
body.day-mode .essay-row {
  color: var(--ink);
  border-color: var(--line-paper);
}
body.day-mode .controls button {
  color: #655b4f;
}
body.day-mode .night-journal {
  color: var(--ink);
  background: var(--paper-deep);
}
body.day-mode .journal-intro p {
  color: #716a60;
}
body.day-mode .sky-motion {
  opacity: 0.34;
  filter: sepia(0.2);
}

@media (max-width: 900px) {
  .hero {
    min-height: 245px;
  }
  .hero.compact {
    grid-template-columns: 1fr 155px;
  }
  .hero.compact .brand {
    display: none;
  }
  .night-feature {
    grid-template-columns: 1fr;
  }
  .night-journal {
    grid-template-columns: 1fr;
  }
  .moon-picture {
    width: min(620px, 100%);
    margin: auto;
  }
  .controls {
    right: 12px;
  }
  .main-menu {
    gap: 6px;
  }
  .main-menu > a {
    min-width: 76px;
  }
  .essay-row,
  .archive-entry {
    grid-template-columns: 38px 1fr 22px;
  }
  .essay-row small,
  .archive-entry p {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 285px;
    padding: 15px 14px 10px;
  }
  .brand h1 {
    font-size: 32px;
    letter-spacing: 0.08em;
  }
  .hero.compact {
    min-height: 64px;
    height: 64px;
    padding-right: 98px;
  }
  .hero.compact .main-menu .menu-icon {
    display: none;
  }
  .hero.compact .main-menu b {
    font-size: 7px;
  }
  .hero.compact .controls {
    right: 3px;
    transform: translateY(-50%) scale(0.76);
  }
  .main-menu > i {
    font-size: 7px;
  }
  .night-feature {
    min-height: auto;
    padding: 32px 22px 75px;
  }
  .moon-picture {
    border-radius: 44% 44% 4px 4px;
  }
  .night-feature h2 {
    font-size: 43px;
  }
  .headline-list {
    padding: 65px 20px 85px;
  }
  .headline-list > header h2 {
    font-size: 29px;
  }
  .headline-list > header small {
    display: none;
  }
  .essay-row:hover,
  .archive-entry:hover {
    padding-inline: 10px;
  }
  .personal-note {
    padding: 90px 25px;
  }
  .personal-note blockquote {
    font-size: 31px;
  }
  .night-journal {
    padding-block: 80px;
  }
  .journal-paper {
    padding: 34px 25px;
  }
  .journal-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }
  .article-masthead {
    min-height: 235px;
    padding-inline: 48px;
  }
  .article-masthead.compact {
    min-height: 55px;
  }
  .article-masthead.compact h1 {
    font-size: 10px;
  }
  .recent-grid {
    grid-template-columns: 1fr;
  }
  .sub-nav span,
  .paper-nav span {
    display: none;
  }
  .sub-nav,
  .paper-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .engraved-cloud {
    width: 760px;
    opacity: 0.18;
  }
  .cloud-a {
    top: 24vh;
    left: -105vw;
  }
  .cloud-b {
    top: 51vh;
    right: -115vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .engraved-cloud,
  .stars,
  .shooting-star {
    animation: none;
  }
  .ambient-clouds {
    display: none;
  }
  .shooting-star {
    display: none;
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
