/* =========================================================
   日之背面 · The Far Side of the Sun
   An editorial design system built around ink, ember and shadow.
   ========================================================= */

:root {
  --bg: #0b0a09;
  --bg-deep: #080706;
  --panel: #12100d;
  --panel-2: #17130f;
  --ink: #eee6d8;
  --ink-soft: #cec3b2;
  --muted: #8e8475;
  --faint: #625b51;
  --line: rgba(238, 230, 216, 0.13);
  --line-strong: rgba(238, 230, 216, 0.25);
  --accent: #e09a4c;
  --accent-light: #f2c78e;
  --accent-deep: #a84b24;
  --danger: #d76f58;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1440px;
  --pad: clamp(22px, 4vw, 64px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 760px at 88% -12%, rgba(171, 78, 37, 0.16), transparent 62%),
    radial-gradient(900px 680px at -10% 40%, rgba(105, 79, 52, 0.07), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #1a0f08;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #38312a;
  border: 3px solid var(--bg-deep);
  border-radius: 8px;
}

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

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

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

img,
svg {
  display: block;
}

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

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 74vh;
  padding-top: 86px;
  outline: none;
}

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

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 150;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reading-progress.is-active {
  opacity: 1;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* --------------------------------------------------------- type helpers */

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow .tick {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(224, 154, 76, 0.6);
  vertical-align: 1px;
}

.serif {
  font-family: var(--serif);
}

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

.accent {
  color: var(--accent);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.35s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #1b0f07;
  font-weight: 600;
}

.btn-primary:hover {
  border-color: var(--accent-light);
  background: var(--accent-light);
}

.btn-ghost:hover {
  border-color: rgba(224, 154, 76, 0.7);
  color: var(--accent-light);
}

.btn-quiet {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.btn-quiet:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.btn-danger {
  color: #e68b77;
  border-color: rgba(215, 111, 88, 0.35);
}

.btn-danger:hover {
  border-color: var(--danger);
  background: rgba(215, 111, 88, 0.08);
}

.btn[disabled] {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.text-link span {
  transition: transform 0.35s var(--ease);
}

.text-link:hover {
  color: var(--accent);
}

.text-link:hover span {
  transform: translateX(4px);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(11, 10, 9, 0.94), rgba(11, 10, 9, 0.7));
  backdrop-filter: blur(18px) saturate(1.2);
  transition:
    border-color 0.35s ease,
    background 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 10, 9, 0.92);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  height: 86px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  position: relative;
  display: block;
  flex: none;
  width: 35px;
  height: 35px;
  overflow: hidden;
  border: 1px solid rgba(238, 230, 216, 0.22);
  border-radius: 50%;
  transition: transform 0.7s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(20deg);
}

.brand-sun {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 30%, #ffd7a0, #e29448 38%, #a64421 78%, #5a1c0d);
  box-shadow: 0 0 18px rgba(224, 154, 76, 0.35);
}

.brand-shadow {
  position: absolute;
  top: -4px;
  left: 13px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: -5px 0 11px rgba(0, 0, 0, 0.55);
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-type strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-type em {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
  font-style: normal;
  letter-spacing: 0.2em;
  line-height: 1.2;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: color 0.3s ease;
}

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

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  right: 0;
  left: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.write-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.write-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
}

.write-link:hover {
  border-color: rgba(224, 154, 76, 0.5);
  background: rgba(224, 154, 76, 0.06);
  color: var(--accent-light);
}

.login-link {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
}

.login-link:hover {
  color: var(--accent);
}

.auth-slot {
  display: flex;
  align-items: center;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 8px 0 4px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.05em;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(224, 154, 76, 0.4);
  border-radius: 50%;
  background: linear-gradient(145deg, #3a2519, #1a120d);
  color: var(--accent-light);
  font-family: var(--serif);
  font-size: 13px;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  background: #14110d;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.user-menu-panel.is-open {
  display: block;
  animation: menu-in 0.25s var(--ease);
}

.user-menu-head {
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.user-menu-head strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.user-menu-head span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.user-menu-panel a,
.user-menu-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: left;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-light);
}

.user-menu-panel .tiny-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}

body.nav-open .menu-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  overflow: auto;
  background:
    radial-gradient(700px 500px at 90% 0%, rgba(171, 78, 37, 0.15), transparent 60%),
    var(--bg);
  opacity: 0;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 130px var(--pad) 50px;
}

.mobile-nav-label {
  margin-bottom: 30px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
}

.mobile-nav-label span {
  color: var(--accent);
}

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

.mobile-nav nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.2;
}

.mobile-nav nav a em {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
}

.mobile-nav nav a:hover span {
  color: var(--accent);
}

.mobile-auth {
  margin-top: 32px;
}

.mobile-auth .text-button {
  display: inline-flex;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.mobile-auth .user-menu {
  width: 100%;
}

.mobile-auth .user-menu-trigger {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 0;
}

.mobile-auth .user-menu-panel {
  position: static;
  width: 100%;
  margin-top: 8px;
}

.mobile-nav-foot {
  margin: auto 0 0;
  padding-top: 50px;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: 100%;
  max-width: var(--max);
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 86px) var(--pad) clamp(58px, 7vw, 100px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-eyebrow .vol {
  padding: 4px 8px;
  border: 1px solid rgba(224, 154, 76, 0.35);
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.hero-eyebrow .muted {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(44px, 6.1vw, 92px);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.1;
}

.hero h1 .line {
  display: block;
}

.hero h1 .line + .line {
  margin-top: 2px;
}

.hero h1 .accent-line {
  position: relative;
  color: var(--accent);
}

.hero h1 .accent-line::after {
  position: absolute;
  right: 2%;
  bottom: -0.09em;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 154, 76, 0.7), transparent 82%);
  content: "";
}

.hero-intro {
  max-width: 480px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 2;
}

.hero-intro em {
  color: var(--ink);
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  gap: clamp(26px, 4vw, 54px);
  max-width: 540px;
  margin-top: clamp(38px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.hero-meta dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 49vw, 650px);
}

.hero-art {
  position: relative;
  width: min(100%, 610px);
  aspect-ratio: 1 / 1.04;
}

.art-index {
  position: absolute;
  top: 2%;
  right: 3%;
  color: rgba(238, 230, 216, 0.035);
  font-family: var(--serif);
  font-size: clamp(100px, 14vw, 190px);
  font-style: italic;
  line-height: 0.8;
  pointer-events: none;
}

.art-halo {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(205, 100, 44, 0.22) 0%,
    rgba(147, 62, 28, 0.1) 38%,
    transparent 68%
  );
  filter: blur(25px);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(238, 230, 216, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(224, 154, 76, 0.65);
  content: "";
}

.orbit-a {
  inset: 3% 5%;
  transform: rotate(-23deg) scaleY(0.47);
  animation: orbit-a 90s linear infinite;
}

.orbit-b {
  inset: 11% -1%;
  transform: rotate(61deg) scaleY(0.37);
  border-color: rgba(238, 230, 216, 0.08);
}

.orbit-c {
  inset: 17% 14%;
  border-style: dashed;
  border-color: rgba(224, 154, 76, 0.14);
  transform: rotate(10deg) scaleY(0.83);
}

.eclipse-wrap {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 0 42px rgba(198, 91, 38, 0.22));
}

.eclipse {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 29%,
    #ffe1af 0%,
    #f1ae60 16%,
    #d67a35 39%,
    #9c3e1c 66%,
    #4c160b 84%,
    #1c0805 100%
  );
  box-shadow:
    inset -28px -34px 70px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(205, 100, 44, 0.15);
}

.eclipse::before {
  position: absolute;
  top: -7%;
  left: 29%;
  width: 106%;
  height: 112%;
  border-radius: 50%;
  background: #0b0a09;
  box-shadow: -18px 0 38px rgba(0, 0, 0, 0.65);
  content: "";
}

.eclipse::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 211, 161, 0.18);
  border-radius: 50%;
  content: "";
}

.eclipse-grid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(to right, transparent 49.8%, rgba(255, 255, 255, 0.08) 50%, transparent 50.2%),
    linear-gradient(to bottom, transparent 49.8%, rgba(255, 255, 255, 0.08) 50%, transparent 50.2%);
  mix-blend-mode: screen;
}

.eclipse-scan {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 5px,
    rgba(0, 0, 0, 0.08) 6px
  );
  opacity: 0.35;
}

.art-crosshair {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.art-crosshair::before,
.art-crosshair::after {
  position: absolute;
  background: var(--muted);
  content: "";
}

.art-crosshair::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.art-crosshair::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.crosshair-1 {
  top: 9%;
  left: 4%;
}

.crosshair-2 {
  right: 3%;
  bottom: 14%;
}

.art-note {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 150px;
  padding-left: 14px;
  border-left: 1px solid rgba(224, 154, 76, 0.55);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1.9;
  text-transform: uppercase;
}

.art-note strong {
  display: block;
  color: var(--accent-light);
  font-weight: 500;
  letter-spacing: 0.22em;
}

.art-caption {
  position: absolute;
  right: 0;
  bottom: 3%;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-align: right;
}

.art-vertical {
  position: absolute;
  top: 20%;
  right: -2%;
  color: rgba(238, 230, 216, 0.25);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.5;
  box-shadow: 0 0 7px rgba(238, 230, 216, 0.5);
  animation: twinkle 4s ease-in-out infinite alternate;
}

.star-1 {
  top: 21%;
  left: 81%;
}

.star-2 {
  top: 69%;
  left: 91%;
  animation-delay: 1.5s;
}

.star-3 {
  top: 12%;
  left: 45%;
  width: 1px;
  height: 1px;
  animation-delay: 2.2s;
}

.star-4 {
  top: 82%;
  left: 28%;
  animation-delay: 0.8s;
}

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

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
  padding: 12px 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker-item::after {
  color: var(--accent);
  font-size: 8px;
  content: "✦";
}

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

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

.section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(62px, 8vw, 112px) var(--pad) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head-left {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 26px);
}

.section-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.section-head .section-en {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head-right {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 3px;
}

.section-count {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

/* ------------------------------------------------------------- post cards */

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.post-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.005));
  transition:
    transform 0.55s var(--ease),
    border-color 0.4s ease,
    background 0.4s ease;
}

.post-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  content: "";
  opacity: 0;
  transition: opacity 0.4s ease;
}

.post-card:hover {
  border-color: rgba(224, 154, 76, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  transform: translateY(-6px);
}

.post-card:hover::after {
  opacity: 0.65;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-cover {
  position: relative;
  aspect-ratio: 1.62;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #19130f;
}

.card-cover::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 230, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 230, 216, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
  opacity: 0.5;
}

.cover-glow {
  position: absolute;
  top: -35%;
  right: -5%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.75;
  filter: blur(2px);
}

.cover-ring {
  position: absolute;
  top: 22%;
  right: 10%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(238, 230, 216, 0.16);
  border-radius: 50%;
}

.cover-ring::after {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.cover-glyph {
  position: absolute;
  right: 7%;
  bottom: -0.2em;
  color: rgba(238, 230, 216, 0.075);
  font-family: var(--serif);
  font-size: clamp(100px, 11vw, 160px);
  line-height: 1;
  transition: transform 0.8s var(--ease);
}

.post-card:hover .cover-glyph {
  transform: translateY(-6px) rotate(-2deg);
}

.cover-index {
  position: absolute;
  top: 16px;
  left: 18px;
  color: rgba(238, 230, 216, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.cover-word {
  position: absolute;
  bottom: 15px;
  left: 18px;
  color: rgba(238, 230, 216, 0.5);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tone-0 .cover-glow {
  background: radial-gradient(circle at 40% 40%, #ffbd72, #c05f2b 38%, transparent 70%);
}

.tone-1 .cover-glow {
  background: radial-gradient(circle at 40% 40%, #cbb07b, #5f543b 39%, transparent 70%);
}

.tone-2 .cover-glow {
  background: radial-gradient(circle at 40% 40%, #7f9a9e, #35484c 39%, transparent 70%);
}

.tone-3 .cover-glow {
  background: radial-gradient(circle at 40% 40%, #a9858a, #573b42 39%, transparent 70%);
}

.tone-4 .cover-glow {
  background: radial-gradient(circle at 40% 40%, #d0b58f, #6a4b31 39%, transparent 70%);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px 24px 19px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.card-title {
  margin: 15px 0 11px;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.46;
  transition: color 0.3s ease;
}

.post-card:hover .card-title {
  color: var(--accent-light);
}

.card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.tag::before {
  margin-right: 3px;
  color: var(--accent);
  font-size: 8px;
  content: "#";
}

a.tag:hover,
button.tag:hover {
  border-color: rgba(224, 154, 76, 0.45);
  color: var(--accent-light);
}

.read-time {
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------ interlude */

.interlude {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  width: 100%;
  max-width: 1220px;
  margin: clamp(70px, 9vw, 130px) auto 0;
  padding: 0 var(--pad);
}

.interlude-mark {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(54px, 7vw, 96px);
  font-style: italic;
  line-height: 0.8;
  opacity: 0.5;
}

.interlude blockquote {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 3.3vw, 44px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

.interlude cite {
  display: block;
  margin-top: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ home lower */

.home-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr);
  gap: clamp(32px, 6vw, 90px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(62px, 8vw, 110px) var(--pad) 0;
}

.subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.subhead h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.subhead .eyebrow {
  font-size: 8px;
}

.mini-list {
  display: flex;
  flex-direction: column;
}

.mini-post {
  display: grid;
  grid-template-columns: 36px 82px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.35s var(--ease),
    color 0.3s ease;
}

.mini-post:hover {
  padding-right: 7px;
  padding-left: 7px;
  color: var(--accent-light);
}

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

.mini-post .mini-date {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.mini-post .mini-title {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-post .mini-arrow {
  color: var(--faint);
  font-size: 14px;
  transition: transform 0.35s var(--ease);
}

.mini-post:hover .mini-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.home-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel {
  position: relative;
  padding: 27px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 19px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-label span {
  color: var(--accent);
}

.editor-note {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
}

.editor-note em {
  color: var(--accent-light);
  font-style: normal;
}

.panel-sign {
  margin: 19px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: right;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-count {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  margin-left: 5px;
}

.join-panel {
  overflow: hidden;
  background:
    radial-gradient(220px 180px at 100% 0%, rgba(224, 154, 76, 0.17), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.join-panel::after {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(224, 154, 76, 0.18);
  border-radius: 50%;
  content: "";
}

.join-panel h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.45;
}

.join-panel p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(90px, 12vw, 160px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(800px 500px at 85% 100%, rgba(150, 64, 28, 0.12), transparent 65%),
    var(--bg-deep);
}

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 82px) var(--pad) 25px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.55fr 0.55fr;
  gap: clamp(28px, 5vw, 80px);
  padding-bottom: clamp(48px, 6vw, 74px);
}

.footer-wordmark {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 74px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
}

.footer-tagline {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 27px);
  letter-spacing: 0.04em;
  line-height: 1.75;
}

.footer-label {
  margin-bottom: 17px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 4px;
}

.footer-links a {
  width: max-content;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.footer-clock {
  color: var(--muted);
}

.back-top {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  transition: color 0.25s ease;
}

.back-top:hover {
  color: var(--accent);
}

.back-top span {
  font-size: 12px;
}

/* -------------------------------------------------------------- page head */

.page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 92px) var(--pad) 0;
}

.page-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  padding-bottom: clamp(38px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 52px);
}

.page-title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(56px, 9.5vw, 138px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.88;
}

.page-title .cn {
  display: block;
  font-size: 0.62em;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.page-title em {
  color: var(--accent);
  font-style: normal;
}

.page-intro {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 2;
}

.page-intro strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.page-masthead-meta {
  display: flex;
  gap: 22px;
  margin-top: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------- archive */

.archive-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.search-field {
  position: relative;
  width: min(340px, 100%);
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.3;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.search-field input::placeholder {
  color: var(--faint);
}

.search-field input:focus {
  border-color: rgba(224, 154, 76, 0.55);
  background: rgba(255, 255, 255, 0.03);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-tag {
  min-height: 30px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.filter-tag:hover,
.filter-tag.is-active {
  border-color: rgba(224, 154, 76, 0.55);
  background: rgba(224, 154, 76, 0.08);
  color: var(--accent-light);
}

.year-block {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 60px);
  padding: 28px 0 10px;
  border-top: 1px solid var(--line);
}

.year-label {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.year-label strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.year-label span {
  color: var(--faint);
  font-size: 8px;
}

.archive-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.35s var(--ease),
    background 0.3s ease;
}

.archive-row:hover {
  padding-right: 7px;
  padding-left: 7px;
}

.archive-row .row-date {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.archive-row .row-title {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: 0.02em;
  line-height: 1.5;
  transition:
    color 0.3s ease,
    transform 0.35s var(--ease);
}

.archive-row:hover .row-title {
  color: var(--accent-light);
  transform: translateX(3px);
}

.archive-row .row-tags {
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.archive-row .row-time {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.archive-empty {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  text-align: center;
}

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

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
  padding-bottom: clamp(50px, 7vw, 85px);
  border-bottom: 1px solid var(--line);
}

.about-title {
  margin: 17px 0 26px;
  font-family: var(--serif);
  font-size: clamp(50px, 7.6vw, 108px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

.about-title em {
  color: var(--accent);
  font-style: normal;
}

.about-lede {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.05;
}

.about-art {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  max-width: 430px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.about-art::before,
.about-art::after {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.about-art::before {
  inset: 9%;
}

.about-art::after {
  inset: 21%;
  border-style: dashed;
  border-color: rgba(224, 154, 76, 0.24);
}

.about-core {
  position: absolute;
  top: 32%;
  left: 32%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd9a4, #de8a3d 35%, #923819 70%, #2f0e06);
  box-shadow: 0 0 60px rgba(210, 104, 45, 0.25);
}

.about-art-label {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.22em;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
}

.about-art-note {
  position: absolute;
  right: 0;
  bottom: 12%;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.about-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(35px, 7vw, 110px);
  padding: clamp(50px, 7vw, 90px) 0;
  border-bottom: 1px solid var(--line);
}

.about-aside {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  line-height: 2.1;
  text-transform: uppercase;
}

.about-aside strong {
  display: block;
  margin-bottom: 15px;
  color: var(--accent);
  font-weight: 500;
}

.about-aside p {
  max-width: 190px;
}

.manifesto {
  max-width: 780px;
}

.manifesto p {
  margin-bottom: 1.7em;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: 0.01em;
  line-height: 2.05;
}

.manifesto p:first-child::first-letter {
  float: left;
  padding: 0.08em 0.13em 0 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 3.3em;
  line-height: 0.84;
}

.manifesto blockquote {
  margin: 2.5em 0;
  padding: 4px 0 4px 25px;
  border-left: 1px solid var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 70px);
}

.about-cell {
  min-height: 190px;
  padding: 28px;
  background: var(--bg);
}

.about-cell .cell-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.about-cell h3 {
  margin: 22px 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.about-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

/* ------------------------------------------------------------------ auth */

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  width: 100%;
  max-width: 1280px;
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) var(--pad) clamp(60px, 8vw, 100px);
}

.auth-aside {
  position: relative;
}

.auth-aside h1 {
  margin: 17px 0 25px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.auth-aside h1 em {
  color: var(--accent);
  font-style: normal;
}

.auth-aside > p {
  max-width: 410px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
}

.auth-quote {
  max-width: 390px;
  margin-top: clamp(35px, 5vw, 68px);
  padding: 24px 0 0 20px;
  border-left: 1px solid rgba(224, 154, 76, 0.5);
}

.auth-quote p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.8;
}

.auth-quote span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.auth-orb {
  position: absolute;
  top: -8%;
  right: 0;
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.75;
}

.auth-orb::before {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e6a756, #7e2e15);
  content: "";
}

.auth-orb::after {
  position: absolute;
  inset: 12% 12% 35% 38%;
  border-radius: 50%;
  background: var(--bg);
  content: "";
}

.auth-card {
  position: relative;
  padding: clamp(28px, 4.4vw, 52px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(224, 154, 76, 0.055), transparent 70%),
    rgba(18, 16, 13, 0.8);
}

.auth-card::before,
.auth-card::after {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(224, 154, 76, 0.55);
  content: "";
}

.auth-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.auth-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.auth-card-head {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 29px;
}

.auth-card-head h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.3;
}

.auth-card-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.field {
  margin-bottom: 21px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field label span {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: rgba(8, 7, 6, 0.6);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.field textarea {
  min-height: 92px;
  line-height: 1.8;
  resize: vertical;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(224, 154, 76, 0.62);
  background: rgba(12, 10, 8, 0.8);
  box-shadow: 0 0 0 1px rgba(224, 154, 76, 0.18);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 7px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.05em;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--accent);
}

.form-error {
  display: none;
  padding: 11px 13px;
  border: 1px solid rgba(215, 111, 88, 0.35);
  margin-bottom: 18px;
  background: rgba(215, 111, 88, 0.07);
  color: #e9a08f;
  font-size: 12px;
  line-height: 1.7;
}

.form-error.is-visible {
  display: block;
  animation: rise-in 0.3s var(--ease);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  padding: 0 19px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #1b0f07;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.form-submit span:last-child {
  font-size: 17px;
  font-weight: 400;
  transition: transform 0.35s var(--ease);
}

.form-submit:hover {
  border-color: var(--accent-light);
  background: var(--accent-light);
}

.form-submit:hover span:last-child {
  transform: translateX(4px);
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.6;
}

.form-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 23px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.form-switch a {
  color: var(--accent);
  border-bottom: 1px solid rgba(224, 154, 76, 0.4);
}

.form-switch a:hover {
  color: var(--accent-light);
}

.demo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
}

.demo-box button {
  flex: none;
  color: var(--accent);
  font-size: 10px;
  border-bottom: 1px solid rgba(224, 154, 76, 0.35);
}

.demo-box button:hover {
  color: var(--accent-light);
}

/* ---------------------------------------------------------------- article */

.article-view {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) var(--pad) 0;
}

.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-owner-actions {
  display: flex;
  gap: 10px;
}

.article-header {
  max-width: 1030px;
  margin: 0 auto;
  padding: clamp(45px, 7vw, 86px) 0 clamp(30px, 4vw, 46px);
  text-align: center;
}

.article-header .tag-list {
  justify-content: center;
  margin-bottom: 22px;
}

.article-title {
  margin: 0 auto 24px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.8vw, 78px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.18;
}

.article-dek {
  max-width: 680px;
  margin: 0 auto 31px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.95;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.article-meta .avatar {
  width: 25px;
  height: 25px;
  font-size: 11px;
}

.article-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.article-cover {
  position: relative;
  width: 100%;
  max-width: 1220px;
  aspect-ratio: 3.1 / 1;
  min-height: 190px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 70% 120%, rgba(190, 90, 40, 0.35), transparent 55%),
    #17120e;
}

.article-cover::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 230, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 230, 216, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  content: "";
  opacity: 0.5;
}

.article-cover-disc {
  position: absolute;
  top: -72%;
  right: 12%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd9a4, #d47a35 30%, #7e2a13 68%, #2a0c05);
  box-shadow: 0 0 90px rgba(205, 100, 44, 0.24);
}

.article-cover-disc::before {
  position: absolute;
  top: -5%;
  left: 31%;
  width: 105%;
  height: 112%;
  border-radius: 50%;
  background: #17120e;
  content: "";
}

.article-cover-ring {
  position: absolute;
  top: 18%;
  right: 20%;
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(238, 230, 216, 0.16);
  border-radius: 50%;
}

.article-cover-label {
  position: absolute;
  bottom: 22px;
  left: 26px;
  color: rgba(238, 230, 216, 0.5);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-cover-index {
  position: absolute;
  top: 18px;
  left: 26px;
  color: rgba(238, 230, 216, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.article-body-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(42px, 6vw, 76px) 0 0;
}

.prose {
  width: 100%;
  max-width: 720px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 18.5px);
  letter-spacing: 0.015em;
  line-height: 2.1;
  counter-reset: prose-h2;
}

.prose > p {
  margin: 0 0 1.75em;
}

.prose > p:first-of-type::first-letter {
  float: left;
  padding: 0.11em 0.12em 0 0;
  color: var(--accent);
  font-size: 4.15em;
  font-weight: 400;
  line-height: 0.78;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.prose h2 {
  position: relative;
  margin: 2.7em 0 1.1em;
  padding-top: 0.25em;
  font-size: clamp(25px, 2.5vw, 32px);
  line-height: 1.5;
  counter-increment: prose-h2;
}

.prose h2::before {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  content: "· 0" counter(prose-h2);
}

.prose h3 {
  margin: 2.2em 0 0.9em;
  font-size: 23px;
}

.prose h4 {
  margin: 2em 0 0.8em;
  font-size: 19px;
}

.prose blockquote {
  position: relative;
  margin: 2.6em -44px;
  padding: 27px 34px 27px 39px;
  border-left: 1px solid var(--accent);
  background: linear-gradient(90deg, rgba(224, 154, 76, 0.055), transparent);
  color: var(--ink);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.85;
}

.prose blockquote p {
  margin: 0;
}

.prose blockquote p:first-of-type::first-letter {
  float: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.prose blockquote::before {
  position: absolute;
  top: 12px;
  left: 12px;
  color: rgba(224, 154, 76, 0.35);
  font-family: var(--serif);
  font-size: 33px;
  line-height: 1;
  content: "“";
}

.prose ul,
.prose ol {
  margin: 0 0 1.9em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.55em;
  padding-left: 0.2em;
}

.prose ul li::marker {
  color: var(--accent);
  content: "— ";
}

.prose ol li::marker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8em;
}

.prose a {
  color: var(--accent-light);
  border-bottom: 1px solid rgba(224, 154, 76, 0.4);
}

.prose a:hover {
  border-bottom-color: var(--accent-light);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose em {
  color: var(--accent-light);
}

.prose code {
  padding: 0.15em 0.38em;
  background: rgba(238, 230, 216, 0.07);
  color: #e9c79a;
  font-family: var(--mono);
  font-size: 0.82em;
}

.prose pre {
  overflow-x: auto;
  margin: 2.1em 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #0a0908;
}

.prose pre code {
  padding: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.prose hr {
  width: 64px;
  height: 1px;
  margin: 3.3em auto;
  border: 0;
  background: var(--line-strong);
}

.article-end {
  display: flex;
  align-items: center;
  gap: 17px;
  max-width: 720px;
  margin: clamp(35px, 5vw, 55px) auto 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.article-end::before,
.article-end::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.article-author {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 720px;
  margin: 38px auto 0;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-author .avatar {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.article-author-info strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.article-author-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.article-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: 720px;
  margin: 32px auto 0;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease;
}

.article-next .next-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.article-next .next-title {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 19px;
}

.article-next .next-arrow {
  color: var(--accent);
  font-size: 24px;
  transition: transform 0.35s var(--ease);
}

.article-next:hover {
  color: var(--accent-light);
}

.article-next:hover .next-arrow {
  transform: translateX(6px);
}

/* ------------------------------------------------------------------ desk */

.desk-view {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 82px) var(--pad) 0;
}

.desk-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 31px;
  border-bottom: 1px solid var(--line);
}

.desk-head h1 {
  margin: 13px 0 8px;
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 74px);
  font-weight: 400;
  line-height: 1.1;
}

.desk-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.desk-stats {
  display: flex;
  gap: 30px;
  padding-bottom: 8px;
}

.stat {
  text-align: right;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.stat span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.desk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.desk-tabs {
  display: flex;
  gap: 5px;
}

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

.desk-tab {
  min-height: 34px;
  padding: 3px 13px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.desk-tab:hover {
  color: var(--ink);
}

.desk-tab.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-light);
}

.desk-list {
  border-bottom: 1px solid var(--line);
}

.desk-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 130px 180px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition:
    background 0.3s ease,
    padding 0.35s var(--ease);
}

.desk-row:hover {
  padding-right: 8px;
  padding-left: 8px;
  background: rgba(255, 255, 255, 0.018);
}

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

.desk-row-index {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.desk-row-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.desk-row-title:hover {
  color: var(--accent-light);
}

.desk-row-meta {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.desk-row-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 10px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}

.status-dot.published {
  background: #8ea66e;
  box-shadow: 0 0 8px rgba(142, 166, 110, 0.35);
}

.status-dot.draft {
  background: var(--accent);
}

.desk-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.icon-link:hover {
  border-color: var(--line-strong);
  color: var(--accent-light);
}

.icon-link.danger:hover {
  border-color: rgba(215, 111, 88, 0.4);
  color: #e68b77;
}

/* ---------------------------------------------------------------- editor */

.editor-view {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 58px) var(--pad) 0;
}

.editor-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.editor-head h1 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 400;
  line-height: 1.2;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(22px, 3vw, 38px);
  align-items: start;
  padding-top: 28px;
}

.editor-paper {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(238, 230, 216, 0.025) 1px, transparent 1px) 0 0 / 100% 42px,
    #100e0b;
}

.editor-paper::before {
  position: absolute;
  top: -1px;
  left: 42px;
  width: 1px;
  height: 100%;
  background: rgba(224, 154, 76, 0.15);
  content: "";
  pointer-events: none;
}

.title-input {
  display: block;
  width: calc(100% - 84px);
  margin: 34px 42px 0;
  padding: 0 0 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.title-input::placeholder {
  color: #544d43;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 13px 35px 9px 34px;
  border-bottom: 1px solid var(--line);
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  height: 27px;
  padding: 0 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--accent-light);
}

.tool-divider {
  width: 1px;
  height: 15px;
  margin: 0 6px;
  background: var(--line);
}

.editor-toolbar-note {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.editor-textarea {
  display: block;
  width: 100%;
  min-height: clamp(380px, 53vh, 640px);
  padding: 27px 42px 45px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.1;
  resize: vertical;
  tab-size: 2;
}

.editor-textarea::placeholder {
  color: #544d43;
}

.editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.editor-side {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-panel {
  padding: 21px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-label span {
  color: var(--faint);
  letter-spacing: 0.02em;
  text-transform: none;
}

.side-field {
  margin-bottom: 16px;
}

.side-field:last-child {
  margin-bottom: 0;
}

.side-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.side-field textarea,
.side-field input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: rgba(8, 7, 6, 0.55);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  transition: border-color 0.25s ease;
}

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

.side-field input:focus,
.side-field textarea:focus {
  border-color: rgba(224, 154, 76, 0.55);
}

.side-hint {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.65;
}

.side-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.85;
}

.side-note strong {
  color: var(--accent-light);
  font-weight: 500;
}

.side-status {
  display: flex;
  gap: 7px;
}

.status-choice {
  flex: 1;
  min-height: 34px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.status-choice.is-active {
  border-color: rgba(224, 154, 76, 0.5);
  background: rgba(224, 154, 76, 0.08);
  color: var(--accent-light);
}

/* ------------------------------------------------------------------ modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 4, 3, 0.78);
  backdrop-filter: blur(9px);
  animation: fade-in 0.25s ease;
}

.modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: #110f0c;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.4s var(--ease);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 15, 12, 0.96);
  backdrop-filter: blur(12px);
}

.modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-body {
  padding: clamp(24px, 4vw, 42px);
}

.confirm-panel {
  width: min(440px, 100%);
}

.account-panel {
  width: min(520px, 100%);
}

.account-intro {
  margin: 13px 0 24px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.9;
}

.account-panel .field {
  margin-bottom: 17px;
}

.account-panel .form-submit {
  margin-top: 7px;
}

.confirm-body {
  padding: 32px;
}

.confirm-body h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.confirm-body p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.preview-prose {
  max-width: none;
}

.preview-prose > p:first-of-type::first-letter {
  float: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

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

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  background: #17130f;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
  pointer-events: auto;
  animation: toast-in 0.4s var(--ease);
}

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

.toast .toast-mark {
  flex: none;
  margin-top: 1px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.toast.is-error .toast-mark {
  color: var(--danger);
}

.toast.is-leaving {
  animation: toast-out 0.3s ease forwards;
}

/* --------------------------------------------------------------- loading */

.boot-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 86px);
  gap: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.boot-orbit {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: spin 9s linear infinite;
}

.boot-orbit::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(224, 154, 76, 0.6);
  content: "";
}

.boot-orbit span {
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d99049, #6c2410);
}

.loading-page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(55px, 8vw, 100px) var(--pad);
}

.sk {
  overflow: hidden;
  background: rgba(238, 230, 216, 0.055);
}

.sk::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(238, 230, 216, 0.05), transparent);
  content: "";
  animation: shimmer 1.8s infinite;
  transform: translateX(-100%);
}

.sk-kicker {
  width: 100px;
  height: 9px;
  margin-bottom: 28px;
}

.sk-title {
  width: min(680px, 85%);
  height: clamp(44px, 6vw, 80px);
  margin-bottom: 18px;
}

.sk-title.short {
  width: min(480px, 65%);
}

.sk-line {
  width: min(520px, 75%);
  height: 10px;
  margin-bottom: 12px;
}

.sk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 70px;
}

.sk-card {
  height: 360px;
  border: 1px solid var(--line);
  padding: 18px;
}

/* ------------------------------------------------------------------- 404 */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 170px);
  padding: 70px var(--pad);
  text-align: center;
}

.not-found-code {
  color: rgba(224, 154, 76, 0.2);
  font-family: var(--serif);
  font-size: clamp(120px, 23vw, 320px);
  font-style: italic;
  line-height: 0.7;
}

.not-found h1 {
  margin: 30px 0 14px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
}

.not-found p {
  max-width: 380px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
}

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

.empty-state {
  padding: clamp(60px, 10vw, 120px) 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state .empty-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 23px;
}

.empty-state h2 {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.empty-state p {
  margin: 0 auto 22px;
  max-width: 380px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.noscript {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  padding: 14px;
  background: var(--accent);
  color: #160d07;
  font-size: 13px;
  text-align: center;
}

/* ------------------------------------------------------------ animations */

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

@keyframes orbit-a {
  from {
    transform: rotate(-23deg) scaleY(0.47);
  }
  to {
    transform: rotate(337deg) scaleY(0.47);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.18;
  }
  to {
    opacity: 0.7;
  }
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(16px);
  }
}

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

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  }

  .hero-art {
    max-width: 520px;
  }

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

  .post-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .post-card:last-child:nth-child(odd) .card-cover {
    aspect-ratio: 2.7;
  }

  .footer-top {
    grid-template-columns: 1.2fr 1fr 0.5fr;
  }

  .footer-links:last-child {
    display: none;
  }

  .desk-row {
    grid-template-columns: 50px minmax(0, 1fr) 100px 170px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .write-link span {
    display: none;
  }

  .write-link {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .auth-slot[data-auth-slot="desktop"] {
    display: none;
  }

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

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

  .hero-visual {
    min-height: 0;
    margin: 14px 0 0;
  }

  .hero-art {
    width: min(86vw, 560px);
  }

  .art-note,
  .art-vertical,
  .art-caption {
    display: none;
  }

  .interlude {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .home-lower {
    grid-template-columns: 1fr;
  }

  .home-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .panel {
    height: 100%;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-tagline {
    align-self: start;
  }

  .footer-links:last-child {
    display: flex;
  }

  .page-masthead {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .page-intro {
    max-width: 520px;
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-art {
    width: min(72vw, 390px);
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-aside p {
    max-width: 500px;
  }

  .auth-page {
    grid-template-columns: 1fr;
    gap: 42px;
    max-width: 660px;
  }

  .auth-aside {
    padding-top: 15px;
  }

  .auth-orb {
    width: 90px;
    height: 90px;
    top: 0;
  }

  .auth-aside > p {
    max-width: 520px;
  }

  .auth-quote {
    display: none;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .side-panel:last-child {
    grid-column: 1 / -1;
  }

  .article-cover {
    aspect-ratio: 2.4 / 1;
  }

  .prose blockquote {
    margin-right: -16px;
    margin-left: -16px;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 22px;
  }

  #app {
    padding-top: 74px;
  }

  .header-inner {
    height: 74px;
    gap: 12px;
  }

  .brand-type strong {
    font-size: 16px;
  }

  .brand-type em {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-shadow {
    left: 12px;
    width: 32px;
    height: 32px;
  }

  .header-actions {
    gap: 9px;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 55px;
  }

  .hero h1 {
    font-size: clamp(41px, 12.5vw, 64px);
    margin-bottom: 24px;
  }

  .hero-eyebrow {
    gap: 10px;
    margin-bottom: 23px;
  }

  .hero-eyebrow .muted:last-child {
    display: none;
  }

  .hero-intro {
    font-size: 14px;
    line-height: 1.95;
    margin-bottom: 28px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 145px;
    padding: 0 16px;
  }

  .hero-meta {
    gap: 22px;
    margin-top: 33px;
  }

  .hero-visual {
    margin-top: 6px;
  }

  .hero-art {
    width: 94vw;
    max-width: 480px;
  }

  .section {
    padding-top: 58px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .section-head-left {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .section-head-left .section-en {
    display: none;
  }

  .section-head-right {
    width: 100%;
    justify-content: space-between;
  }

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

  .post-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .post-card:last-child:nth-child(odd) .card-cover {
    aspect-ratio: 1.62;
  }

  .card-cover {
    aspect-ratio: 1.8;
  }

  .card-title {
    font-size: 25px;
  }

  .interlude {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 70px;
  }

  .interlude-mark {
    font-size: 52px;
  }

  .interlude blockquote {
    font-size: 25px;
    line-height: 1.7;
  }

  .home-lower {
    padding-top: 62px;
  }

  .home-aside {
    grid-template-columns: 1fr;
  }

  .mini-post {
    grid-template-columns: 28px 65px minmax(0, 1fr) 16px;
    gap: 9px;
  }

  .mini-post .mini-title {
    font-size: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-wordmark {
    font-size: 48px;
  }

  .footer-tagline {
    font-size: 20px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    line-height: 1.8;
  }

  .footer-clock {
    display: none;
  }

  .back-top {
    margin-left: auto;
  }

  .page {
    padding-top: 44px;
  }

  .page-title {
    font-size: clamp(55px, 17vw, 92px);
  }

  .page-title .cn {
    font-size: 0.54em;
  }

  .archive-tools {
    align-items: stretch;
  }

  .search-field {
    width: 100%;
  }

  .year-block {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 24px;
  }

  .year-label {
    display: flex;
    align-items: baseline;
    gap: 9px;
  }

  .year-label strong {
    font-size: 24px;
  }

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

  .archive-row .row-time {
    display: none;
  }

  .about-hero {
    padding-bottom: 44px;
  }

  .about-title {
    font-size: clamp(47px, 14vw, 72px);
  }

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

  .about-cell {
    min-height: auto;
  }

  .colophon {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .auth-page {
    min-height: auto;
    padding-top: 38px;
  }

  .auth-aside h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .auth-orb {
    display: none;
  }

  .auth-card {
    padding: 26px 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-view {
    padding-top: 26px;
  }

  .article-header {
    padding: 40px 0 28px;
    text-align: left;
  }

  .article-header .tag-list {
    justify-content: flex-start;
  }

  .article-title {
    font-size: clamp(36px, 10.5vw, 55px);
  }

  .article-dek {
    font-size: 14px;
  }

  .article-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 9px;
  }

  .article-cover {
    aspect-ratio: 1.7 / 1;
  }

  .article-cover-disc {
    top: -40%;
    right: -5%;
    width: 62%;
  }

  .article-cover-ring {
    top: 14%;
    right: 4%;
    width: 54%;
  }

  .article-body-wrap {
    padding-top: 36px;
  }

  .prose {
    font-size: 16px;
    line-height: 2;
  }

  .prose > p:first-of-type::first-letter {
    font-size: 3.4em;
  }

  .prose blockquote {
    margin-right: -8px;
    margin-left: -8px;
    padding: 22px 18px 22px 26px;
    font-size: 18px;
  }

  .article-author,
  .article-next {
    margin-top: 26px;
  }

  .article-next {
    align-items: flex-start;
  }

  .article-topbar {
    align-items: flex-start;
  }

  .desk-view {
    padding-top: 42px;
  }

  .desk-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .desk-stats {
    gap: 28px;
  }

  .stat {
    text-align: left;
  }

  .desk-row {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 19px 0;
  }

  .desk-row-status {
    grid-column: 2;
  }

  .desk-row-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .editor-view {
    padding-top: 34px;
  }

  .editor-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .editor-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .editor-actions .btn {
    min-height: 40px;
    padding: 0 13px;
  }

  .editor-layout {
    padding-top: 18px;
  }

  .editor-paper::before {
    left: 22px;
  }

  .title-input {
    width: calc(100% - 44px);
    margin: 23px 22px 0;
    font-size: 28px;
  }

  .editor-toolbar {
    overflow-x: auto;
    padding: 11px 17px 8px 20px;
  }

  .editor-toolbar-note {
    display: none;
  }

  .editor-textarea {
    min-height: 430px;
    padding: 22px 22px 34px;
    font-size: 15px;
    line-height: 2.05;
  }

  .editor-side {
    grid-template-columns: 1fr;
  }

  .side-panel:last-child {
    grid-column: auto;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-head {
    padding: 13px 16px;
  }

  .modal-body {
    padding: 22px 18px;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
  }

  .loading-page {
    padding-top: 46px;
  }

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

  .not-found {
    min-height: 70vh;
  }
}

@media (max-width: 430px) {
  .brand-type strong {
    letter-spacing: 0.08em;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    flex: none;
  }

  .hero-meta {
    flex-wrap: wrap;
  }

  .card-body {
    padding: 20px 20px 17px;
  }

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

  .footer-links:last-child {
    display: flex;
  }

  .footer-tagline {
    margin-top: 4px;
  }

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

  .demo-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .article-title {
    font-size: 34px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
