:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --paper: #fffdf7;
  --ink: #17130f;
  --muted: #6f675a;
  --line: #cfc6b4;
  --line-strong: #17130f;
  --accent: #9d1010;
  --accent-dark: #5b0707;
  --link: #17130f;
  --terminal: #10100e;
  --terminal-ink: #f2ead6;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  background-image:
    linear-gradient(rgba(23, 19, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 15, 0.025) 1px, transparent 1px);
  background-size: 18px 18px;
}

.ai-disclosure-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
}

.ai-disclosure-dialog {
  width: min(680px, 100%);
  border: 3px solid #111111;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.ai-disclosure-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.ai-disclosure-dialog h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.ai-disclosure-dialog h2 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.ai-disclosure-dialog hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.ai-disclosure-dialog p {
  line-height: 1.8;
}

.ai-disclosure-close {
  min-height: 42px;
  margin-top: 8px;
  border: 0;
  background: #111111;
  color: #ffffff;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  background: var(--terminal);
  border-bottom: 4px solid var(--accent-dark);
  color: var(--terminal-ink);
}

.header-inner,
.nav-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  text-align: left;
  text-decoration: none;
}

.brand-title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #000000;
}

.brand-subtitle {
  display: block;
  margin-top: 8px;
  color: #d9c79c;
  font-size: 12px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.nav-strip {
  border-top: 1px solid #3d3429;
  background: #241f19;
}

.nav-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #f2ead6;
  font-size: 13px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.nav-inner a,
.nav-inner span {
  text-decoration: none;
}

.search {
  margin-left: auto;
  width: 220px;
  min-height: 30px;
  border: 1px solid #5b5041;
  border-radius: 2px;
  padding: 0 9px;
  background: #16130f;
  color: var(--terminal-ink);
}

.page-shell {
  padding: 22px 0 44px;
}

.article-shell {
  width: min(820px, calc(100% - 32px));
}

.feed {
  background: var(--paper);
  border-top: 4px solid var(--line-strong);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 18px;
}

.article-card {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.story-body {
  display: grid;
  gap: 8px;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article-kicker span:first-child {
  color: var(--accent-dark);
}

.article-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: 0;
}

.article-title a {
  color: var(--link);
  text-decoration: none;
}

.article-title a:hover {
  color: var(--accent);
}

.summary {
  margin: 0;
  max-width: 760px;
  color: #302b24;
  line-height: 1.8;
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.detail-link,
.source-link,
.source-list a {
  color: var(--accent);
  text-decoration: none;
}

.detail-link:hover,
.source-link:hover,
.source-list a:hover {
  text-decoration: underline;
}

.source-link {
  color: var(--muted);
}

.article-detail {
  background: var(--paper);
  border-top: 4px solid var(--line-strong);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 24px 22px 34px;
}

.article-detail h1 {
  margin: 8px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: 0;
}

.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.article-story {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.detail-section h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent-dark);
}

.detail-section p {
  line-height: 1.85;
}

.detail-section p {
  margin: 0 0 0.85em;
}

.article-story p {
  margin: 0 0 1.05em;
  line-height: 1.9;
}

.source-list {
  display: grid;
  gap: 8px;
}

.source-list a {
  display: grid;
  gap: 2px;
}

.source-list small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.moderator-lead {
  background: #f4edda;
  border: 1px solid #c8b98f;
  padding: 14px 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: var(--terminal);
}

.footer-inner {
  color: #d9c79c;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.empty-state {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 78px;
  }

  .brand-title {
    font-size: 34px;
  }

  .nav-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
  }

  .search {
    width: 100%;
    margin-left: 0;
  }

  .article-title {
    font-size: 22px;
  }

  .article-detail h1 {
    font-size: 30px;
  }

  .ai-disclosure-dialog {
    padding: 22px;
  }

  .ai-disclosure-dialog h1 {
    font-size: 24px;
  }

  .ai-disclosure-dialog h2 {
    font-size: 19px;
  }
}
