/* Lakeside Forest personal site — last updated 2026-06-07 */

:root {
  --bg: #f4f7f4;
  --bg-alt: #e8efe8;
  --surface: #ffffff;
  --text: #1a2e1f;
  --text-muted: #4a5f50;
  --accent: #2d6a4f;
  --accent-light: #40916c;
  --border: #c8d5cb;
  --shadow: 0 12px 40px rgba(26, 46, 31, 0.08);
  --radius: 14px;
  --max-width: 920px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(64, 145, 108, 0.18), transparent),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-light);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(244, 247, 244, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-links a[aria-current="page"] {
  font-weight: 600;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1rem;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-meta {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-meta a {
  font-weight: 500;
}

.hero-meta-sep {
  margin: 0 0.45rem;
  opacity: 0.5;
}

.hero-compact {
  padding: 3.5rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.25);
}

.btn-primary:hover {
  color: #fff;
  background: var(--accent-light);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.section {
  padding: 2.5rem 0;
}

.section-alt {
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.about-grid p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.tag-list li {
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-projects .card-wide {
    grid-column: 1 / -1;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(45, 106, 79, 0.12);
  color: var(--accent);
}

.card-badge-muted {
  background: var(--bg-alt);
  color: var(--text-muted);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

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

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.9rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}

.timeline time {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

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

.timeline-compact li:last-child {
  padding-bottom: 0;
}

.detail-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.detail-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--border);
}

.section-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  min-width: 4.5rem;
  font-weight: 600;
  color: var(--text);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-time {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .nav-links {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 3rem;
  }
}
