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

:root {
  --bg: #f9f8f5;
  --surface: #ffffff;
  --border: #e4e1d9;
  --text: #1a1918;
  --muted: #6b6862;
  --accent: #2c2c2c;
  --accent-dim: rgba(0, 0, 0, 0.07);
  --radius: 10px;
  --max-w: 780px;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}


[data-theme="dark"] {
  --bg: #0f0f0d;
  --surface: #1c1b18;
  --border: #2e2c28;
  --text: #e8e6e1;
  --muted: #7a7874;
  --accent: #e8e6e1;
  --accent-dim: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] nav {
  background: rgba(15, 15, 13, 0.88);
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-nav {
  color: #0f0f0d;
}

[data-theme="dark"] .btn-nav {
  background: #e8e6e1;
  color: #0f0f0d !important;
}

body {
  background-color: transparent;
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ─────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(249, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--muted);
}

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

nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

nav ul a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

nav ul a:hover { color: var(--text); text-decoration: none; }

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem !important;
  transition: opacity 0.15s;
}

.btn-nav:hover { opacity: 0.85; text-decoration: none !important; }

/* ── MAIN LAYOUT ─────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  height: 2px;
  width: 40px;
  background: var(--accent);
  margin-top: 6px;
}

/* ── HERO ────────────────────────────────── */
#hero {
  padding: 5rem 0 3rem;
  display: flex;
  align-items: center;
}

.hero-content { max-width: 560px; }

.greeting {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

#hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.aka {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: -0.6rem;
  margin-bottom: 0.8rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.hero-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s;
}

.hero-links a:hover {
  color: var(--text);
  border-color: var(--muted);
  text-decoration: none;
}

/* ── ABOUT ───────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
}

.about-text p + p { margin-top: 1rem; }
.about-text p { color: var(--text); }

.skills h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── EXPERIENCE ──────────────────────────── */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.experience-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.exp-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: var(--surface);
  flex-shrink: 0;
}

.exp-body {
  flex: 1;
  border-left: 2px solid var(--border);
  padding-left: 1.2rem;
}

.exp-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.15rem;
}

.exp-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.exp-date {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.exp-company {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.exp-location {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.exp-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── PROJECTS ────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.tag {
  font-size: 0.75rem;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.4rem;
}

.project-links a {
  font-size: 0.82rem;
  font-weight: 500;
}

/* ── HOBBIES ─────────────────────────────── */
.hobbies-text {
  font-size: 1rem;
  color: var(--text);
  max-width: 520px;
}

/* ── PARKS ───────────────────────────────── */
.parks-intro {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  margin-top: -1rem;
}

.park-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.park-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.park-card:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
  text-decoration: none;
}

.park-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

.park-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.park-card:hover .park-thumb img {
  transform: scale(1.04);
}

.park-card .park-name {
  display: block;
  padding: 0.55rem 0.8rem 0.1rem;
}

.park-card .park-state {
  display: block;
  padding: 0 0.8rem 0.6rem;
}

.park-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.park-state {
  font-size: 0.78rem;
  color: var(--muted);
}

.btn-outline {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.45rem 1.1rem;
  border-radius: 7px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-outline:hover {
  border-color: var(--muted);
  text-decoration: none;
}

/* ── PARK INDIVIDUAL PAGE ────────────────── */
.park-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.park-page-hero {
  padding: 3rem 0 1rem;
}

.park-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.park-page-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.journal-content p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
}

.journal-content p + p {
  margin-top: 1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}

.photo-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

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

.photo-slot.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.photo-slot.empty::after {
  content: 'No photo yet';
  font-size: 0.78rem;
  color: var(--muted);
}

.photo-slot.empty img {
  display: none;
}

/* ── PARKS GALLERY ───────────────────────── */
#parks-gallery {
  padding-top: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.gallery-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
}

.gallery-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
}

.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}

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

.gallery-info {
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* ── CONTACT ─────────────────────────────── */
.contact-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s, color 0.15s;
}

.btn-contact:hover {
  border-color: var(--muted);
  text-decoration: none;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  height: 3rem;
}

/* ── HAMBURGER ───────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 640px) {
  nav {
    padding: 0 1rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
  }

  .nav-toggle { display: flex; }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0 1rem;
    order: 3;
  }

  nav ul li a {
    display: block;
    padding: 0.55rem 0;
    font-size: 0.95rem;
  }

  nav ul li:last-child { margin-top: 0.5rem; }

  nav.nav-open ul { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .exp-header {
    flex-direction: column;
    gap: 0.1rem;
  }

  .park-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}
