/* ==========================================================================
   王一 · 信笺
   A white letter, opened from the envelope.
   ========================================================================== */

:root {
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #343434;
  --muted: #707070;
  --faint: #929292;
  --line: #e8e8e8;
  --line-strong: #cfcfcf;
  --seam: #b59a66;
  --error: #a33a2e;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --side: clamp(20px, 4vw, 56px);
  --header: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-paper: cubic-bezier(0.64, 0, 0.18, 1);
  --dash-h: clamp(590px, 68vh, 678px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked,
body.has-dialog {
  overflow: hidden;
}

body.is-intro {
  overflow: hidden;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

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

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

button {
  border-radius: 0;
}

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

p,
h1,
h2,
h3,
h4,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 18px;
  z-index: 66;
  border-right: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  border-left: 1px solid #efefef;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease 0.2s;
}

body.is-opening::after,
body.is-open::after {
  opacity: 1;
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--play {
  fill: currentColor;
  stroke: none;
}

.icon--pause {
  fill: none;
  stroke: currentColor;
}

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

/* ==========================================================================
   The envelope: a whole screen, not a card
   ========================================================================== */

.identity {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  color: var(--ink);
  pointer-events: none;
  transition:
    top 1.05s var(--ease),
    transform 1.05s var(--ease);
}

.identity__orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: margin 1s var(--ease);
}

.identity__seam {
  display: block;
  width: 1px;
  height: 56px;
  background: var(--seam);
  opacity: 0.65;
  transition: height 1s var(--ease), opacity 0.6s ease;
}

.identity__avatar {
  display: block;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 50%;
  background: var(--ink);
  transition: width 1s var(--ease), height 1s var(--ease);
}

.identity__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity__name {
  display: block;
  max-width: min(72vw, 340px);
  margin-top: 14px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-indent: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease, font-size 1s var(--ease), margin 1s var(--ease);
}

.identity__handle {
  display: block;
  max-width: min(72vw, 300px);
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: font-size 1s var(--ease), margin 1s var(--ease);
}

.identity.is-settled {
  top: 6px;
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(-50%);
}

.identity.is-settled .identity__seam {
  height: 4px;
  opacity: 0.9;
}

.identity.is-settled .identity__avatar {
  width: 28px;
  height: 28px;
}

.identity.is-settled .identity__name {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-indent: 0.04em;
}

.identity.is-settled .identity__handle {
  margin-top: 1px;
  font-size: 9px;
}

.identity.is-settled:hover .identity__name {
  color: var(--muted);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background: transparent;
}

.intro.is-gone {
  display: none;
}

body.is-opening .intro {
  pointer-events: none;
}

.intro__paper {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  transform-style: preserve-3d;
  background: transparent;
}

.intro__panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
  transition:
    transform 1.02s var(--ease-paper),
    opacity 0.85s ease;
}

.intro__panel--top {
  background: #f7f7f6;
  clip-path: polygon(0 0, 100% 0, 50% 51.5%);
  filter: drop-shadow(0 18px 24px rgba(17, 17, 17, 0.05));
  transform-origin: 50% 0;
}

.intro__panel--left {
  background: #fdfdfc;
  clip-path: polygon(0 0, 50% 51.5%, 0 100%);
  transform-origin: 0 50%;
}

.intro__panel--right {
  background: #fbfbfa;
  clip-path: polygon(100% 0, 50% 51.5%, 100% 100%);
  transform-origin: 100% 50%;
}

.intro__panel--bottom {
  background: #f8f8f7;
  clip-path: polygon(0 100%, 50% 51.5%, 100% 100%);
  transform-origin: 50% 100%;
}

.intro__creases {
  position: absolute;
  inset: 22px;
  z-index: 1;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  overflow: visible;
  transition: opacity 0.45s ease, transform 1s var(--ease-paper);
}

.intro__creases path {
  fill: none;
  stroke: #dedede;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.intro__creases path:nth-child(1) {
  stroke: #d4d4d4;
}

.intro__seam {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  z-index: 2;
  width: 1px;
  background: var(--seam);
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

.intro__meta {
  position: absolute;
  top: 24px;
  right: 24px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: opacity 0.25s ease;
}

.intro__wordmark {
  color: var(--muted);
}

.intro__meta-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.intro__date {
  font-family: var(--mono);
  font-size: 9.5px;
}

.intro__edit {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  cursor: pointer;
}

.intro__edit:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.intro__prompt-wrap {
  position: absolute;
  bottom: 76px;
  left: 50%;
  z-index: 3;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 0.25s ease;
}

.intro__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.intro__button .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.intro__button:hover .icon {
  transform: translateX(3px);
}

.intro__prompt {
  margin-top: 11px;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.intro__foot {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  transition: opacity 0.25s ease;
}

body.is-opening .intro__panel--top {
  opacity: 0;
  transform: rotateX(-86deg);
}

body.is-opening .intro__panel--left {
  transform: translateX(-102%) rotateZ(-0.8deg);
}

body.is-opening .intro__panel--right {
  transform: translateX(102%) rotateZ(0.8deg);
}

body.is-opening .intro__panel--bottom {
  transform: translateY(102%);
}

body.is-opening .intro__creases {
  opacity: 0;
  transition-duration: 0.28s;
}

body.is-opening .intro__seam,
body.is-opening .intro__meta,
body.is-opening .intro__prompt-wrap,
body.is-opening .intro__foot {
  opacity: 0;
}

body.is-opening .identity__seam {
  opacity: 0.2;
}

/* ==========================================================================
   Top line
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 var(--side);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.97);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.5s ease,
    transform 0.5s var(--ease),
    border-color 0.2s ease,
    background 0.2s ease;
}

body.is-opening .topbar,
body.is-open .topbar {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0.45s;
}

body.is-scrolled .topbar {
  border-bottom-color: var(--line);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.topnav a {
  transition: color 0.18s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
}

.nav-mobile {
  position: relative;
  display: none;
}

.nav-mobile summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  list-style: none;
  cursor: pointer;
}

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

.nav-mobile summary::before {
  content: "";
  width: 12px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.nav-mobile nav {
  position: absolute;
  top: 30px;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 180px;
  padding: 10px 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.nav-mobile nav a {
  padding: 10px 16px;
  color: var(--ink-soft);
  font-size: 12px;
}

.nav-mobile nav a:hover {
  background: #f7f7f7;
}

.edit-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.edit-entry .icon {
  width: 13px;
  height: 13px;
}

.edit-entry:hover,
.edit-entry:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

body.is-owner .edit-entry {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* ==========================================================================
   Page
   ========================================================================== */

.site-main {
  padding-top: var(--header);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.8s ease 0.08s,
    transform 1s var(--ease) 0.08s;
}

body.is-opening .site-main,
body.is-open .site-main {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

.page-shell {
  width: min(1280px, calc(100% - (var(--side) * 2)));
  margin: 0 auto;
  padding: 36px 0 0;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.page-intro__line {
  max-width: 720px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.page-intro__aside {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 32px;
  row-gap: 28px;
  height: var(--dash-h);
  margin-top: 24px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.section-head__title {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 10px;
}

.section-head h2 {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.section-head__note {
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-head__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.small-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.small-icon-button .icon {
  width: 14px;
  height: 14px;
}

.small-icon-button:hover:not(:disabled),
.small-icon-button:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.small-icon-button:disabled {
  color: #ccc;
  cursor: default;
}

.quiet-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.quiet-action .icon {
  width: 12px;
  height: 12px;
}

.quiet-action:hover {
  color: var(--ink);
}

.auto-link {
  margin: 0 3px;
  color: var(--faint);
  font-size: 9.5px;
}

.auto-link[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.section-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.owner-only {
  display: none !important;
}

body.is-owner .owner-only {
  display: inline-flex !important;
}

/* ==========================================================================
   Journal — a black line and a white page
   ========================================================================== */

.journal {
  display: flex;
  flex-direction: column;
  min-height: 0;
  grid-row: 1 / 3;
}

.journal .section-head {
  margin-bottom: 14px;
}

.book-scene {
  display: block;
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.book {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 5px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  transition: border-color 0.25s ease;
}

.book-scene:hover .book,
.book-scene:focus-visible .book {
  border-color: var(--ink);
}

.book__cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: var(--ink);
  color: var(--white);
}

.book__cover-label {
  font-size: 9.5px;
  letter-spacing: 0.26em;
  line-height: 1.6;
  writing-mode: vertical-rl;
}

.book__cover-year {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  writing-mode: vertical-rl;
}

.book__page {
  display: block;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--white);
}

.book__page-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 30px 22px;
}

.book__kicker {
  display: block;
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.book__title {
  display: block;
  flex: none;
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px, 2.15vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.book__excerpt {
  display: block;
  flex: 1;
  min-height: 0;
  margin-top: 20px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 2.02;
  letter-spacing: 0.01em;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 83%, rgba(0, 0, 0, 0.68) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 83%, rgba(0, 0, 0, 0.68) 93%, transparent 100%);
}

.book__quote {
  display: block;
  flex: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.7;
}

.book__quote:empty {
  display: none;
}

.book__paragraph {
  display: block;
  text-indent: 2em;
}

.book__paragraph + .book__paragraph {
  margin-top: 0.82em;
}

.book__read {
  display: inline-flex;
  flex: none;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.4;
}

.book__read .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.22s ease;
}

.book-scene:hover .book__read .icon {
  transform: translateX(3px);
}

.book__folio {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1;
}

.book__edge {
  background:
    repeating-linear-gradient(
      to bottom,
      #ffffff 0,
      #ffffff 3px,
      #efefef 3px,
      #efefef 4px
    );
  border-left: 1px solid var(--line);
}

.book__page-inner > * {
  position: relative;
}

/* ==========================================================================
   Moments
   ========================================================================== */

.feed {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.social-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  outline: none;
}

.post-stage {
  position: relative;
  height: 100%;
  perspective: 1200px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
  gap: 26px;
  height: 100%;
  padding-top: 15px;
}

.post-card__media {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.post-card__photo {
  display: block;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f6f6f6;
  cursor: zoom-in;
}

.post-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: transform 0.6s var(--ease);
}

.post-card__photo:hover img {
  transform: scale(1.015);
}

.post-card__media figcaption {
  display: flex;
  flex: none;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.4;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-top: 1px;
}

.post-card__meta {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.post-card__tag {
  color: var(--ink);
}

.post-card__date {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--faint);
}

.post-card__text {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.post-card__comment {
  margin-top: auto;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11.5px;
  line-height: 1.7;
}

.post-card__comment cite {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
}

.post-card__comment--empty {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 9.5px;
}

.post-card__foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  cursor: pointer;
}

.post-action .icon {
  width: 14px;
  height: 14px;
}

.post-action:hover {
  color: var(--ink);
}

.post-action.is-liked {
  color: var(--ink);
}

.post-action.is-liked .icon {
  fill: var(--ink);
}

.post-action--static {
  cursor: default;
}

.post-card__read {
  font-size: 9px;
}

.post-card--text {
  grid-template-columns: minmax(0, 1fr);
}

.post-card--text .post-card__body {
  max-width: 680px;
}

.post-card--text .post-card__text {
  margin-top: 22px;
  font-size: 24px;
  line-height: 1.62;
  -webkit-line-clamp: 5;
}

.feed-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  color: var(--muted);
}

.feed-empty p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
}

.feed-empty span {
  margin-top: 6px;
  font-size: 10px;
}

.post-stage.is-out-up .post-card {
  animation: paperOutUp 0.28s var(--ease-paper) forwards;
}

.post-stage.is-out-down .post-card {
  animation: paperOutDown 0.28s var(--ease-paper) forwards;
}

.post-stage.is-in-up .post-card {
  animation: paperInUp 0.36s var(--ease-paper) both;
}

.post-stage.is-in-down .post-card {
  animation: paperInDown 0.36s var(--ease-paper) both;
}

@keyframes paperOutUp {
  to {
    opacity: 0;
    transform: translateY(-18px) rotateX(9deg);
  }
}

@keyframes paperOutDown {
  to {
    opacity: 0;
    transform: translateY(18px) rotateX(-9deg);
  }
}

@keyframes paperInUp {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(-6deg);
  }
}

@keyframes paperInDown {
  from {
    opacity: 0;
    transform: translateY(-18px) rotateX(6deg);
  }
}

/* ==========================================================================
   The drawer
   ========================================================================== */

.drawer {
  display: flex;
  min-height: 0;
  border-top: 1px solid var(--line);
}

.drawer__grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr 0.94fr;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.drawer-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 18px 22px 14px 0;
}

.drawer-item + .drawer-item {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.drawer-item:last-child {
  padding-right: 0;
}

.drawer-item__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 21px;
  margin-bottom: 12px;
}

.drawer-item__head h3 {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.drawer-item__head > span,
.drawer-item__tools > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.drawer-item__tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-owner-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.mini-owner-action .icon {
  width: 12px;
  height: 12px;
}

.mini-owner-action:hover {
  color: var(--ink);
}

.text-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.text-link--danger {
  color: var(--error);
  border-bottom-color: rgba(163, 58, 46, 0.3);
}

.text-link--danger:hover {
  color: var(--error);
  border-bottom-color: var(--error);
}

/* Guestbook */

.guestbook-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #dddddd transparent;
}

.guestbook-list::-webkit-scrollbar {
  width: 4px;
}

.guestbook-list::-webkit-scrollbar-thumb {
  background: #e1e1e1;
}

.guest-note {
  padding: 9px 0 10px;
  border-bottom: 1px solid #f1f1f1;
}

.guest-note:last-child {
  border-bottom: 0;
}

.guest-note__text {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
}

.guest-note__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.4;
}

.guest-note__name {
  color: var(--muted);
}

.guest-note__meta time {
  font-family: var(--mono);
}

.guest-note__delete {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.guest-note__delete:hover {
  color: var(--error);
}

.guestbook-col > .text-link {
  flex: none;
  align-self: flex-start;
  margin-top: 10px;
  font-size: 10px;
}

/* Files */

.file-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #dddddd transparent;
}

.file-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

body.is-owner .file-row {
  grid-template-columns: 14px minmax(0, 1fr) 14px 12px;
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row__icon {
  color: var(--faint);
}

.file-row__icon .icon {
  width: 13px;
  height: 13px;
}

.file-row__main {
  min-width: 0;
}

.file-row__name {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row__meta {
  display: flex;
  gap: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.file-row__download {
  display: inline-flex;
  color: var(--faint);
}

.file-row__download .icon {
  width: 13px;
  height: 13px;
}

.file-row__download:hover {
  color: var(--ink);
}

.file-row__delete {
  display: none !important;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  cursor: pointer;
}

body.is-owner .file-row__delete {
  display: inline-flex !important;
}

.file-row__delete .icon {
  width: 12px;
  height: 12px;
}

.drawer-note {
  flex: none;
  margin-top: auto;
  padding-top: 10px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.5;
}

/* Music */

.music-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.record-sleeve {
  position: relative;
  width: 148px;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.record-sleeve::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.record-sleeve__label {
  position: absolute;
  top: 12px;
  left: 13px;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.record-sleeve__title {
  position: absolute;
  top: 31px;
  right: 16px;
  left: 14px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.record-sleeve__mark {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 5px;
  height: 5px;
  background: var(--white);
}

.record-sleeve.has-cover .record-sleeve__design {
  display: none;
}

.music-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.music-play {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.music-play:hover {
  background: var(--white);
  color: var(--ink);
}

.music-play .icon {
  width: 11px;
  height: 11px;
}

.music-play .icon--pause {
  display: none;
}

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

.music-card.is-playing .music-play .icon--pause {
  display: block;
}

.music-info {
  min-width: 0;
}

.music-info__sub {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.music-info h4 {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.music-info__note {
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.music-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.music-status {
  color: var(--muted);
}

/* ==========================================================================
   Archive
   ========================================================================== */

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

.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.archive-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(27px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.archive-head > p {
  color: var(--faint);
  font-size: 9px;
  line-height: 1.7;
  text-align: right;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}

.about {
  padding-right: 20px;
}

.about__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1;
}

.about__lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.75;
}

.about__body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.85;
}

.about__signature {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.identity-mini {
  display: block;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
}

.identity-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__signature b {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
}

.about__signature small {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
}

.outline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.outline-link .icon {
  width: 12px;
  height: 12px;
}

.outline-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.archive-list {
  border-top: 1px solid var(--line-strong);
}

.archive-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
}

.archive-row__date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.archive-row__date b {
  color: var(--ink-soft);
  font-weight: 400;
}

.archive-row__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.archive-row__title {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.archive-row__note {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-row__arrow {
  color: var(--faint);
  transition: color 0.2s ease, transform 0.2s ease;
}

.archive-row__arrow .icon {
  width: 13px;
  height: 13px;
}

.archive-row:hover .archive-row__title {
  transform: translateX(3px);
}

.archive-row:hover .archive-row__arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Closing and footer
   ========================================================================== */

.closing {
  margin-top: 78px;
  padding: 62px 0 54px;
  border-top: 1px solid var(--line);
}

.closing h2 {
  max-width: 760px;
  margin-top: 17px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.ink-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ink-button .icon {
  width: 13px;
  height: 13px;
}

.ink-button:hover,
.ink-button:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.closing .ink-button {
  margin-top: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.site-footer__name {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.site-footer__name b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 400;
}

.site-footer__name span,
.site-footer__meta {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.site-footer__line {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
  text-align: center;
}

.site-footer__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.footer-owner {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.footer-owner:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   Loading / empty
   ========================================================================== */

.comment-empty {
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.7;
}

.feed-empty {
  min-height: 140px;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
}

/* ==========================================================================
   Dialogs
   ========================================================================== */

dialog.modal:not([open]) {
  display: none;
}

dialog.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog.modal::backdrop {
  background: rgba(17, 17, 17, 0.34);
}

dialog.modal[open]::backdrop {
  animation: backdropIn 0.22s ease both;
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }
}

.modal__surface {
  position: relative;
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--white);
  animation: modalIn 0.28s var(--ease) both;
}

dialog.modal.is-closing .modal__surface {
  animation: modalOut 0.18s ease both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes modalOut {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: var(--white);
  color: var(--ink);
}

.modal__close .icon {
  width: 13px;
  height: 13px;
}

/* Reader */

.reader-modal .modal__surface.reader {
  display: flex;
  flex-direction: column;
  width: min(1040px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
}

.reader__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 52px 0 24px;
  border-bottom: 1px solid var(--line);
}

.reader__label {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

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

.reader__pager {
  min-width: 54px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  text-align: center;
}

.reader__book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.18fr);
  flex: 1;
  min-height: 0;
}

.reader__leaf {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.reader__leaf--left {
  display: flex;
  padding: 38px 40px;
  background: #fcfcfc;
}

.reader__left-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

.reader__weekday {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.reader__day {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.reader__month {
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
}

.reader__weather {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 9px;
}

.reader__weather span {
  display: flex;
  gap: 8px;
}

.reader__weather b {
  color: var(--ink-soft);
  font-weight: 400;
}

.reader__quote {
  max-width: 300px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}

.reader__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
}

.reader__gutter {
  background: var(--line);
}

.reader__leaf--right {
  display: flex;
  background: var(--white);
}

.reader__content {
  width: 100%;
  height: 100%;
  padding: 38px 42px 30px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #dddddd transparent;
}

.reader__kicker {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.reader__content h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 31px);
  font-weight: 400;
  line-height: 1.4;
}

.reader__rule {
  display: block;
  width: 22px;
  height: 1px;
  margin-top: 18px;
  background: var(--ink);
}

.reader__text {
  margin-top: 22px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.98;
}

.reader__text p {
  margin: 0 0 0.9em;
  text-indent: 2em;
}

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

.reader__signature {
  margin-top: 28px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  text-align: right;
}

.reader__foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 0 24px;
  border-top: 1px solid var(--line);
}

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

.turn-sheet {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
}

.turn-sheet.is-turning-next {
  opacity: 1;
  transform-origin: 0 50%;
  animation: pageTurnNext 0.42s var(--ease-paper) both;
}

.turn-sheet.is-turning-prev {
  opacity: 1;
  transform-origin: 100% 50%;
  animation: pageTurnPrev 0.42s var(--ease-paper) both;
}

@keyframes pageTurnNext {
  from {
    transform: perspective(1200px) rotateY(0);
    opacity: 1;
  }
  to {
    transform: perspective(1200px) rotateY(-12deg) translateX(-4%);
    opacity: 0;
  }
}

@keyframes pageTurnPrev {
  from {
    transform: perspective(1200px) rotateY(0);
    opacity: 1;
  }
  to {
    transform: perspective(1200px) rotateY(12deg) translateX(4%);
    opacity: 0;
  }
}

/* Post detail */

.post-modal .modal__surface.post-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  width: min(1040px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
}

.post-detail__media {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  background: #f6f6f6;
}

.post-detail__media > img {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
}

.post-detail__media figcaption {
  flex: none;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
}

.post-detail__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--line);
}

.post-detail__scroll {
  flex: 1;
  min-height: 0;
  padding: 40px 38px 24px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #dddddd transparent;
}

.post-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-detail__tag {
  color: var(--muted);
  font-size: 9.5px;
}

.post-detail__text {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
}

.post-detail__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
}

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

.comments__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9.5px;
}

.comments__head h3 {
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.comment-list {
  margin-top: 8px;
}

.comment-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-item__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 9px;
}

.comment-item__body {
  min-width: 0;
}

.comment-item__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 8.5px;
}

.comment-item__head b {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 400;
}

.comment-item__head time {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.comment-item__text {
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
}

.comment-form {
  flex: none;
  padding: 14px 38px 16px;
  border-top: 1px solid var(--line);
}

.comment-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) 34px;
  align-items: end;
  gap: 10px;
}

.round-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 1px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.round-submit .icon {
  width: 13px;
  height: 13px;
}

.round-submit:hover {
  background: var(--white);
  color: var(--ink);
}

.form-error {
  min-height: 0;
  margin-top: 8px;
  color: var(--error);
  font-size: 9.5px;
  line-height: 1.5;
}

.form-error:empty {
  display: none;
}

/* Composer */

.composer-modal .modal__surface.composer {
  display: flex;
  flex-direction: column;
  width: min(730px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
}

.composer__head {
  flex: none;
  padding: 30px 36px 22px;
  border-bottom: 1px solid var(--line);
}

.composer__kicker {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.composer__head h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 31px);
  font-weight: 400;
  line-height: 1.35;
}

.composer__head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.composer__fields {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  min-height: 0;
  padding: 22px 36px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #dddddd transparent;
}

.composer__foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 36px;
  border-top: 1px solid var(--line);
}

.composer__foot .ink-button {
  min-height: 33px;
}

/* Fields */

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.field > span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.18s ease;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b5b5b5;
}

.field__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.field__hint,
.composer-note {
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.6;
}

.composer-note {
  margin-top: -4px;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  cursor: pointer;
}

.check-field input {
  width: 13px;
  height: 13px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.check-field span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.check-field b {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 400;
}

.check-field small {
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.6;
}

.upload-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  background: #fcfcfc;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.upload-zone:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone .icon {
  width: 17px;
  height: 17px;
  margin-bottom: 7px;
}

.upload-zone strong {
  font-size: 9.5px;
  font-weight: 400;
}

.upload-zone small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 8px;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
}

.upload-preview img {
  width: 38px;
  height: 38px;
  object-fit: cover;
}

.upload-preview__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.upload-preview__meta b {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview__meta small {
  color: var(--faint);
  font-size: 8px;
}

.upload-preview__remove {
  margin-left: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-size: 8.5px;
  cursor: pointer;
}

.upload-preview__remove:hover {
  color: var(--error);
}

/* Studio */

.studio-modal .modal__surface.studio {
  width: min(560px, calc(100vw - 48px));
}

.studio__head {
  padding: 30px 32px 22px;
  border-bottom: 1px solid var(--line);
}

.studio__head h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.35;
}

.studio__status {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.studio__list {
  padding: 4px 32px;
}

.studio-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
}

.studio-item:last-child {
  border-bottom: 0;
}

.studio-item > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.studio-item > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.studio-item strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 400;
}

.studio-item small {
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.5;
}

.studio-item__arrow {
  color: var(--faint);
  transition: transform 0.2s ease;
}

.studio-item:hover .studio-item__arrow {
  color: var(--ink);
  transform: translateX(2px);
}

.studio__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 32px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 8.5px;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 40px);
  padding: 9px 13px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 9.5px;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease);
}

.toast .icon {
  width: 12px;
  height: 12px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  border-color: var(--error);
  background: var(--error);
}

/* ==========================================================================
   Reveal
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.6s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  :root {
    --side: 34px;
  }

  .dashboard {
    column-gap: 24px;
    row-gap: 24px;
  }

  .book__page-inner {
    padding: 27px 24px 20px;
  }

  .book__title {
    font-size: 27px;
  }

  .book__excerpt {
    font-size: 14.5px;
  }

  .post-card {
    gap: 20px;
  }

  .post-card__text {
    font-size: 16px;
  }

  .drawer-item {
    padding-right: 17px;
  }

  .drawer-item + .drawer-item {
    padding-left: 17px;
  }

  .music-card {
    gap: 10px;
  }

  .record-sleeve {
    width: 132px;
  }

  .record-sleeve__title {
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  :root {
    --side: 28px;
  }

  .site-main {
    padding-top: var(--header);
  }

  .page-shell {
    padding-top: 28px;
  }

  .dashboard {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 50px;
    margin-top: 22px;
  }

  .journal {
    order: 1;
  }

  .feed {
    order: 2;
  }

  .drawer {
    order: 3;
  }

  .feed {
    min-height: 0;
  }

  .social-viewport {
    flex: none;
    height: auto;
  }

  .post-stage {
    height: auto;
  }

  .post-card {
    min-height: 390px;
    height: 390px;
  }

  .post-card__text {
    font-size: 17px;
  }

  .book-scene {
    flex: none;
    height: 570px;
  }

  .book__page-inner {
    padding: 32px 34px 24px;
  }

  .book__title {
    font-size: 31px;
  }

  .book__excerpt {
    font-size: 15px;
  }

  .drawer {
    min-height: 300px;
    border-top: 1px solid var(--line);
    padding-top: 2px;
  }

  .drawer__grid {
    height: auto;
    min-height: 300px;
  }

  .archive {
    margin-top: 64px;
  }

  .archive-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
    gap: 28px;
  }
}

@media (max-width: 840px) {
  :root {
    --header: 64px;
    --side: 24px;
  }

  .topnav {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .identity.is-settled {
    top: 5px;
  }

  .identity.is-settled .identity__seam {
    height: 4px;
  }

  .identity.is-settled .identity__avatar {
    width: 26px;
    height: 26px;
  }

  .identity.is-settled .identity__name {
    margin-top: 2px;
    font-size: 10px;
  }

  .identity.is-settled .identity__handle {
    font-size: 8px;
  }

  .edit-entry {
    padding: 0 9px;
    font-size: 10px;
  }

  .page-intro {
    gap: 18px;
  }

  .page-intro__line {
    font-size: 17px;
  }

  .page-intro__aside {
    gap: 12px;
    font-size: 8.5px;
  }

  .post-card {
    height: 360px;
    min-height: 360px;
  }

  .book-scene {
    height: 550px;
  }

  .archive-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .archive-head > p {
    text-align: left;
  }

  .archive-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about {
    padding-right: 0;
  }

  .about__body {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  :root {
    --side: 20px;
  }

  .intro__meta {
    top: 18px;
    right: 18px;
    left: 18px;
  }

  .intro__foot {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .intro__creases {
    inset: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
  }

  .intro__seam {
    top: 16px;
    bottom: 16px;
  }

  .intro__prompt-wrap {
    bottom: 72px;
  }

  .identity__seam {
    height: 44px;
  }

  .identity__avatar {
    width: 76px;
    height: 76px;
  }

  .identity__name {
    margin-top: 11px;
    font-size: 18px;
  }

  .identity__handle {
    font-size: 9px;
  }

  .page-shell {
    padding-top: 24px;
  }

  .page-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 12px;
  }

  .page-intro__line {
    font-size: 16px;
    line-height: 1.55;
  }

  .page-intro__aside {
    gap: 14px;
  }

  .dashboard {
    gap: 44px;
    margin-top: 20px;
  }

  .book-scene {
    height: 540px;
  }

  .book {
    grid-template-columns: 24px minmax(0, 1fr) 4px;
  }

  .book__cover {
    padding: 14px 0;
  }

  .book__page-inner {
    padding: 25px 22px 20px;
  }

  .book__title {
    margin-top: 10px;
    font-size: 27px;
  }

  .book__excerpt {
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 1.92;
  }

  .book__read {
    margin-top: 14px;
  }

  .book__folio {
    right: 16px;
    bottom: 15px;
  }

  .social-viewport {
    height: auto;
  }

  .post-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 15px;
    padding-top: 13px;
  }

  .post-card__media {
    height: auto;
  }

  .post-card__photo {
    flex: none;
    height: 300px;
  }

  .post-card__body {
    min-height: 0;
  }

  .post-card__text {
    margin-top: 9px;
    font-size: 17px;
    -webkit-line-clamp: 8;
  }

  .post-card__comment {
    margin-top: 15px;
    padding-top: 10px;
  }

  .post-card__foot {
    margin-top: 10px;
  }

  .post-card--text .post-card__body {
    max-width: none;
  }

  .post-card--text .post-card__text {
    font-size: 22px;
  }

  .drawer {
    min-height: 0;
  }

  .drawer__grid {
    display: block;
    height: auto;
    min-height: 0;
  }

  .drawer-item {
    height: auto;
    padding: 20px 0 22px;
  }

  .drawer-item + .drawer-item {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .drawer-item__head {
    margin-bottom: 8px;
  }

  .guestbook-list {
    max-height: none;
    overflow: visible;
  }

  .file-list {
    max-height: none;
    overflow: visible;
  }

  .music-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: start;
    max-width: 380px;
    gap: 14px;
  }

  .record-sleeve {
    width: 110px;
  }

  .record-sleeve__title {
    top: 27px;
    right: 12px;
    left: 12px;
    font-size: 14px;
  }

  .music-info h4 {
    font-size: 15px;
  }

  .music-info__note {
    -webkit-line-clamp: 2;
    font-size: 9px;
  }

  .archive {
    margin-top: 54px;
    padding-top: 24px;
  }

  .archive-head {
    margin-bottom: 24px;
  }

  .archive-row {
    grid-template-columns: 52px minmax(0, 1fr) 14px;
    gap: 10px;
    padding: 13px 0;
  }

  .archive-row__title {
    font-size: 15px;
  }

  .archive-row__note {
    font-size: 9px;
  }

  .closing {
    margin-top: 52px;
    padding: 42px 0 36px;
  }

  .closing h2 {
    margin-top: 13px;
    font-size: 25px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 20px 0 24px;
  }

  .site-footer__line {
    display: none;
  }

  .site-footer__meta {
    gap: 12px;
  }

  /* dialogs: use more of the screen */
  .modal__surface {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .reader-modal .modal__surface.reader {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .reader__bar {
    padding: 0 44px 0 16px;
  }

  .reader__book {
    display: block;
    overflow: auto;
  }

  .reader__leaf--left,
  .reader__gutter {
    display: none;
  }

  .reader__leaf--right {
    min-height: 100%;
  }

  .reader__content {
    padding: 28px 22px 24px;
  }

  .reader__content h2 {
    font-size: 25px;
  }

  .reader__text {
    font-size: 14.5px;
    line-height: 1.95;
  }

  .reader__foot {
    padding: 0 16px;
  }

  .post-modal .modal__surface.post-detail {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .post-detail__media {
    flex: none;
    height: 210px;
  }

  .post-detail__media > img {
    min-height: 0;
  }

  .post-detail__main {
    flex: 1;
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .post-detail__scroll {
    padding: 24px 20px 18px;
  }

  .post-detail__text {
    font-size: 16px;
  }

  .comment-form {
    padding: 11px 20px 13px;
  }

  .comment-form__row {
    grid-template-columns: 1fr 34px;
    gap: 8px;
  }

  .comment-form__row .field:first-child {
    grid-column: 1 / 2;
  }

  .comment-form__row .field.field--grow {
    grid-column: 1 / 2;
  }

  .comment-form__row .round-submit {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: end;
  }

  .composer-modal .modal__surface.composer {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .composer__head {
    padding: 24px 20px 18px;
  }

  .composer__head h2 {
    font-size: 25px;
  }

  .composer__fields {
    padding: 18px 20px;
  }

  .composer__foot {
    padding: 12px 20px;
  }

  .field__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .studio-modal .modal__surface.studio {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .studio__head {
    padding: 24px 20px 18px;
  }

  .studio__list {
    padding: 4px 20px;
    overflow: auto;
  }

  .studio__foot {
    padding: 12px 20px;
  }

  .toast {
    bottom: 14px;
  }

  body::after {
    inset: 10px;
    border-color: #f2f2f2;
  }
}

@media (max-width: 520px) {
  :root {
    --side: 18px;
    --header: 62px;
  }

  .intro__meta {
    top: 14px;
    right: 14px;
    left: 14px;
    font-size: 9px;
  }

  .intro__meta-right {
    gap: 12px;
  }

  .intro__date {
    font-size: 8.5px;
  }

  .intro__edit {
    font-size: 9px;
  }

  .intro__creases {
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
  }

  .intro__seam {
    top: 12px;
    bottom: 12px;
  }

  .intro__foot {
    right: 14px;
    bottom: 14px;
    left: 14px;
    font-size: 8.5px;
  }

  .intro__prompt-wrap {
    bottom: 62px;
    width: calc(100% - 36px);
  }

  .intro__button {
    font-size: 12px;
  }

  .intro__prompt {
    font-size: 8.5px;
  }

  .identity__seam {
    height: 34px;
  }

  .identity__avatar {
    width: 68px;
    height: 68px;
  }

  .identity__name {
    margin-top: 9px;
    font-size: 17px;
  }

  .identity__handle {
    margin-top: 3px;
    font-size: 8.5px;
  }

  .identity.is-settled {
    top: 4px;
  }

  .identity.is-settled .identity__seam {
    height: 3px;
  }

  .identity.is-settled .identity__avatar {
    width: 25px;
    height: 25px;
  }

  .identity.is-settled .identity__name {
    margin-top: 2px;
    font-size: 9.5px;
  }

  .identity.is-settled .identity__handle {
    font-size: 7.5px;
  }

  .edit-entry {
    gap: 5px;
    min-height: 28px;
    padding: 0 7px;
    font-size: 9px;
  }

  .edit-entry .icon {
    width: 12px;
    height: 12px;
  }

  .page-intro__aside {
    gap: 10px;
    font-size: 8px;
  }

  .book-scene {
    height: 520px;
  }

  .book {
    grid-template-columns: 22px minmax(0, 1fr) 4px;
  }

  .book__cover-label {
    font-size: 8.5px;
  }

  .book__cover-year {
    font-size: 6.5px;
  }

  .book__page-inner {
    padding: 22px 17px 18px;
  }

  .book__kicker {
    font-size: 8.5px;
  }

  .book__title {
    font-size: 25px;
  }

  .book__excerpt {
    font-size: 14px;
    line-height: 1.9;
  }

  .book__read {
    font-size: 9.5px;
  }

  .book__folio {
    right: 14px;
    bottom: 13px;
    font-size: 7.5px;
  }

  .post-card__photo {
    height: 255px;
  }

  .post-card__text {
    font-size: 16px;
  }

  .post-card--text .post-card__text {
    font-size: 20px;
  }

  .section-head {
    min-height: 32px;
  }

  .section-head__tools {
    gap: 1px;
  }

  .small-icon-button {
    width: 23px;
    height: 23px;
  }

  .auto-link {
    margin: 0 2px;
    font-size: 9px;
  }

  .music-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .record-sleeve {
    width: 96px;
  }

  .record-sleeve__label {
    top: 10px;
    left: 11px;
    font-size: 6px;
  }

  .record-sleeve__title {
    top: 24px;
    right: 10px;
    left: 11px;
    font-size: 12px;
  }

  .music-play {
    right: 7px;
    bottom: 7px;
    width: 24px;
    height: 24px;
  }

  .music-info h4 {
    font-size: 13px;
  }

  .archive-head h2 {
    font-size: 27px;
  }

  .archive-row {
    grid-template-columns: 46px minmax(0, 1fr) 12px;
  }

  .archive-row__title {
    font-size: 14px;
  }

  .site-footer__name {
    gap: 7px;
  }

  .site-footer__name b {
    font-size: 9px;
  }

  .reader__day {
    font-size: 64px;
  }

  .post-detail__media {
    height: 180px;
  }

  .post-detail__scroll {
    padding: 20px 16px 14px;
  }

  .post-detail__text {
    font-size: 15px;
  }

  .comment-form {
    padding: 10px 16px 11px;
  }

  .composer__head {
    padding: 22px 16px 16px;
  }

  .composer__fields {
    padding: 16px;
  }

  .composer__foot {
    padding: 11px 16px;
  }

  .modal__close {
    top: 8px;
    right: 8px;
    width: 25px;
    height: 25px;
  }

  .reader__bar {
    padding-right: 38px;
  }
}

@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;
  }
}
