/* =========================================================
   晚风邮局 · NIGHT POST
   A slow, anonymous letter wall for the internet
   ========================================================= */

:root {
  --ink: #07110f;
  --ink-deep: #040b09;
  --ink-soft: #0d1b17;
  --ink-card: #10201b;
  --cream: #f1e8d8;
  --cream-bright: #f8f1e5;
  --paper: #f3ebdd;
  --paper-deep: #e9ddc9;
  --amber: #e6b46d;
  --amber-soft: #f3d4a2;
  --amber-deep: #b77a3d;
  --teal: #82a99e;
  --rose: #cf8d84;
  --lavender: #aaa0bd;
  --sky-blue: #8fa6b8;
  --muted: rgba(241, 232, 216, 0.6);
  --muted-strong: rgba(241, 232, 216, 0.76);
  --line: rgba(241, 232, 216, 0.14);
  --line-strong: rgba(241, 232, 216, 0.24);
  --ink-muted: rgba(7, 17, 15, 0.6);
  --ink-line: rgba(7, 17, 15, 0.16);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", system-ui, sans-serif;
  --latin: Georgia, "Times New Roman", serif;
  --page: 1340px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-paper: 0 30px 70px rgba(0, 0, 0, 0.26), 0 3px 10px rgba(0, 0, 0, 0.16);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse 70% 48% at 78% -4%, rgba(57, 101, 84, 0.27), transparent 68%),
    radial-gradient(ellipse 48% 47% at 8% 18%, rgba(168, 111, 57, 0.1), transparent 72%),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--cream);
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

/* ---------- atmosphere ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.28;
  animation: twinkle var(--twinkle-duration, 5s) ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s);
}

.star.large {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 9px rgba(243, 212, 162, 0.7);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.12; transform: scale(0.86); }
  50% { opacity: 0.7; transform: scale(1); }
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 54vw;
  height: 54vw;
  max-width: 860px;
  max-height: 860px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.15;
}

.ambient-one {
  top: -26vw;
  right: -16vw;
  background: #4a826e;
}

.ambient-two {
  bottom: 8vh;
  left: -32vw;
  background: #9f672f;
  opacity: 0.08;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- type & shared ---------- */

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--amber);
  font-family: var(--latin);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-kicker span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(230, 180, 109, 0.35);
  border-radius: 50%;
  font-size: 0.62rem;
  letter-spacing: 0;
}

.section-kicker.light {
  color: var(--amber-deep);
}

.section-kicker.light span {
  border-color: rgba(183, 122, 61, 0.4);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 30px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--cream);
  border-radius: 1px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.button:hover {
  color: var(--cream);
  background: transparent;
  border-color: rgba(241, 232, 216, 0.5);
  transform: translateY(-2px);
}

.button-arrow {
  font-family: var(--latin);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.35s var(--ease);
}

.button:hover .button-arrow {
  transform: translate(3px, -3px);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.button-dark {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.button-dark:hover {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.button-light {
  color: var(--ink);
  background: transparent;
  border-color: rgba(7, 17, 15, 0.42);
}

.button-light:hover {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 2px;
  color: var(--cream);
  border-bottom: 1px solid rgba(241, 232, 216, 0.3);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-button:hover {
  color: var(--amber-soft);
  border-color: var(--amber);
}

.text-button-icon {
  color: var(--amber);
  font-family: var(--latin);
  font-size: 1.2rem;
}

.dark-text {
  color: var(--ink);
  border-color: rgba(7, 17, 15, 0.28);
}

.dark-text:hover {
  color: var(--amber-deep);
  border-color: var(--amber-deep);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 44px;
  border-bottom: 1px solid transparent;
  transition: background 0.45s ease, border-color 0.45s ease, height 0.45s ease, backdrop-filter 0.45s ease;
}

.site-header.is-scrolled {
  height: 74px;
  background: rgba(7, 17, 15, 0.8);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--amber-soft);
  border: 1px solid rgba(230, 180, 109, 0.5);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.6s var(--ease), background 0.3s ease, color 0.3s ease;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(230, 180, 109, 0.2);
  border-radius: 50%;
}

.brand:hover .brand-mark {
  color: var(--ink);
  background: var(--amber-soft);
  transform: rotate(-12deg);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 0.92rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.brand-copy span {
  color: var(--muted);
  font-family: var(--latin);
  font-size: 0.57rem;
  letter-spacing: 0.26em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-left: 72px;
}

.main-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transition: right 0.35s var(--ease);
}

.main-nav a:hover {
  color: var(--cream);
}

.main-nav a:hover::after {
  right: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.connection i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8bb8a1;
  box-shadow: 0 0 0 4px rgba(139, 184, 161, 0.1), 0 0 10px rgba(139, 184, 161, 0.55);
  animation: breathe 2.8s ease-in-out infinite;
}

.connection.is-offline i {
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(207, 141, 132, 0.1);
  animation: none;
}

@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.1); }
}

.share-link {
  position: relative;
  color: var(--muted-strong);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.share-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--line-strong);
  transform-origin: right;
  transform: scaleX(0.35);
  transition: transform 0.3s ease;
}

.share-link:hover::after {
  transform: scaleX(1);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: var(--page);
  min-height: 100svh;
  margin: 0 auto;
  padding: 158px 44px 105px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 30px;
  color: var(--muted-strong);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  animation: rise-in 0.9s 0.1s both var(--ease);
}

.eyebrow-rule {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
}

.on-air {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 3px 7px;
  color: var(--amber-soft);
  border: 1px solid rgba(230, 180, 109, 0.34);
  font-family: var(--latin);
  font-size: 0.56rem;
  letter-spacing: 0.17em;
}

.on-air::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  animation: breathe 2.2s ease-in-out infinite;
}

.hero h1 {
  color: var(--cream-bright);
  font-family: var(--serif);
  font-size: clamp(3.7rem, 6vw, 6.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  animation: rise-in 1.05s 0.2s both var(--ease);
}

.hero h1 .accent {
  position: relative;
  color: var(--amber-soft);
  white-space: nowrap;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -3%;
  bottom: -0.04em;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 180, 109, 0.7) 18%, rgba(230, 180, 109, 0.18) 85%, transparent);
  transform: rotate(-1deg);
}

.hero .lead {
  max-width: 540px;
  margin-top: 30px;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 2.05;
  letter-spacing: 0.02em;
  animation: rise-in 1.05s 0.35s both var(--ease);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  animation: rise-in 1.05s 0.48s both var(--ease);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 58px;
  animation: rise-in 1.05s 0.6s both var(--ease);
}

.hero-stats > div {
  min-width: 86px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.hero-stats dd {
  margin-top: 5px;
  color: var(--cream);
  font-family: var(--latin);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.hero-stats dd small {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.64rem;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- hero art ---------- */

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 610px;
  animation: art-in 1.4s 0.35s both var(--ease);
}

@keyframes art-in {
  from { opacity: 0; transform: scale(0.96) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.moon-glow {
  position: absolute;
  top: 3%;
  right: -6%;
  width: 530px;
  height: 530px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 180, 109, 0.25) 0%, rgba(230, 180, 109, 0.08) 38%, transparent 70%);
  filter: blur(18px);
  animation: moon-breathe 8s ease-in-out infinite;
}

@keyframes moon-breathe {
  0%, 100% { opacity: 0.82; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

.moon {
  position: absolute;
  top: 4%;
  right: 1%;
  width: 330px;
  height: 330px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 37% 32%, #f8e8c9 0%, #f1d5a5 27%, #e2b87d 55%, #c38e50 82%, #a66f38 100%);
  box-shadow:
    inset -30px -26px 65px rgba(91, 53, 20, 0.28),
    inset 16px 14px 45px rgba(255, 246, 223, 0.32),
    0 0 80px rgba(230, 180, 109, 0.18);
}

.moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 64% 68%, transparent 0 23%, rgba(93, 53, 20, 0.12) 24%, transparent 25%);
}

.moon-mark {
  position: absolute;
  border-radius: 50%;
  background: rgba(116, 70, 31, 0.09);
  box-shadow: inset 2px 3px 6px rgba(86, 50, 20, 0.1);
}

.moon-mark-one { width: 66px; height: 42px; top: 28%; left: 20%; transform: rotate(-20deg); }
.moon-mark-two { width: 35px; height: 26px; top: 58%; left: 57%; }
.moon-mark-three { width: 22px; height: 17px; top: 20%; right: 19%; }

.moon-orbit {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(248, 235, 210, 0.12);
  border-radius: 50%;
}

.moon-orbit-dot {
  position: absolute;
  top: 40px;
  right: 42px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff5dd;
  box-shadow: 0 0 12px rgba(255, 245, 221, 0.85);
}

.art-coordinate {
  position: absolute;
  top: 1.5%;
  right: 0;
  color: rgba(241, 232, 216, 0.32);
  font-family: var(--latin);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.art-side-note {
  position: absolute;
  top: 43%;
  right: -19px;
  color: rgba(241, 232, 216, 0.3);
  font-family: var(--serif);
  font-size: 0.68rem;
  line-height: 1.85;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.letter-stack {
  position: absolute;
  left: 1%;
  bottom: 35px;
  z-index: 4;
  width: 330px;
  height: 420px;
}

.stack-card {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 286px;
  height: 372px;
  padding: 26px 24px 22px;
  color: var(--ink);
  background:
    linear-gradient(rgba(112, 82, 48, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 30px;
  border: 1px solid rgba(80, 55, 30, 0.13);
  border-radius: 1px;
  box-shadow: var(--shadow-paper);
  transform-origin: 50% 90%;
  transition: transform 0.65s var(--ease), box-shadow 0.65s var(--ease);
}

.stack-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(80, 55, 30, 0.07);
  pointer-events: none;
}

.stack-card:nth-child(1) {
  z-index: 3;
  transform: rotate(-4.8deg) translate(22px, 0);
}

.stack-card:nth-child(2) {
  z-index: 2;
  transform: rotate(3.2deg) translate(54px, -15px);
  background-color: var(--paper-deep);
}

.stack-card:nth-child(3) {
  z-index: 1;
  transform: rotate(-1.3deg) translate(40px, -31px);
  opacity: 0.72;
}

.hero-art:hover .stack-card:nth-child(1) { transform: rotate(-6.3deg) translate(12px, -7px); }
.hero-art:hover .stack-card:nth-child(2) { transform: rotate(4.6deg) translate(67px, -20px); }

.stack-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(80, 55, 30, 0.2);
}

.stack-top span {
  color: var(--ink-muted);
  font-family: var(--latin);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
}

.stack-mood {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.08em !important;
}

.stack-mood::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mood, var(--amber-deep));
}

.stack-text {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 1.95;
  letter-spacing: 0.015em;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.stack-sign {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.stack-sign::before {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(80, 55, 30, 0.25);
}

.stack-mark {
  position: absolute;
  right: 17px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 44px;
  color: var(--amber-deep);
  border: 1px solid rgba(183, 122, 61, 0.45);
  font-family: var(--serif);
  font-size: 0.98rem;
  transform: rotate(4deg);
}

.stack-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(183, 122, 61, 0.24);
}

.on-air-card {
  position: absolute;
  right: 0;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 226px;
  padding: 15px 18px;
  border: 1px solid rgba(241, 232, 216, 0.18);
  background: rgba(7, 17, 15, 0.7);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}

.wave i {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--amber);
  animation: wave 1.6s ease-in-out infinite;
}

.wave i:nth-child(2) { animation-delay: 0.18s; }
.wave i:nth-child(3) { animation-delay: 0.36s; }
.wave i:nth-child(4) { animation-delay: 0.54s; }
.wave i:nth-child(5) { animation-delay: 0.72s; }

@keyframes wave {
  0%, 100% { height: 7px; opacity: 0.45; }
  50% { height: 25px; opacity: 1; }
}

.on-air-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.on-air-copy small {
  color: var(--amber);
  font-family: var(--latin);
  font-size: 0.51rem;
  letter-spacing: 0.2em;
}

.on-air-copy b {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.scroll-cue {
  position: absolute;
  left: 44px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(241, 232, 216, 0.34);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 30px;
  overflow: hidden;
  background: rgba(241, 232, 216, 0.15);
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 1px;
  height: 50%;
  background: var(--amber);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(241, 232, 216, 0.018);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 16px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  animation: ticker 48s linear infinite;
}

.ticker-track i {
  color: var(--amber);
  font-family: var(--latin);
  font-size: 0.62rem;
  font-style: normal;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.write-section,
.letters-section,
.about-section {
  position: relative;
  padding: 118px 44px;
}

.write-section,
.letters-section {
  max-width: var(--page);
  margin: 0 auto;
}

.write-section {
  border-bottom: 1px solid var(--line);
}

.section-heading {
  position: relative;
  z-index: 2;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-top: 22px;
}

.section-heading-row h2 {
  color: var(--cream-bright);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.2vw, 4.2rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.section-heading-row h2 em {
  color: var(--amber-soft);
  font-style: normal;
}

.section-heading-row > p,
.section-heading-row > div > p {
  max-width: 370px;
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

/* ---------- compose ---------- */

.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(280px, 0.72fr);
  gap: 66px;
  margin-top: 56px;
  align-items: start;
}

.letter-form {
  position: relative;
  color-scheme: light;
  padding: 44px 48px 34px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(116, 87, 51, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 91% 7%, rgba(193, 152, 100, 0.16), transparent 30%);
  background-size: 38px 100%, 100% 100%;
  border: 1px solid rgba(74, 53, 30, 0.15);
  box-shadow: var(--shadow-paper);
  transform: rotate(-0.28deg);
}

.letter-form::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 118px;
  height: 22px;
  background: rgba(218, 200, 171, 0.58);
  border: 1px solid rgba(120, 93, 57, 0.08);
  transform: translateX(-50%) rotate(0.8deg);
  backdrop-filter: blur(3px);
}

.paper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px dashed rgba(71, 51, 29, 0.28);
}

.to-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 5px;
}

.to-line span {
  color: var(--amber-deep);
  font-family: var(--latin);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.to-line b {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.postmark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-top: -14px;
  color: rgba(151, 85, 49, 0.7);
  border: 1px solid rgba(151, 85, 49, 0.34);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.6rem;
  line-height: 1.25;
  letter-spacing: 0.14em;
  transform: rotate(11deg);
}

.postmark::after {
  content: "";
  position: absolute;
  width: 55px;
  height: 55px;
  border: 1px dashed rgba(151, 85, 49, 0.28);
  border-radius: 50%;
}

.mood-field {
  padding: 26px 0 0;
  border: 0;
}

.mood-field legend,
.text-field label {
  display: block;
  margin-bottom: 12px;
  color: rgba(7, 17, 15, 0.55);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.mood-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mood-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  color: rgba(7, 17, 15, 0.64);
  border: 1px solid rgba(7, 17, 15, 0.14);
  border-radius: 40px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.mood-option:hover {
  border-color: rgba(7, 17, 15, 0.32);
  transform: translateY(-1px);
}

.mood-option:has(input:focus-visible) {
  outline: 2px solid rgba(7, 17, 15, 0.72);
  outline-offset: 2px;
}

.mood-option:has(input:checked) {
  color: var(--ink);
  border-color: var(--mood, var(--ink));
  background: color-mix(in srgb, var(--mood, var(--amber)) 12%, transparent);
}

.mood-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mood-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mood, var(--amber));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mood, var(--amber)) 12%, transparent);
}

.mood-option[data-mood="missing"] { --mood: #bf7d44; }
.mood-option[data-mood="joy"] { --mood: #d5a02d; }
.mood-option[data-mood="calm"] { --mood: #5f8e80; }
.mood-option[data-mood="tired"] { --mood: #7b879d; }
.mood-option[data-mood="hope"] { --mood: #c4776f; }
.mood-option[data-mood="secret"] { --mood: #8b7fa4; }

.text-field {
  margin-top: 24px;
}

.text-field textarea {
  display: block;
  width: 100%;
  min-height: 178px;
  padding: 6px 0 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(7, 17, 15, 0.18);
  border-radius: 0;
  outline: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.95;
  letter-spacing: 0.015em;
  resize: vertical;
}

.text-field textarea::placeholder {
  color: rgba(7, 17, 15, 0.28);
  font-size: 1.1rem;
}

.text-field textarea:focus {
  border-bottom-color: rgba(7, 17, 15, 0.55);
}

.count-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 9px;
  color: rgba(7, 17, 15, 0.38);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.count-row span:first-child {
  font-family: var(--latin);
  font-variant-numeric: tabular-nums;
}

.count-row span.is-near {
  color: #a15d37;
}

.paper-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
}

.nickname-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(7, 17, 15, 0.18);
}

.nickname-field span {
  flex: 0 0 auto;
  color: rgba(7, 17, 15, 0.48);
  font-size: 0.67rem;
  letter-spacing: 0.09em;
}

.nickname-field input {
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.nickname-field input::placeholder {
  color: rgba(7, 17, 15, 0.28);
}

.submit-letter {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 186px;
  min-height: 54px;
  padding: 0 20px 0 24px;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 1px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}

.submit-letter:hover {
  color: var(--ink);
  background: transparent;
  transform: translateY(-2px);
}

.submit-letter:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.submit-icon {
  font-family: var(--latin);
  font-size: 1.24rem;
  transition: transform 0.35s var(--ease);
}

.submit-letter:hover .submit-icon {
  transform: translateX(4px);
}

.submit-letter.is-sending .submit-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.safety-note {
  margin-top: 22px;
  color: rgba(7, 17, 15, 0.34);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
}

.compose-aside {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 14px;
}

.prompt-card {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px dashed rgba(230, 180, 109, 0.34);
  background: rgba(241, 232, 216, 0.025);
}

.prompt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--amber);
  font-family: var(--latin);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
}

.prompt-label span {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.prompt-card blockquote {
  max-width: 290px;
  margin-top: 25px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.82rem);
  line-height: 1.72;
  letter-spacing: 0.01em;
}

.prompt-seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 24px;
  margin-left: auto;
  color: rgba(230, 180, 109, 0.75);
  border: 1px solid rgba(230, 180, 109, 0.32);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
}

.post-rules {
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.rules-label {
  color: var(--muted);
  font-family: var(--latin);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
}

.post-rules ol {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.post-rules li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.post-rules li > span {
  padding-top: 2px;
  color: var(--amber);
  font-family: var(--latin);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.post-rules li p {
  color: var(--muted-strong);
  font-size: 0.73rem;
  line-height: 1.8;
}

.aside-note {
  margin-top: 3px;
  color: rgba(241, 232, 216, 0.34);
  font-family: var(--serif);
  font-size: 0.83rem;
  line-height: 1.9;
  letter-spacing: 0.05em;
}

/* ---------- letters ---------- */

.letters-section {
  padding-top: 112px;
}

.letters-heading .section-heading-row {
  align-items: flex-end;
}

.feed-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.feed-summary b {
  color: var(--cream);
  font-family: var(--latin);
  font-size: 1.02rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.summary-divider {
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-scroll {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 3px;
  width: max-content;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 30px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.filter i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mood);
  opacity: 0.8;
}

.filter:hover {
  color: var(--cream);
}

.filter.is-active {
  color: var(--cream);
  background: rgba(241, 232, 216, 0.08);
  border-color: var(--line);
}

[data-mood-dot="missing"] { --mood: #cf9560; }
[data-mood-dot="joy"] { --mood: #e1b04c; }
[data-mood-dot="calm"] { --mood: #79a596; }
[data-mood-dot="tired"] { --mood: #8b99b2; }
[data-mood-dot="hope"] { --mood: #d08b82; }
[data-mood-dot="secret"] { --mood: #a496bb; }

.sort-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 30px;
}

.sort {
  padding: 5px 12px;
  color: var(--muted);
  border-radius: 20px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  transition: color 0.25s ease, background 0.25s ease;
}

.sort.is-active {
  color: var(--ink);
  background: var(--cream);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
  align-items: start;
}

.letter-card {
  --mood: #bf7d44;
  --tilt: 0deg;
  --paper: #f3ebdd;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px 25px 18px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(91, 68, 42, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 92% 3%, rgba(199, 159, 108, 0.12), transparent 27%);
  background-size: 100% 28px, 100% 100%;
  border: 1px solid rgba(74, 53, 30, 0.13);
  border-radius: 1px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
  transform: rotate(var(--tilt));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  animation: card-in 0.65s both var(--ease);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) rotate(var(--tilt)); }
  to { opacity: 1; transform: translateY(0) rotate(var(--tilt)); }
}

.letter-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(74, 53, 30, 0.06);
  pointer-events: none;
}

.letter-card:nth-child(3n + 1) { --tilt: -0.55deg; }
.letter-card:nth-child(3n + 2) { --tilt: 0.38deg; }
.letter-card:nth-child(3n) { --tilt: -0.18deg; }

.letter-card:hover {
  z-index: 2;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.27);
  transform: rotate(0) translateY(-4px);
}

.letter-card[data-mood="missing"] { --mood: #bf7d44; --paper: #f4ebdc; }
.letter-card[data-mood="joy"] { --mood: #d3a035; --paper: #f6eedb; }
.letter-card[data-mood="calm"] { --mood: #5f8e80; --paper: #eef0e3; }
.letter-card[data-mood="tired"] { --mood: #7b879d; --paper: #ece9e1; }
.letter-card[data-mood="hope"] { --mood: #c4776f; --paper: #f5e9e1; }
.letter-card[data-mood="secret"] { --mood: #8b7fa4; --paper: #f0ebec; }

.letter-card.is-new {
  animation: new-letter 1.4s var(--ease);
}

@keyframes new-letter {
  0% { box-shadow: 0 0 0 1px var(--amber), 0 0 0 8px rgba(230, 180, 109, 0.12), 0 16px 35px rgba(0, 0, 0, 0.16); }
  100% { box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16); }
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(71, 51, 29, 0.22);
}

.mood-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(7, 17, 15, 0.66);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.mood-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mood);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mood) 13%, transparent);
}

.card-time {
  color: rgba(7, 17, 15, 0.36);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.letter-text {
  margin: 24px 0 22px;
  color: #17201c;
  font-family: var(--serif);
  font-size: 1.13rem;
  line-height: 1.98;
  letter-spacing: 0.012em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.card-signature {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 4px;
  color: rgba(7, 17, 15, 0.52);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.card-signature::before {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(7, 17, 15, 0.24);
}

.mine-badge {
  margin-left: 4px;
  padding: 1px 5px;
  color: var(--mood);
  border: 1px solid color-mix(in srgb, var(--mood) 38%, transparent);
  border-radius: 20px;
  font-size: 0.53rem;
}

.card-stamp {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 38px;
  margin-left: auto;
  color: color-mix(in srgb, var(--mood) 76%, #4a321d);
  border: 1px solid color-mix(in srgb, var(--mood) 46%, transparent);
  font-family: var(--serif);
  font-size: 0.84rem;
  line-height: 1;
  transform: rotate(4deg);
}

.card-stamp::before {
  content: "";
  position: absolute;
  width: 25px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--mood) 22%, transparent);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px dashed rgba(71, 51, 29, 0.2);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 3px 7px;
  color: rgba(7, 17, 15, 0.48);
  border-radius: 20px;
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  transition: color 0.22s ease, background 0.22s ease;
}

.card-action:hover {
  color: var(--ink);
  background: rgba(7, 17, 15, 0.055);
}

.card-action svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.card-action.like.is-liked {
  color: #a75f4d;
}

.card-action.like.is-liked svg {
  fill: currentColor;
}

.card-action.like.is-burst svg {
  animation: heart-pop 0.55s var(--ease);
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.45) rotate(-8deg); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.card-action.reply-toggle span {
  text-decoration: underline;
  text-decoration-color: rgba(7, 17, 15, 0.2);
  text-underline-offset: 3px;
}

.reply-thread {
  margin: 0 -8px -4px;
  padding: 14px 8px 4px;
  border-top: 1px solid rgba(71, 51, 29, 0.08);
}

.reply-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 14px;
}

.reply-item {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.reply-avatar {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: rgba(7, 17, 15, 0.62);
  border: 1px solid rgba(7, 17, 15, 0.15);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.53rem;
}

.reply-body b {
  display: inline;
  color: rgba(7, 17, 15, 0.66);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.reply-body time {
  margin-left: 7px;
  color: rgba(7, 17, 15, 0.3);
  font-size: 0.55rem;
}

.reply-body p {
  margin-top: 2px;
  color: rgba(7, 17, 15, 0.7);
  font-family: var(--serif);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reply-form {
  display: flex;
  align-items: center;
  gap: 7px;
}

.reply-form input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.23);
  border: 1px solid rgba(7, 17, 15, 0.12);
  border-radius: 1px;
  outline: 0;
  font-family: var(--serif);
  font-size: 0.76rem;
}

.reply-form input::placeholder {
  color: rgba(7, 17, 15, 0.33);
}

.reply-form input:focus {
  border-color: rgba(7, 17, 15, 0.38);
  background: rgba(255, 255, 255, 0.38);
}

.reply-form button {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 1px;
  font-size: 0.61rem;
  letter-spacing: 0.05em;
}

.reply-form button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.reply-hint {
  margin-top: 7px;
  color: rgba(7, 17, 15, 0.3);
  font-size: 0.54rem;
  letter-spacing: 0.02em;
}

.feed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  margin-top: 34px;
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
}

.empty-mark {
  color: var(--amber);
  font-size: 1.4rem;
}

.feed-empty h3 {
  margin-top: 15px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.feed-empty p {
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 0.78rem;
}

.feed-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.feed-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.feed-more:hover {
  color: var(--cream);
  border-color: var(--amber);
}

/* ---------- about ---------- */

.about-section {
  overflow: hidden;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 84% 16%, rgba(183, 122, 61, 0.17), transparent 28%),
    linear-gradient(rgba(104, 81, 49, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 34px;
  border-top: 1px solid rgba(241, 232, 216, 0.2);
}

.about-section::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -180px;
  width: 670px;
  height: 670px;
  border: 1px solid rgba(77, 58, 34, 0.12);
  border-radius: 50%;
}

.about-section::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  border: 1px dashed rgba(77, 58, 34, 0.1);
  border-radius: 50%;
  animation: orbit-spin 70s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.about-inner {
  position: relative;
  z-index: 2;
  max-width: var(--page);
  margin: 0 auto;
}

.about-inner h2 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.about-inner h2 em {
  color: var(--amber-deep);
  font-style: normal;
}

.about-lead {
  max-width: 620px;
  margin-top: 25px;
  color: rgba(7, 17, 15, 0.66);
  font-size: 0.95rem;
  line-height: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

.about-grid article {
  padding: 29px 34px 34px 0;
}

.about-grid article + article {
  padding-left: 34px;
  border-left: 1px solid var(--ink-line);
}

.about-grid article > span {
  color: var(--amber-deep);
  font-family: var(--latin);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.about-grid h3 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-grid p {
  max-width: 280px;
  margin-top: 10px;
  color: rgba(7, 17, 15, 0.58);
  font-size: 0.78rem;
  line-height: 1.9;
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 36px;
}

.about-cta p {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.about-cta .button {
  flex: 0 0 auto;
}

/* ---------- footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 25px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 46px 44px 34px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.03em;
}

.footer-hours {
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-align: center;
}

.footer-hours span {
  padding: 0 6px;
  color: var(--amber);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted-strong);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
}

.footer-links a,
.footer-links button {
  padding: 2px 0;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--amber-soft);
  border-color: var(--amber);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 24px;
  color: rgba(241, 232, 216, 0.26);
  border-top: 1px solid rgba(241, 232, 216, 0.07);
  font-family: var(--latin);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  text-align: center;
}

/* ---------- dialog ---------- */

.modal {
  width: min(650px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(2, 7, 6, 0.82);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
}

.modal[open] {
  animation: modal-in 0.42s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-shell {
  position: relative;
  color-scheme: light;
  max-height: calc(100svh - 40px);
  padding: 46px 48px 40px;
  overflow-y: auto;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(95, 69, 39, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 90% 4%, rgba(193, 152, 100, 0.17), transparent 30%);
  background-size: 100% 30px, 100% 100%;
  border: 1px solid rgba(74, 53, 30, 0.18);
  border-radius: 1px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(7, 17, 15, 0.2) transparent;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgba(7, 17, 15, 0.48);
  border: 1px solid rgba(7, 17, 15, 0.14);
  border-radius: 50%;
  font-family: var(--latin);
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: var(--cream);
  background: var(--ink);
}

.modal-kicker {
  color: var(--amber-deep);
  font-family: var(--latin);
  font-size: 0.59rem;
  letter-spacing: 0.21em;
}

.modal-kicker span {
  padding: 0 5px;
  color: rgba(7, 17, 15, 0.3);
}

.random-content {
  min-height: 290px;
  margin-top: 32px;
}

.random-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  gap: 17px;
  color: var(--ink-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.loading-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(7, 17, 15, 0.14);
  border-top-color: var(--amber-deep);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.random-letter .mood-tag {
  color: rgba(7, 17, 15, 0.62);
}

.random-letter .r-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(71, 51, 29, 0.25);
}

.random-letter .r-time {
  color: rgba(7, 17, 15, 0.36);
  font-size: 0.62rem;
}

.random-letter blockquote {
  position: relative;
  margin: 34px 0 32px;
  padding-left: 24px;
  color: #14201b;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.85;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
}

.random-letter blockquote::before {
  content: "“";
  position: absolute;
  top: -25px;
  left: -8px;
  color: rgba(183, 122, 61, 0.22);
  font-family: var(--latin);
  font-size: 5.2rem;
  line-height: 1;
}

.random-letter .r-sign {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(7, 17, 15, 0.5);
  font-size: 0.73rem;
  letter-spacing: 0.07em;
}

.random-letter .r-sign::before {
  content: "";
  width: 27px;
  height: 1px;
  background: rgba(7, 17, 15, 0.24);
}

.random-letter .r-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px dashed rgba(71, 51, 29, 0.24);
}

.random-letter .r-stats {
  color: rgba(7, 17, 15, 0.45);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

.random-letter .r-stats b {
  color: var(--ink);
  font-family: var(--latin);
  font-weight: 400;
}

.r-link {
  padding-bottom: 2px;
  color: rgba(7, 17, 15, 0.6);
  border-bottom: 1px solid rgba(7, 17, 15, 0.25);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

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

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 30px;
}

.modal-actions .button {
  min-height: 48px;
  padding: 0 24px;
  font-size: 0.78rem;
}

.share-shell h2 {
  margin-top: 25px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.share-copy {
  max-width: 460px;
  margin-top: 18px;
  color: rgba(7, 17, 15, 0.58);
  font-size: 0.78rem;
  line-height: 1.9;
}

.share-url-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 27px;
  border: 1px solid rgba(7, 17, 15, 0.2);
}

.share-url-box input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.26);
  border: 0;
  outline: 0;
  font-family: var(--latin);
  font-size: 0.75rem;
}

.share-url-box button {
  flex: 0 0 auto;
  min-width: 73px;
  color: var(--cream);
  background: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  transition: background 0.2s ease;
}

.share-url-box button:hover {
  background: #1d332b;
}

.share-hint {
  margin-top: 11px;
  color: rgba(7, 17, 15, 0.36);
  font-size: 0.61rem;
  line-height: 1.7;
}

.share-hint.is-warning {
  color: #9a5736;
}

.share-native {
  width: 100%;
  margin-top: 25px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  top: auto;
  right: auto;
  left: 50%;
  bottom: 28px;
  margin: 0;
  z-index: 120;
  max-width: calc(100vw - 40px);
  padding: 12px 19px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.32);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

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

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .site-header {
    padding: 0 30px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
    padding-left: 30px;
    padding-right: 30px;
  }

  .moon {
    width: 285px;
    height: 285px;
  }

  .moon-glow {
    width: 450px;
    height: 450px;
  }

  .letter-stack {
    transform: scale(0.92);
    transform-origin: left bottom;
  }

  .on-air-card {
    min-width: 205px;
  }

  .write-section,
  .letters-section,
  .about-section {
    padding-left: 30px;
    padding-right: 30px;
  }

  .site-footer {
    padding-left: 30px;
    padding-right: 30px;
  }

  .compose-grid {
    gap: 44px;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 145px;
    padding-bottom: 92px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 8vw, 5.6rem);
  }

  .hero-art {
    width: min(100%, 610px);
    min-height: 500px;
    margin: 34px auto 0;
  }

  .moon {
    top: 2%;
    right: 7%;
    width: 300px;
    height: 300px;
  }

  .moon-glow {
    top: 0;
    right: 1%;
    width: 470px;
    height: 470px;
  }

  .letter-stack {
    left: 7%;
    bottom: 20px;
    transform: scale(0.96);
    transform-origin: left bottom;
  }

  .on-air-card {
    right: 5%;
    bottom: 6px;
  }

  .art-side-note {
    right: 0;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading-row,
  .letters-heading .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .section-heading-row > p,
  .section-heading-row > div > p {
    max-width: 500px;
  }

  .compose-grid {
    grid-template-columns: 1fr;
  }

  .compose-aside {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    padding-top: 0;
  }

  .aside-note {
    display: none;
  }

  .prompt-card {
    min-height: 100%;
  }

  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .footer-hours {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .footer-meta {
    grid-row: 3;
  }

  .about-grid article {
    padding-right: 22px;
  }

  .about-grid article + article {
    padding-left: 22px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }

  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .site-header.is-scrolled {
    height: 64px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.92rem;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy span {
    font-size: 0.5rem;
  }

  .connection {
    display: none;
  }

  .header-right {
    gap: 15px;
  }

  .share-link {
    font-size: 0.7rem;
  }

  .button-small {
    min-height: 35px;
    padding: 0 13px;
    font-size: 0.68rem;
  }

  .hero {
    padding: 116px 20px 66px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 0.62rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12.5vw, 4.2rem);
    line-height: 1.18;
  }

  .hero .lead {
    margin-top: 23px;
    font-size: 0.88rem;
    line-height: 1.95;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 31px;
  }

  .button {
    min-height: 51px;
    padding: 0 23px;
    font-size: 0.82rem;
  }

  .hero-stats {
    gap: 0;
    justify-content: space-between;
    margin-top: 42px;
  }

  .hero-stats > div {
    min-width: 0;
    padding-left: 12px;
  }

  .hero-stats dt {
    font-size: 0.58rem;
  }

  .hero-stats dd {
    font-size: 1.55rem;
  }

  .hero-art {
    min-height: 380px;
    margin-top: 23px;
  }

  .moon {
    top: 5%;
    right: 3%;
    width: 215px;
    height: 215px;
  }

  .moon-glow {
    top: 0;
    right: -4%;
    width: 330px;
    height: 330px;
  }

  .moon-mark-one { width: 44px; height: 28px; }
  .moon-mark-two { width: 22px; height: 17px; }

  .art-coordinate {
    display: none;
  }

  .art-side-note {
    display: none;
  }

  .letter-stack {
    left: 1%;
    bottom: -4px;
    transform: scale(0.78);
    transform-origin: left bottom;
  }

  .on-air-card {
    right: 0;
    bottom: -7px;
    min-width: 188px;
    padding: 12px 13px;
  }

  .on-air-copy b {
    font-size: 0.76rem;
  }

  .wave {
    transform: scale(0.85);
  }

  .write-section,
  .letters-section,
  .about-section {
    padding: 76px 20px;
  }

  .section-heading-row {
    margin-top: 17px;
  }

  .section-heading-row h2 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .section-heading-row > p,
  .section-heading-row > div > p {
    font-size: 0.76rem;
  }

  .compose-grid {
    margin-top: 36px;
  }

  .letter-form {
    padding: 31px 23px 27px;
  }

  .paper-head {
    padding-bottom: 18px;
  }

  .to-line {
    gap: 9px;
  }

  .to-line b {
    font-size: 0.9rem;
  }

  .postmark {
    width: 55px;
    height: 55px;
    font-size: 0.52rem;
  }

  .postmark::after {
    width: 44px;
    height: 44px;
  }

  .mood-field {
    padding-top: 21px;
  }

  .mood-options {
    gap: 6px;
  }

  .mood-option {
    padding: 6px 9px;
    font-size: 0.67rem;
  }

  .text-field textarea {
    min-height: 164px;
    font-size: 1.12rem;
  }

  .text-field textarea::placeholder {
    font-size: 0.97rem;
  }

  .paper-foot {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .nickname-field {
    max-width: none;
  }

  .submit-letter {
    width: 100%;
  }

  .safety-note {
    margin-top: 17px;
    font-size: 0.55rem;
  }

  .compose-aside {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .prompt-card {
    padding: 25px 23px;
  }

  .prompt-card blockquote {
    max-width: 280px;
    font-size: 1.42rem;
  }

  .post-rules {
    padding-top: 21px;
  }

  .post-rules ol {
    gap: 14px;
  }

  .letters-section {
    padding-top: 74px;
  }

  .letters-heading .section-heading-row {
    gap: 16px;
  }

  .feed-summary {
    padding-bottom: 0;
    font-size: 0.65rem;
  }

  .feed-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    padding: 11px 0 13px;
  }

  .filter-scroll {
    width: 100%;
    margin-right: 0;
    overflow: visible;
  }

  .filter-group {
    flex-wrap: wrap;
    width: auto;
    padding-right: 0;
    gap: 6px;
  }

  .filter {
    padding: 7px 10px;
  }

  .sort-group {
    align-self: flex-end;
  }

  .feed-grid {
    grid-template-columns: 1fr;
    gap: 19px;
    margin-top: 24px;
  }

  .letter-card {
    min-height: 0;
    padding: 23px 21px 16px;
    transform: none;
  }

  .letter-card:hover {
    transform: translateY(-2px);
  }

  .letter-text {
    margin: 20px 0 18px;
    font-size: 1.04rem;
    line-height: 1.9;
  }

  .about-section {
    padding-top: 76px;
    padding-bottom: 70px;
  }

  .about-inner h2 {
    margin-top: 18px;
    font-size: clamp(1.95rem, 9.6vw, 3rem);
    text-wrap: balance;
  }

  .about-lead {
    margin-top: 19px;
    font-size: 0.85rem;
    line-height: 1.95;
  }

  .about-grid {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .about-grid article,
  .about-grid article + article {
    padding: 23px 0 25px;
    border-left: 0;
  }

  .about-grid article + article {
    border-top: 1px solid var(--ink-line);
  }

  .about-grid h3 {
    margin-top: 14px;
    font-size: 1.25rem;
  }

  .about-grid p {
    max-width: none;
    font-size: 0.75rem;
  }

  .about-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding-top: 28px;
  }

  .about-cta p {
    font-size: 1.02rem;
  }

  .about-cta .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 35px 20px 26px;
  }

  .footer-hours {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
    font-size: 0.58rem;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-meta {
    grid-column: auto;
    grid-row: auto;
    padding-top: 19px;
    text-align: left;
    line-height: 1.7;
  }

  .modal {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
  }

  .modal-shell {
    max-height: calc(100svh - 24px);
    padding: 40px 23px 29px;
  }

  .modal-close {
    top: 10px;
    right: 11px;
  }

  .random-content {
    min-height: 250px;
    margin-top: 25px;
  }

  .random-letter blockquote {
    margin: 28px 0 25px;
    padding-left: 19px;
    font-size: 1.3rem;
    line-height: 1.8;
  }

  .random-letter .r-foot {
    margin-top: 25px;
  }

  .modal-actions {
    gap: 15px;
    margin-top: 24px;
  }

  .modal-actions .button {
    padding: 0 18px;
    font-size: 0.72rem;
  }

  .share-shell h2 {
    font-size: 2rem;
  }

  .share-url-box input {
    font-size: 0.66rem;
  }

  .toast {
    bottom: 18px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2.25rem, 11.6vw, 2.62rem);
  }

  .hero-stats > div {
    padding-left: 9px;
  }

  .hero-stats dt {
    letter-spacing: 0.05em;
  }

  .hero-art {
    min-height: 330px;
  }

  .moon {
    width: 182px;
    height: 182px;
  }

  .moon-glow {
    width: 285px;
    height: 285px;
  }

  .letter-stack {
    transform: scale(0.65);
  }

  .on-air-card {
    right: 0;
    bottom: 1px;
    min-width: 174px;
  }

  .on-air-copy small {
    font-size: 0.45rem;
  }

  .on-air-copy b {
    font-size: 0.68rem;
  }

  .on-air-card .wave {
    display: none;
  }

  .postmark {
    width: 49px;
    height: 49px;
  }

  .postmark::after {
    width: 39px;
    height: 39px;
  }

  .to-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .card-foot {
    align-items: flex-end;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 9px;
  }

  .modal-actions .button {
    width: 100%;
  }

  .modal-actions .text-button {
    align-self: center;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}

/* subtle no-JS fallback */
.no-js .feed-empty {
  display: none;
}

/* ---------- dynamic states ---------- */

.skeleton-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-height: 290px;
  padding: 27px 25px;
  border: 1px solid rgba(241, 232, 216, 0.08);
  background: rgba(241, 232, 216, 0.025);
  animation: skeleton-pulse 1.7s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 9px;
  background: rgba(241, 232, 216, 0.09);
}

.skeleton-line.short { width: 38%; height: 7px; }
.skeleton-line.medium { width: 74%; }
.skeleton-line.tiny { width: 51%; margin-top: auto; }

.feed-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
}

.feed-error h3 {
  margin-top: 14px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.feed-error p {
  max-width: 430px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.reply-empty {
  padding: 2px 0 11px;
  color: rgba(7, 17, 15, 0.34);
  font-family: var(--serif);
  font-size: 0.73rem;
  line-height: 1.7;
}

.card-posted {
  color: rgba(7, 17, 15, 0.3);
  font-family: var(--latin);
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.random-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}

.random-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  color: rgba(7, 17, 15, 0.48);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.random-like svg {
  width: 14px;
  height: 14px;
}

.random-like b {
  color: var(--ink);
  font-family: var(--latin);
  font-weight: 400;
}

.random-like:hover,
.random-like.is-liked {
  color: #a75f4d;
}

.random-like.is-liked svg {
  fill: currentColor;
}

.random-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  text-align: center;
}

.random-error h3 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.random-error p {
  max-width: 350px;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.random-content {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (max-width: 760px) {
  .card-posted {
    display: none;
  }

  .random-actions {
    gap: 12px;
  }
}