/* ==========================================================================
   DBY 的手账 · 暖色手账风个人网站
   Pure HTML + CSS + JS
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --paper: #f4ead9;
  --paper-deep: #ead9bf;
  --card: #fffaf1;
  --card-soft: #fbf3e4;
  --ink: #3f3128;
  --ink-soft: #5b493d;
  --muted: #77634f;
  --line: #d9c5aa;
  --line-deep: #c3a987;
  --terracotta: #a34a2b;
  --terracotta-deep: #85371f;
  --mustard: #d4a141;
  --mustard-soft: #ecd49a;
  --sage: #77886c;
  --blue: #6f8b9b;
  --pink: #d4948b;
  --shadow-paper: 0 26px 60px rgba(92, 64, 38, 0.14), 0 2px 0 rgba(255, 255, 255, 0.55) inset;
  --shadow-card: 2px 4px 0 rgba(164, 132, 96, 0.14), 0 12px 28px rgba(92, 64, 38, 0.07);
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: "Kaiti SC", "KaiTi", "STKaiti", "SimKai", "FangSong", serif;
  --font-serif: "Songti SC", "SimSun", "STSong", Georgia, serif;
  --font-mono: "Cascadia Code", "Consolas", "Courier New", monospace;
  --font-hand: "Segoe Print", "Kaiti SC", "KaiTi", "STKaiti", cursive;
  --page-width: 1180px;
  --header-height: 78px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 300px;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 7% 2%, rgba(212, 161, 65, 0.18), transparent 28%),
    radial-gradient(circle at 97% 13%, rgba(180, 86, 54, 0.1), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(119, 136, 108, 0.08), transparent 36%),
    radial-gradient(circle, rgba(107, 79, 54, 0.13) 1px, transparent 1.2px);
  background-size: auto, auto, auto, 28px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  color: #fff8eb;
  background: var(--terracotta);
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2.5px dashed var(--terracotta);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

/* 页面纸张颗粒 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  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='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  padding: 9px 16px;
  color: #fff8eb;
  background: var(--terracotta-deep);
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

/* ---------- 通用排版 ---------- */
.section {
  position: relative;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 100px 28px 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 27px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.kicker-no {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--terracotta);
  border: 1px solid rgba(180, 86, 54, 0.48);
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: 0.04em;
  transform: rotate(-7deg);
}

.kicker-label {
  flex: 0 0 auto;
  color: var(--ink-soft);
}

.kicker-rule {
  flex: 1 1 auto;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-deep) 0 6px, transparent 6px 12px);
  opacity: 0.65;
}

.section-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(40px, 4.7vw, 58px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.025em;
}

.section-title em {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 3px;
  margin: 0 -3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 34' preserveAspectRatio='none'%3E%3Cpath d='M2 22C58 14 124 12 192 14c50 1 92 3 126 6l-2 9c-66-2-126-2-190-1-42 1-84 3-123 1Z' fill='%23d4a141' opacity='.53'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 82%;
  background-size: 100% 48%;
  font-style: normal;
  white-space: nowrap;
}

.section-title em::after {
  display: none;
}

.section-sub {
  max-width: 590px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
}

/* 胶带 */
.tape {
  position: absolute;
  z-index: 5;
  width: 124px;
  height: 29px;
  pointer-events: none;
  opacity: 0.9;
  background-color: rgba(212, 174, 102, 0.64);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.23) 0 8px, transparent 8px 17px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 55%);
  box-shadow: 0 1px 2px rgba(95, 68, 42, 0.1);
  clip-path: polygon(2% 5%, 97% 0, 100% 92%, 3% 100%);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(137, 107, 76, 0.16);
  background: rgba(246, 238, 225, 0.98);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(164, 132, 96, 0.22) 0 5px, transparent 5px 11px);
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff6e5;
  background: var(--terracotta);
  border: 1.5px solid var(--ink);
  border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  box-shadow: 2px 3px 0 rgba(70, 51, 41, 0.18);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-7deg);
  transition: transform 0.35s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(5deg) scale(1.04);
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-sub {
  margin-left: 5px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 33px;
  margin-right: 30px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--terracotta);
  border-radius: 50% 50% 0 0;
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="true"] {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link[aria-current="true"]::after {
  transform: scaleX(1) rotate(-1deg);
}

.header-side {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.header-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  color: var(--muted);
  border: 1px dashed rgba(139, 118, 100, 0.52);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  transform: rotate(1.5deg);
}

.header-date-dot {
  width: 3px;
  height: 3px;
  background: var(--terracotta);
  border-radius: 50%;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.nav-toggle-bars i {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 28px 0;
}

.hero-card {
  position: relative;
  padding: 60px 62px 66px;
  background-color: var(--card);
  background-image:
    radial-gradient(circle at 13% 9%, rgba(212, 161, 65, 0.08), transparent 28%),
    radial-gradient(circle at 89% 94%, rgba(119, 136, 108, 0.07), transparent 30%),
    linear-gradient(90deg, transparent 0 39px, rgba(180, 86, 54, 0.13) 39px 40px, transparent 40px),
    radial-gradient(circle, rgba(107, 79, 54, 0.1) 1px, transparent 1.1px);
  background-size: auto, auto, auto, 26px 26px;
  border: 1px solid rgba(111, 81, 52, 0.16);
  border-radius: 5px;
  box-shadow: var(--shadow-paper);
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    0 0 0 7px rgba(255, 250, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-tape-1 {
  top: -15px;
  left: 8.5%;
  width: 152px;
  height: 33px;
  transform: rotate(-3.2deg);
}

.hero-tape-2 {
  top: -13px;
  right: 10%;
  width: 126px;
  height: 30px;
  background-color: rgba(180, 86, 54, 0.43);
  transform: rotate(3.4deg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 48px;
  align-items: center;
}

/* Hero 左侧文字 */
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow-star {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--sage);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transform: rotate(12deg);
}

.hero-title {
  margin-top: 22px;
  font-weight: 700;
  line-height: 1;
}

.hero-greet {
  display: block;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.hero-name {
  position: relative;
  display: inline-block;
  padding-bottom: 17px;
  color: var(--ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 26' preserveAspectRatio='none'%3E%3Cpath d='M5 16C54 6 111 7 163 13c54 6 103 5 152-5' fill='none' stroke='%23d4a141' stroke-width='7' stroke-linecap='round' opacity='.65'/%3E%3C/svg%3E") no-repeat bottom center / 100% 17px;
  font-family: Georgia, "Kaiti SC", "KaiTi", "STKaiti", "SimKai", serif;
  font-size: clamp(84px, 9.8vw, 126px);
  letter-spacing: 0.02em;
  line-height: 0.86;
}

.accent-dot {
  color: var(--terracotta);
  font-family: var(--font-serif);
}

.identity {
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.7;
}

.identity span {
  margin: 0 6px;
  color: var(--mustard);
  font-family: var(--font-serif);
}

.hero-bio {
  max-width: 500px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: 0.01em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 25px 0 30px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  color: #5f4a37;
  background: #f2dfb7;
  border: 1px solid rgba(138, 102, 61, 0.2);
  border-radius: 2px;
  box-shadow: 1px 2px 0 rgba(138, 102, 61, 0.09);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.tag-a {
  transform: rotate(-1.2deg);
}

.tag-b {
  background: #e8ddca;
  transform: rotate(0.8deg);
}

.tag-c {
  background: #dde3d3;
  transform: rotate(-0.4deg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 25px;
  border: 1.5px solid var(--ink);
  border-radius: 8px 15px 7px 16px / 15px 8px 16px 7px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    background-color 0.22s ease;
}

.btn-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.btn-primary {
  color: #fff8eb;
  background: var(--terracotta);
  box-shadow: 3px 4px 0 var(--ink);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  box-shadow: 5px 7px 0 var(--ink);
  transform: translate(-1px, -2px);
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

.btn-primary:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 3px);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.46);
  border-style: dashed;
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(236, 212, 154, 0.28);
  transform: translateY(-2px);
}

.btn-dot {
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.hero-scroll svg {
  width: 36px;
  height: 26px;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.78;
  animation: bob 3.2s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(4px) rotate(2deg);
  }
}

/* Hero 右侧照片和座右铭 */
.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-top: 6px;
}

.photo-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 330px);
  transform: rotate(2.2deg);
  transition: transform 0.55s var(--ease-out);
}

.photo-wrap:hover {
  transform: rotate(0.3deg) translateY(-4px);
}

.polaroid {
  position: relative;
  padding: 13px 13px 50px;
  background: #fffdf7;
  border: 1px solid rgba(89, 64, 43, 0.16);
  box-shadow:
    7px 11px 26px rgba(80, 55, 35, 0.16),
    inset 0 1px 0 #fff;
}

.photo-tape {
  top: -12px;
  left: 50%;
  width: 112px;
  height: 26px;
  transform: translateX(-50%) rotate(-2.6deg);
}

.avatar-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 6 / 7;
  background: #e9c7a2;
  border: 1px solid rgba(89, 64, 43, 0.25);
}

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

.polaroid figcaption {
  padding-top: 13px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.polaroid figcaption span {
  margin: 0 4px;
  color: var(--terracotta);
}

.round-stamp {
  position: absolute;
  right: -42px;
  bottom: -36px;
  z-index: 3;
  width: 105px;
  height: 105px;
  color: rgba(143, 63, 38, 0.77);
  mix-blend-mode: multiply;
  transform: rotate(-14deg);
}

.stamp-top,
.stamp-main,
.stamp-sub {
  font-family: var(--font-mono);
  fill: currentColor;
}

.stamp-main {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.motto-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 364px;
  margin-top: 46px;
  padding: 22px 25px 19px;
  background-color: #fbf0d3;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(143, 99, 52, 0.14) 31px 32px);
  border: 1px solid rgba(143, 99, 52, 0.2);
  box-shadow: 4px 6px 0 rgba(212, 161, 65, 0.14), 0 12px 24px rgba(92, 64, 38, 0.09);
  transform: rotate(-1.4deg);
}

.motto-tape {
  top: -12px;
  left: 24px;
  width: 86px;
  height: 23px;
  background-color: rgba(119, 136, 108, 0.46);
  transform: rotate(-4deg);
}

.motto-label {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.motto-label span {
  margin-left: 6px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.motto-text {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.motto-trans {
  margin-top: 10px;
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px dashed rgba(143, 99, 52, 0.32);
  font-size: 11.5px;
  line-height: 1.85;
}

.motto-hand {
  margin-top: 7px;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 14.5px;
  text-align: right;
}

.doodle-whirl {
  position: absolute;
  bottom: -26px;
  left: -28px;
  z-index: 1;
  width: 74px;
  height: 74px;
  color: var(--mustard);
  opacity: 0.56;
  transform: rotate(12deg);
}

.hero-edge-note {
  position: absolute;
  right: 38px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(139, 118, 100, 0.72);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.edge-note-line {
  width: 28px;
  height: 1px;
  background: rgba(139, 118, 100, 0.4);
}

/* 跑马灯纸带 */
.ticker {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 34px 0 0;
  overflow: hidden;
  background: var(--mustard);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  box-shadow: 0 4px 0 rgba(70, 51, 41, 0.07);
  transform: rotate(-1.1deg);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 27px;
  padding: 9px 0;
  animation: ticker-scroll 32s linear infinite;
}

.ticker span {
  color: #443325;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.ticker i {
  color: var(--terracotta-deep);
  font-size: 11px;
  font-style: normal;
}

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

/* ---------- ABOUT ---------- */
.about {
  padding-top: 112px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 84px;
  align-items: center;
}

.about-copy p {
  max-width: 540px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 2.05;
}

.about-copy .about-lead {
  margin-top: 27px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.95;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--terracotta);
  border-bottom: 1px solid rgba(180, 86, 54, 0.42);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: gap 0.25s var(--ease-out), border-color 0.2s ease;
}

.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link:hover {
  gap: 15px;
  border-color: var(--terracotta);
}

.about-board {
  position: relative;
  min-height: 430px;
  padding: 10px 28px 40px 10px;
}

.index-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  margin-left: 20px;
  padding: 30px 32px 26px;
  background-color: #fffaf1;
  background-image: radial-gradient(circle, rgba(107, 79, 54, 0.09) 1px, transparent 1.1px);
  background-size: 22px 22px;
  border: 1px solid rgba(111, 81, 52, 0.19);
  box-shadow: 5px 8px 0 rgba(164, 132, 96, 0.11), 0 18px 34px rgba(92, 64, 38, 0.1);
  transform: rotate(-1.3deg);
}

.index-tape {
  top: -13px;
  left: 50%;
  width: 112px;
  height: 27px;
  background-color: rgba(119, 136, 108, 0.5);
  transform: translateX(-50%) rotate(2deg);
}

.index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(139, 118, 100, 0.4);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.index-date {
  transform: rotate(1.5deg);
}

.now-list {
  margin: 9px 0 4px;
}

.now-list li {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 9px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(193, 169, 135, 0.25);
}

.now-label {
  justify-self: start;
  padding: 1px 6px;
  color: var(--terracotta);
  border: 1px solid rgba(180, 86, 54, 0.38);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.now-value {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(164, 132, 96, 0.1);
}

.now-dot-read {
  background: var(--terracotta);
}

.now-dot-listen {
  background: var(--mustard);
}

.now-dot-do {
  background: var(--sage);
}

.index-note {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.index-sign {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  text-align: left;
}

.sticky-note {
  position: absolute;
  right: -2px;
  bottom: -8px;
  z-index: 3;
  width: 178px;
  padding: 19px 20px 16px;
  background-color: #efd99d;
  background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.22), transparent 60%);
  box-shadow: 4px 6px 14px rgba(92, 64, 38, 0.16);
  transform: rotate(4.5deg);
}

.sticky-note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 18px solid rgba(190, 154, 84, 0.42);
  border-right: 18px solid transparent;
}

.sticky-pin {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 42px;
  height: 12px;
  background: rgba(180, 86, 54, 0.32);
  transform: translateX(-50%) rotate(-3deg);
}

.sticky-note p {
  color: #4b392a;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.55;
}

.sticky-mark {
  display: block;
  width: 21px;
  height: 21px;
  margin-top: 7px;
  margin-left: auto;
  color: rgba(75, 57, 42, 0.56);
}

.sticky-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.about-doodle {
  position: absolute;
  top: -37px;
  left: -26px;
  z-index: 1;
  width: 72px;
  height: 72px;
  color: var(--pink);
  opacity: 0.58;
  transform: rotate(-9deg);
}

/* ---------- RECOMMEND ---------- */
.picks {
  padding-top: 124px;
}

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

.picks-stamp {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 122px;
  margin-right: 9px;
  margin-bottom: 2px;
  color: rgba(180, 86, 54, 0.78);
  border: 2px solid rgba(180, 86, 54, 0.55);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.7;
  text-align: center;
  transform: rotate(9deg);
}

.picks-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(180, 86, 54, 0.4);
  border-radius: 50%;
}

.picks-stamp i {
  color: rgba(139, 118, 100, 0.8);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.1em;
}

.rec-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  align-items: stretch;
}

.rec-column {
  min-width: 0;
}

.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1.5px solid var(--ink);
}

.column-title {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.column-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--terracotta);
  background: rgba(212, 161, 65, 0.16);
  border: 1px solid rgba(180, 86, 54, 0.22);
  border-radius: 50% 46% 52% 48%;
  transform: rotate(-6deg);
}

.column-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.column-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.column-divider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  padding-top: 105px;
}

.column-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed rgba(164, 132, 96, 0.4);
}

.column-divider span {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  background: var(--paper);
  border: 1px solid rgba(164, 132, 96, 0.5);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(92, 64, 38, 0.12);
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 24px;
}

.rec-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 22px 20px;
  color: var(--ink);
  background: #fffbf3;
  border: 1px solid rgba(111, 81, 52, 0.18);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.rec-inner {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
}

.rec-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 26px;
  width: 58px;
  height: 17px;
  background-color: rgba(212, 174, 102, 0.57);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 7px, transparent 7px 14px);
  opacity: 0.9;
  transform: rotate(-3.5deg);
  clip-path: polygon(2% 6%, 98% 0, 100% 90%, 3% 100%);
}

.rec-card:nth-child(2n)::before {
  background-color: rgba(119, 136, 108, 0.42);
  transform: rotate(2.8deg);
}

.rec-card:nth-child(3n)::before {
  background-color: rgba(212, 148, 139, 0.4);
}

.rec-card:hover {
  background: #fffdf8;
  border-color: rgba(180, 86, 54, 0.38);
  box-shadow: 4px 7px 0 rgba(164, 132, 96, 0.12), 0 20px 38px rgba(92, 64, 38, 0.12);
  transform: translateY(-5px) rotate(0deg);
}

.rec-card:active {
  transform: translateY(-1px) rotate(0deg);
}

.rec-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  justify-self: center;
  transition: transform 0.4s var(--ease-out);
}

.rec-mark-book {
  width: 56px;
  height: 74px;
  background: var(--cover);
  border: 1px solid rgba(63, 49, 40, 0.35);
  border-radius: 2px 5px 5px 2px;
  box-shadow:
    inset 6px 0 rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    3px 5px 9px rgba(74, 52, 37, 0.2);
  transform: rotate(-2.4deg);
}

.book-spine {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 1px 0 rgba(0, 0, 0, 0.1);
}

.book-char {
  position: absolute;
  top: 50%;
  left: 54%;
  display: grid;
  place-items: center;
  width: 31px;
  height: 38px;
  color: var(--cover-ink);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.book-rule {
  position: absolute;
  right: 9px;
  bottom: 11px;
  left: 17px;
  height: 1px;
  background: var(--cover-ink);
  opacity: 0.42;
}

.rec-card:hover .rec-mark-book {
  transform: rotate(2deg) translateY(-2px);
}

.rec-mark-vinyl {
  width: 62px;
  height: 62px;
  background:
    radial-gradient(circle at 41% 35%, rgba(255, 255, 255, 0.12), transparent 18%),
    repeating-radial-gradient(circle at 50% 50%, #3b2c25 0 1.5px, #4b382e 1.5px 3px);
  border: 1px solid rgba(45, 33, 26, 0.8);
  border-radius: 50%;
  box-shadow: 3px 5px 9px rgba(74, 52, 37, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.03);
  transition: transform 0.8s var(--ease-out);
}

.rec-mark-vinyl::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: var(--label);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.vinyl-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 5px;
  height: 5px;
  background: #f5e9d5;
  border: 1px solid rgba(63, 49, 40, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.rec-card:hover .rec-mark-vinyl {
  transform: rotate(120deg);
}

.rec-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.rec-kicker {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.6;
}

.rec-title {
  display: block;
  max-width: 100%;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.rec-title small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
}

.rec-title-en {
  font-family: var(--font-body);
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.45;
}

.rec-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.rec-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.6;
}

.rec-cta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.rec-card:hover .rec-cta svg {
  transform: translateX(4px);
}

.rec-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
  text-align: center;
}

.rec-hint-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 23px;
  color: var(--terracotta);
}

.rec-hint-icon svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- CONTACT ---------- */
.contact {
  padding-top: 118px;
  padding-bottom: 0;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 62px 68px 58px;
  color: #fff8eb;
  background-color: #a64f34;
  background-image:
    radial-gradient(circle at 86% 16%, rgba(245, 198, 111, 0.17), transparent 31%),
    radial-gradient(circle at 8% 100%, rgba(80, 42, 28, 0.28), transparent 37%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 5px),
    radial-gradient(circle, rgba(255, 245, 225, 0.07) 1px, transparent 1.1px);
  background-size: auto, auto, auto, 24px 24px;
  border: 1px solid rgba(63, 49, 40, 0.32);
  border-radius: 5px;
  box-shadow: 0 26px 55px rgba(89, 43, 27, 0.25);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px dashed rgba(255, 245, 225, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.contact-tape {
  top: -14px;
  left: 9%;
  width: 158px;
  height: 32px;
  background-color: rgba(240, 211, 151, 0.74);
  transform: rotate(-2.8deg);
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 50px;
  align-items: center;
}

.kicker-light {
  color: rgba(255, 248, 235, 0.88);
}

.kicker-light .kicker-no {
  color: #ffe6b0;
  border-color: rgba(255, 230, 176, 0.5);
}

.kicker-light .kicker-label {
  color: rgba(255, 248, 235, 0.9);
}

.kicker-light .kicker-rule {
  background: repeating-linear-gradient(90deg, rgba(255, 240, 210, 0.45) 0 6px, transparent 6px 12px);
}

.contact-title {
  color: #fff8eb;
  font-family: var(--font-display);
  font-size: clamp(52px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.03em;
}

.contact-title em {
  position: relative;
  color: #f3ce7d;
  font-style: normal;
}

.contact-title em::after {
  content: "";
  position: absolute;
  right: -3%;
  bottom: 3px;
  left: -3%;
  height: 9px;
  background: rgba(255, 240, 202, 0.14);
  border-radius: 50%;
  transform: rotate(-1.3deg);
}

.contact-text {
  max-width: 430px;
  margin-top: 20px;
  color: rgba(255, 248, 235, 0.92);
  font-size: 14.5px;
  line-height: 2.02;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 29px;
}

.btn-paper {
  color: #4a3426;
  background: #fff8e9;
  border-color: var(--ink);
  box-shadow: 3px 4px 0 rgba(63, 49, 40, 0.9);
}

.btn-paper:hover {
  background: #fffdf7;
  box-shadow: 5px 7px 0 rgba(63, 49, 40, 0.9);
  transform: translate(-1px, -2px);
}

.btn-paper:hover .btn-icon {
  transform: translate(2px, -2px);
}

.btn-paper:active {
  box-shadow: 1px 1px 0 rgba(63, 49, 40, 0.9);
  transform: translate(2px, 3px);
}

.github-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.copy-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-outline-light {
  color: #fff8eb;
  background: rgba(255, 248, 235, 0.04);
  border-color: rgba(255, 248, 235, 0.62);
  border-style: dashed;
  box-shadow: none;
}

.btn-outline-light:hover {
  background: rgba(255, 248, 235, 0.1);
  border-color: #fff8eb;
  transform: translateY(-2px);
}

.contact-note {
  margin-top: 18px;
  color: rgba(255, 248, 235, 0.9);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.contact-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
}

.envelope {
  position: relative;
  z-index: 1;
  width: min(100%, 346px);
  height: 225px;
  padding: 25px 26px;
  color: var(--ink);
  background: #f7e8cf;
  border: 1px solid rgba(63, 49, 40, 0.45);
  box-shadow:
    9px 16px 30px rgba(48, 24, 14, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: rotate(-4deg);
}

.envelope-flap {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 60%;
  background: linear-gradient(160deg, #f2dfc1, #ead3b0);
  border-bottom: 1px solid rgba(99, 73, 49, 0.25);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 2px 4px rgba(80, 55, 35, 0.09);
}

.envelope-stamp {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 82px;
  background: #fbf1de;
  border: 1px dashed rgba(143, 63, 38, 0.55);
  color: var(--terracotta);
  transform: rotate(4deg);
}

.envelope-stamp svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.envelope-stamp small {
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

.envelope-address {
  position: absolute;
  z-index: 2;
  bottom: 27px;
  left: 30px;
}

.to-label {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.envelope-address p {
  margin: 4px 0 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.address-line {
  display: block;
  width: 144px;
  height: 1px;
  margin-top: 8px;
  background: rgba(99, 73, 49, 0.3);
}

.address-line-short {
  width: 96px;
}

.envelope-postmark {
  position: absolute;
  z-index: 3;
  right: 36px;
  bottom: 25px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: rgba(99, 73, 49, 0.58);
  border: 1.5px solid rgba(99, 73, 49, 0.38);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-12deg);
}

.envelope-postmark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(99, 73, 49, 0.24);
  border-radius: 50%;
}

.envelope-tape {
  top: -10px;
  left: 50%;
  width: 102px;
  height: 24px;
  background-color: rgba(180, 86, 54, 0.36);
  transform: translateX(-50%) rotate(2.5deg);
}

.envelope-note {
  position: absolute;
  right: 4px;
  bottom: -34px;
  color: rgba(255, 248, 235, 0.78);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  transform: rotate(-3deg);
  white-space: nowrap;
}

.contact-doodle {
  position: absolute;
  top: -5px;
  left: -8px;
  z-index: 2;
  width: 82px;
  height: 61px;
  color: rgba(255, 240, 204, 0.55);
  transform: rotate(-8deg);
}

/* ---------- FOOTER ---------- */
.site-footer {
  width: 100%;
  max-width: var(--page-width);
  margin: 76px auto 0;
  padding: 0 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 0 34px;
  color: var(--muted);
  border-top: 1px dashed rgba(164, 132, 96, 0.45);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.footer-made span {
  margin-left: 2px;
  color: var(--terracotta);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-top svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

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

.back-top:hover svg {
  transform: translateY(-3px);
}

/* ---------- 推荐详情弹窗 ---------- */
.rec-dialog {
  width: min(740px, calc(100vw - 34px));
  max-width: none;
  max-height: calc(100vh - 42px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.rec-dialog::backdrop {
  background: rgba(48, 34, 24, 0.57);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.dialog-paper {
  position: relative;
  max-height: calc(100vh - 42px);
  overflow-y: auto;
  padding: 48px 55px 34px;
  background-color: #fffaf1;
  background-image:
    linear-gradient(90deg, transparent 0 34px, rgba(180, 86, 54, 0.13) 34px 35px, transparent 35px),
    radial-gradient(circle, rgba(107, 79, 54, 0.08) 1px, transparent 1.1px);
  background-size: auto, 24px 24px;
  border: 1px solid rgba(63, 49, 40, 0.24);
  border-radius: 3px;
  box-shadow: 0 30px 90px rgba(30, 20, 12, 0.42);
  animation: dialog-in 0.35s var(--ease-out) both;
  scrollbar-color: var(--line-deep) transparent;
  scrollbar-width: thin;
}

.dialog-paper::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 43px;
  width: 128px;
  height: 26px;
  background-color: rgba(212, 174, 102, 0.63);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 8px, transparent 8px 16px);
  transform: rotate(-2deg);
  clip-path: polygon(2% 5%, 98% 0, 100% 92%, 3% 100%);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(-0.7deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #f0e2c9;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transform: rotate(4deg);
  transition: transform 0.3s var(--ease-out), background-color 0.2s ease;
}

.dialog-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.dialog-close:hover {
  background: #ecd49a;
  transform: rotate(94deg);
}

.dialog-close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px #fffaf1,
    0 0 0 5px var(--terracotta);
}

.dialog-kicker {
  padding-right: 50px;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.dialog-title {
  max-width: 90%;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 46px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.dialog-meta {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.dialog-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 20px 0;
  color: var(--mustard);
}

.dialog-divider::before,
.dialog-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

.dialog-divider span {
  font-size: 12px;
}

.dialog-body p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 2.05;
}

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

.dialog-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
  padding: 18px 21px;
  background: rgba(236, 212, 154, 0.18);
  border: 1px dashed rgba(164, 132, 96, 0.42);
}

.fact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dialog-facts p {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.75;
}

.dialog-memo {
  margin-top: 22px;
  padding: 13px 17px;
  color: var(--ink);
  background: #f8ebcb;
  border-left: 3px solid var(--mustard);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  transform: rotate(-0.4deg);
}

.dialog-sign {
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-align: right;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 400;
  padding: 11px 20px;
  color: #fff8eb;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(40, 26, 17, 0.28);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
}

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

/* ---------- 滚动入场 ---------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

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

/* 让各区块的入场错开一点 */
.about-copy.reveal,
.picks-head.reveal,
.contact-card.reveal {
  transition-delay: 0.04s;
}

.about-board.reveal,
.rec-column.reveal {
  transition-delay: 0.12s;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .hero-card {
    padding: 55px 48px 62px;
  }

  .hero-grid {
    gap: 35px;
  }

  .hero-name {
    font-size: clamp(78px, 9.4vw, 108px);
  }

  .about-grid {
    gap: 55px;
  }

  .contact-card {
    padding: 56px 50px 52px;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-name {
    font-size: clamp(84px, 14vw, 116px);
  }

  .hero-art {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 34px;
    width: 100%;
    max-width: 790px;
    margin: 0 auto;
    padding-top: 6px;
  }

  .photo-wrap {
    flex: 0 0 306px;
    width: 306px;
  }

  .motto-card {
    flex: 1 1 auto;
    max-width: 360px;
    margin-top: 34px;
  }

  .doodle-whirl {
    display: none;
  }

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

  .about-copy {
    max-width: 660px;
  }

  .about-board {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 55px;
  }

  .about-doodle {
    left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-copy {
    max-width: 620px;
  }

  .contact-art {
    justify-content: flex-start;
    min-height: 290px;
    padding-left: 24px;
  }

  .contact-doodle {
    left: 0;
  }

  .contact-card {
    padding-bottom: 85px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    padding: 0 22px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 5px);
    right: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 22px 17px;
    background: #fdf7eb;
    border: 1px solid rgba(111, 81, 52, 0.22);
    border-radius: 3px;
    box-shadow: 0 18px 35px rgba(74, 52, 37, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-9px) rotate(-0.4deg);
    transition:
      opacity 0.24s ease,
      transform 0.28s var(--ease-out),
      visibility 0.24s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) rotate(0);
  }

  .nav-link {
    padding: 13px 2px;
    border-bottom: 1px dashed rgba(164, 132, 96, 0.3);
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-side {
    margin-left: auto;
  }

  .header-date {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-card {
    padding: 48px 36px 55px;
    background-image:
      radial-gradient(circle at 13% 9%, rgba(212, 161, 65, 0.08), transparent 28%),
      radial-gradient(circle, rgba(107, 79, 54, 0.09) 1px, transparent 1.1px);
    background-size: auto, 26px 26px;
  }

  .hero-edge-note {
    display: none;
  }

  /* 移动端去掉头像照片，只保留座右铭便签 */
  .hero-art {
    display: block;
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
    padding-top: 0;
  }

  .photo-wrap {
    display: none;
  }

  .motto-card {
    max-width: 100%;
    margin-top: 0;
  }

  .doodle-whirl {
    display: none;
  }

  .section {
    padding-top: 82px;
  }

  .about {
    padding-top: 88px;
  }

  .picks {
    padding-top: 98px;
  }

  .contact {
    padding-top: 94px;
  }

  .rec-columns {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .column-divider {
    display: none;
  }

  .picks-stamp {
    width: 108px;
    height: 108px;
    font-size: 8.5px;
  }

  .site-footer {
    margin-top: 60px;
  }
}

@media (max-width: 680px) {
  .picks-head {
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .picks-stamp {
    display: none;
  }

  .contact-art {
    justify-content: center;
    padding-left: 0;
  }

  .contact-doodle {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 18px;
  }

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

  .brand-name {
    font-size: 21px;
  }

  .brand-sub {
    display: inline;
    margin-left: 4px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .header-side {
    gap: 8px;
  }

  .nav-toggle-text {
    display: none;
  }

  .main-nav {
    right: 10px;
    left: 10px;
  }

  .hero {
    padding: 24px 14px 0;
  }

  .hero-card {
    padding: 40px 22px 45px;
  }

  .hero-tape-1 {
    left: 7%;
    width: 114px;
    height: 27px;
  }

  .hero-tape-2 {
    right: 6%;
    width: 92px;
    height: 24px;
  }

  .eyebrow {
    gap: 7px;
    font-size: 9.5px;
    letter-spacing: 0.11em;
  }

  .hero-title {
    margin-top: 18px;
  }

  .hero-greet {
    margin-bottom: 9px;
    font-size: 17px;
    letter-spacing: 0.08em;
  }

  .hero-name {
    padding-bottom: 14px;
    font-size: clamp(74px, 23vw, 96px);
    background-size: 100% 13px;
  }

  .identity {
    margin-top: 11px;
    font-size: 15.5px;
    letter-spacing: 0.03em;
  }

  .identity span {
    margin: 0 2px;
  }

  .hero-bio {
    margin-top: 17px;
    font-size: 14px;
    line-height: 1.95;
  }

  .hero-tags {
    gap: 8px;
    margin: 20px 0 24px;
  }

  .tag {
    padding: 3px 9px;
    font-size: 13.5px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    padding: 12px 16px;
    font-size: 12.5px;
  }

  .hero-scroll {
    margin-top: 27px;
    font-size: 13px;
  }

  .hero-scroll svg {
    width: 30px;
    height: 22px;
  }

  .photo-wrap {
    width: min(100%, 275px);
  }

  .round-stamp {
    right: -24px;
    bottom: -28px;
    width: 88px;
    height: 88px;
  }

  .motto-card {
    padding: 19px 19px 17px;
  }

  .motto-text {
    font-size: 18px;
  }

  .motto-trans {
    font-size: 11px;
  }

  .ticker {
    width: 100%;
    margin: 26px 0 0;
  }

  .ticker-track {
    gap: 21px;
    padding: 8px 0;
  }

  .ticker span {
    font-size: 9px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-kicker {
    margin-bottom: 23px;
  }

  .section-title {
    font-size: clamp(37px, 10.2vw, 45px);
  }

  .section-sub {
    font-size: 14px;
  }

  .about {
    padding-top: 77px;
  }

  .about-grid {
    gap: 43px;
  }

  .about-copy .about-lead {
    font-size: 16px;
  }

  .about-copy p {
    font-size: 14px;
  }

  .about-board {
    min-height: 0;
    padding: 4px 15px 58px 0;
  }

  .index-card {
    margin-left: 4px;
    padding: 25px 21px 22px;
  }

  .now-list li {
    grid-template-columns: 43px minmax(0, 1fr) 7px;
    gap: 8px;
  }

  .now-value {
    font-size: 17px;
  }

  .index-note {
    font-size: 17px;
  }

  .sticky-note {
    right: -2px;
    bottom: -30px;
    width: 153px;
    padding: 16px 17px 14px;
  }

  .sticky-note p {
    font-size: 20px;
  }

  .about-doodle {
    display: none;
  }

  .picks {
    padding-top: 78px;
  }

  .picks-head {
    margin-bottom: 27px;
  }

  .column-title {
    font-size: 22px;
  }

  .column-count {
    font-size: 8px;
  }

  .rec-list {
    gap: 19px;
    padding-top: 20px;
  }

  .rec-inner {
    grid-template-columns: 51px minmax(0, 1fr);
    gap: 14px;
  }

  .rec-card {
    padding: 20px 16px 18px;
  }

  .rec-mark-book {
    width: 48px;
    height: 66px;
  }

  .book-char {
    width: 27px;
    height: 34px;
    font-size: 19px;
  }

  .rec-mark-vinyl {
    width: 54px;
    height: 54px;
  }

  .rec-mark-vinyl::before {
    width: 21px;
    height: 21px;
  }

  .rec-title {
    font-size: 21px;
  }

  .rec-desc {
    font-size: 13.2px;
    line-height: 1.72;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .rec-kicker {
    font-size: 8.5px;
    letter-spacing: 0.06em;
  }

  .rec-hint {
    margin-top: 33px;
    font-size: 13.5px;
  }

  .contact {
    padding-top: 83px;
  }

  .contact-card {
    padding: 47px 23px 78px;
  }

  .contact-tape {
    left: 6%;
    width: 120px;
    height: 29px;
  }

  .contact-title {
    font-size: clamp(49px, 14.4vw, 61px);
  }

  .contact-text {
    font-size: 13.8px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .contact-art {
    min-height: 250px;
  }

  .envelope {
    width: 100%;
    max-width: 318px;
    height: 207px;
    padding: 20px;
    transform: rotate(-3deg) scale(0.98);
  }

  .envelope-stamp {
    top: 13px;
    right: 15px;
    width: 60px;
    height: 73px;
  }

  .envelope-stamp svg {
    width: 26px;
    height: 26px;
  }

  .envelope-address {
    bottom: 20px;
    left: 20px;
  }

  .envelope-address p {
    font-size: 22px;
  }

  .envelope-postmark {
    right: 22px;
    bottom: 20px;
    width: 59px;
    height: 59px;
    font-size: 7px;
  }

  .envelope-note {
    right: 0;
    bottom: -29px;
    font-size: 13.5px;
  }

  .site-footer {
    margin-top: 45px;
    padding: 0 18px;
  }

  .footer-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 9px 20px;
    padding: 23px 0 30px;
    font-size: 10.5px;
  }

  .footer-copy {
    order: 1;
  }

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

  .footer-made {
    order: 3;
    flex: 1 0 100%;
    margin-top: 1px;
  }

  .dialog-paper {
    padding: 42px 23px 27px;
    background-image:
      linear-gradient(90deg, transparent 0 16px, rgba(180, 86, 54, 0.1) 16px 17px, transparent 17px),
      radial-gradient(circle, rgba(107, 79, 54, 0.07) 1px, transparent 1.1px);
    background-size: auto, 24px 24px;
  }

  .dialog-paper::before {
    left: 24px;
    width: 92px;
    height: 21px;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .dialog-title {
    max-width: 100%;
    padding-right: 23px;
    font-size: clamp(29px, 8.5vw, 37px);
  }

  .dialog-meta {
    font-size: 9px;
  }

  .dialog-body p {
    font-size: 13.5px;
    line-height: 1.95;
  }

  .dialog-facts {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 15px 17px;
  }

  .dialog-memo {
    font-size: 16px;
  }

  .toast {
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 10px 15px;
    text-align: center;
    transform: translateY(16px);
  }

  .toast.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .hero-card {
    padding-right: 17px;
    padding-left: 17px;
  }

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

  .identity {
    font-size: 14.5px;
  }

  .contact-title {
    font-size: 46px;
  }

  .column-head {
    align-items: flex-end;
  }

  .rec-inner {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .rec-card {
    padding: 18px 13px 16px;
  }

  .rec-mark-book {
    width: 43px;
    height: 60px;
  }

  .rec-mark-vinyl {
    width: 49px;
    height: 49px;
  }

  .rec-title {
    font-size: 19.5px;
  }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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

  .ticker-track {
    animation: none;
  }

  .rec-card:hover,
  .photo-wrap:hover,
  .btn:hover {
    transform: none;
  }
}

/* ---------- 旧版浏览器间距兜底 ---------- */
@supports not (selector(:focus-visible)) {
  .main-nav {
    gap: 0;
  }

  .nav-link + .nav-link {
    margin-left: 33px;
  }

  .header-side {
    gap: 0;
  }

  .header-side > * + * {
    margin-left: 20px;
  }

  .eyebrow {
    gap: 0;
  }

  .eyebrow-star {
    margin-right: 9px;
  }

  .section-kicker {
    gap: 0;
  }

  .kicker-no {
    margin-right: 13px;
  }

  .kicker-label {
    margin-right: 13px;
  }

  .hero-tags {
    gap: 0;
  }

  .hero-tags .tag {
    margin: 0 11px 8px 0;
  }

  .hero-actions {
    gap: 0;
  }

  .hero-actions .btn + .btn {
    margin-left: 15px;
  }

  .btn {
    gap: 0;
  }

  .btn .btn-icon,
  .btn .github-icon,
  .btn .copy-icon,
  .btn .btn-dot {
    margin-left: 8px;
  }

  .hero-scroll {
    gap: 0;
  }

  .hero-scroll svg {
    margin-right: 10px;
  }

  .column-title {
    gap: 0;
  }

  .column-icon {
    margin-right: 11px;
  }

  .column-divider {
    gap: 0;
  }

  .column-divider span {
    margin-bottom: 31px;
  }

  .rec-content {
    gap: 0;
  }

  .rec-content > * + * {
    margin-top: 3px;
  }

  .rec-cta {
    gap: 0;
  }

  .rec-cta svg {
    margin-left: 6px;
  }

  .rec-hint {
    gap: 0;
  }

  .rec-hint-icon {
    margin-right: 8px;
  }

  .contact-actions {
    gap: 0;
  }

  .contact-actions .btn + .btn {
    margin-left: 14px;
  }

  .footer-inner {
    gap: 0;
  }

  .footer-inner > * + * {
    margin-left: 22px;
  }

  .picks-stamp::before {
    top: 6px;
    right: 6px;
    bottom: 6px;
    left: 6px;
  }

  .grain {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .dialog-close:focus {
    outline: none;
    box-shadow:
      0 0 0 3px #fffaf1,
      0 0 0 5px var(--terracotta);
  }

  @media (max-width: 860px) {
    .nav-link + .nav-link {
      margin-left: 0;
    }

    .header-side > * + * {
      margin-left: 0;
    }
  }

  @media (max-width: 560px) {
    .hero-tags .tag {
      margin-right: 8px;
    }

    .hero-actions .btn + .btn {
      margin-left: 10px;
    }

    .contact-actions .btn + .btn {
      margin-left: 0;
      margin-top: 10px;
    }

    .footer-inner > * + * {
      margin-left: 0;
    }
  }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header,
  .nav-toggle,
  .ticker,
  .hero-scroll,
  .hero-actions,
  .contact-actions,
  .back-top,
  .grain,
  .toast,
  .rec-dialog {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero-card,
  .rec-card,
  .index-card,
  .contact-card {
    box-shadow: none;
    break-inside: avoid;
  }

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