  :root {
    --ink: #2b2620;
    --ink-soft: #55493c;
    --parchment: #f7f2e9;
    --parchment-dark: #efe6d4;
    --panel: #3f4a35;
    --panel-dark: #313a29;
    --panel-text: #f1ead9;
    --gold: #a9702f;
    --gold-dark: #8a5a24;
    --rule: #d9cdb3;
    --max-width: 68rem;
  }

  * { box-sizing: border-box; }

  html { -webkit-text-size-adjust: 100%; }

  body {
    margin: 0;
    background: var(--parchment-dark);
    color: var(--ink);
    font-family: "Source Sans 3", -apple-system, Segoe UI, sans-serif;
    line-height: 1.55;
  }

  h1, h2, h3, h4 {
    font-family: "Spectral", Georgia, "Times New Roman", serif;
    color: var(--ink);
    margin: 0 0 0.6em 0;
    line-height: 1.2;
  }

  a { color: var(--gold-dark); text-decoration: none; }
  a:hover, a:focus-visible { text-decoration: underline; }
  a:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

  img { max-width: 100%; height: auto; display: block; }

  .site {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--parchment);
    box-shadow: 0 0 0 1px var(--rule);
  }

  /* ---------- Header ---------- */
  .site-header {
    position: relative;
    border-bottom: 3px solid var(--gold);
    overflow: hidden;
  }

  .site-header .banner-photo {
    width: 100%;
    height: clamp(150px, 22vw, 420px);
    object-fit: cover;
    object-position: center 10%;
    filter: sepia(0.15);
  }

  .site-header .banner-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(35, 26, 15, 0.85) 0%, rgba(35, 26, 15, 0.55) 32%, rgba(35, 26, 15, 0.1) 62%, rgba(35, 26, 15, 0) 100%);
  }

  .site-header .banner-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    padding: 1.5rem 1.75rem;
    text-align: left;
  }

  .site-header h1 {
    color: #f7f2e9;
    font-size: clamp(1.7rem, 6vw, 2.9rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.015em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    display: inline-block;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--gold);
  }

  .site-header nav {
    margin-top: 0.6rem;
    font-size: 0.95rem;
  }

  .site-header nav a {
    padding: 0.15rem 0.5rem 0.15rem 0;
    color: #f1ead9;
  }

  .site-header nav .divider {
    color: rgba(241, 234, 217, 0.6);
  }

  /* ---------- Layout ---------- */
  .layout {
    display: grid;
    grid-template-columns: 240px 1fr;
  }

  @media (max-width: 42rem) {
    .layout {
      grid-template-columns: 1fr;
    }

    .content { order: 1; }
    .sidebar { order: 2; }
  }

  /* ---------- Sidebar ---------- */
  .sidebar {
    background: var(--panel);
    color: var(--panel-text);
    padding: 1.75rem 1.5rem;
  }

  .sidebar img.portrait {
    border-radius: 6px;
    margin-bottom: 1.5rem;
  }

  .sidebar h2 {
    font-family: "Source Sans 3", sans-serif;
    color: var(--panel-text);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.75;
    margin: 1.75rem 0 0.6rem;
  }

  .sidebar h2:first-of-type { margin-top: 0; }

  .sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .sidebar li {
    margin: 0.35rem 0;
  }

  .sidebar a {
    color: var(--panel-text);
    opacity: 0.92;
  }

  .sidebar a:hover, .sidebar a:focus-visible {
    opacity: 1;
    color: #fff;
  }

  .sidebar hr {
    border: none;
    border-top: 1px solid rgba(241, 234, 217, 0.25);
    margin: 1.5rem 0;
  }

  /* ---------- Main content ---------- */
  .content {
    padding: 2rem 2rem 1rem;
    min-width: 0;
  }

  .content h1 {
    font-size: 1.9rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .toc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  @media (max-width: 34rem) {
    .toc-grid { grid-template-columns: 1fr; }
  }

  .toc-grid a {
    display: block;
    padding: 0.4rem 0;
    border-bottom: 1px dotted var(--rule);
    font-size: 1.02rem;
  }

  .offsite {
    margin-top: 2.5rem;
    text-align: center;
  }

  .offsite p { margin: 0.2rem 0; }

  .offsite .rule {
    color: var(--rule);
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
  }

  .offsite .box {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--rule);
    background: var(--parchment-dark);
    font-size: 0.92rem;
  }

  /* ---------- Footer ---------- */
  .site-footer {
    padding: 1.75rem 1.5rem 2.25rem;
    text-align: center;
    border-top: 1px solid var(--rule);
    font-size: 1.05rem;
    color: var(--ink-soft);
  }

  .site-footer nav a { padding: 0 0.4rem; }

  .tnt-credit {
    text-align: center;
    padding: 0.25rem 0 .2rem;
    font-size: 0.8rem;
  }

  .tnt-credit img {
    margin: 0 auto;
    opacity: 0.8;
  }
