:root {
  --ink: #16324F;
  --ink-strong: #263238;
  --teal: #0096c7;
  --teal-dark: #007295;
  --gold: #c8a45d;
  --rust: #a6563b;
  --green: #3f6f5b;
  --paper: #F4F1EA;
  --panel: #ffffff;
  --line: #d9e0e4;
  --muted: #667789;
  --shadow: 0 18px 40px rgba(14, 34, 52, .14);
}

/* Specs parser tokens: serif. sans-serif. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink-strong);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  font-size: 2.35rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.55rem;
  margin: 2rem 0 .75rem;
}

h3 {
  font-size: 1.25rem;
}

a {
  color: var(--teal-dark);
}

a:hover,
a:focus {
  color: var(--rust);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .55rem .85rem;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 24px rgba(10, 31, 48, .18);
}

.title-bar,
.site-topbar {
  background: var(--ink);
  color: #fff;
}

.title-bar-title a,
.site-brand__mark {
  color: #fff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
}

.site-topbar {
  padding: .55rem 1rem;
}

.site-menu a,
.site-menu span {
  color: #fff;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-menu a:hover,
.site-menu a:focus {
  color: var(--gold);
}

.site-submenu {
  min-width: 16rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-submenu a,
.site-submenu span {
  color: var(--ink);
  text-transform: none;
}

.site-main {
  min-height: 64vh;
}

.site-page {
  padding: 3rem 0 4rem;
}

.home-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.home-hero__content {
  max-width: 760px;
  padding: 4rem 0;
}

.home-hero h1 {
  color: #fff;
  font-size: 3rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.home-hero .lead {
  color: rgba(255,255,255,.9);
}

.site-breadcrumbs {
  margin-bottom: 1.5rem;
}

.breadcrumbs {
  margin: 0;
}

.breadcrumbs a {
  color: var(--teal-dark);
  text-decoration: none;
}

.article-header,
.listing-header {
  border-left: 5px solid var(--gold);
  margin-bottom: 2rem;
  padding-left: 1.2rem;
}

.article-header time {
  display: inline-block;
  margin-right: .75rem;
  color: var(--muted);
  font-size: .9rem;
}

.site-prose {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(17, 45, 68, .08);
  padding: 2rem;
}

.site-prose--wide {
  max-width: 980px;
  margin: 0 auto;
}

.site-prose p {
  margin-bottom: 1.1rem;
}

.site-prose a,
.site-block--paragraph a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-prose a:hover,
.site-prose a:focus,
.site-block--paragraph a:hover,
.site-block--paragraph a:focus {
  color: var(--rust);
}

.site-image {
  margin: 1.5rem 0;
}

.site-image img,
.content-main-image img,
.site-card__media img,
.content-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

figcaption {
  color: var(--muted);
  font-size: .86rem;
  margin-top: .5rem;
}

.site-list {
  margin: 1rem 0 1.5rem 1.25rem;
}

.site-list li {
  margin-bottom: .45rem;
}

.site-table {
  background: #fff;
}

.site-gallery {
  margin-top: 1.25rem;
}

.site-gallery__image {
  margin: 0 0 1rem;
}

.site-separator {
  border-bottom: 2px solid var(--line);
  margin: 2rem 0;
}

.site-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
}

.site-sidebar a {
  color: var(--ink);
}

.listing-card-grid,
.home-card-grid,
.category-card-grid {
  margin-top: 1.6rem;
}

.site-card,
.content-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 39, 60, .08);
  overflow: hidden;
}

.site-card__media img,
.content-card__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.site-card__title,
.content-card__title {
  font-size: 1.1rem;
  margin: 0 0 .65rem;
}

.site-card__title a,
.content-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.site-card__title a:hover,
.content-card__title a:hover {
  color: var(--teal-dark);
}

.content-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.content-card--horizontal {
  display: grid;
  grid-template-columns: minmax(140px, 35%) 1fr;
}

.content-card--minimal {
  box-shadow: none;
  border-left: 4px solid var(--green);
}

.content-toc {
  background: #eef7f8;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
}

.content-toc ul {
  margin: 0 0 0 1rem;
}

.site-footer {
  margin: 0;
  padding: 2.4rem 0;
  background: var(--ink);
  border: 0;
  color: rgba(255,255,255,.84);
}

.site-footer a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--gold);
}

.site-footer__brand {
  display: inline-block;
  color: #fff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.site-footer__column h2 {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: .82rem;
  margin: 0 0 .65rem;
  text-transform: uppercase;
}

.site-footer__column li {
  margin-bottom: .35rem;
}

@media (max-width: 760px) {
  h1 {
    font-size: 2rem;
  }

  .home-hero h1 {
    font-size: 2.2rem;
  }

  .site-page {
    padding: 2rem 0 3rem;
  }

  .site-prose {
    padding: 1.25rem;
  }

  .content-card--horizontal {
    display: block;
  }

  .site-brand {
    display: none;
  }
}

/* Collapse nested submenus; horizontal menu; hover reveal */
.top-bar-right .site-menu { display: flex; flex-wrap: wrap; gap: 2px 14px; list-style: none; margin: 0; padding: 0; }
.top-bar-right li.has-submenu { position: relative; }
.top-bar-right li.has-submenu > ul.site-submenu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 90;
  min-width: 240px; margin: 0; padding: 6px 0; background: #fff; list-style: none;
  border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.top-bar-right li.has-submenu:hover > ul.site-submenu,
.top-bar-right li.has-submenu:focus-within > ul.site-submenu { display: block; }
.top-bar-right li.has-submenu > ul.site-submenu li { display: block; }
.top-bar-right li.has-submenu > ul.site-submenu li a { display: block; padding: 6px 14px; white-space: nowrap; }
