:root {
  --sans: Lexend, "Noto Sans SC", "Noto Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Noto Serif JP", "Songti SC", "STSong", Georgia, serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --bg: #f5f4f0;
  --topbar: rgba(248, 247, 243, 0.95);
  --drawer: #f7f6f2;
  --text: #2d3236;
  --text-soft: #666e74;
  --text-faint: #90979c;
  --line: rgba(36, 43, 48, 0.14);
  --line-strong: rgba(36, 43, 48, 0.24);
  --selection: rgba(88, 143, 178, 0.2);
  --bg-day-opacity: 0.16;
  --bg-night-opacity: 0;
  --veil: rgba(247, 247, 244, 0.72);
  --intro-quote-bg: #fbfaf7;
  --intro-quote-text: #252a2e;
  --content-width: min(66.666vw, 980px);
  --topbar-height: 64px;
}

html[data-theme="night"] {
  --bg: #060b10;
  --topbar: rgba(5, 10, 15, 0.95);
  --drawer: #080d12;
  --text: #e6ebef;
  --text-soft: #a5adb4;
  --text-faint: #6f7880;
  --line: rgba(224, 234, 241, 0.12);
  --line-strong: rgba(224, 234, 241, 0.22);
  --selection: rgba(116, 181, 221, 0.22);
  --bg-day-opacity: 0;
  --bg-night-opacity: 0.3;
  --veil: rgba(3, 8, 13, 0.56);
  --intro-quote-bg: #03070b;
  --intro-quote-text: #ecf2f6;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  transition: opacity 180ms ease, background-color 500ms ease, color 500ms ease;
}

body.page-leaving {
  opacity: 0;
}

body.drawer-open,
body.intro-active {
  overflow: hidden;
}

::selection {
  background: var(--selection);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* -------------------------------------------------------------------------- */
/* Background                                                                  */
/* -------------------------------------------------------------------------- */

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.site-background__day,
.site-background__night,
.site-background__veil {
  position: absolute;
  inset: 0;
}

.site-background__day,
.site-background__night {
  background-size: cover;
  background-position: center;
  transition: opacity 700ms ease;
  filter: saturate(0.86) contrast(0.96);
  transform: scale(1.015);
}

.site-background__day {
  background-image: url("../images/day-bg.webp");
  opacity: var(--bg-day-opacity);
}

.site-background__night {
  background-image: url("../images/night-bg.webp");
  background-position: center 46%;
  opacity: var(--bg-night-opacity);
}

.site-background__veil {
  background: var(--veil);
  transition: background 700ms ease;
}

.site-frame,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-frame {
  min-height: calc(100vh - 86px);
  padding-top: var(--topbar-height);
}

/* -------------------------------------------------------------------------- */
/* Fixed top navigation                                                        */
/* -------------------------------------------------------------------------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  background: var(--topbar);
  border-bottom: 1px solid rgba(128, 136, 142, 0.04);
  transition: background 500ms ease, color 500ms ease;
}

.topbar__menu {
  width: 32px;
  height: 32px;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  justify-self: start;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.topbar__menu span {
  display: block;
  width: 15px;
  height: 1px;
  background: currentColor;
  opacity: 0.56;
  transition: width 180ms ease, opacity 180ms ease;
}

.topbar__menu span:nth-child(2) {
  width: 10px;
}

.topbar__menu:hover span {
  width: 18px;
  opacity: 0.9;
}

.topbar__brand {
  justify-self: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.topbar__flow {
  justify-self: end;
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Drawer                                                                      */
/* -------------------------------------------------------------------------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: min(360px, 92vw);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 22px;
  background: var(--drawer);
  border-right: 1px solid var(--line);
  transform: translateX(-101%);
  transition: transform 340ms cubic-bezier(0.22, 0.8, 0.22, 1), background 500ms ease;
  overflow-y: auto;
}

body.drawer-open .drawer {
  transform: translateX(0);
}

body.drawer-open .drawer-scrim {
  opacity: 1;
  visibility: visible;
}

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 38px;
}

.drawer__brand {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.drawer__caption {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer__close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 23px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  border-top: 1px solid var(--line);
}

.drawer-nav__item {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.drawer-nav__index {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
}

.drawer-nav__item > span:nth-child(2) {
  font-size: 13px;
}

.drawer-nav__item small {
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.drawer-nav__item:hover > span:nth-child(2),
.drawer-nav__item:hover small {
  color: var(--text);
}

.drawer-panel {
  padding: 24px 0 8px;
}

.drawer-panel__title {
  margin-bottom: 16px;
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.drawer-panel__note,
.drawer-about {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.9;
}

.drawer-panel__note {
  margin-top: 18px;
}

.drawer-panel code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.category-list small {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.stats-grid > div {
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  font-size: 27px;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.stats-grid span {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.drawer-about__link {
  display: inline-block;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.drawer-spacer {
  flex: 1 1 32px;
  min-height: 32px;
}

.player {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.player__eyebrow {
  color: var(--text-faint);
  font-size: 7px;
  letter-spacing: 0.22em;
}

.player__title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

.player__artist {
  margin-top: 1px;
  color: var(--text-soft);
  font-size: 10px;
}

.player__timeline {
  position: relative;
  height: 18px;
  margin-top: 11px;
  cursor: pointer;
}

.player__timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

.player__timeline span {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
}

.player__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player__counter {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player__controls button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 160ms ease, transform 160ms ease;
}

.player__controls button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.player__controls svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.player .icon-pause {
  display: none;
}

.player.is-playing .icon-play {
  display: none;
}

.player.is-playing .icon-pause {
  display: block;
}

.theme-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.theme-switch button {
  height: 32px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text-faint);
  font-size: 7px;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.theme-switch button:last-child {
  border-right: 0;
}

.theme-switch button.is-active {
  color: var(--text);
}

.drawer-license {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 7px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Summerize intro                                                             */
/* -------------------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--intro-quote-bg);
  opacity: 1;
  transition: opacity 1000ms ease;
}

.intro.is-finished {
  opacity: 0;
  pointer-events: none;
}

.intro-photo,
.intro-quotes {
  position: absolute;
  inset: 0;
}

.intro-photo {
  overflow: hidden;
  background-image: url("../images/opening-desktop.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  opacity: 1;
  transition: opacity 850ms ease, filter 850ms ease;
}

.intro.is-transitioning .intro-photo,
.intro.show-quotes .intro-photo {
  opacity: 0;
  filter: brightness(1.45);
  pointer-events: none;
}

html[data-theme="night"] .intro.is-transitioning .intro-photo,
html[data-theme="night"] .intro.show-quotes .intro-photo {
  filter: brightness(0.08);
}

.intro-photo__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 14, 33, 0.04) 42%, rgba(2, 14, 33, 0.36) 100%);
}

.intro-photo__mark {
  position: absolute;
  top: 48px;
  left: 54px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.intro-photo__brand {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.intro-photo__flow {
  color: rgba(255,255,255,0.58);
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.intro-skip {
  position: absolute;
  top: 34px;
  right: 42px;
  z-index: 5;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--intro-quote-text) 48%, transparent);
  font-size: 7px;
  letter-spacing: 0.22em;
  cursor: pointer;
}

.intro-skip--photo {
  color: rgba(255,255,255,0.58);
}

.intro-sound-state {
  position: absolute;
  bottom: 52px;
  left: 54px;
  color: rgba(255,255,255,0.72);
  font-size: 7px;
  letter-spacing: 0.22em;
}

.intro-next {
  position: absolute;
  right: 54px;
  bottom: 42px;
  min-width: 154px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.intro-next__line {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.66);
  transform-origin: right;
  transition: transform 220ms ease;
}

.intro-next__arrow {
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 0;
}

.intro-next:hover .intro-next__line {
  transform: scaleX(0.7);
}

.intro-quotes {
  display: grid;
  place-items: center;
  padding: 80px 24px 70px;
  background: var(--intro-quote-bg);
  color: var(--intro-quote-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms ease, visibility 900ms ease, background 500ms ease;
}

.intro.show-quotes .intro-quotes {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro-quotes__content {
  width: min(620px, 72vw);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 88px;
}

.summerize-word {
  align-self: center;
  margin-bottom: 52px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.summerize-lines {
  width: 100%;
}

.summerize-quote {
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1200ms ease, transform 1200ms ease;
}

.summerize-quote.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.summerize-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  white-space: pre-line;
}

.summerize-quote span {
  display: block;
  margin-top: 4px;
  color: color-mix(in srgb, var(--intro-quote-text) 46%, transparent);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.intro-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: color-mix(in srgb, var(--intro-quote-text) 36%, transparent);
  font-size: 6px;
  letter-spacing: 0.23em;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Main journal layout                                                         */
/* -------------------------------------------------------------------------- */

.content-shell {
  width: var(--content-width);
  margin: 0 auto;
}

.journal-hero {
  padding: 74px 0 24px;
}

.journal-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.journal-hero p {
  margin: 7px 0 0;
  color: var(--text-faint);
  font-size: 10px;
}

.journal-hero p span {
  color: var(--text-soft);
}

.journal-hero p i {
  margin: 0 8px;
  font-style: normal;
}

.journal-hero--archive {
  padding-top: 68px;
}

.journal-hero__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.journal-list {
  margin-top: 6px;
}

.journal-entry {
  padding: 36px 0 34px;
  border-bottom: 1px solid var(--line);
}

.journal-entry:first-child {
  border-top: 1px solid rgba(0,0,0,0);
}

.journal-entry__date,
.single-note__date {
  margin-bottom: 8px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journal-entry h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

.journal-entry h2 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 240ms ease;
}

.journal-entry h2 a:hover {
  background-size: 100% 1px;
}

.journal-entry__excerpt {
  max-width: 92%;
  margin-top: 10px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.9;
}

.journal-entry__excerpt p {
  margin: 0;
}

.journal-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  color: var(--text-faint);
  font-size: 8px;
}

.journal-entry__meta a:hover {
  color: var(--text);
}

.pagination {
  padding: 36px 0 70px;
}

.pagination ol {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination li {
  font-size: 8px;
  letter-spacing: 0.12em;
}

.pagination a,
.pagination span {
  color: var(--text-soft);
}

.pagination .current a,
.pagination .current {
  color: var(--text);
}

.empty-state {
  padding: 86px 0;
  color: var(--text-soft);
}

.empty-state span {
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.empty-state p {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 15px;
}

/* -------------------------------------------------------------------------- */
/* Single note / page                                                          */
/* -------------------------------------------------------------------------- */

.content-shell--single {
  max-width: 860px;
}

.single-note {
  padding: 80px 0 90px;
}

.single-note__header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.single-note__header h1 {
  max-width: 92%;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.single-note__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 9px;
}

.note-body {
  padding: 44px 0 20px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
}

.note-body > *:first-child {
  margin-top: 0;
}

.note-body h2,
.note-body h3,
.note-body h4 {
  margin: 2.4em 0 0.8em;
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.4;
}

.note-body h2 { font-size: 22px; }
.note-body h3 { font-size: 18px; }
.note-body h4 { font-size: 15px; }

.note-body p,
.note-body ul,
.note-body ol,
.note-body blockquote {
  margin: 1.15em 0;
}

.note-body a {
  border-bottom: 1px solid var(--line-strong);
}

.note-body a:hover {
  border-bottom-color: currentColor;
}

.note-body img,
.note-body video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2.2em auto;
}

.note-body blockquote {
  padding: 2px 0 2px 20px;
  border-left: 1px solid var(--line-strong);
  color: var(--text-soft);
}

.note-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(127, 136, 145, 0.055);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}

.note-body code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.note-body :not(pre) > code {
  padding: 0.12em 0.32em;
  background: rgba(127, 136, 145, 0.085);
}

.note-body hr {
  height: 1px;
  margin: 3em 0;
  border: 0;
  background: var(--line);
}

.note-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 12px;
}

.note-body th,
.note-body td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.single-note__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.single-note__footer a:hover {
  color: var(--text);
}

/* -------------------------------------------------------------------------- */
/* Comments                                                                    */
/* -------------------------------------------------------------------------- */

.comments {
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.comments__title {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.comment-list,
.comment-list ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-body {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.comment-meta {
  display: flex;
  gap: 12px;
  color: var(--text-faint);
  font-size: 9px;
}

.comment-content {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 14px;
}

.comment-form {
  margin-top: 34px;
}

.comment-form__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
}

.comment-form textarea {
  min-height: 130px;
  resize: vertical;
}

.comment-form button {
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.16em;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* 404 + footer                                                                */
/* -------------------------------------------------------------------------- */

.content-shell--center {
  min-height: calc(100vh - var(--topbar-height));
  display: grid;
  place-items: center;
}

.not-found {
  width: 100%;
  padding: 90px 0;
}

.not-found > span {
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.not-found h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
}

.not-found p {
  color: var(--text-soft);
  font-family: var(--serif);
}

.not-found a {
  display: inline-block;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-faint);
}

.site-footer__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.site-footer a:hover {
  color: var(--text);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --content-width: min(82vw, 760px);
  }

  .journal-entry__excerpt {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  :root {
    --content-width: 88vw;
    --topbar-height: 58px;
  }

  body {
    font-size: 14px;
  }

  .topbar {
    padding: 0 18px;
  }

  .topbar__flow {
    font-size: 7px;
  }

  .drawer {
    width: 100%;
    max-width: none;
    padding: 24px 24px 20px;
    border-right: 0;
  }

  .intro-photo {
    background-image: url("../images/opening-mobile.webp");
    background-position: center center;
  }

  .intro-photo__mark {
    top: max(32px, env(safe-area-inset-top));
    left: 26px;
  }

  .intro-skip {
    top: max(24px, env(safe-area-inset-top));
    right: 22px;
  }

  .intro-sound-state {
    left: 26px;
    bottom: max(34px, env(safe-area-inset-bottom));
  }

  .intro-next {
    right: 24px;
    bottom: max(25px, env(safe-area-inset-bottom));
    min-width: 126px;
  }

  .intro-quotes {
    padding: 62px 24px 60px;
  }

  .intro-quotes__content {
    width: 82vw;
    min-height: 520px;
    padding-top: 100px;
  }

  .summerize-word {
    margin-bottom: 44px;
    font-size: 16px;
  }

  .summerize-quote {
    margin-bottom: 16px;
  }

  .summerize-quote p {
    font-size: 13px;
    line-height: 1.75;
  }

  .journal-hero {
    padding-top: 58px;
  }

  .journal-hero h1 {
    font-size: 34px;
  }

  .journal-hero p {
    max-width: 92%;
    line-height: 1.7;
  }

  .journal-entry {
    padding: 30px 0 28px;
  }

  .journal-entry h2 {
    font-size: 20px;
  }

  .journal-entry__excerpt {
    font-size: 12.5px;
  }

  .content-shell--single {
    width: 88vw;
  }

  .single-note {
    padding: 56px 0 70px;
  }

  .single-note__header h1 {
    max-width: 100%;
    font-size: 34px;
  }

  .note-body {
    padding-top: 34px;
    font-size: 15px;
    line-height: 1.95;
  }

  .single-note__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .comment-form__row {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    min-height: 72px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .topbar__brand {
    font-size: 11px;
  }

  .intro-quotes__content {
    width: 84vw;
  }

  .summerize-quote p {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
