:root {
  /* MatchaOnly Palette (Light Mode Source) */
  --bg-page: #fdfbf7; /* Rice Paper */
  --text-main: #1a2e1f; /* Dark Forest */
  --text-sub: #5c6b60; /* Muted Forest */

  --accent-matcha: #6b8c42; /* Earthy Matcha */
  --accent-gold: #bfa15f; /* Muted Gold */

  --border-light: #e6e2d8;

  /* Fonts */
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Playfair Display", serif;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

/* --- Navigation --- */
.nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  margin-bottom: 4rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  border-color: var(--accent-matcha);
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 4rem 0 4rem;
  position: relative;
}

.hero-title {
  font-size: 5rem;
  font-weight: 200; /* Extra Light */
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.hero-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-matcha);
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-sub);
  line-height: 1.6;
  font-weight: 300;
}

.social-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-link {
  color: var(--text-sub);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--accent-matcha);
}

/* --- Sections --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-sub);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-main);
  font-style: italic;
}

/* --- Grid System --- */
.clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  margin-bottom: 8rem;
}

/* --- Cards --- */
.card {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
  group: hover;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.card-icon {
  font-size: 0.9rem;
  color: var(--accent-matcha);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.5rem;
}

.card-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--accent-matcha);
}

/* --- Certs --- */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 0;
}

.cert-item {
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.cert-item:hover {
  opacity: 1;
}

.cert-item img {
  width: 50px;
  height: 50px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.cert-item:hover img {
  filter: grayscale(0);
}

/* --- View States --- */
.view-section {
  display: none;
  animation: fadeUp 0.6s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .clean-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .nav-bar {
    flex-direction: column;
    gap: 1rem;
  }
}
