:root {
  --bg: #f4f0e7;
  --paper: #fffdf8;
  --ink: #24231f;
  --muted: #777267;
  --accent: #5d7140;
  --accent-dark: #3f5129;
  --line: #ddd6c8;
  --shadow: 0 12px 32px rgba(48,43,32,.10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.8), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}
.site-header {
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 28px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.site-header h1 { margin: 0; font-size: clamp(42px, 6vw, 76px); letter-spacing: -2px; line-height: .95; }
.subtitle { margin: 10px 0 0; color: var(--muted); font: 15px/1.4 system-ui, sans-serif; }
.boar-logo {width: 150px; min-width: 150px;}
.boar_logo_jpg {position: fixed; top: 0; left: 0; width: 100px; height: auto;z-index: 1000;}
.boar-logo svg { width: 100%; height: auto; }
.boar-body { fill: #8b6c4e; stroke: #4c3c2d; stroke-width: 3; }
.ear { fill: #76583f; stroke: #4c3c2d; stroke-width: 3; }
.snout { fill: #c38e76; stroke: #4c3c2d; stroke-width: 3; }
.eye { fill: #17140f; }
.smile { fill: none; stroke: #2d2119; stroke-width: 3; stroke-linecap: round; }
.tusk { fill: #f3e8ca; stroke: #4c3c2d; stroke-width: 2; }

main { max-width: 1220px; margin: 0 auto; padding: 24px 28px 60px; }
.status { color: var(--muted); font: 14px system-ui, sans-serif; margin: 0 0 18px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(48,43,32,.15); }
.meta { color: var(--muted); font: 12px/1.4 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.news-card h2 { font-size: 23px; line-height: 1.15; margin: 9px 0 10px; }
.excerpt {
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 13px;
}
.source-link { color: var(--accent-dark); font: 13px system-ui, sans-serif; font-weight: 650; }
@media (max-width: 760px) {
  .site-header { padding: 20px 18px; }
  .boar-logo { width: 90px; min-width: 90px; }
  .site-header h1 { font-size: 43px; }
  main { padding: 18px; }
  .news-grid { grid-template-columns: 1fr; }
}

.modal { position: fixed; inset: 0; display: none; z-index: 10; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24,22,17,.68); }
.modal-card {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  padding: 32px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.close {
  position: absolute; top: 10px; right: 14px;
  border: 0; background: transparent; font-size: 34px; cursor: pointer; color: var(--muted);
}
.modal-card h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.08; margin: 10px 0 20px; }
.modal-body { font-size: 18px; line-height: 1.65; }
.modal-body p { margin: 0 0 14px; }
.modal-nav {
  display: flex; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 26px;
}
.modal-nav button {
  border: 1px solid var(--line); background: #f3eee4; color: var(--ink);
  border-radius: 8px; padding: 10px 15px; cursor: pointer; font: 14px system-ui, sans-serif;
}
.modal-nav button:hover { background: #e9e2d5; }
.modal-nav button:disabled { opacity: .4; cursor: default; }
