:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --green: #064e3b;
  --green-dark: #022c22;
  --gold: #b45309;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button,
input,
select,
textarea {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

img {
  display: block;
}

.brand-icon {
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 8px 18px rgba(6, 78, 59, 0.14);
  flex: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.group:hover .brand-icon {
  box-shadow: 0 0 0 1px rgba(6, 78, 59, 0.2), 0 12px 24px rgba(6, 78, 59, 0.18);
  transform: translateY(-1px);
}

.nav-link {
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.925rem;
  font-weight: 700;
  padding: 0.625rem 0.875rem;
}

.nav-link:hover,
.nav-link.is-active {
  background: #ecfdf5;
  color: var(--green);
}

.nav-link-strong {
  background: var(--green);
  color: #fff;
}

.nav-link-strong:hover,
.nav-link-strong.is-active {
  background: var(--green-dark);
  color: #fff;
}

.btn-primary,
.btn-secondary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.panel-glass {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 1.5rem;
  backdrop-filter: blur(18px);
}

.hero-profile-card {
  overflow: hidden;
  padding: 0;
}

.hero-profile-photo {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-profile-content {
  padding: 1.5rem;
}

.metric {
  border-left: 4px solid var(--green);
  padding-left: 1rem;
}

.metric span,
.eyebrow,
.tag {
  color: var(--green);
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-top: 0.35rem;
}

.section {
  margin-inline: auto;
  max-width: 80rem;
  padding: 4rem 1rem;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 950;
  line-height: 1.05;
  margin-top: 0.55rem;
}

.text-link {
  color: var(--green);
  font-weight: 900;
}

.text-link:hover {
  color: var(--green-dark);
}

.feature-card,
.article-card,
.book-card,
.info-tile,
.profile-card,
.info-panel,
.timeline-item,
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feature-card img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.feature-card div,
.article-card,
.info-tile,
.profile-card,
.info-panel,
.timeline-item {
  padding: 1.25rem;
}

.feature-card h3,
.article-card h3,
.book-card h3,
.info-tile h3,
.timeline-item h3 {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 0.65rem;
}

.feature-card p:not(.tag),
.article-card p:not(.tag),
.book-card p:not(.tag),
.info-tile p,
.timeline-item p,
.info-panel p,
.profile-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.65rem;
}

.book-tile {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.35rem;
}

.book-tile span {
  color: #a7f3d0;
  font-weight: 900;
}

.book-tile h3 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-top: 1rem;
}

.book-tile p {
  color: #d1fae5;
  line-height: 1.75;
  margin-top: 0.75rem;
}

.page-hero {
  display: grid;
  gap: 2rem;
  margin-inline: auto;
  max-width: 80rem;
  padding: 4rem 1rem 2rem;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 950;
  line-height: 0.98;
  margin-top: 1rem;
  max-width: 58rem;
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-top: 1.25rem;
  max-width: 46rem;
}

.page-hero img {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  object-fit: cover;
  width: 100%;
}

.filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 800;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.article-card {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
}

.article-card a {
  color: var(--green);
  display: inline-flex;
  font-weight: 900;
  margin-top: auto;
  padding-top: 1.25rem;
}

.book-card {
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
}

.book-card > div:last-child {
  display: flex;
  flex-direction: column;
  padding: 0.25rem;
}

.book-cover {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: #f8fafc;
  border-radius: 0.45rem;
  display: flex;
  justify-content: center;
  min-height: 17rem;
  overflow: hidden;
  padding: 0.65rem;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.book-cover img {
  border-radius: 0.3rem;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.book-actions {
  margin-top: auto;
  padding-top: 1.25rem;
}

.book-button {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1.05rem;
}

.book-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.profile-card h2,
.info-panel h2 {
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1.1;
  margin-top: 1.5rem;
}

.profile-photo {
  aspect-ratio: 4 / 3;
  border-radius: 0.45rem;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.pill {
  background: #ecfdf5;
  border-radius: 999px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
}

.timeline-item span {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.contact-form label {
  color: #334155;
  display: block;
  font-size: 0.875rem;
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
  color: var(--ink);
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.12);
  outline: none;
}

.form-status {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 1.5rem;
  text-align: center;
}

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
}

.site-footer p {
  font-weight: 900;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

@media (min-width: 640px) {
  .section,
  .page-hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .book-card {
    grid-template-columns: 12rem 1fr;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .section,
  .page-hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .page-hero {
    grid-template-columns: 1fr 0.78fr;
    align-items: end;
  }
}

@media (max-width: 767px) {
  .nav-menu.is-open {
    display: block;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
