:root {
  --brand-primary: #9acd32;
  --brand-secondary: #6b8e23;
  --brand-primary-strong: #87b62b;
  --text-strong: #1f1f1f;
  --text-body: #2f2f2f;
  --text-muted: #5f5f5f;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --surface-dark: #202020;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --container: min(1120px, 92vw);
  --container-wide: min(1280px, 94vw);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text-body);
  background: var(--surface);
  line-height: 1.65;
}

a {
  color: var(--brand-secondary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--brand-primary-strong);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
img.icon {
  width: 2em;
  height: 2em;
}
.icon-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.icon-heading h3 {
    font-size: 1.5rem;
    padding-top: 10px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  background: var(--surface-dark);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--header-height);
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-strong);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
}

.brand-text {
  font-family: "Montserrat", "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.9rem;
}

.nav-menu a {
  color: var(--text-strong);
  font-weight: 500;
}

.nav-menu a[aria-current="page"] {
  color: var(--brand-secondary);
}

.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.72rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--brand-secondary);
  color: var(--brand-secondary);
  background: #fff;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--surface-muted);
}

main {
  min-height: calc(100vh - var(--header-height));
}

.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  display: grid;
  align-items: center;
  background: linear-gradient(150deg, rgba(107, 142, 35, 0.96), rgba(154, 205, 50, 0.9));
  color: #fff;
}

.page-hero .section-tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.page-hero .section-tag .sep {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero h1 {
  margin: 0;
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.page-hero p {
  max-width: 720px;
  margin-top: 1rem;
}

.section {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-strong);
}

.kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--brand-secondary);
  font-weight: 700;
}

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

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(107, 142, 35, 0.35);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: "Montserrat", "Poppins", sans-serif;
  color: var(--text-strong);
}

.card p:last-child,
.card a:last-child {
  margin-bottom: 0;
}

/* PPTX-inspired monospace label, e.g. [ workshop ] // theory / network */
.section-tag {
  display: inline-block;
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--brand-secondary);
  background: rgba(154, 205, 50, 0.12);
  border: 1px solid rgba(107, 142, 35, 0.25);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  margin-bottom: 1rem;
}

.section-tag .sep {
  color: var(--text-muted);
  opacity: 0.8;
}

.lede {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 70ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

.list-clean {
  margin: 0;
  padding-left: 1.15rem;
}

.notice,
.tip,
.warning {
  border-left: 4px solid var(--brand-secondary);
  background: #fbfff2;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.warning {
  border-left-color: #be7b00;
  background: #fff9ef;
}

.tip {
  border-left-color: #2f7f9f;
  background: #f2fbff;
}

.code-block,
.command-block {
  background: #0f1720;
  color: #d7e2ef;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
}

.breadcrumbs {
  font-size: 0.93rem;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: #eaf6cf;
}

.site-footer {
  background: var(--surface-dark);
  color: #f1f1f1;
}

.footer-main {
  padding: 2.25rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-main h3 {
  margin-top: 0;
  font-size: 1rem;
  color: #fff;
}

.footer-main a {
  color: #c6e895;
}

.footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-main li {
  margin-bottom: 0.45rem;
}

.footer-bar {
  border-top: 1px solid #333;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-bar-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.2rem 0;
  }
}
