:root {
    --cream: #f4f0e6;
    --cream-dark: #e8e2d4;
    --olive-light: #c5cbb8;
    --olive-mid: #9aa68a;
    --olive-dark: #6b7560;
    --olive-bar: #7a8570;
    --text: #3d4038;
    --text-muted: #5c6154;
    --link: #4a5240;
    --max: 58rem;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  a {
    color: var(--link);
  }

  a:hover {
    color: #2a3024;
  }

  .page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
  }

/* —— Header —— */
  .masthead {
    margin-bottom: 0.35rem;
  }

  .masthead__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
  }

  .site-title {
    margin: 0;
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    font-size: clamp(2.75rem, 8vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: #2e3328;
  }

  .site-title a {
    color: inherit;
    text-decoration: none;
  }

  .site-title a:hover {
    color: var(--olive-dark);
  }

  .masthead__blurb {
    margin: 0;
    max-width: 14rem;
    font-family: "Lucida Grande", "Segoe UI", Tahoma, sans-serif;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: right;
  }

  .main-nav {
    margin: 0.6rem 0 0;
    padding: 0.55rem 0 0;
    border-top: 1px solid var(--olive-mid);
    font-family: "Lucida Grande", "Segoe UI", Tahoma, sans-serif;
    font-size: 0.8125rem;
  }

  .main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.35rem;
  }

  .main-nav a {
    text-transform: lowercase;
    text-decoration: none;
    color: var(--text-muted);
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    color: var(--text);
    text-decoration: underline;
  }

/* —— Two columns —— */
  .columns {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 0;
    margin-top: 1.25rem;
    align-items: start;
  }

  @media (max-width: 48rem) {
    .columns {
      grid-template-columns: 1fr;
    }
    .sidebar {
      margin-top: 1.5rem;
    }
  }

  .primary {
    padding-right: 1.75rem;
  }

  @media (max-width: 48rem) {
    .primary { padding-right: 0; }
  }

/* —— Post —— */
  .post-hero {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 0.65rem;
    border: 0;
    filter: sepia(0.35) contrast(0.92) brightness(0.97);
  }

  .post-meta {
    margin: 0 0 0.85rem;
    font-family: "Lucida Grande", "Segoe UI", Tahoma, sans-serif;
    font-size: 0.6875rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }

  .post-title {
    margin: 0 0 1rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2a2e26;
  }

  .post-body p {
    margin: 0 0 1.1rem;
  }

  .post-body a {
    text-decoration: underline;
  }

/* —— Sidebar —— */
  .sidebar {
    background: var(--olive-light);
    padding: 1rem 1rem 1.25rem;
    min-height: 28rem;
  }

  .search {
    margin: 0 0 1.25rem;
    font-family: "Lucida Grande", "Segoe UI", Tahoma, sans-serif;
    font-size: 0.6875rem;
  }

  .search label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--olive-dark);
  }

  .search__row {
    display: flex;
    gap: 0.35rem;
  }

  .search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.2rem 0.35rem;
    border: 1px solid var(--olive-mid);
    background: #fff;
    font: inherit;
    font-size: 0.75rem;
  }

  .search button {
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--olive-dark);
    background: var(--cream-dark);
    font: inherit;
    font-size: 0.6875rem;
    cursor: pointer;
  }

  .search button:hover {
    background: #fff;
  }

  .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(107, 117, 96, 0.35);
  }

  .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.55rem;
    background: #fff;
    border: 1px solid var(--olive-mid);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    color: var(--olive-dark);
    text-decoration: none;
  }

  .badge:hover {
    border-color: var(--olive-dark);
    color: #2a3024;
  }

  .sidebar-section {
    margin-bottom: 1.1rem;
  }

  .sidebar-section:last-child {
    margin-bottom: 0;
  }

  .sidebar-section h2 {
    margin: 0 0 0.5rem;
    padding: 0.25rem 0.4rem;
    background: var(--olive-bar);
    font-family: "Lucida Grande", "Segoe UI", Tahoma, sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
  }

  .sidebar-section ul {
    margin: 0;
    padding: 0 0 0 0.15rem;
    list-style: none;
    font-family: "Lucida Grande", "Segoe UI", Tahoma, sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .sidebar-section li {
    margin-bottom: 0.35rem;
  }

  .sidebar-section a {
    text-decoration: none;
  }

  .sidebar-section a:hover {
    text-decoration: underline;
  }

  .sidebar-note {
    margin: 0;
    font-family: "Lucida Grande", "Segoe UI", Tahoma, sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-muted);
  }

  .page-foot {
    margin-top: 2.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--olive-mid);
    font-family: "Lucida Grande", "Segoe UI", Tahoma, sans-serif;
    font-size: 0.6875rem;
    color: var(--text-muted);
  }