:root {
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --ink: #17181a;
  --ink-2: #3d4046;
  --muted: #6d7178;
  --faint: #9a9ea6;
  --line: #dedbd4;
  --line-strong: #c8c4bb;
  --accent: #9a2c22;
  --breach: #9a2c22;
  --breach-bg: #f6e8e5;
  --vuln: #8a5a00;
  --vuln-bg: #f7eedb;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Times New Roman", serif;
  --sans: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161a;
    --paper-2: #1b1e24;
    --ink: #eceae6;
    --ink-2: #c9c6c0;
    --muted: #9d9a94;
    --faint: #726f6a;
    --line: #2b2f36;
    --line-strong: #3a3f47;
    --accent: #e08a7f;
    --breach: #e79a90;
    --breach-bg: #2a1c1b;
    --vuln: #dfb066;
    --vuln-bg: #2a2418;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--accent); }

.wrap { width: min(920px, 100% - 44px); margin-inline: auto; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--line); padding: 26px 0 30px; text-align: center; }
.masthead-top { display: flex; justify-content: center; margin-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 13px; }
.brand-name {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.masthead h1 {
  font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: .04em;
  margin: 0 0 12px; line-height: 1.35;
}
.masthead h1 a { text-decoration: none; }
.tagline { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.85; }

/* ---------- meta bar ---------- */
.meta-bar {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .04em;
}

.today-note {
  margin: 0; padding: 16px 0 0; text-align: center;
  font-size: 12.5px; color: var(--muted); font-family: var(--sans);
}

/* ---------- hero ---------- */
.hero { padding: 44px 0 40px; border-bottom: 1px solid var(--line); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.badge {
  font-size: 11px; line-height: 1.6; padding: 1px 9px; border-radius: 3px;
  letter-spacing: .06em; font-family: var(--sans);
}
.s-critical { background: var(--breach); color: #fff; }
.s-high { border: 1px solid var(--breach); color: var(--breach); }
.s-medium { border: 1px solid var(--line-strong); color: var(--muted); }
.c-breach { background: var(--breach-bg); color: var(--breach); }
.c-vuln { background: var(--vuln-bg); color: var(--vuln); }
.meta-text { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: .03em; }

.hero-title {
  font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.55;
  margin: 0 0 18px; letter-spacing: .01em; text-wrap: pretty; word-break: auto-phrase;
}
.hero-title a { text-decoration: none; }
.hero-title a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; }
.hero-lead { margin: 0 0 20px; color: var(--ink-2); font-size: 15.5px; line-height: 2; }
.read-more {
  display: inline-block; text-decoration: none; font-size: 13px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; color: var(--ink-2);
}
.read-more:hover { border-color: var(--accent); }

/* ---------- archive ---------- */
.archive { padding: 34px 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.section-head h2 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0; letter-spacing: .06em; }
.section-count { font-family: var(--mono); font-size: 11px; color: var(--faint); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); }
.row a {
  display: grid; grid-template-columns: 108px 74px minmax(0, 1fr) 44px;
  align-items: baseline; gap: 14px; padding: 16px 2px; text-decoration: none;
}
.row a:hover .row-title { color: var(--accent); }
.row-date { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.row-badge { font-size: 10.5px; padding: 0 6px; border-radius: 3px; justify-self: start; line-height: 1.9; white-space: nowrap; }
.row-title { font-family: var(--serif); font-size: 16.5px; line-height: 1.7; text-wrap: pretty; word-break: auto-phrase; }
.row-region { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-align: right; }
.row-updated {
  grid-column: 3; font-size: 10.5px; color: var(--accent);
  font-family: var(--mono); letter-spacing: .06em;
}

/* ---------- empty ---------- */
.empty-state { padding: 60px 0; text-align: center; border-bottom: 1px solid var(--line); }
.empty-title { font-family: var(--serif); font-size: 19px; margin: 0 0 10px; }
.empty-state p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- article ---------- */
.article { padding: 30px 0 60px; }
.breadcrumb { font-size: 11.5px; color: var(--faint); margin: 0 0 26px; font-family: var(--mono); }
.breadcrumb a { text-decoration: none; }
.article-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-head h1 {
  font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.55;
  margin: 0 0 20px; letter-spacing: .01em; word-break: auto-phrase;
}
.lead { font-size: 16.5px; line-height: 2; color: var(--ink-2); margin: 0; }
.updated-note { font-family: var(--mono); font-size: 11px; color: var(--accent); margin: 14px 0 0; }

.article-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.article-section h2, .timeline h2, .sources h2 {
  font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 14px;
  letter-spacing: .08em; display: flex; align-items: center; gap: 12px;
}
.article-section h2::before, .timeline h2::before, .sources h2::before {
  content: ""; width: 18px; height: 1px; background: var(--accent);
}
.article-section p { margin: 0; font-size: 15.5px; line-height: 2.05; }

.timeline { padding: 32px 0; border-bottom: 1px solid var(--line); }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 6px 16px;
  padding: 12px 0; border-top: 1px dashed var(--line);
}
.timeline li:first-child { border-top: 0; }
.tl-date { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.tl-note { font-size: 14.5px; line-height: 1.9; }
.tl-src { grid-column: 2; font-size: 11px; color: var(--faint); font-family: var(--mono); text-decoration: none; }
.tl-src:hover { color: var(--accent); }

.sources { padding: 32px 0; }
.sources ul { list-style: none; margin: 0; padding: 0; }
.sources li { padding: 10px 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
.sources li:first-child { border-top: 0; }
.sources a { font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line-strong); align-self: flex-start; }
.src-meta { font-size: 11px; color: var(--faint); font-family: var(--mono); }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; border-top: 2px solid var(--ink); padding-top: 22px; }
.nav-link { text-decoration: none; font-family: var(--serif); font-size: 14.5px; line-height: 1.7; }
.nav-link span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-bottom: 4px; letter-spacing: .08em; }
.nav-link:last-child { text-align: right; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 40px 0 46px; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.footer-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.footer-col p { font-size: 12.5px; line-height: 1.9; color: var(--muted); margin: 0 0 8px; }
.footer-col a { color: var(--ink-2); }
.footer-meta { font-family: var(--mono); font-size: 10.5px !important; color: var(--faint) !important; }

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 36px); }
  .masthead { padding: 20px 0 24px; }
  .masthead h1 { font-size: 25px; }
  .tagline { font-size: 12.5px; }
  .hero { padding: 30px 0 28px; }
  .hero-title { font-size: 23px; line-height: 1.6; }
  .hero-lead { font-size: 14.5px; }
  .row a { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .row-date { grid-column: 1; }
  .row-region { grid-column: 2; grid-row: 1; text-align: right; }
  .row-badge { grid-column: 1; grid-row: 2; }
  .row-title { grid-column: 1 / -1; grid-row: 3; font-size: 15.5px; }
  .row-updated { grid-column: 1 / -1; grid-row: 4; }
  .article-head h1 { font-size: 23px; }
  .lead { font-size: 15px; }
  .article-section p { font-size: 15px; }
  .timeline li { grid-template-columns: 1fr; }
  .tl-src { grid-column: 1; }
  .article-nav { grid-template-columns: 1fr; }
  .nav-link:last-child { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .br-sp { display: none; }
}
