:root {
  color-scheme: light;
  --page: #f7f4ee;
  --surface: #fffefa;
  --surface-soft: #f0ebe2;
  --ink: #2d2925;
  --muted: #776e64;
  --line: #e2d9cd;
  --accent: #884a35;
  --accent-strong: #713923;
  --accent-soft: #efe1d8;
  --urgent: #a43c32;
  --urgent-soft: #f8e8e4;
  --new: #3f6b57;
  --new-soft: #e6f0e8;
  --shadow: 0 16px 42px rgba(62, 43, 25, .065);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #1c1916;
  --surface: #28231f;
  --surface-soft: #332d27;
  --ink: #f2ece4;
  --muted: #b4a89c;
  --line: #433a32;
  --accent: #dfa184;
  --accent-strong: #efb99c;
  --accent-soft: #3d2c23;
  --urgent: #f09a8e;
  --urgent-soft: #422a28;
  --new: #a5d0ad;
  --new-soft: #26382d;
  --shadow: 0 16px 42px rgba(0, 0, 0, .2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #1c1916;
    --surface: #28231f;
    --surface-soft: #332d27;
    --ink: #f2ece4;
    --muted: #b4a89c;
    --line: #433a32;
    --accent: #dfa184;
    --accent-strong: #efb99c;
    --accent-soft: #3d2c23;
    --urgent: #f09a8e;
    --urgent-soft: #422a28;
    --new: #a5d0ad;
    --new-soft: #26382d;
    --shadow: 0 16px 42px rgba(0, 0, 0, .2);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--page);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header, main, .site-footer {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { flex: 0 0 auto; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 16px/1.2 var(--serif); }
.brand small { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.nav-link, .back-top {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.nav-link:hover, .back-top:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 4px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.theme-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr);
  align-items: end;
  gap: clamp(38px, 8vw, 120px);
  padding: clamp(54px, 8vw, 96px) 0 48px;
}
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .detail-title { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; }
.hero h1 {
  max-width: 710px;
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.03;
}
.hero-description { max-width: 560px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.quiet-note {
  position: relative;
  margin-bottom: 4px;
  padding: 22px 22px 20px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(100deg, var(--accent-soft), transparent 120%);
}
.quiet-note-mark { color: var(--accent); font-size: 19px; }
.quiet-note p { max-width: 270px; margin: 10px 0 15px; font: 20px/1.35 var(--serif); }
.quiet-note-caption { color: var(--muted); font-size: 12px; }

.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 54px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.demo-banner p { margin: 0; }
.demo-banner strong { color: var(--ink); }
.demo-banner-icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-strong);
  font: 600 13px var(--serif);
}

.featured-section { margin-bottom: 70px; }
.featured-section > .section-kicker { margin-bottom: 14px; }
.featured-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.featured-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--accent);
  content: "";
}
.featured-copy { min-width: 0; }
.featured-meta, .notice-meta, .detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.featured-card h2 { max-width: 690px; margin: 13px 0 9px; font-size: clamp(25px, 3.1vw, 36px); line-height: 1.15; }
.featured-card p { max-width: 680px; margin: 0; color: var(--muted); }
.featured-card .date-block { min-width: 86px; }
.date-block { display: grid; place-items: center; padding: 12px 15px; border-radius: 13px; background: var(--surface-soft); color: var(--accent-strong); text-align: center; }
.date-block small { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.date-block strong { font: 600 31px/1.2 var(--serif); }
.date-block span { color: var(--muted); font-size: 12px; }
.badge, .category-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.4;
}
.badge-urgent { background: var(--urgent-soft); color: var(--urgent); }
.badge-new { background: var(--new-soft); color: var(--new); }
.badge-deadline { background: var(--accent-soft); color: var(--accent-strong); }

.board-section { padding: 0 0 78px; }
.board-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.board-heading-row h2 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.total-count { color: var(--muted); font-size: 13px; }
.filter-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.search-field, .date-field select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.search-field svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: var(--muted); opacity: .86; }
.search-field:focus-within, .date-field select:focus-visible { border-color: var(--accent); }
.date-field select { min-width: 178px; padding: 0 36px 0 13px; font-size: 13px; }
.category-filters { display: flex; gap: 8px; overflow-x: auto; padding: 16px 2px 12px; scrollbar-width: thin; }
.category-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.category-button:hover { border-color: var(--accent); color: var(--accent-strong); }
.category-button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.results-status { min-height: 22px; margin: 5px 0 11px; color: var(--muted); font-size: 12px; }
.load-error { margin: 0 0 15px; padding: 12px 15px; border-left: 4px solid var(--urgent); border-radius: 8px; background: var(--urgent-soft); color: var(--ink); font-size: 13px; }
.notice-list { border-top: 1px solid var(--line); }
.notice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
}
.notice-card-main { min-width: 0; }
.notice-meta { margin-bottom: 9px; }
.notice-card h3 { margin: 0 0 6px; font: 500 23px/1.25 var(--serif); letter-spacing: -.01em; }
.notice-card h3 a { text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.notice-card h3 a:hover { color: var(--accent-strong); text-decoration: underline; }
.notice-card-summary { max-width: 740px; margin: 0; color: var(--muted); font-size: 14px; }
.notice-card-date { min-width: 112px; color: var(--muted); font-size: 12px; text-align: right; }
.notice-card-date strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.empty-state { padding: 40px 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.empty-state > span { color: var(--accent); font: 38px var(--serif); }
.empty-state h3 { margin: 8px 0 4px; color: var(--ink); font: 22px var(--serif); }
.empty-state p { margin-bottom: 17px; font-size: 14px; }
.button-secondary { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); }

.detail-view { max-width: 850px; min-height: 65vh; margin: 0 auto; padding: 54px 0 88px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--accent-strong); font-size: 14px; font-weight: 650; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-article { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.detail-demo-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.detail-title { margin: 19px 0 15px; font-size: clamp(34px, 6vw, 56px); line-height: 1.08; }
.detail-summary { margin: 0; color: var(--muted); font: 20px/1.5 var(--serif); }
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 30px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.detail-fact { min-width: 0; padding: 15px; background: var(--surface); }
.detail-fact dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.detail-fact dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.detail-body { max-width: 690px; color: var(--ink); font-size: 16px; line-height: 1.8; white-space: pre-line; }
.detail-updated { margin: 30px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.not-found { padding: 50px 10px; text-align: center; }
.not-found h1 { font-size: 38px; }
.not-found p { color: var(--muted); }

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 106px;
  border-top: 1px solid var(--line);
}
.footer-mark { display: grid; flex: 0 0 auto; place-items: center; }
.site-footer p { flex: 1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.site-footer p strong { color: var(--ink); font: 600 14px var(--serif); }

@media (max-width: 760px) {
  .site-header, main, .site-footer { width: min(100% - 34px, 600px); }
  .site-header { min-height: 76px; }
  .header-actions { gap: 12px; }
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 54px 0 34px; }
  .hero h1 { max-width: 600px; font-size: clamp(42px, 10vw, 62px); }
  .quiet-note { max-width: 480px; }
  .demo-banner { margin-bottom: 42px; }
  .featured-section { margin-bottom: 54px; }
  .featured-card { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .date-block { min-width: 72px !important; padding: 9px 10px; }
  .date-block strong { font-size: 27px; }
  .board-section { padding-bottom: 56px; }
  .detail-view { width: min(100% - 34px, 600px); padding: 38px 0 58px; }
}

@media (max-width: 520px) {
  .site-header, main, .site-footer { width: calc(100% - 30px); }
  .brand { gap: 9px; }
  .brand img { width: 37px; height: 37px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 11px; }
  .theme-toggle { min-width: 42px; justify-content: center; padding: 8px; }
  .theme-label { display: none; }
  .hero { padding-top: 45px; }
  .hero h1 { margin-top: 15px; font-size: 43px; }
  .hero-description { font-size: 16px; }
  .quiet-note { padding: 18px; }
  .quiet-note p { font-size: 19px; }
  .demo-banner { gap: 10px; padding: 12px; font-size: 12px; }
  .featured-card { grid-template-columns: 1fr; align-items: start; padding: 24px 20px 21px 23px; }
  .featured-card .date-block { grid-row: 1; grid-template-columns: auto auto auto; justify-content: start; gap: 6px; width: fit-content; min-width: 0 !important; }
  .featured-card .date-block strong { font-size: 14px; }
  .featured-card .date-block span { font-size: 11px; }
  .featured-card .date-block small { font-size: 10px; }
  .featured-card h2 { font-size: 27px; }
  .board-heading-row { align-items: end; }
  .board-heading-row h2 { font-size: 32px; }
  .filter-panel { grid-template-columns: 1fr; }
  .date-field select { width: 100%; }
  .category-filters { margin-inline: -4px; }
  .notice-card { grid-template-columns: 1fr; gap: 10px; padding: 19px 2px; }
  .notice-card h3 { font-size: 22px; }
  .notice-card-date { display: flex; gap: 6px; text-align: left; }
  .notice-card-date strong { display: inline; }
  .detail-title { font-size: 39px; }
  .detail-summary { font-size: 18px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-fact { padding: 12px 14px; }
  .site-footer { align-items: flex-start; padding: 19px 0; }
  .footer-mark img { width: 28px; height: 28px; }
  .back-top { align-self: center; white-space: nowrap; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
