:root {
  --gl-forest: #1d5d4f;
  --gl-forest-deep: #17342d;
  --gl-gold: #c88d2a;
  --gl-paper: #fbf8f1;
  --gl-paper-dark: #f4ede1;
  --gl-ink: #21312d;
  --gl-muted: #5f6f69;
  --gl-line: rgba(23, 52, 45, 0.12);
  --gl-shadow: 0 18px 40px rgba(23, 52, 45, 0.08);
  --gl-radius: 1.1rem;
}

body {
  text-wrap: pretty;
}

body:has(.hero) #title-block-header {
  display: none;
}

.navbar-brand,
.sidebar-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: 0.01em;
}

.hero {
  padding: 2.75rem;
  margin: 0 0 2rem;
  border: 1px solid var(--gl-line);
  border-radius: calc(var(--gl-radius) * 1.2);
  background:
    radial-gradient(circle at top right, rgba(200, 141, 42, 0.2), transparent 28%),
    linear-gradient(135deg, #f8f1e1 0%, #e7f0eb 100%);
  box-shadow: var(--gl-shadow);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--gl-forest);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero > h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.hero p {
  max-width: 56rem;
  font-size: 1.1rem;
  color: var(--gl-ink);
}

a.hero-button {
  display: inline-block;
  margin: 0.5rem 0.75rem 0 0;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gl-forest);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 10px 24px rgba(29, 93, 79, 0.18);
}

a.hero-button:hover,
a.hero-button:focus {
  color: #fff;
  background: #174c40;
  transform: translateY(-1px);
}

a.hero-button.secondary {
  background: transparent;
  border-color: rgba(29, 93, 79, 0.3);
  color: var(--gl-forest-deep);
  box-shadow: none;
}

a.hero-button.secondary:hover,
a.hero-button.secondary:focus {
  background: rgba(29, 93, 79, 0.06);
  color: var(--gl-forest-deep);
}

.card-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}

.info-card,
.principle-card {
  height: 100%;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--gl-line);
  border-radius: var(--gl-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--gl-shadow);
}

.info-card h3,
.principle-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

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

.info-card a {
  font-weight: 700;
}

.quarto-title-banner .quarto-title .title,
h1,
h2,
h3,
h4 {
  letter-spacing: -0.01em;
}

.quarto-title-meta,
.quarto-title-banner .description,
.sidebar nav a,
.toc-active,
.menu-text {
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

.callout {
  border-radius: var(--gl-radius);
  border-width: 1px;
  box-shadow: 0 8px 20px rgba(23, 52, 45, 0.05);
}

table {
  margin-top: 1rem;
  border-collapse: separate;
  border-spacing: 0;
}

table thead th {
  background: rgba(29, 93, 79, 0.08);
}

table th,
table td {
  border-color: var(--gl-line);
}

pre,
.sourceCode {
  border: 1px solid rgba(200, 141, 42, 0.16);
  border-radius: 0.95rem;
}

code:not(.sourceCode code) {
  padding: 0.12rem 0.38rem;
  border-radius: 0.4rem;
}

.sidebar nav[role="doc-toc"] ul > li > a.active,
.sidebar nav[role="doc-toc"] ul > li > ul > li > a.active {
  color: var(--gl-forest);
}

.page-navigation {
  border-top: 1px solid var(--gl-line);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

div.csl-entry {
  margin-top: 1rem;
}

div.csl-entry a::before {
  content: "\a";
  white-space: pre;
}

div.csl-entry a {
  color: var(--gl-forest);
}

@media (max-width: 900px) {
  .hero {
    padding: 1.8rem;
  }

  .card-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }
}
