/* Granny Mum — warm paper, serif headings, system fonts only (follows the karmasurface public front-door brief). */
:root {
  --paper: #faf7f2; --ink: #1f1c18; --muted: #6b645c; --rule: #e4ddd2; --accent: #b8541f; --accent-soft: rgba(184,84,31,.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.55; background: var(--paper); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 1.4em 0 .5em; }
h1 { font-size: 2.1rem; }  h2 { font-size: 1.5rem; }  h3 { font-size: 1.2rem; }
img { max-width: 100%; height: auto; }
.ref { font-family: var(--sans); font-size: .78rem; color: var(--muted); letter-spacing: .01em; }

/* header */
.top { display: flex; align-items: center; gap: 18px; padding: 10px 22px; border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { font-size: 1.25rem; color: var(--ink); font-weight: 500; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; font-family: var(--sans); font-size: .86rem; }
.menu > a, .dd > a { display: block; padding: 6px 9px; color: var(--ink); border-left: 2px solid transparent; }
.menu > a:hover, .dd:hover > a { border-left-color: var(--accent); text-decoration: none; color: #000; }
.dd { position: relative; }
.dd-list { display: none; position: absolute; left: 0; top: 100%; background: #fff; border: 1px solid var(--rule); min-width: 260px; max-height: 70vh; overflow: auto; padding: 6px 0; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.dd:hover .dd-list, .dd:focus-within .dd-list { display: block; }
.dd-list a { display: block; padding: 5px 12px; color: var(--ink); }
.dd-list a:hover { background: var(--accent-soft); text-decoration: none; }
.search input, .bigsearch input { font: inherit; font-family: var(--sans); font-size: .86rem; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.who { margin-left: auto; font-family: var(--sans); font-size: .8rem; color: var(--muted); }

/* home */
main { max-width: 1120px; margin: 0 auto; padding: 0 22px 60px; }
.hero { position: relative; margin: 22px 0 10px; border-radius: 6px; overflow: hidden; background: #ddd5c8; }
.hero img { width: 100%; height: 70vh; min-height: 380px; max-height: 720px; object-fit: cover; object-position: 50% 22%; display: block; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 30px 20px; background: linear-gradient(transparent, rgba(20,15,10,.72)); color: #fff; }
.hero-text h1 { margin: 0; font-size: 2.6rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-text .sub { margin: 4px 0 0; font-size: 1.05rem; opacity: .95; }
.hero-text .cap { margin: 6px 0 0; font-family: var(--sans); font-size: .75rem; opacity: .8; }
.intro { max-width: 720px; font-size: 1.05rem; }
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 26px 0; }
.card { border: 1px solid var(--rule); border-radius: 6px; padding: 14px 18px 8px; background: #fffdf9; }
.card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.card h2 a { color: var(--ink); }
.card ul { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .86rem; }
.card li { padding: 3px 0; border-top: 1px solid var(--rule); }
.card li.more a { color: var(--muted); }
.recent { max-width: 760px; }

/* page */
.page { max-width: 720px; float: left; width: calc(100% - 300px); }
.page.wide { float: none; width: auto; max-width: 860px; }
.siblings { float: right; width: 260px; margin-top: 70px; font-family: var(--sans); font-size: .82rem; }
.siblings h3 { margin: 0 0 6px; font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.siblings ul { list-style: none; padding: 0; margin: 0; max-height: 75vh; overflow: auto; }
.siblings li { border-left: 2px solid transparent; padding: 3px 8px; }
.siblings li.here { border-left-color: var(--accent); background: var(--accent-soft); }
.siblings a { color: var(--ink); }
main::after { content: ""; display: block; clear: both; }
.crumb { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin: 18px 0 0; }
.page h1 { margin-top: .3em; }
.downloads a { font-family: var(--sans); font-size: .8rem; margin-right: 12px; }
.page p, .page li { font-size: 1.02rem; }
.page table { border-collapse: collapse; font-family: var(--sans); font-size: .82rem; margin: 12px 0; width: 100%; }
.page th, .page td { border-bottom: 1px solid var(--rule); padding: 5px 7px; text-align: left; vertical-align: top; }
.page th { font-weight: 500; color: var(--muted); }
.page blockquote { border-left: 3px solid var(--rule); margin: 1em 0; padding: 0 0 0 16px; color: #3e3832; }
.page img { display: block; margin: 8px 0; border-radius: 3px; }
.toc { padding-left: 1.3em; } .toc li { margin: 4px 0; }
.chapters { border-top: 1px solid var(--rule); margin-top: 30px; padding-top: 10px; }
.src { margin-top: 30px; }
ul.people { list-style: none; padding: 0; columns: 2; font-size: .95rem; } ul.people li { padding: 3px 0; break-inside: avoid; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
figure.ph { margin: 0; padding: 8px; border: 1px solid var(--rule); border-radius: 5px; background: #fffdf9; }
figure.ph img { width: 100%; height: 200px; object-fit: cover; border-radius: 3px; display: block; }
figure.ph figcaption { font-family: var(--sans); font-size: .8rem; color: #3e3832; margin-top: 8px; line-height: 1.4; }
figure.ph .ref { display: block; margin-top: 4px; }

/* notes */
.blk { position: relative; }
.blk:hover, .blk.open { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); border-radius: 2px; }
.blk:target { box-shadow: 0 0 0 6px rgba(184,84,31,.22); }
.blk .addnote { position: absolute; right: -34px; top: 2px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; color: var(--accent); font: 18px/24px var(--sans); text-align: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.blk:hover .addnote, .blk.open .addnote, .blk.has .addnote { opacity: 1; }
figure.ph .addnote, tr.blk .addnote { right: 6px; top: 6px; }
.blk .notes { font-family: var(--sans); font-size: .82rem; margin: 6px 0 10px; padding-left: 12px; border-left: 2px solid var(--accent); }
.blk .note { margin: 6px 0; }
.blk .note b { color: var(--accent); }
.blk .note .ref { margin-left: 6px; }
.blk .note .hide { margin-left: 8px; color: var(--muted); cursor: pointer; font-size: .72rem; }
.noteform { margin: 8px 0; font-family: var(--sans); }
.noteform textarea { width: 100%; min-height: 70px; font: inherit; font-size: .9rem; padding: 8px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.noteform button { font: inherit; font-size: .84rem; padding: 6px 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 4px; cursor: pointer; margin-right: 8px; }
.noteform .cancel { background: transparent; color: var(--muted); border-color: var(--rule); }
.notelist { list-style: none; padding: 0; } .notelist li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: .98rem; }
.hits { list-style: none; padding: 0; } .hits li { padding: 10px 0; border-top: 1px solid var(--rule); } .snip { color: #3e3832; font-size: .92rem; }
.bigsearch { display: flex; gap: 8px; margin: 10px 0 20px; } .bigsearch input { flex: 1; font-size: 1rem; } .bigsearch button { font: inherit; font-family: var(--sans); padding: 6px 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 4px; }

/* login */
.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login { width: 340px; padding: 30px; border: 1px solid var(--rule); border-radius: 6px; background: #fffdf9; }
.login h1 { margin: 0; text-align: center; } .login .sub { text-align: center; color: var(--muted); margin: 4px 0 20px; }
.login label { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); margin: 12px 0; }
.login input { display: block; width: 100%; font: inherit; font-size: 1rem; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; margin-top: 4px; background: #fff; }
.login button { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 4px; cursor: pointer; margin-top: 8px; }
.login .err { color: #a3321a; font-family: var(--sans); font-size: .85rem; }
.login .ref { text-align: center; margin-top: 16px; }

footer { border-top: 1px solid var(--rule); margin-top: 40px; padding: 16px 22px 30px; font-family: var(--sans); font-size: .78rem; color: var(--muted); text-align: center; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .page, .page.wide { float: none; width: auto; }
  .siblings { float: none; width: auto; margin-top: 30px; }
  .siblings ul { max-height: none; }
  .hero img { height: 46vh; }
  .hero-text h1 { font-size: 1.9rem; }
  .blk .addnote { right: 0; opacity: .5; }
  .who { margin-left: 0; }
  .dd-list { position: static; box-shadow: none; }
  ul.people { columns: 1; }
}
figure.ph.lead { padding: 0; border: 0; background: none; margin: 10px 0 20px; }
figure.ph.lead img { height: auto; max-height: 70vh; width: 100%; object-fit: contain; background: #efe9df; }
figure.ph.lead figcaption { text-align: center; }
.dates { font-family: var(--sans); font-size: .9rem; color: #3e3832; border-left: 3px solid var(--accent); padding: 4px 10px; }
.housecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 12px 0 24px; }
.housecard { display: block; border: 1px solid var(--rule); border-radius: 5px; background: #fffdf9; padding: 8px; color: var(--ink); }
.housecard:hover { text-decoration: none; border-color: var(--accent); }
.housecard img, .housecard .nopic { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 3px; }
.housecard .nopic { background: #efe9df; color: var(--muted); font-family: var(--sans); font-size: .78rem; text-align: center; line-height: 150px; }
.housecard .hc-title { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.25; }
.housecard .hc-dates { display: block; font-family: var(--sans); font-size: .76rem; color: var(--muted); margin-top: 3px; }

.trio { grid-template-columns: repeat(3, 1fr); margin: 10px 0 18px; }
.trio figure.ph img { height: 240px; }
@media (max-width: 700px) { .trio { grid-template-columns: 1fr; } }

/* wiki: editing, revisions, history */
.blk .editbtn { position: absolute; right: -64px; top: 2px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; color: var(--accent); font: 14px/24px var(--sans); text-align: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.blk:hover .editbtn, .blk.open .editbtn { opacity: 1; }
figure.ph .editbtn { right: 36px; top: 6px; }
.blk .edmenu { position: absolute; right: -64px; top: 30px; z-index: 5; background: #fff; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.1); font-family: var(--sans); font-size: .82rem; }
.blk .edmenu button { display: block; width: 100%; text-align: left; font: inherit; padding: 7px 12px; border: 0; background: none; cursor: pointer; color: var(--ink); white-space: nowrap; }
.blk .edmenu button:hover { background: var(--accent-soft); }
.editform { margin: 8px 0; font-family: var(--sans); }
.editform textarea { width: 100%; min-height: 120px; font: inherit; font-size: .95rem; line-height: 1.45; padding: 8px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.editform .summary { width: 100%; font: inherit; font-size: .86rem; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; margin: 6px 0; }
.editform button { font: inherit; font-size: .84rem; padding: 6px 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 4px; cursor: pointer; margin-right: 8px; }
.editform .cancel, .editform .remove { background: transparent; color: var(--muted); border-color: var(--rule); }
.editform .remove { margin-left: 12px; }
.editform .edhelp { display: block; margin-top: 6px; }
.blk.edited { border-left: 3px solid #c9a227; padding-left: 10px; margin-left: -13px; }
.blk.removed { border-left: 3px solid var(--rule); padding-left: 10px; margin-left: -13px; opacity: .8; }
.editmark { margin: 2px 0 6px; }
.blk.edited figcaption .editmark { margin-top: 4px; }
.crumb-right { float: right; }
.changelist li.ch-hidden, .changelist li.ch-hidden a { color: var(--muted); }
.revlist { list-style: none; padding: 0; }
.rev { padding: 12px 0; border-top: 1px solid var(--rule); }
.rev-hidden { opacity: .55; }
.revhead b { color: var(--accent); }
.revsum { font-family: var(--sans); font-size: .9rem; color: #3e3832; margin-top: 2px; }
.diff { margin: 8px 0; padding: 8px 12px; background: #fffdf9; border: 1px solid var(--rule); border-radius: 4px; font-size: .95rem; line-height: 1.5; }
.diff del { background: #fbe1dc; color: #7a2a1a; text-decoration: line-through; }
.diff ins { background: #dff2df; color: #1f5a25; text-decoration: none; }
.revact { font-family: var(--sans); font-size: .8rem; }
.revact button { font: inherit; font-size: .8rem; padding: 4px 10px; border: 1px solid var(--rule); background: #fff; color: var(--accent); border-radius: 4px; cursor: pointer; margin-right: 8px; }
.revact button:hover { border-color: var(--accent); }
@media (max-width: 860px) { .blk .editbtn { right: 30px; top: 2px; opacity: .5; } .blk .edmenu { right: 0; top: 30px; } .blk.edited, .blk.removed { margin-left: 0; } }

/* uploads (23 Sep 2026) */
.uploadform label { font-family: var(--sans); font-size: .9rem; }
.uploadform input[type=file], .uploadform textarea { display: block; width: 100%; max-width: 640px; margin-top: 6px; font: inherit; padding: 6px; border: 1px solid var(--rule); border-radius: 4px; background: #fffdf9; }
.uploadform button, a.btn { font: inherit; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 4px; background: #efe9df; cursor: pointer; text-decoration: none; color: inherit; }
.menu a.add { font-weight: 600; }
figure.ph a.doc { display: block; height: 200px; line-height: 200px; text-align: center; background: #efe9df; border-radius: 3px; font-family: var(--sans); }
.chapters.kids ul { padding-left: 1.2em; }
.chapters.kids li { margin: 4px 0; }

/* discoverability (Will, 23 Sep 2026): the + and the pencil show faintly at rest, fully on hover */
.blk .addnote, .blk .editbtn { opacity: .38; }
.blk:hover .addnote, .blk.open .addnote, .blk.has .addnote, .blk:hover .editbtn, .blk.open .editbtn { opacity: 1; }
section.intro.blk { position: relative; }

div.intro.blk { position: relative; }
div.intro.blk + div.intro.blk { margin-top: 0; }
