/* Horizon デイリー — newspaper-style theme */
:root {
  --paper: #faf8f3;
  --ink: #1d1d1b;
  --ink-soft: #4b4a46;
  --ink-faint: #8a877e;
  --shu: #a6402d;      /* 朱 */
  --ai: #1f4e79;       /* 藍 */
  --line: #ddd9ce;
  --panel: #f2efe7;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.small { font-size: .85rem; }

/* ── top utility bar ─────────────────────────────────────────── */
.topbar {
  background: var(--ink);
  color: #e8e6df;
  font-size: .72rem;
  letter-spacing: .04em;
}
.topbar .wrap { padding: .34rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar a { color: #f0c674; text-decoration: none; border-bottom: 1px solid transparent; }
.topbar a:hover { border-bottom-color: #f0c674; }

/* ── masthead ────────────────────────────────────────────────── */
.masthead {
  border-bottom: 3px double var(--ink);
  background: var(--paper);
}
.masthead .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: .8rem 1.25rem; flex-wrap: wrap;
}
.nameplate {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-weight: 800; font-size: 1.7rem; letter-spacing: .02em;
}
.nameplate-accent { color: var(--shu); }
.mainnav { display: flex; gap: 1.4rem; font-size: .95rem; }
.mainnav a {
  color: var(--ink); text-decoration: none; padding: .25rem 0;
  border-bottom: 2px solid transparent; font-weight: 600;
}
.mainnav a:hover { color: var(--shu); border-bottom-color: var(--shu); }
.mainnav a[aria-current="page"] { color: var(--shu); border-bottom-color: var(--shu); }

/* ── article grid ────────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  padding: 1.5rem 0 3rem;
  align-items: start;
}
.single-col { max-width: 860px; margin: 0 auto; padding: 1.5rem 0 3rem; }

/* ── issue article ───────────────────────────────────────────── */
.issue-kicker {
  margin: 0 0 .2rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; color: var(--shu); text-transform: uppercase;
}
.issue-kicker .dot { font-size: .5rem; vertical-align: .2em; margin: 0 .35em; }
.issue-head h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 1.85rem; line-height: 1.3; margin: .1em 0 .9em;
  border-bottom: 1px solid var(--line); padding-bottom: .6em;
}
.issue-body blockquote {
  margin: 0 0 1rem; padding: .6rem 1rem;
  background: var(--panel); border-left: 4px solid var(--shu);
  color: var(--ink-soft); font-size: .95rem;
}
.issue-body h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 1.35rem; border-bottom: 2px solid var(--ink);
  padding-bottom: .25em; margin: 1.6em 0 .8em;
}
.issue-body h3 {
  font-size: 1.08rem; line-height: 1.5; margin: 1.6em 0 .3em;
}
.issue-body h3 a { color: var(--ink); text-decoration: none; }
.issue-body h3 a:hover { color: var(--ai); text-decoration: underline; text-underline-offset: .15em; }
.issue-body p { margin: .5em 0 .8em; }
.issue-body a { color: var(--ai); text-decoration: none; border-bottom: 1px solid rgba(31,78,121,.35); }
.issue-body a:hover { border-bottom-color: var(--ai); }
.issue-body hr { border: 0; border-top: 1px dashed var(--line); margin: 1.5em 0; }
.issue-body details {
  margin: .6em 0; padding: .35em .8em;
  background: var(--panel); border-radius: 4px; font-size: .9rem;
}
.issue-body summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.issue-body code {
  background: #ece9de; padding: .1em .35em; border-radius: 3px;
  font-size: .88em; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.issue-body ul, .issue-body ol { padding-left: 1.4em; }
.issue-body li { margin: .25em 0; }

/* ── sidebar ─────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 1rem; }
.panel {
  border: 1px solid var(--line); background: #fff;
  padding: .85rem 1rem; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.panel h2 {
  font-size: .78rem; letter-spacing: .14em; color: var(--ink-faint);
  border-bottom: 1px solid var(--line); padding-bottom: .4em; margin: 0 0 .5em; text-transform: uppercase;
}
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li { border-bottom: 1px dotted var(--line); }
.issue-list li:last-child { border-bottom: 0; }
.issue-list a {
  display: block; padding: .32em .2em; color: var(--ink); text-decoration: none; font-size: .95rem;
}
.issue-list a:hover { background: var(--panel); color: var(--shu); }
.archive-link { font-size: .85rem; font-weight: 600; color: var(--ai); text-decoration: none; display: inline-block; margin-top: .5em; }

/* ── archive ─────────────────────────────────────────────────── */
.page-head h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  border-bottom: 3px double var(--ink); padding-bottom: .35em;
}
.archive-month h2 {
  font-size: 1.15rem; border-bottom: 1px solid var(--ink); padding-bottom: .2em;
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.8em;
}
.archive-month .count { font-size: .8rem; color: var(--ink-faint); font-weight: 400; }
.archive-month ul { list-style: none; padding: 0; columns: 2; gap: 1.5rem; }
.archive-month li { margin: .2em 0; break-inside: avoid; }
.archive-month a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.archive-month a:hover { color: var(--shu); border-bottom-color: var(--shu); }

/* ── about ───────────────────────────────────────────────────── */
.about-body h2 { font-size: 1.15rem; border-bottom: 1px solid var(--line); padding-bottom: .2em; margin-top: 2em; }

/* ── footer ──────────────────────────────────────────────────── */
.sitefooter {
  background: var(--ink); color: #c9c7bd; font-size: .82rem;
  border-top: 3px solid var(--shu);
}
.sitefooter .wrap {
  display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 2rem;
  padding: 1.6rem 1.25rem 2rem;
}
.sitefooter a { color: #f0c674; }
.footer-col { min-width: 0; }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .archive-month ul { columns: 1; }
  .sitefooter .wrap { grid-template-columns: 1fr; gap: 1rem; }
  .nameplate { font-size: 1.3rem; }
  .issue-head h1 { font-size: 1.4rem; }
}
