/* Talking with the Masters — quiet, scholarly, typographic.
   System fonts only, no external assets. Ink on parchment. */
:root {
  --ink: #2b251c;
  --ink-soft: #453b2d;
  --paper: #faf6ec;
  --paper-deep: #f3ecdb;
  --card: #fffdf7;
  --line: #ddd2ba;
  --line-dark: #c9b992;
  --accent: #8a6d2f;
  --accent-dark: #6d5523;
  --muted: #756a58;
  --band: #221c14;
  --band-text: #efe7d3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.7; font-size: 17.5px;
}
h1, h2, h3 { line-height: 1.25; font-weight: normal; color: var(--ink); }
h1 { font-size: 2.15rem; margin: 0.5em 0 0.35em; letter-spacing: 0.01em; }
h2 { font-size: 1.4rem; margin: 1.5em 0 0.45em; border-bottom: 1px solid var(--line-dark); padding-bottom: 0.25em; }
h3 { font-size: 1.12rem; margin: 1.1em 0 0.3em; }
p { margin: 0.55em 0; }
a { color: var(--accent-dark); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px 48px; }
.lede { font-size: 1.14rem; color: var(--ink-soft); line-height: 1.65; }
.small { font-size: 0.92rem; color: var(--muted); }
.cite { font-size: 0.82em; color: var(--muted); font-variant: small-caps; letter-spacing: 0.04em; white-space: nowrap; }

/* Header band */
header.site { background: var(--band); color: var(--band-text); padding: 20px 0 14px; border-bottom: 3px double var(--accent); }
header.site .wrap { padding-bottom: 0; }
.brand { font-size: 2.4rem; display: block; text-align: center; color: var(--band-text); text-decoration: none; letter-spacing: 0.02em; line-height: 1.15; }
.brand:hover { color: #f7efdb; }
.tagline { color: #cdbf9f; font-style: italic; font-size: 1.05rem; margin: 3px 0 12px; text-align: center; }
nav.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding-bottom: 10px;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 0.9rem; }
nav.tools a { color: var(--band-text); text-decoration: none; padding: 3px 2px; }
nav.tools a:hover, nav.tools a[aria-current="page"] { color: #e8c97a; text-decoration: underline; text-underline-offset: 3px; }

/* The rule, stated plainly */
.rule { background: var(--paper-deep); border: 1px solid var(--line-dark); border-left: 4px solid var(--accent);
  padding: 16px 20px 12px; margin: 1.4em 0; }
.rule .kicker { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 4px; }
.rule p { margin: 0.35em 0; }

/* Master cards */
.master-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; margin: 1.2em 0 0.4em; }
.master-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: 18px 18px 14px; display: flex; flex-direction: column; }
.master-card .dates { font-variant: small-caps; letter-spacing: 0.06em; color: var(--muted); font-size: 0.88rem; margin: 0; }
.master-card h3 { font-size: 1.3rem; margin: 0.15em 0 0.3em; }
.master-card h3 a { color: var(--ink); text-decoration: none; }
.master-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.master-card .book { font-style: italic; color: var(--ink-soft); margin: 0.1em 0 0.5em; }
.master-card .method { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.master-card .enter { margin: 0.8em 0 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.9rem; }
.master-card.soon { border-top-color: var(--line-dark); background: var(--paper-deep); }
.badge { display: inline-block; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark);
  border: 1px solid var(--line-dark); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; align-self: flex-start; }

/* Teaching lists */
ul.teach { list-style: none; padding: 0; margin: 0.6em 0; }
ul.teach li { padding: 0.65em 0 0.65em 1.1em; border-bottom: 1px solid var(--line); position: relative; }
ul.teach li:last-child { border-bottom: none; }
ul.teach li::before { content: "§"; position: absolute; left: 0; color: var(--accent); }
ul.teach strong { font-weight: bold; }

/* Audio player block */
.audio-box { background: var(--card); border: 1px solid var(--line); padding: 16px 20px 12px; margin: 1.2em 0; }
.audio-box .kicker { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 6px; }
.audio-box audio { width: 100%; margin: 4px 0 6px; }

/* Pull line */
.pull { font-size: 1.22rem; font-style: italic; color: var(--ink-soft); text-align: center;
  margin: 1.4em auto; max-width: 620px; line-height: 1.55; }

footer.site { border-top: 1px solid var(--line-dark); margin-top: 2.2em; padding-top: 14px;
  font-size: 0.92rem; color: var(--muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.88rem; }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.75rem; }
  .rule, .audio-box { padding: 14px 16px 10px; }
}

/* Conversation page (talk.html) — master picker tiles */
.pick { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.pick span { display: block; }
.pick .pick-name { font-size: 1.3rem; margin: 0.15em 0 0.3em; color: var(--ink); }
.pick:hover { border-color: var(--line-dark); }
.pick[aria-pressed="true"] { background: var(--paper-deep); outline: 2px solid var(--accent-dark); outline-offset: -2px; }
.pick:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }

/* Conversation page — chat shell */
.chat-shell { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); margin: 1.2em 0; }
.doorway { background: var(--paper-deep); border-bottom: 1px solid var(--line); padding: 12px 18px;
  font-style: italic; color: var(--ink-soft); font-size: 0.98rem; }
.privacy-note { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 18px;
  color: var(--ink-soft); font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.9rem; line-height: 1.5; }
.privacy-note strong { color: var(--ink); }
.chat-log { padding: 16px 18px 6px; max-height: 480px; overflow-y: auto; }
.msg { margin: 0 0 14px; max-width: 88%; }
.msg .who { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.msg p { margin: 0; white-space: pre-wrap; }
.msg.visitor { margin-left: auto; background: var(--paper-deep); border: 1px solid var(--line); padding: 10px 14px; }
.msg.master { padding: 2px 0; }
.sys-note { text-align: center; color: var(--muted); font-style: italic; font-size: 0.95rem;
  margin: 10px auto; max-width: 92%; }
.composer { border-top: 1px solid var(--line); padding: 14px 18px 16px; }
.composer label.small { display: block; margin-bottom: 6px; }
.composer textarea { width: 100%; font: inherit; font-size: 1rem; line-height: 1.5; padding: 10px 12px;
  border: 1px solid var(--line-dark); background: #fff; color: var(--ink); resize: vertical; }
.composer-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.9rem; }
.btn { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.92rem;
  background: var(--band); color: var(--band-text); border: 1px solid var(--band); padding: 8px 20px; cursor: pointer; }
.btn:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--line-dark); }
.listen { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-soft); cursor: pointer; }
.voice-state { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.8rem;
  background: none; border: none; padding: 3px 0 0; margin: 0; color: var(--muted); cursor: pointer; }
.voice-state:hover { color: var(--ink); }

@media (max-width: 560px) {
  .privacy-note { padding: 10px 14px; }
  .chat-log { padding: 12px 14px 4px; }
  .composer { padding: 12px 14px 14px; }
  .msg { max-width: 95%; }
}

/* ================= The Hall (index.html) =================
   The homepage is the inside of a grand lodge: the hall art as a hero,
   then a timber door-wall where each master is a literal door. Door
   pattern documented in index.html and BUILD-NOTES.md ("The Hall"). */

/* Hero — the lodge interior, names never baked into the art */
.hall-hero { position: relative; overflow: hidden; background: #17100a; }
.hall-art { display: block; width: 100%; height: min(62vh, 560px); min-height: 340px;
  object-fit: cover; object-position: 50% 42%; }
.hall-hero-text { position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(to bottom, rgba(16,10,5,0.34) 0%, rgba(16,10,5,0) 34%,
  rgba(16,10,5,0) 52%, rgba(16,10,5,0.82) 100%); }
.hall-hero-text .wrap { width: 100%; padding-bottom: 26px; }
.hall-kicker { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: #e8c97a; margin: 0 0 2px; }
.hall-hero h1 { color: #f7efdb; font-size: 3.1rem; margin: 0; letter-spacing: 0.015em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65); }
.hall-sub { color: #efe7d3; font-size: 1.12rem; font-style: italic; margin: 4px 0 0;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7); }

/* The door wall — a dark timber band the doors stand in */
.door-wall { background:
  repeating-linear-gradient(90deg, rgba(0,0,0,0.16) 0 2px, rgba(0,0,0,0) 2px 118px),
  linear-gradient(to bottom, #2a1c0f 0%, #20150a 58%, #180e05 100%);
  border-top: 3px double var(--accent); border-bottom: 3px double var(--accent);
  padding: 30px 0 36px; }
.door-wall h2 { color: #f7efdb; border-bottom-color: rgba(232,201,122,0.35); margin-top: 0.2em; }
.door-wall-lede { color: #cdbf9f; max-width: 640px; }
ul.doors { list-style: none; display: flex; flex-wrap: wrap; gap: 30px 24px;
  justify-content: center; padding: 0; margin: 1.4em 0 0.2em; }
.door-unit { width: 172px; text-align: center; }

/* One door — frame, planked panel, brass plate, knob.
   The whole door is a single real link (the <a class="door">). */
.door { display: block; text-decoration: none; }
.door-frame { display: block; background: linear-gradient(to bottom, #3d2712, #2a1809);
  padding: 11px 11px 0; border-radius: 7px 7px 0 0;
  box-shadow: inset 0 0 0 2px #100a03, inset 0 2px 0 rgba(232,201,122,0.14), 0 12px 26px rgba(0,0,0,0.55);
  transition: box-shadow 0.35s ease, transform 0.35s ease; }
.door-panel { display: block; position: relative; height: 302px; overflow: hidden;
  border-radius: 3px 3px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.15) 0 2px, rgba(0,0,0,0) 2px 44px),
    linear-gradient(160deg, #71462a 0%, #5d3719 55%, #472a12 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35), inset 0 0 36px rgba(0,0,0,0.45);
  transition: box-shadow 0.35s ease; }
/* Lower raised panel moulding */
.door-panel::before { content: ""; position: absolute; left: 19px; right: 19px; top: 148px; bottom: 22px;
  border: 2px solid rgba(0,0,0,0.30); border-radius: 3px;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.38), 0 1px 0 rgba(255,220,150,0.10); }
/* Hover / focus: warm light leaks from the door's opening edge, frame glows */
.door:hover .door-frame, .door:focus-visible .door-frame {
  box-shadow: inset 0 0 0 2px #100a03, inset 0 2px 0 rgba(232,201,122,0.14),
    0 0 30px rgba(255,178,64,0.38), 0 14px 28px rgba(0,0,0,0.55);
  transform: translateY(-3px); }
.door:hover .door-panel, .door:focus-visible .door-panel {
  box-shadow: inset -13px 0 20px -7px rgba(255,199,96,0.95), inset 0 0 0 2px rgba(0,0,0,0.35),
    inset 0 0 36px rgba(0,0,0,0.40); }
.door:focus-visible { outline: 2px solid #e8c97a; outline-offset: 4px; border-radius: 4px; }

/* The brass nameplate — name, dates, epithet, all HTML text */
.nameplate { position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  width: 132px; padding: 9px 6px 8px; border-radius: 4px; text-align: center;
  background: linear-gradient(165deg, #ecd28a 0%, #c9a44e 46%, #a87f30 62%, #dcbc66 100%);
  color: #3a2a08;
  box-shadow: 0 2px 6px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(96,68,12,0.55),
    inset 0 1px 0 rgba(255,246,205,0.85); }
.nameplate::before, .nameplate::after { content: ""; position: absolute; top: 5px;
  width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f7e7ae, #8a671f 70%); }
.nameplate::before { left: 6px; }
.nameplate::after { right: 6px; }
.np-name { display: block; font-variant: small-caps; font-weight: bold; font-size: 0.86rem;
  letter-spacing: 0.04em; line-height: 1.25; }
.np-dates { display: block; font-size: 0.64rem; letter-spacing: 0.05em; margin-top: 3px; }
.np-epithet { display: block; font-size: 0.7rem; font-style: italic; margin-top: 2px; }
.door-knob { position: absolute; right: 13px; top: 57%; width: 11px; height: 11px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f4dd96, #b98f36 60%, #7d5c17);
  box-shadow: 0 1px 3px rgba(0,0,0,0.65); }
.door-enter { display: block; margin-top: 11px; color: #e8c97a;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 0.88rem; }
.door:hover .door-enter, .door:focus-visible .door-enter { text-decoration: underline; text-underline-offset: 3px; }
.door-enter.dim { color: #8d7c5c; }
.door-caption { color: #cdbf9f; font-size: 0.84rem; line-height: 1.5; margin: 5px 0 0; }
.door-caption a { color: #efe7d3; }

/* The sealed archway — a future wing, deliberately not a link */
.arch-shape { height: 313px; display: flex; align-items: center; justify-content: center;
  border-radius: 86px 86px 3px 3px;
  background: radial-gradient(ellipse at 50% 42%, #1c130a 0%, #0c0703 68%);
  box-shadow: inset 0 0 0 7px #2a1a0c, inset 0 0 46px rgba(0,0,0,0.92), 0 12px 26px rgba(0,0,0,0.5); }
.arch-plaque { padding: 8px 12px; border-radius: 4px; text-align: center;
  font-variant: small-caps; letter-spacing: 0.08em; font-size: 0.8rem; line-height: 1.45;
  color: #4c3a10; background: linear-gradient(165deg, #b99b52, #8a6d2f 60%, #a5853d);
  box-shadow: inset 0 0 0 1px rgba(70,50,8,0.6); }

@media (max-width: 560px) {
  .hall-hero h1 { font-size: 2.3rem; }
  .hall-art { height: 300px; min-height: 260px; }
  .door-unit { width: 152px; }
  .door-panel { height: 272px; }
  .arch-shape { height: 283px; }
  .nameplate { width: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  .door-frame, .door-panel { transition: none; }
}

/* The Conference Room door — the grandest in the hall, and locked.
   Double-width double door; the lock is the message, so it gets NO
   hover glow or light-crack — only a still, stately sheen. */
.door-unit.conf-unit { width: 368px; }
.conf-panel { display: flex; }
.conf-leaf { flex: 1; position: relative; }
.conf-leaf + .conf-leaf { border-left: 3px solid rgba(0,0,0,0.45);
  box-shadow: -1px 0 0 rgba(255,220,150,0.08); }
.conf-leaf::before { content: ""; position: absolute; left: 16px; right: 16px; top: 148px; bottom: 22px;
  border: 2px solid rgba(0,0,0,0.30); border-radius: 3px;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.38), 0 1px 0 rgba(255,220,150,0.10); }
.conf-plate { width: 218px; top: 40px; }
/* Brass keyhole escutcheon at the meeting stile */
.keyhole { position: absolute; left: 50%; top: 56%; transform: translateX(-50%);
  width: 25px; height: 46px; border-radius: 12px;
  background: linear-gradient(165deg, #ecd28a 0%, #c9a44e 46%, #a87f30 62%, #dcbc66 100%);
  box-shadow: 0 2px 5px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(96,68,12,0.55),
    inset 0 1px 0 rgba(255,246,205,0.85); }
.kh-dot { position: absolute; left: 50%; top: 9px; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: #241503;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9), 0 1px 0 rgba(255,246,205,0.35); }
.kh-slot { position: absolute; left: 50%; top: 15px; transform: translateX(-50%);
  width: 11px; height: 20px; background: #241503;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9); }
.conf-door:hover .door-frame, .conf-door:focus-visible .door-frame {
  box-shadow: inset 0 0 0 2px #100a03, inset 0 2px 0 rgba(232,201,122,0.14),
    0 12px 26px rgba(0,0,0,0.55); transform: none; }
.conf-door:hover .door-panel, .conf-door:focus-visible .door-panel {
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35), inset 0 0 36px rgba(0,0,0,0.45); }
.conf-door:hover .door-enter, .conf-door:focus-visible .door-enter {
  text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .door-unit.conf-unit { width: 100%; max-width: 344px; }
  .conf-plate { width: 200px; }
}

/* Council seat picker (2026-11-13) */
.seat-picker { border: 1px solid var(--line-dark); border-left: 4px solid var(--accent); background: var(--paper-deep); padding: 12px 16px; margin: 14px 18px 0; }
.seat-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.seat { border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 0.95rem; background: #fff; }
.seat input { accent-color: var(--accent); margin-right: 6px; }
