:root {
  --ink: #171514;
  --ink-soft: #38322f;
  --paper: #f6f0e3;
  --paper-2: #eee3cf;
  --red: #8b1e27;
  --red-dark: #67151d;
  --gold: #d6a84b;
  --gold-pale: #efd59a;
  --pine: #26392f;
  --line: rgba(23, 21, 20, .16);
  --shadow: 0 18px 55px rgba(31, 24, 18, .13);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }

.top-strip {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 12px;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 96px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-lockup { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-logo { width: 64px; height: 64px; flex: 0 0 auto; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-size: 20px; line-height: 1.1; }
.brand-location { color: #6e625c; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; margin-top: 5px; }
.main-nav { display: flex; gap: 22px; font-weight: 850; font-size: 14px; }
.main-nav a { text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--red); }

.section-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: 36px;
  padding: 64px;
  margin-top: 12px;
  margin-bottom: 84px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 85% 12%, rgba(214,168,75,.19), transparent 28%),
    linear-gradient(130deg, #1a1716 0%, #2f2422 52%, #641720 100%);
  color: white;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 340px;
  height: 340px;
  border: 34px solid rgba(214,168,75,.08);
  border-radius: 50%;
}
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 12px; letter-spacing: .18em; font-weight: 950; }
.hero .eyebrow, .light-heading .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.02; }
h1 { margin: 0; font-size: clamp(48px, 6vw, 82px); letter-spacing: -.04em; max-width: 780px; }
h2 { margin: 0; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.03em; }
h3 { font-size: 27px; margin: 6px 0 8px; }
.hero-text { color: #f1e7d8; max-width: 720px; font-size: 18px; margin: 24px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  border: 0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 21px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.17); }
.button.primary:hover { background: #e0b862; }
.button.ghost { color: white; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.button.full { width: 100%; border-radius: 12px; }
.button.danger { background: #a92b31; color: white; }
.button.neutral { background: #ded5c5; color: var(--ink); }
.button.small { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.hero-mark { position: relative; z-index: 1; text-align: center; }
.hero-mark img { width: min(280px, 100%); filter: drop-shadow(0 18px 34px rgba(0,0,0,.35)); }
.hero-tagline { margin-top: 10px; color: var(--gold-pale); font-family: Georgia, serif; font-style: italic; font-size: 17px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading > p { max-width: 480px; margin: 0 0 5px; color: #6b6058; }
.announcement-list { display: grid; gap: 14px; margin-bottom: 86px; }
.announcement {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  background: rgba(255,255,255,.37);
}
.announcement.pinned { border-left-color: var(--gold); background: #fff9ec; }
.announcement-date { font-weight: 950; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--red); padding-top: 5px; }
.announcement h3 { font-size: 25px; margin: 0 0 8px; }
.announcement p { margin: 0; white-space: pre-line; }
.pin-label { display: inline-block; margin-left: 8px; padding: 3px 7px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 10px/1.2 sans-serif; letter-spacing: .08em; vertical-align: middle; }
.loading-card, .empty-card { padding: 26px; border: 1px dashed var(--line); border-radius: var(--radius); color: #6b6058; }

.info-band { background: var(--pine); color: white; padding: 76px 0 84px; }
.light-heading > p { color: #d7d6ca; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.info-card { padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12); }
.info-card .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 23px; margin-bottom: 17px; }
.info-card h3 { margin: 0 0 10px; font-size: 24px; }
.info-card p { color: #e3e0d6; margin: 0; white-space: pre-line; }

.board-section { padding-top: 84px; padding-bottom: 92px; }
.board-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 34px; align-items: start; }
.comment-list { display: grid; gap: 14px; }
.comment {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.4);
  position: relative;
}
.comment.pinned { border: 2px solid var(--gold); background: #fff9ec; }
.comment.official { border-left: 6px solid var(--red); }
.comment-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 9px; }
.comment-author { font-weight: 950; }
.comment-site { color: #7b6e65; font-size: 13px; font-weight: 700; margin-left: 7px; }
.comment-date { font-size: 12px; color: #7b6e65; white-space: nowrap; }
.comment-subject { margin: 2px 0 8px; font-family: Georgia,serif; font-size: 21px; font-weight: 800; }
.comment-message { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment-badge { display: inline-block; padding: 3px 7px; border-radius: 999px; background: var(--red); color: white; font-size: 10px; font-weight: 900; letter-spacing: .06em; margin-right: 7px; }
.post-panel { position: sticky; top: 22px; background: var(--ink); color: white; border-radius: 22px; padding: 27px; box-shadow: var(--shadow); }
.panel-kicker { font-size: 11px; font-weight: 950; letter-spacing: .18em; color: var(--gold); }
.muted { color: #cbc0b6; }
label { display: block; font-size: 13px; font-weight: 850; margin: 15px 0 6px; }
.optional { font-weight: 600; color: #8f837b; float: right; }
input, textarea, select {
  width: 100%;
  border: 1px solid #bfb2a6;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fffdfa;
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,168,75,.25); }
textarea { resize: vertical; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 22px; margin-top: 11px; color: var(--gold-pale); font-size: 13px; }
.form-status.error { color: #ff9c9c; }

.site-footer { background: #100f0e; color: #eee3cf; padding: 30px max(24px, calc((100vw - var(--max))/2)); display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 52px; height: 52px; }
.site-footer div { display: grid; gap: 2px; }
.site-footer span { color: #9f958b; font-size: 12px; }
.admin-link { margin-left: auto; color: #c8bfae; font-size: 12px; }

/* Admin */
.admin-body { background: #e9e1d4; }
.admin-shell { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 60px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-title { display: flex; gap: 14px; align-items: center; }
.admin-title img { width: 62px; }
.admin-title h1 { font-size: 36px; }
.admin-title p { margin: 3px 0 0; color: #6f6258; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-card { background: #fffaf1; border: 1px solid rgba(23,21,20,.12); border-radius: 18px; padding: 22px; box-shadow: 0 8px 28px rgba(40,30,20,.07); }
.admin-card.full { grid-column: 1 / -1; }
.admin-card h2 { font-size: 28px; margin-bottom: 6px; }
.admin-card .sub { margin: 0 0 14px; color: #786b61; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.admin-form-grid .wide { grid-column: 1 / -1; }
.checkline { display: flex; align-items: center; gap: 8px; }
.checkline input { width: auto; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.item-list { display: grid; gap: 10px; margin-top: 18px; }
.admin-item { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: white; }
.admin-item-head { display: flex; justify-content: space-between; gap: 15px; }
.admin-item-title { font-weight: 900; }
.admin-item-meta { color: #7c7067; font-size: 12px; margin-top: 4px; }
.admin-item-body { white-space: pre-line; margin: 10px 0 0; font-size: 14px; }
.status-chip { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.status-pending { background: #f5d27c; }
.status-approved { background: #b9d9bb; }
.status-hidden { background: #d7d1c9; }
.login-wrap { min-height: 70vh; display: grid; place-items: center; }
.login-card { width: min(430px, 100%); background: #fffaf1; border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.login-brand img { width: 70px; }
.login-brand h1 { font-size: 32px; }
.hidden { display: none !important; }
.admin-status { min-height: 22px; margin-top: 10px; color: #56634f; font-size: 13px; }
.admin-status.error { color: #a1252b; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; }
.filter-button { border: 1px solid #bdb1a6; background: white; padding: 7px 10px; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 12px; }
.filter-button.active { background: var(--ink); color: white; border-color: var(--ink); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 42px 28px; }
  .hero-mark { display: none; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .board-layout { grid-template-columns: 1fr; }
  .post-panel { position: static; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card.full { grid-column: auto; }
}
@media (max-width: 620px) {
  .site-header { padding: 12px 17px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-name { font-size: 17px; }
  .section-shell { width: min(var(--max), calc(100% - 24px)); }
  .hero { width: calc(100% - 24px); min-height: 450px; margin-bottom: 60px; border-radius: 20px; padding: 40px 22px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .announcement { grid-template-columns: 1fr; gap: 8px; }
  .info-grid { grid-template-columns: 1fr; }
  .board-section { padding-top: 60px; }
  .site-footer { align-items: flex-start; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .wide { grid-column: auto; }
  .admin-top { align-items: flex-start; }
  .admin-title h1 { font-size: 30px; }
}

/* Bulletin media */
.upload-selection, .field-help {
  display: block;
  margin-top: 6px;
  color: #a99d91;
  font-size: 12px;
  line-height: 1.4;
}
input[type="file"] { padding: 9px; }
input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 8px;
  padding: 8px 11px;
  margin-right: 10px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.comment-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}
.comment-media.single { grid-template-columns: minmax(0, 1fr); }
.comment-media img,
.comment-media video {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 13px;
  background: #111;
  object-fit: cover;
}
.comment-media.single img,
.comment-media.single video { object-fit: contain; }
.comment-media a { display: block; overflow: hidden; border-radius: 13px; background: #111; }

/* Admin moderation switch */
.moderation-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 16px 18px;
  margin: 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.switch { position: relative; width: 56px; height: 31px; flex: 0 0 56px; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #b9b0a6;
  transition: .18s ease;
}
.switch-slider::before {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(0,0,0,.22);
  transition: .18s ease;
}
.switch input:checked + .switch-slider { background: var(--red); }
.switch input:checked + .switch-slider::before { transform: translateX(25px); }
.switch input:focus-visible + .switch-slider { outline: 3px solid rgba(214,168,75,.45); outline-offset: 2px; }

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.admin-media-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f5efe5;
}
.admin-media-item img,
.admin-media-item video {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #111;
}
.admin-media-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
}
.admin-media-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #6f6258;
}

@media (max-width: 700px) {
  .comment-media { grid-template-columns: 1fr; }
  .admin-media-grid { grid-template-columns: 1fr 1fr; }
  .admin-media-item img, .admin-media-item video { height: 150px; }
}
