:root {
  color-scheme: light;
  --ink: #12110f;
  --sub: #4f4a43;
  --paper: #f4efe4;
  --paper-deep: #e8ddc9;
  --line: #1d1b18;
  --accent: #8f1d1d;
  --white: #fffaf0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #fff8e8 0, var(--paper) 36%, #d8c8aa 100%);
  color: var(--ink);
  min-height: 100vh;
}
button, input, select { font: inherit; }
.site-header, main, .footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 42px 0 18px; }
.eyebrow, .paper-kicker, .section-label {
  letter-spacing: .13em; text-transform: uppercase; font-size: 12px; color: var(--accent);
  margin: 0 0 6px; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 700;
}
h1 { font-size: clamp(46px, 10vw, 118px); letter-spacing: -.06em; line-height: .86; margin: 0; font-family: Georgia, "Times New Roman", serif; }
.lead { margin: 14px 0 0; color: var(--sub); font-size: 17px; }
.panel { background: rgba(255, 250, 240, .78); border: 2px solid var(--line); box-shadow: 8px 8px 0 rgba(18, 17, 15, .16); }
.controls { padding: 18px; margin-bottom: 18px; }
.input-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.input-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label span { display: block; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; font-weight: 700; color: var(--sub); margin: 0 0 6px; }
input, select { width: 100%; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); padding: 11px 12px; border-radius: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
button { border: 1.5px solid var(--line); background: var(--ink); color: var(--white); padding: 11px 16px; cursor: pointer; box-shadow: 3px 3px 0 rgba(18, 17, 15, .18); }
button.secondary { background: transparent; color: var(--ink); }
button.danger { border-color: #8f1d1d; }
.note, .muted-text, .footer, .status { color: var(--sub); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; line-height: 1.65; }
.status { min-height: 28px; margin: 8px 0 10px; }
.newspaper { background: var(--white); border: 2.5px solid var(--line); padding: clamp(18px, 3.5vw, 42px); box-shadow: 12px 12px 0 rgba(18, 17, 15, .18); margin-bottom: 34px; }
.masthead { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: stretch; border-bottom: 5px double var(--line); padding-bottom: 18px; margin-bottom: 18px; }
#paperTitle { margin: 0; font-size: clamp(48px, 9vw, 108px); letter-spacing: -.08em; line-height: .84; font-family: Georgia, "Times New Roman", serif; }
#paperSub { margin: 10px 0 0; color: var(--sub); font-size: 15px; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.seal { min-width: 110px; border: 2px solid var(--line); display: grid; place-content: center; text-align: center; padding: 10px; background: var(--paper); }
.seal span { display: block; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; letter-spacing: .12em; }
.seal strong { display: block; font-size: 58px; line-height: .9; font-family: Georgia, "Times New Roman", serif; }
.hero-story { padding-bottom: 20px; border-bottom: 1.5px solid var(--line); margin-bottom: 18px; }
.hero-story h3 { margin: 0; font-size: clamp(30px, 5vw, 62px); line-height: .98; letter-spacing: -.04em; }
.hero-story p:not(.section-label) { max-width: 820px; font-size: 18px; line-height: 1.8; margin-bottom: 0; }
.paper-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.story { border: 1.5px solid var(--line); padding: 14px; background: linear-gradient(180deg, rgba(232, 221, 201, .32), rgba(255,255,255,0)); min-height: 220px; }
.story.wide { grid-column: span 3; min-height: 120px; }
.story h3 { font-size: 24px; line-height: 1.15; margin: 0 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
dt { color: var(--sub); font-weight: 700; }
dd { margin: 0; }
.list-block { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.7; }
.list-block ul, .sources ul { padding-left: 1.1em; margin: 0; }
.sources { margin-top: 18px; border-top: 1.5px solid var(--line); padding-top: 14px; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; }
a { color: var(--accent); }
@media (max-width: 920px) {
  .input-grid, .input-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-grid { grid-template-columns: 1fr 1fr; }
  .story.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .input-grid, .input-grid.three, .paper-grid { grid-template-columns: 1fr; }
  .story.wide { grid-column: span 1; }
  .masthead { grid-template-columns: 1fr; }
  .seal { min-width: 0; max-width: 120px; }
}
@media print {
  body { background: #fff; }
  .site-header, .controls, .status, .footer { display: none !important; }
  main, .newspaper { width: 100%; margin: 0; box-shadow: none; border: none; }
  .newspaper { padding: 0; }
  a { color: inherit; text-decoration: none; }
}
