:root {
  --ink: #1F2933;
  --apple: #A83D32;
  --leaf: #4C6A55;
  --text: #24211D;
  --paper: #F6F1E8;
  --line: #D7B56D;
  --white: #fffdf8;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
.site-title {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  background: var(--ink);
  color: var(--line);
  border-color: var(--line);
}

.masthead {
  background: var(--ink);
  color: var(--white);
  padding: 34px 24px 26px;
  text-align: center;
  border-bottom: 2px solid var(--line);
}

.site-title {
  display: inline-block;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
}

.site-title:hover,
.site-title:focus {
  color: var(--line);
}

.site-tagline {
  margin: 10px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1rem;
}

.nav-shell {
  background: #17212a;
  box-shadow: none;
  height: auto;
  line-height: 48px;
}

.nav-shell .nav-wrapper {
  min-height: 48px;
}

.nav-shell a {
  color: rgba(255, 253, 248, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-shell a:hover,
.nav-shell a:focus {
  color: var(--line);
  background: transparent;
}

.editorial-dropdown {
  background: var(--white);
  min-width: 260px;
  border-radius: 0;
}

.editorial-dropdown li > a {
  color: var(--ink);
  font-size: 0.95rem;
}

.sidenav {
  background: var(--paper);
}

.sidenav-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.4rem;
  color: var(--ink) !important;
}

.sidenav-child {
  padding-left: 46px !important;
  color: var(--leaf) !important;
}

.breadcrumb-shell {
  background: transparent;
  box-shadow: none;
  margin-top: 24px;
}

.breadcrumb-shell .breadcrumb,
.breadcrumb-shell .breadcrumb::before {
  color: var(--leaf);
  font-size: 0.9rem;
}

.home-hero {
  background: var(--ink);
  color: var(--white);
  padding: 76px 0;
}

.home-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.06;
  margin: 0 0 18px;
}

.home-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(215, 181, 109, 0.35);
}

.section-kicker,
.meta-line {
  color: var(--apple);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lede {
  color: rgba(36, 33, 29, 0.76);
  font-size: 1.24rem;
  line-height: 1.62;
}

.home-hero .lede {
  color: rgba(255, 253, 248, 0.78);
}

.feed-section,
.archive-shell,
.editorial-layout,
.content-article-layout {
  padding-top: 64px;
  padding-bottom: 76px;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.article-shell {
  background: var(--white);
  border-top: 4px solid var(--line);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: 0 10px 34px rgba(31, 41, 51, 0.08);
}

.article-shell--quiet {
  border-top-color: var(--leaf);
}

.article-shell h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin: 8px 0 22px;
}

.prose-flow {
  max-width: 760px;
}

.prose-flow p,
.prose-flow li {
  font-size: 1.08rem;
  line-height: 1.78;
}

.prose-flow a,
.feed-body a,
.feature-copy a,
.archive-shell a,
.editorial-sidebar a,
.content-article-layout a {
  color: var(--apple);
  text-decoration: underline;
  text-decoration-color: rgba(168, 61, 50, 0.35);
  text-underline-offset: 0.18em;
}

.prose-flow a:hover,
.feed-body a:hover,
.feature-copy a:hover,
.archive-shell a:hover,
.editorial-sidebar a:hover,
.content-article-layout a:hover {
  color: var(--leaf);
  text-decoration-color: var(--leaf);
}

.content-image {
  margin: 32px 0;
}

.content-image img,
.gallery-grid img,
.content-main-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(31, 41, 51, 0.12);
}

.content-main-image {
  max-width: 34%;
  margin: 0 0 24px 32px;
}

blockquote {
  border-left: 4px solid var(--apple);
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.18rem;
}

.feature-card,
.feed-card {
  background: var(--white);
  border: 1px solid var(--leaf);
  border-radius: 0;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feature-card:hover,
.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(31, 41, 51, 0.1);
  border-color: rgba(168, 61, 50, 0.25);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin-bottom: 36px;
}

.feature-image img,
.feed-thumb img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: grayscale(1);
}

.feature-copy,
.feed-body {
  padding: 28px;
}

.feature-copy h2,
.feed-body h2,
.category-card h2,
.minimal-card h2 {
  color: var(--apple);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.18;
  margin-top: 0;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.feed-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.editorial-sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-panel {
  background: var(--white);
  border-left: 4px solid var(--leaf);
  padding: 22px;
}

.sidebar-panel h3 {
  color: var(--ink);
  font-size: 1.35rem;
  margin-top: 0;
}

.collection {
  border-color: rgba(31, 41, 51, 0.12);
}

.collection .collection-item {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(31, 41, 51, 0.1);
}

.archive-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.category-card,
.minimal-card {
  border-radius: 0;
}

.category-card .card-action a,
.read-more {
  color: var(--apple) !important;
  font-weight: 700;
  text-transform: uppercase;
}

.minimal-card {
  background: var(--white);
  border-left: 4px solid var(--apple);
  padding: 24px;
  min-height: 220px;
}

.toc-panel {
  background: var(--white);
  border-left: 4px solid var(--line);
  padding: 20px;
  margin-bottom: 24px;
}

.sticky-toc {
  position: sticky;
  top: 24px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 253, 248, 0.78);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.7rem;
}

.site-footer a {
  color: var(--line);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-copyright {
  background: #17212a !important;
}

@media (max-width: 992px) {
  .editorial-layout {
    display: block;
  }

  .editorial-sidebar {
    position: static;
    margin-top: 32px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .home-hero {
    padding: 46px 0;
  }

  .feature-card,
  .feed-card,
  .feed-grid {
    display: block;
  }

  .content-main-image {
    max-width: 100%;
    float: none !important;
    margin: 0 0 24px;
  }

  .article-shell {
    padding: 24px 18px;
  }
}

/* CSS hover dropdown */
nav li.nav-has-children { position: relative; }
nav li.nav-has-children > ul.nav-submenu {
  display: none; position: absolute; top: 100%; right: 0; z-index: 90;
  min-width: 240px; margin: 0; padding: 6px 0; background: #fff;
  border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
nav li.nav-has-children:hover > ul.nav-submenu,
nav li.nav-has-children:focus-within > ul.nav-submenu { display: block; }
nav li.nav-has-children > ul.nav-submenu li { display: block; float: none; }
nav li.nav-has-children > ul.nav-submenu li a { display: block; padding: 6px 14px; color: #222; white-space: nowrap; }
