@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root {
  --ink: #171f26;
  --ink-hi: #232f39;
  --ink-lo: #131a20;
  --blue: #c8e0f4;
  --rose: #f5e0e8;
  --text: #dbe6ee;
  --muted: #93a7b6;
  --line: rgba(200, 224, 244, 0.16);
  --hi: rgba(255, 255, 255, 0.055);
  --lo: rgba(0, 0, 0, 0.6);
  --sans: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --serif: 'Crimson Pro', 'Songti SC', 'Source Han Serif SC', 'Noto Serif SC', 'SimSun', serif;
  --raise: -5px -5px 14px var(--hi), 6px 6px 16px var(--lo);
  --press: inset -3px -3px 8px var(--hi), inset 3px 3px 8px var(--lo);
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 78% at 88% -8%, #23323d 0%, rgba(23, 31, 38, 0) 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(245, 224, 232, 0.07) 0%, rgba(23, 31, 38, 0) 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* ---- head ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background-image: linear-gradient(180deg, #1c262e, #151d24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.head-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 1.1rem;
}

.brand {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-image: linear-gradient(145deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--raise);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.brand:active {
  transform: scale(0.95);
  box-shadow: var(--press);
}

.mono {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.mainnav {
  margin-left: auto;
  min-width: 0;
}

.mainnav ol,
.jumpbar ol,
.fnav ol,
.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.mainnav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.72rem;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.15;
  text-decoration: none;
  transition: color 150ms ease, background-image 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.mainnav a:hover {
  color: var(--blue);
  background-image: linear-gradient(145deg, #222d37, #161e25);
  box-shadow: var(--raise);
}

.mainnav a:active {
  transform: scale(0.96);
}

.jumpbar {
  background-image: linear-gradient(180deg, #151d24, #111820);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.jumpbar nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.4rem 1.1rem 0.55rem;
}

.jumpbar a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.65rem;
  border-radius: 11px;
  font-size: 0.85rem;
  line-height: 1.15;
  color: var(--muted);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.03);
  transition: color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.jumpbar a:hover {
  color: var(--rose);
  transform: translateY(-1px);
  box-shadow: var(--raise);
}

/* ---- hero ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 70vh;
  padding: 1.6rem 1.1rem 2.6rem;
  overflow: hidden;
  background-image: radial-gradient(72% 100% at 6% 16%, rgba(245, 224, 232, 0.1), rgba(23, 31, 38, 0) 62%);
}

.hero-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 4vw, 3rem);
}

.hero-art {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(96px, 21vw, 188px);
  aspect-ratio: 1 / 1;
  border-radius: 42% 58% 62% 38% / 46% 38% 62% 54%;
  overflow: hidden;
  background-image: linear-gradient(145deg, #243039, var(--ink-lo));
  box-shadow: var(--raise);
}

.hero-art svg {
  width: 78%;
  height: auto;
}

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

.hero-copy {
  max-width: 36rem;
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background-image: linear-gradient(145deg, var(--rose), var(--blue));
  box-shadow: var(--raise);
  transform: rotate(-1.5deg);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.05rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #f3f8fc;
  text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.05), 2px 2px 12px rgba(0, 0, 0, 0.5);
}

.lede {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---- main grid ---- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.2rem 1.1rem 3.4rem;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}

.side {
  position: sticky;
  top: 150px;
  padding: 1.1rem;
  border-radius: 16px;
  background-image: linear-gradient(145deg, #202a33, var(--ink-lo));
  box-shadow: var(--raise);
}

.eyebrow,
section small {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.6;
  color: var(--blue);
}

.side-title {
  margin: 0.2rem 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.3;
  color: #eef5fa;
}

.side-list {
  flex-direction: column;
  gap: 0.12rem;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.3rem 0.5rem;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms ease, color 150ms ease;
}

.side-list a:hover {
  color: var(--rose);
  transform: translateX(3px);
}

.num {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--muted);
}

.to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.9rem;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(145deg, var(--blue), #a9c8de);
  box-shadow: var(--raise);
  transition: transform 150ms ease;
}

.to-top:active {
  transform: scale(0.97);
}

/* ---- content ---- */
.content {
  min-width: 0;
}

section {
  max-width: 66ch;
}

section > div {
  position: relative;
  padding: 1.8rem 0 2.1rem;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  scroll-margin-top: 150px;
  animation: rise 560ms both ease-out;
}

section > div:first-child {
  padding-top: 0.2rem;
}

section > div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 74px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--rose), var(--blue));
}

section > div:nth-child(2) { animation-delay: 50ms; }
section > div:nth-child(3) { animation-delay: 100ms; }
section > div:nth-child(4) { animation-delay: 150ms; }
section > div:nth-child(5) { animation-delay: 200ms; }
section > div:nth-child(6) { animation-delay: 250ms; }
section > div:nth-child(7) { animation-delay: 300ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

section small {
  margin-bottom: 0.35rem;
}

section h2 {
  margin: 0.1rem 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.32rem, 3vw, 1.72rem);
  font-weight: 600;
  line-height: 1.32;
  color: #f1f7fb;
}

section h3 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--sans);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--rose);
}

section p {
  margin: 0.85rem 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
}

section ul,
section ol {
  margin: 0.9rem 0;
  padding-left: 1.35rem;
}

section li {
  margin: 0.42rem 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.82;
}

section li::marker {
  color: var(--blue);
}

section a {
  color: var(--blue);
  text-underline-offset: 3px;
}

section a:hover {
  color: var(--rose);
}

section strong {
  color: #ffffff;
}

section img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.9rem 0;
  border-radius: 12px;
  box-shadow: var(--raise);
}

section blockquote {
  margin: 1.1rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--rose);
  border-radius: 0 12px 12px 0;
  background-color: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

section blockquote p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.08);
}

section hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.4rem 0;
}

section table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.98rem;
}

section th,
section td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ---- foot ---- */
.site-foot {
  padding: 2.4rem 1.1rem 1.6rem;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-image: linear-gradient(180deg, #151d24, #101619);
}

.foot-giant {
  max-width: 1120px;
  margin: 0 auto 1rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 11vw, 6.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: transparent;
  background-image: linear-gradient(100deg, var(--rose), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.55;
}

.foot-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1.5fr 1.1fr auto;
  gap: 1.6rem;
  align-items: start;
}

.fcell {
  min-width: 0;
}

.fbrand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fbrand-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-image: linear-gradient(145deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--raise);
  text-decoration: none;
}

.fbrand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #e8f1f8;
  white-space: nowrap;
}

.fnav ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem;
}

.fnav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.4rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  transition: color 150ms ease;
}

.fnav a:hover {
  color: var(--blue);
}

.fnote p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.fcopy {
  text-align: center;
}

.fcopy p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

/* ---- small screens ---- */
@media (max-width: 900px) {
  .mainnav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.84rem;
  }

  .jumpbar a {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 1.2rem 0.9rem 2rem;
  }

  .hero-inner {
    gap: 1rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.6rem 0.9rem 2.6rem;
  }

  .side {
    position: static;
    padding: 0.9rem;
  }

  .side-list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .side-list a {
    padding: 0.3rem 0.55rem;
    background-color: rgba(255, 255, 255, 0.04);
  }

  .to-top {
    margin-top: 0.7rem;
  }

  section > div {
    scroll-margin-top: 118px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }

  .fcopy {
    text-align: left;
  }

  .fcopy p {
    margin-top: 0;
  }
}

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

  .head-row {
    padding: 0.45rem 0.8rem;
    gap: 0.6rem;
  }

  .jumpbar nav {
    padding: 0.35rem 0.8rem 0.5rem;
  }

  .hero-art {
    width: 88px;
  }

  section p,
  section li {
    font-size: 1.02rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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