:root {
  --page: #f4f0e6;
  --surface: #fcfaf5;
  --ink: #253c40;
  --muted: #566461;
  --accent: #35786e;
  --line: #dadbd1;
  --bs-body-bg: var(--page);
  --bs-body-color: var(--ink);
  --bs-link-color: #28685e;
  --bs-link-hover-color: #194d45;
}
body {
  background: var(--page);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.2; }
h1, h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { margin-top: 2.6rem; padding-top: 0.5rem; border-top: 1px solid var(--line); font-size: 1.9rem; }
h3 { margin-top: 1.8rem; font-size: 1.15rem; }
a { text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:is(a, button, input, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
#quarto-header { background: var(--page); }
.navbar {
  max-width: 1240px;
  margin: 18px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface) !important;
}
.navbar-brand { color: var(--ink); font-size: 1.05rem; font-weight: 650; }
.navbar .nav-link { color: var(--ink); font-size: 0.9rem; }
.navbar .nav-link.active { color: #28685e; text-decoration: underline; text-underline-offset: 0.4em; }
.dropdown-menu { background: var(--surface); border-color: var(--line); }
.dropdown-item:hover, .dropdown-item:focus { background: #e6eee6; color: var(--ink); }
.dropdown-item.active { background: var(--accent); color: white; }
#quarto-content { padding-top: 2rem; }
#quarto-document-content { padding-bottom: 2.5rem; }
#title-block-header { margin-bottom: 2rem; }
#TOC { font-size: 0.85rem; }
#TOC a { color: var(--muted); }
#TOC .nav-link.active { color: #28685e !important; border-left-color: var(--accent) !important; }
.nav-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
pre, code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
:not(pre) > code { color: #285d55; background: #e9ece2; overflow-wrap: anywhere; }
div.sourceCode, pre.sourceCode { background: var(--surface); border-color: var(--line); border-radius: 8px; }
div.sourceCode { border: 1px solid var(--line); }
pre.sourceCode { padding: 1rem; font-size: 0.86rem; }
.panel-tabset .nav-tabs { border-color: var(--line); }
.panel-tabset .nav-link { color: var(--muted); }
.panel-tabset .nav-link.active { color: #28685e; background: var(--surface); border-color: var(--line) var(--line) var(--surface); }
.panel-tabset .tab-content { background: var(--surface); border: 1px solid var(--line); border-top: 0; padding: 1rem; }
.panel-tabset .tab-content > .tab-pane > :last-child { margin-bottom: 0; }
.table { --bs-table-bg: transparent; border-color: var(--line); }
.table th { color: var(--ink); }
.callout { background: var(--surface); }
.home #title-block-header { display: none; }
.home .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; padding: 3.5rem 0 2rem; }
.home .hero h1 { font-size: clamp(2.8rem, 4.5vw, 4rem); margin: 0 0 1.6rem; }
.home .hero h1 em { color: var(--accent); font-style: normal; }
.home .hero .intro { color: var(--muted); font-size: 1.12rem; }
.home .eyebrow { color: #28685e; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 1.4rem; }
.home .hero-example { padding: 1.6rem; border: 1px solid var(--line); border-radius: 20px; background: #eaf0e7; min-width: 0; }
.home .hero-example h2 { margin: 0 0 1rem; padding: 0; border: 0; font-family: inherit; font-size: 1rem; letter-spacing: normal; }
.home .hero-example p { font-size: 0.87rem; color: var(--muted); }
.home .hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.7rem; }
.home .hero-actions > p { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 0; }
.home .hero-actions a { font-size: 0.9rem; font-weight: 600; }
.home .hero-actions .primary-link { padding: 0.7rem 1.1rem; border-radius: 6px; background: var(--accent); color: white; text-decoration: none; }
.home .hero-actions .primary-link:hover { background: #286257; }
.home .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 1.8rem 0; }
.home .guide-grid > div { padding-top: 1rem; border-top: 2px solid var(--line); }
.home .guide-grid h3 { margin-top: 0; }
.home .guide-grid p { color: var(--muted); font-size: 0.95rem; }
.home .guide-grid a { font-weight: 600; }
.home .section-lead { max-width: 70ch; }
@media (max-width: 991px) {
  .navbar { margin: 8px 12px 0; border-radius: 18px; }
  .navbar-collapse { padding: 0.6rem 0; }
  .navbar .nav-link { padding: 0.6rem; }
  .home .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .home .hero h1 { max-width: 18ch; }
  .home .guide-grid { grid-template-columns: 1fr; gap: 0.8rem; }
}
@media (max-width: 575px) {
  #quarto-content { padding-top: 1rem; }
  .navbar-brand { font-size: 0.95rem; }
  .home .hero-example { padding: 1rem; }
  .panel-tabset .tab-content { padding: 0.65rem; }
  .table { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition: none !important; }
}
