:root { color-scheme: light; --burgundy:#6d1830; --ink:#2d2926; --muted:#6f655d; --gold:#c9a66b; --paper:#f4f0e8; --cream:#fbf7ef; --line:#d8c9ad; }
* { box-sizing: border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.55 Georgia,serif; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
.site-nav { position:sticky; top:0; z-index:10; display:flex; justify-content:space-between; gap:18px; padding:12px max(18px,calc((100% - 900px)/2)); border-bottom:1px solid var(--line); background:rgba(255,255,255,.97); box-shadow:0 2px 10px rgba(55,35,22,.08); }
.site-name { color:var(--burgundy); font-weight:700; text-decoration:none; white-space:nowrap; }
.site-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px 18px; }
.site-links a,.text-button { color:#4b3b2f; font-size:14px; text-decoration:none; }
.site-links a:hover,.site-links a:focus,.text-button:hover,.text-button:focus { color:var(--burgundy); text-decoration:underline; }
main { width:min(900px,calc(100% - 32px)); margin:36px auto 64px; }
.forum-header { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom:24px; }
.eyebrow { margin:0 0 4px; color:var(--burgundy); font:700 12px/1.2 Arial,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
h1,h2 { color:var(--burgundy); }
h1 { margin:0; font-size:clamp(2rem,6vw,3.6rem); line-height:1; }
.forum-header p:last-child { max-width:650px; margin:13px 0 0; }
.abbey-photo { position:relative; margin:0 0 24px; overflow:hidden; border:1px solid var(--line); border-radius:7px; background:#fff; box-shadow:0 3px 16px rgba(55,35,22,.1); }
.abbey-photo img { display:block; width:100%; object-fit:cover; }
.abbey-photo-wide img { height:clamp(230px,42vw,410px); object-position:center 42%; }
.abbey-photo-banner img { height:clamp(180px,30vw,290px); object-position:center 38%; }
.abbey-photo figcaption { position:absolute; right:0; bottom:0; padding:7px 10px; background:rgba(35,24,20,.82); color:#fff; font:12px/1.35 Arial,sans-serif; }
.abbey-photo figcaption a { color:#fff; }
.privacy-note,.panel { padding:18px 20px; border:1px solid var(--line); border-radius:6px; background:#fff; box-shadow:0 2px 12px rgba(55,35,22,.06); }
.privacy-note { margin-bottom:28px; border-left:5px solid var(--gold); }
.forum-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:20px 0 14px; }
.forum-toolbar h2 { margin:0; }
.toolbar-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.latest-posts { margin:28px 0 30px; padding:18px 20px 20px; border:1px solid var(--line); border-left:5px solid var(--gold); border-radius:7px; background:linear-gradient(135deg,#fffdf8 0%,#f8f1e4 100%); box-shadow:0 3px 14px rgba(55,35,22,.08); }
.latest-posts-heading { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:14px; }
.latest-posts-heading h2 { margin:0; font-size:clamp(1.35rem,3vw,1.8rem); }
.latest-posts-kicker { margin:0 0 3px; color:#76551f; font:700 10px/1.2 Arial,sans-serif; letter-spacing:.14em; text-transform:uppercase; }
.latest-posts-note { color:var(--muted); font:12px/1.4 Arial,sans-serif; }
.latest-post-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.latest-post-card { display:flex; flex-direction:column; align-items:flex-start; width:100%; min-width:0; border:1px solid #e1d5bf; border-radius:5px; padding:13px 14px; background:rgba(255,255,255,.9); color:inherit; text-align:left; box-shadow:0 1px 5px rgba(55,35,22,.04); }
.latest-post-card:hover,.latest-post-card:focus-visible { border-color:var(--gold); box-shadow:0 3px 12px rgba(55,35,22,.1); outline:2px solid transparent; }
.latest-post-card .topic-labels { flex-wrap:wrap; }
.latest-post-title { color:var(--burgundy); font-size:17px; }
.latest-post-excerpt { display:-webkit-box; width:100%; margin-top:6px; color:var(--ink); font-size:14px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.latest-post-card .meta { margin-top:9px; }
.latest-posts-empty { margin:0; color:var(--muted); }
.sections { margin:28px 0 34px; }
.section-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.section-card { display:flex; flex-direction:column; align-items:flex-start; min-height:138px; border:1px solid var(--line); border-radius:6px; padding:16px 18px; background:#fff; color:inherit; text-align:left; box-shadow:0 2px 10px rgba(55,35,22,.05); }
.section-card:hover,.section-card:focus,.section-card.active { border-color:var(--gold); box-shadow:0 3px 14px rgba(55,35,22,.1); }
.section-card.active { border-left:5px solid var(--burgundy); padding-left:14px; }
.section-card strong { color:var(--burgundy); font-size:18px; }
.section-card span { margin:5px 0 12px; color:var(--ink); }
.section-card small { margin-top:auto; color:var(--muted); font:12px/1.3 Arial,sans-serif; }
.primary,.secondary { border:1px solid var(--burgundy); border-radius:4px; padding:10px 15px; font-weight:700; }
.primary { background:var(--burgundy); color:#fff; }
.secondary { background:#fff; color:var(--burgundy); }
.text-button,.icon-button { border:0; background:transparent; }
.back { margin:0 0 12px; padding:0; }
:root { color-scheme: light; --burgundy:#6d1830; --ink:#2d2926; --muted:#6f655d; --gold:#c9a66b; --paper:#f4f0e8; --cream:#fbf7ef; --line:#d8c9ad; }
* { box-sizing: border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.55 Georgia,serif; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
.site-nav { position:sticky; top:0; z-index:10; display:flex; justify-content:space-between; gap:18px; padding:12px max(18px,calc((100% - 900px)/2)); border-bottom:1px solid var(--line); background:rgba(255,255,255,.97); box-shadow:0 2px 10px rgba(55,35,22,.08); }
.site-name { color:var(--burgundy); font-weight:700; text-decoration:none; white-space:nowrap; }
.site-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px 18px; }
.site-links a,.text-button { color:#4b3b2f; font-size:14px; text-decoration:none; }
.site-links a:hover,.site-links a:focus,.text-button:hover,.text-button:focus { color:var(--burgundy); text-decoration:underline; }
main { width:min(900px,calc(100% - 32px)); margin:36px auto 64px; }
.forum-header { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom:24px; }
.eyebrow { margin:0 0 4px; color:var(--burgundy); font:700 12px/1.2 Arial,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
h1,h2 { color:var(--burgundy); }
h1 { margin:0; font-size:clamp(2rem,6vw,3.6rem); line-height:1; }
.forum-header p:last-child { max-width:650px; margin:13px 0 0; }
.abbey-photo { position:relative; margin:0 0 24px; overflow:hidden; border:1px solid var(--line); border-radius:7px; background:#fff; box-shadow:0 3px 16px rgba(55,35,22,.1); }
.abbey-photo img { display:block; width:100%; object-fit:cover; }
.abbey-photo-wide img { height:clamp(230px,42vw,410px); object-position:center 42%; }
.abbey-photo-banner img { height:clamp(180px,30vw,290px); object-position:center 38%; }
.abbey-photo figcaption { position:absolute; right:0; bottom:0; padding:7px 10px; background:rgba(35,24,20,.82); color:#fff; font:12px/1.35 Arial,sans-serif; }
.abbey-photo figcaption a { color:#fff; }
.privacy-note,.panel { padding:18px 20px; border:1px solid var(--line); border-radius:6px; background:#fff; box-shadow:0 2px 12px rgba(55,35,22,.06); }
.privacy-note { margin-bottom:28px; border-left:5px solid var(--gold); }
.forum-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:20px 0 14px; }
.forum-toolbar h2 { margin:0; }
.toolbar-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.sections { margin:28px 0 34px; }
.section-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.section-card { display:flex; flex-direction:column; align-items:flex-start; min-height:138px; border:1px solid var(--line); border-radius:6px; padding:16px 18px; background:#fff; color:inherit; text-align:left; box-shadow:0 2px 10px rgba(55,35,22,.05); }
.section-card:hover,.section-card:focus,.section-card.active { border-color:var(--gold); box-shadow:0 3px 14px rgba(55,35,22,.1); }
.section-card.active { border-left:5px solid var(--burgundy); padding-left:14px; }
.section-card strong { color:var(--burgundy); font-size:18px; }
.section-card span { margin:5px 0 12px; color:var(--ink); }
.section-card small { margin-top:auto; color:var(--muted); font:12px/1.3 Arial,sans-serif; }
.primary,.secondary { border:1px solid var(--burgundy); border-radius:4px; padding:10px 15px; font-weight:700; }
.primary { background:var(--burgundy); color:#fff; }
.secondary { background:#fff; color:var(--burgundy); }
.text-button,.icon-button { border:0; background:transparent; }
.back { margin:0 0 12px; padding:0; }
.topic-list,.post-list { display:grid; gap:12px; }
.topic-card { display:block; width:100%; border:1px solid var(--line); border-left:5px solid var(--burgundy); border-radius:6px; padding:17px 19px; background:#fff; color:inherit; text-align:left; box-shadow:0 2px 10px rgba(55,35,22,.05); }
.topic-card:hover,.topic-card:focus { border-color:var(--gold); transform:translateY(-1px); }
.topic-card strong { display:block; color:var(--burgundy); font-size:18px; }
.topic-card.pinned { border-left-color:var(--gold); }
.topic-labels { display:flex; gap:7px; margin-bottom:7px; }
.section-label,.pinned-label { display:inline-block; border-radius:999px; padding:3px 8px; background:var(--paper); color:var(--muted); font:700 11px/1.2 Arial,sans-serif; }
.pinned-label { background:#f4e3b8; color:#654716; }
.meta { margin:5px 0 0; color:var(--muted); font:13px/1.4 Arial,sans-serif; }
.post { padding:19px 21px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.post-head { display:flex; justify-content:space-between; gap:15px; margin-bottom:10px; }
.post-body { white-space:pre-wrap; overflow-wrap:anywhere; }
.composer { margin-top:18px; }
label { display:block; margin:10px 0 6px; color:var(--burgundy); font-weight:700; }
input,textarea,select { width:100%; border:1px solid #a99b86; border-radius:4px; padding:10px 11px; background:#fff; color:var(--ink); font-family:Arial,sans-serif; }
textarea { resize:vertical; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }
.form-error,.error { color:#8b1e1e; }
.empty { text-align:center; }
dialog { width:min(600px,calc(100% - 28px)); border:1px solid var(--line); border-radius:8px; padding:22px; background:var(--cream); color:var(--ink); box-shadow:0 18px 60px rgba(0,0,0,.25); }
dialog::backdrop { background:rgba(34,27,23,.55); }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; }
.dialog-heading h2 { margin:0; }
.icon-button { color:var(--muted); font:30px/1 Arial,sans-serif; }
footer { padding:28px 18px 40px; color:var(--muted); text-align:center; font-size:13px; }
[hidden] { display:none !important; }
@media (max-width:650px) {
  .site-nav { position:static; display:block; text-align:center; }
  .site-links { flex-wrap:nowrap; justify-content:flex-start; margin-top:8px; overflow-x:auto; }
  .site-links a { white-space:nowrap; }
  main { width:min(100% - 20px,900px); margin-top:22px; }
  .forum-header { display:block; }
  .forum-header .primary { width:100%; margin-top:18px; }
  .abbey-photo-wide img { height:240px; }
  .abbey-photo figcaption { position:static; background:#fff; color:var(--muted); }
  .abbey-photo figcaption a { color:var(--burgundy); }
  .forum-toolbar { align-items:flex-start; flex-wrap:wrap; }
  .toolbar-actions { width:100%; justify-content:space-between; }
  .latest-posts { padding:15px; }
  .latest-posts-heading { align-items:flex-start; flex-direction:column; gap:4px; }
  .latest-post-list { grid-template-columns:1fr; }
  .section-list { grid-template-columns:1fr; }
  .section-card { min-height:0; }
}
.chat-toggle{position:fixed;right:20px;bottom:20px;z-index:20;border:1px solid #4e1223;border-radius:999px;padding:12px 18px;background:var(--burgundy);color:#fff;box-shadow:0 5px 20px #30211c44;font:700 15px Arial,sans-serif}
.chat-toggle:hover,.chat-toggle:focus-visible{background:#4e1223}
#chat-badge{display:inline-grid;place-items:center;margin-left:5px;min-width:20px;height:20px;border-radius:50%;background:#f3d997;color:#352018;font:700 12px Arial,sans-serif}
.chat-panel{position:fixed;right:20px;bottom:76px;z-index:20;width:min(370px,calc(100vw - 24px));height:min(560px,calc(100dvh - 100px));display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;background:var(--cream);box-shadow:0 12px 40px #30211c55;overflow:hidden}
.chat-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--burgundy);color:#fff}.chat-head h2{margin:0;color:#fff;font-size:19px}.chat-head button{border:0;background:none;color:#fff;font:28px/1 Arial,sans-serif}
.chat-note{margin:0;padding:10px 14px;border-bottom:1px solid var(--line);font:13px/1.4 Arial,sans-serif;color:#514843}
.chat-messages{flex:1;min-height:0;overflow-y:auto;padding:12px 14px;overscroll-behavior:contain}.chat-empty{color:var(--muted);font-size:14px}.chat-message{margin:0 0 12px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:white}.chat-message.own{background:#f6ebed}.chat-meta{display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;font:12px Arial,sans-serif;color:var(--muted)}.chat-meta strong{color:var(--burgundy);font-size:14px}.chat-message p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.chat-remove{margin-left:auto;padding:0;border:0;background:none;color:var(--burgundy);font:12px Arial,sans-serif;text-decoration:underline}
.chat-error{margin:0;padding:5px 14px;color:#8b1e1e;font:13px Arial,sans-serif}.chat-form{padding:8px 12px 4px;border-top:1px solid var(--line);background:white}.chat-form label{margin:0 0 3px;font:700 13px Arial,sans-serif}.chat-form textarea{min-height:55px;padding:7px 9px;font-size:15px}.chat-form button{display:block;margin:5px 0 0 auto;border:0;border-radius:4px;padding:7px 16px;background:var(--burgundy);color:#fff;font:700 14px Arial,sans-serif}.chat-form button:disabled{opacity:.55}
.chat-setting{display:flex;gap:8px;align-items:center;margin:0;padding:8px 12px 11px;background:white;color:var(--muted);font:13px Arial,sans-serif}.chat-setting input{width:auto;margin:0}
@media(max-width:650px){.chat-toggle{right:12px;bottom:12px}.chat-panel{right:12px;bottom:68px;height:min(540px,calc(100dvh - 85px))}}
.topic-list,.post-list { display:grid; gap:12px; }
.topic-card { display:block; width:100%; border:1px solid var(--line); border-left:5px solid var(--burgundy); border-radius:6px; padding:17px 19px; background:#fff; color:inherit; text-align:left; box-shadow:0 2px 10px rgba(55,35,22,.05); }
.topic-card:hover,.topic-card:focus { border-color:var(--gold); transform:translateY(-1px); }
.topic-card strong { display:block; color:var(--burgundy); font-size:18px; }
.topic-card.pinned { border-left-color:var(--gold); }
.topic-labels { display:flex; gap:7px; margin-bottom:7px; }
.section-label,.pinned-label { display:inline-block; border-radius:999px; padding:3px 8px; background:var(--paper); color:var(--muted); font:700 11px/1.2 Arial,sans-serif; }
.pinned-label { background:#f4e3b8; color:#654716; }
.meta { margin:5px 0 0; color:var(--muted); font:13px/1.4 Arial,sans-serif; }
.post { padding:19px 21px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.post-head { display:flex; justify-content:space-between; gap:15px; margin-bottom:10px; }
.post-body { white-space:pre-wrap; overflow-wrap:anywhere; }
.composer { margin-top:18px; }
label { display:block; margin:10px 0 6px; color:var(--burgundy); font-weight:700; }
input,textarea,select { width:100%; border:1px solid #a99b86; border-radius:4px; padding:10px 11px; background:#fff; color:var(--ink); font-family:Arial,sans-serif; }
textarea { resize:vertical; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }
.form-error,.error { color:#8b1e1e; }
.empty { text-align:center; }
dialog { width:min(600px,calc(100% - 28px)); border:1px solid var(--line); border-radius:8px; padding:22px; background:var(--cream); color:var(--ink); box-shadow:0 18px 60px rgba(0,0,0,.25); }
dialog::backdrop { background:rgba(34,27,23,.55); }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; }
.dialog-heading h2 { margin:0; }
.icon-button { color:var(--muted); font:30px/1 Arial,sans-serif; }
footer { padding:28px 18px 40px; color:var(--muted); text-align:center; font-size:13px; }
[hidden] { display:none !important; }
@media (max-width:650px) {
  .site-nav { position:static; display:block; text-align:center; }
  .site-links { flex-wrap:nowrap; justify-content:flex-start; margin-top:8px; overflow-x:auto; }
  .site-links a { white-space:nowrap; }
  main { width:min(100% - 20px,900px); margin-top:22px; }
  .forum-header { display:block; }
  .forum-header .primary { width:100%; margin-top:18px; }
  .abbey-photo-wide img { height:240px; }
  .abbey-photo figcaption { position:static; background:#fff; color:var(--muted); }
  .abbey-photo figcaption a { color:var(--burgundy); }
  .forum-toolbar { align-items:flex-start; flex-wrap:wrap; }
  .toolbar-actions { width:100%; justify-content:space-between; }
  .section-list { grid-template-columns:1fr; }
  .section-card { min-height:0; }
}
