:root {
  --bg: #0b0b0d;
  --surface: #131317;
  --surface-elevated: #1a1a20;
  --text: #f5f4f0;
  --text-muted: #9b9992;
  --border: #27272e;
  --accent: #e5a93c;
  --accent-hover: #f0bc5e;
  --accent-ink: #0b0b0d;
  --accent-soft: rgba(229, 169, 60, 0.12);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Archivo", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

[data-theme="light"] {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-elevated: #efede7;
  --text: #151517;
  --text-muted: #575650;
  --border: #dfddd5;
  --accent: #b86e00;
  --accent-hover: #9a5b00;
  --accent-ink: #ffffff;
  --accent-soft: rgba(184, 110, 0, 0.09);
  --shadow: 0 8px 24px rgba(21, 21, 23, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.22s ease, color 0.22s ease;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

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

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background-color: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  color: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

/* Hero */
.hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: end;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
}

.hero-bio {
  margin: 0 0 30px;
  max-width: 58ch;
  font-size: 1rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

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

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.84rem;
}

.hero-spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.spec-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.spec-row dt {
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Disciplines */
.discipline-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.discipline-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.discipline-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.discipline-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.discipline-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.discipline-desc {
  margin: 0;
  max-width: 65ch;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Focus Bento */
.focus-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bento-feature,
.bento-sub {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
}

.bento-feature:hover,
.bento-sub:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.bento-meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.bento-feature h3,
.bento-sub h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
}

.bento-feature p,
.bento-sub p {
  margin: 0;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
}

.bento-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mono-id {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.text-action {
  background: none;
  border: none;
  padding: 6px 8px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
}

.text-action:hover {
  background: var(--accent-soft);
}

/* Contact */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-copy .section-title {
  margin-bottom: 10px;
}

.contact-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 48px;
}

.contact-value {
  font-size: 0.94rem;
  font-weight: 500;
  margin-right: auto;
  word-break: break-all;
}

a.contact-value:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero-grid,
  .discipline-item,
  .focus-bento,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .discipline-item {
    gap: 10px;
  }

  .nav-links {
    gap: 16px;
  }
}

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

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