:root {
        --bg: #f7efdd;
        --bg-deep: #f1e5cb;
        --surface: #fdf8ec;
        --ink: #2b2419;
        --ink-soft: #5c5240;
        --green: #1e5631;
        --green-soft: #2e7046;
        --red: #8a2b23;
        --gold: #b08a2e;
        --gold-soft: #c9a44a;
        --gold-pale: #e6d193;
        --line: #d9c89c;
        --frame-shadow: rgba(90, 66, 20, 0.18);
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #14211a;
          --bg-deep: #0f1a13;
          --surface: #1c2b21;
          --ink: #ece1c8;
          --ink-soft: #c4b593;
          --green: #7fb98f;
          --green-soft: #9ccba9;
          --red: #d98a80;
          --gold: #c9a44a;
          --gold-soft: #d9bc6a;
          --gold-pale: #8a7434;
          --line: #3d4f3a;
          --frame-shadow: rgba(0, 0, 0, 0.45);
        }
      }

      * { box-sizing: border-box; }
      html { -webkit-text-size-adjust: 100%; }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: "Gentium Basic", Georgia, serif;
        font-size: 1.075rem;
        line-height: 1.55;
      }

      .page {
        max-width: 640px;
        margin: 0 auto;
        padding: 2.25rem 1.15rem 2.5rem;
      }

      /* ---------- Header ---------- */
      header { text-align: center; }

      .site-line {
        font-family: "Lora", Georgia, serif;
        font-size: 0.82rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--green);
        margin: 0 0 0.9rem;
      }
      @media (prefers-color-scheme: dark) {
        .site-line { color: var(--green-soft); }
      }

      .rule {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin: 0 auto 1.4rem;
        max-width: 340px;
      }
      .rule::before,
      .rule::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--gold);
      }
      .rule span { color: var(--gold); font-size: 0.95rem; line-height: 1; }

      h1 {
        font-family: "Lora", Georgia, serif;
        font-weight: 600;
        font-size: 2.15rem;
        line-height: 1.15;
        margin: 0 0 0.45rem;
        color: var(--ink);
      }
      .also-known {
        font-family: "Lora", Georgia, serif;
        font-style: italic;
        font-size: 1.12rem;
        color: var(--red);
        margin: 0 0 0.25rem;
      }
      .lifespan {
        font-family: "Lora", Georgia, serif;
        font-size: 1.05rem;
        letter-spacing: 0.06em;
        color: var(--ink-soft);
        margin: 0;
      }

      /* ---------- Photo frame ---------- */
      .photo-frame {
        position: relative;
        margin: 1.9rem auto 0;
        max-width: 380px;
        background: var(--surface);
        border: 2px solid var(--gold);
        outline: 1px solid var(--gold-pale);
        outline-offset: 5px;
        box-shadow: 0 6px 18px var(--frame-shadow);
        padding: 2.1rem 1.6rem 1.9rem;
        text-align: center;
      }
      .photo-frame .corner {
        position: absolute;
        width: 34px;
        height: 34px;
        color: var(--gold);
        pointer-events: none;
      }
      .corner.tl { top: 5px; left: 5px; }
      .corner.tr { top: 5px; right: 5px; transform: scaleX(-1); }
      .corner.bl { bottom: 5px; left: 5px; transform: scaleY(-1); }
      .corner.br { bottom: 5px; right: 5px; transform: scale(-1); }

      .photo-silhouette {
        color: var(--gold-soft);
        opacity: 0.75;
        margin-bottom: 0.9rem;
      }
      .photo-caption {
        font-style: italic;
        font-size: 1rem;
        color: var(--ink-soft);
        margin: 0;
      }

      /* ---------- Sections ---------- */
      section { margin-top: 2.6rem; }
      h2 {
        font-family: "Lora", Georgia, serif;
        font-weight: 600;
        font-size: 1.42rem;
        color: var(--green);
        margin: 0 0 1.05rem;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid var(--gold);
        box-shadow: 0 3px 0 -2px var(--gold-pale);
      }
      @media (prefers-color-scheme: dark) {
        h2 { color: var(--green-soft); }
      }

      /* ---------- Facts ---------- */
      .facts {
        margin: 0;
        display: grid;
        grid-template-columns: max-content 1fr;
        column-gap: 1.1rem;
        row-gap: 0.55rem;
      }
      .facts dt {
        font-family: "Lora", Georgia, serif;
        font-weight: 600;
        font-size: 0.98rem;
        color: var(--green);
        padding-top: 0.12rem;
      }
      @media (prefers-color-scheme: dark) {
        .facts dt { color: var(--green-soft); }
      }
      .facts dd { margin: 0; }
      .facts .maiden { color: var(--ink-soft); }

      /* ---------- Timeline ---------- */
      .timeline {
        list-style: none;
        margin: 0;
        padding: 0 0 0 0.4rem;
        position: relative;
      }
      .timeline::before {
        content: "";
        position: absolute;
        left: calc(0.4rem + 5px);
        top: 10px;
        bottom: 10px;
        width: 2px;
        background: var(--green);
        opacity: 0.55;
      }
      .timeline li {
        position: relative;
        padding: 0 0 1.05rem 1.65rem;
      }
      .timeline li:last-child { padding-bottom: 0.1rem; }
      .timeline li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.42em;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gold);
        border: 2px solid var(--gold-soft);
        box-shadow: 0 0 0 2px var(--bg);
        z-index: 1;
      }
      .timeline .year {
        font-family: "Lora", Georgia, serif;
        font-weight: 700;
        color: var(--green);
        margin-right: 0.45rem;
      }
      @media (prefers-color-scheme: dark) {
        .timeline .year { color: var(--green-soft); }
      }

      /* ---------- Family ---------- */
      .family-group { margin: 0 0 1.15rem; }
      .family-group:last-child { margin-bottom: 0; }
      .family-group h3 {
        font-family: "Lora", Georgia, serif;
        font-weight: 600;
        font-size: 1rem;
        color: var(--red);
        margin: 0 0 0.3rem;
      }
      .family-group p { margin: 0; line-height: 1.75; }
      a.person {
        color: var(--green);
        text-decoration: none;
        border-bottom: 1px dotted var(--gold);
        white-space: nowrap;
      }
      a.person:hover, a.person:focus-visible {
        color: var(--red);
        border-bottom-color: var(--red);
      }
      @media (prefers-color-scheme: dark) {
        a.person { color: var(--green-soft); }
      }
      .person-dates { color: var(--ink-soft); font-size: 0.94em; }
      .sep { color: var(--gold); margin: 0 0.15rem; }

      /* ---------- Story placeholders ---------- */
      .to-gather {
        font-style: italic;
        color: var(--ink-soft);
        margin: 0;
      }

      /* ---------- Footer ---------- */
      footer {
        margin-top: 3rem;
        text-align: center;
      }
      footer .rule { margin-bottom: 1rem; }
      footer p {
        font-size: 0.88rem;
        color: var(--ink-soft);
        margin: 0;
      }

      /* ---------- Repo additions: nav, buttons, name lists ---------- */
      .backlink { font-size: 0.95rem; margin: 0 0 1.4rem; }
      .backlink a { color: var(--green); text-decoration: none; border-bottom: 1px dotted var(--gold); }
      @media (prefers-color-scheme: dark) { .backlink a { color: var(--green-soft); } }
      .btn {
        position: relative; display: block; text-align: center; color: #fdf8ec;
        font-family: "Lora", Georgia, serif; text-decoration: none;
        margin: 0 auto 1rem; max-width: 430px; padding: 15px 56px;
        background: radial-gradient(ellipse 90% 120% at 50% -10%, rgba(120, 160, 90, 0.18), rgba(120, 160, 90, 0) 55%), linear-gradient(180deg, #2a6b3e, #1a4228 55%, #14331f);
        border: 1px solid #a87f2d; border-radius: 10px;
        box-shadow: 0 3px 10px rgba(20, 40, 20, 0.35);
        transition: background 160ms ease, box-shadow 160ms ease;
      }
      .btn:hover { background: radial-gradient(ellipse 90% 120% at 50% -10%, rgba(140, 180, 100, 0.22), rgba(140, 180, 100, 0) 55%), linear-gradient(180deg, #317647, #1e4c2e 55%, #173a24); box-shadow: 0 4px 12px rgba(20, 40, 20, 0.4); }
      .btn:focus-visible { outline: 3px solid #a87f2d; outline-offset: 3px; }
      .btn .btn-frame { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
      .btn .rope { position: absolute; inset: 4px; border-radius: 7px; padding: 2px; background: repeating-linear-gradient(45deg, #a87f2d 0 3px, #8a6420 3px 6px); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
      .btn .knot { position: absolute; width: 18px; height: 18px; display: block; }
      .btn .knot.tl { top: 0; left: 0; transform: translate(-50%, -50%); }
      .btn .knot.tr { top: 0; right: 0; transform: translate(50%, -50%); }
      .btn .knot.bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
      .btn .knot.br { bottom: 0; right: 0; transform: translate(50%, 50%); }
      .btn .vine { position: absolute; top: 0; width: 104px; height: 16px; display: block; opacity: 0.7; }
      .btn .vine.vl { left: 15px; transform: translateY(-50%); }
      .btn .vine.vr { right: 15px; transform: translateY(-50%) scaleX(-1); }
      .btn .medallion { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 1.5px solid #a87f2d; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
      .btn .medallion svg { width: 24px; height: 24px; display: block; }
      .btn .label { font-size: 1.15rem; letter-spacing: 0.03em; color: #fdf8ec; white-space: nowrap; }
      @media (max-width: 380px) {
        .btn .label { font-size: 1.05rem; }
        .btn { padding: 13px 48px; }
        .btn .medallion { left: 13px; width: 34px; height: 34px; }
        .btn .vine { width: 84px; }
        .btn .knot { width: 17px; height: 17px; }
      }
      .story-cta { text-align: center; margin: 2.4rem 0 0.4rem; }
      .story-cta .cta-line { font-style: italic; margin: 0 0 0.9rem; }
      /* ---------- Reunion History: year pages ---------- */
      .president-name { font-family: "Lora", Georgia, serif; font-size: 1.3rem; margin: 0.2rem 0 0; }
      .attendees { columns: 2; column-gap: 2.2rem; line-height: 1.75; padding-left: 1.2rem; margin: 0.4rem 0 0; }
      .attendees li { break-inside: avoid; }
      @media (max-width: 560px) { .attendees { columns: 1; } }
      .note { font-size: 0.92rem; font-style: italic; opacity: 0.75; margin-top: 0.6rem; }
      .yeargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 0.55rem; margin: 0.6rem 0 0.4rem; }
      .yeargrid a {
        display: block; text-align: center; padding: 0.55rem 0.2rem; border: 1px solid var(--gold);
        border-radius: 6px; color: var(--green); text-decoration: none; font-family: "Lora", Georgia, serif;
        background: rgba(30, 86, 49, 0.05);
      }
      .yeargrid a:hover, .yeargrid a:focus-visible { background: rgba(30, 86, 49, 0.14); }
      @media (prefers-color-scheme: dark) { .yeargrid a { color: var(--green-soft); } }
      .namelist { list-style: none; padding: 0; margin: 0; line-height: 2.05; }
      .namelist a { color: var(--green); text-decoration: none; border-bottom: 1px dotted var(--gold); }
      @media (prefers-color-scheme: dark) { .namelist a { color: var(--green-soft); } }
      .namelist .yrs { color: var(--ink-soft); font-size: 0.94em; }
      .center { text-align: center; }
      .intro { text-align: center; font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 2rem; }
