:root {
  --ink: #172623;
  --ink-2: #2d423c;
  --sand: #d4c4a8;
  --sand-soft: #ebe2ce;
  --paper: #f7f2e8;
  --paper-2: #fbf8f1;
  --mint: #5cc6b0;
  --mint-deep: #38a48d;
  --link: #1d6f5f;
  --line: rgba(23, 38, 35, 0.18);
  --line-soft: rgba(23, 38, 35, 0.09);
  --r: 10px;
  --r-organic: 14px 10px 16px 10px;
  --shadow: 0 1px 2px rgba(23, 38, 35, 0.06), 0 16px 32px -22px rgba(23, 38, 35, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 38, 35, 0.075) 1px, transparent 1px);
  background-size: 26px 26px;
}

a {
  color: var(--link);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 2px;
}

.skip {
  position: fixed;
  top: -70px;
  left: 14px;
  z-index: 60;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #f7f2e8;
  text-decoration: none;
  transition: top 0.22s var(--ease);
}

.skip:focus {
  top: 12px;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(9px);
}

.bar-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-organic);
  background: var(--ink);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease);
}

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

.brand-mark {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--mint);
}

.brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px 0 20px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.menu-link::before {
  content: "";
  position: absolute;
  left: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--mint);
  transition: transform 0.3s var(--ease);
}

.menu-link:hover {
  background: rgba(92, 198, 176, 0.26);
}

.menu-link:hover::before {
  transform: rotate(45deg) scale(1.25);
}

.frame {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap {
  padding-top: 6px;
}

.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: stretch;
  gap: clamp(20px, 4vw, 46px);
  min-height: 45vh;
  padding: clamp(24px, 4vh, 42px) 0 clamp(24px, 4vh, 40px);
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.3vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-text {
  margin: 0;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 17px;
}

.hero-cta {
  margin: 20px 0 0;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r);
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.26s var(--ease), background 0.26s var(--ease);
}

.hero-cta a:hover {
  transform: translateY(-2px);
  background: var(--mint-deep);
}

.hero-art {
  margin: 0;
  position: relative;
  min-height: 230px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(23, 38, 35, 0.1) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(23, 38, 35, 0.1) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(158deg, var(--sand) 0%, #ecdfc6 52%, rgba(92, 198, 176, 0.9) 135%);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  will-change: transform;
}

.art-fallback {
  position: absolute;
  inset: 0;
}

.art-fallback i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(23, 38, 35, 0.18);
}

.art-fallback i:nth-child(1) {
  width: 46%;
  padding-bottom: 46%;
  left: 10%;
  top: 16%;
  background: rgba(247, 242, 232, 0.72);
}

.art-fallback i:nth-child(2) {
  width: 26%;
  padding-bottom: 26%;
  right: 12%;
  bottom: 14%;
  background: rgba(23, 38, 35, 0.3);
}

.art-fallback i:nth-child(3) {
  width: 13%;
  padding-bottom: 13%;
  left: 20%;
  bottom: 18%;
  background: var(--mint-deep);
}

.reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: clamp(22px, 3vw, 40px);
  padding: 6px 0 56px;
}

.prose {
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.prose > section {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 96px;
}

.prose > section:first-child {
  padding-top: 4px;
  border-top: 0;
}

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(1.32rem, 2.5vw, 1.72rem);
  line-height: 1.22;
  letter-spacing: -0.024em;
  font-weight: 700;
  text-wrap: balance;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 1.09rem;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.prose li {
  margin: 7px 0;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover {
  background: rgba(92, 198, 176, 0.28);
}

.prose strong {
  background: rgba(212, 196, 168, 0.55);
  padding: 0 3px;
  border-radius: 4px;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 4px solid var(--mint);
  background: rgba(212, 196, 168, 0.3);
  border-radius: 0 var(--r) var(--r) 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 16px;
}

.prose th,
.prose td {
  border: 1px solid var(--line-soft);
  padding: 9px 11px;
  text-align: left;
}

.prose th {
  background: rgba(212, 196, 168, 0.4);
}

.side {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-organic);
  background: linear-gradient(180deg, var(--sand-soft), rgba(235, 226, 206, 0.62));
  box-shadow: var(--shadow);
}

.side-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.side .subtitle {
  margin: 4px 0 12px;
  font-size: 16px;
  color: var(--ink-2);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  border-left: 3px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.side-list a:hover {
  background: rgba(251, 248, 241, 0.8);
  border-left-color: var(--mint-deep);
}

.subtitle {
  font-size: 16px;
  color: var(--ink-2);
}

.foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 44px;
  padding: 16px 22px;
  border-radius: var(--r);
  background: var(--ink);
  color: #eae3d4;
}

.foot-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.foot-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-organic);
  background: rgba(92, 198, 176, 0.16);
  overflow: hidden;
  text-decoration: none;
}

.foot-brand {
  font-weight: 600;
  font-size: 16px;
  color: #f3eee2;
  white-space: nowrap;
}

.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 12px;
  margin: 0;
}

.foot-nav dt {
  font-size: 16px;
  color: var(--mint);
  letter-spacing: 0.08em;
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: #eae3d4;
  font-size: 16px;
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-note p {
  margin: 0;
  font-size: 16px;
  color: #cfc7b6;
  text-align: center;
}

.h1-alt {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 12px;
}

.js .prose > section {
  opacity: 0;
  transform: translateY(16px);
}

.js .prose > section.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}

@media (max-width: 900px) {
  .reading {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    max-height: none;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .foot-id {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-art {
    order: 2;
    aspect-ratio: 16 / 10;
    min-height: 180px;
  }

  .hero-img {
    min-height: 180px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .bar-in {
    padding: 9px 14px;
    gap: 10px;
  }

  .frame {
    padding: 0 14px;
  }

  .menu-link {
    padding: 0 9px 0 17px;
    font-size: 16px;
  }

  .prose {
    padding: 18px 15px;
  }
}

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

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

  .js .prose > section {
    opacity: 1;
    transform: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
