/* ============================================================
   小黄源码 · pudn.cn
   Design tokens + base styles
   Theme: dark hero / light content  (深浅分区混搭)
   Accent: 单一琥珀金 #C98A2E  (暖色，呼应"小黄")
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* dark surfaces (hero / footer) */
  --ink-950: #0f1113;
  --ink-900: #16191c;
  --ink-850: #1c2024;
  --ink-800: #24282d;
  --ink-700: #32373d;
  --ink-600: #454b52;
  --ink-400: #6b737b;
  --ink-300: #9aa2aa;
  --ink-200: #c4cad0;

  /* light surfaces (content) */
  --paper:   #f6f5f2;
  --paper-2: #ffffff;
  --paper-3: #eeede9;
  --line:    #e0ded7;
  --line-2:  #cfccc3;

  /* text on light */
  --t-900: #1a1c1f;
  --t-700: #40454c;
  --t-500: #6d747c;
  --t-400: #8b929a;

  /* accent — the single accent colour */
  --amber-700: #a86f1c;
  --amber-600: #c98a2e;
  --amber-500: #e0a548;
  --amber-300: #f0c880;
  --amber-050: #fdf4e3;

  /* radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* type */
  --font-sans: "Inter", "HarmonyOS Sans SC", "MiSans", "PingFang SC",
               "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular",
               Consolas, "Liberation Mono", monospace;

  /* layout */
  --maxw: 1180px;
  --gutter: 32px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--t-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

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

:focus-visible {
  outline: 2px solid var(--amber-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--amber-600);
  color: var(--ink-950);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

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

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--amber-600);
  color: #1a1206;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 6px 18px -8px rgba(201,138,46,.7);
}
.btn--primary:hover {
  background: var(--amber-500);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 26px -8px rgba(201,138,46,.85);
}

.btn--ghost-dark {
  border: 1px solid var(--ink-600);
  color: var(--ink-200);
}
.btn--ghost-dark:hover {
  border-color: var(--ink-400);
  color: #fff;
  background: rgba(255,255,255,.04);
}

.btn--ghost-light {
  border: 1px solid var(--line-2);
  color: var(--t-700);
  background: var(--paper-2);
}
.btn--ghost-light:hover {
  border-color: var(--amber-600);
  color: var(--amber-700);
}

/* ---------- 5. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
