@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=Noto+Serif+JP:wght@400;700;900&display=swap');

:root {
  --font-mincho: 'Noto Serif JP';
  --font-gothic: 'BIZ UDPGothic';
}

:root {
  --paper: #f4f1e8;
  --paper-2: #efe9db;
  --ink: #1a1916;
  --ink-soft: #4b463d;
  --muted: #756e60;
  --red: #b23a2e;
  --rule: rgba(26, 25, 22, 0.26);
  --rule-soft: rgba(26, 25, 22, 0.14);
  --mincho: var(--font-mincho), "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: var(--font-gothic), "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(26, 25, 22, 0.014) 0, rgba(26, 25, 22, 0.014) 1px, transparent 1px, transparent 3px);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  z-index: 50;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

.paper-frame {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px 40px;
}

/* ===== Masthead nameplate (print masthead, not a glyph+nav bar) ===== */
.masthead {
  border-bottom: 3px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.masthead__edition {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 7px 2px;
  margin-top: 18px;
  font-family: var(--gothic);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.masthead__center {
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--red);
}
.masthead__lang {
  font-variant-numeric: tabular-nums;
}

.masthead__plate {
  text-align: center;
  padding: 16px 0 6px;
}
.masthead__name {
  display: inline-block;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
}
.masthead__latin {
  display: block;
  margin-top: 12px;
  font-family: var(--mincho);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: var(--muted);
}

.masthead__motto {
  margin: 4px 0 0;
  text-align: center;
  font-family: var(--mincho);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.masthead__index {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.masthead__section {
  font-weight: 700;
}
.masthead__dot {
  margin-right: 10px;
  color: var(--red);
}

/* ===== Front page ===== */
.frontpage__topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: none;
  color: var(--ink-soft);
}
.frontpage__edition {
  font-family: var(--mincho);
  font-weight: 700;
  letter-spacing: 0.3em;
}
.frontpage__count {
  font-variant-numeric: tabular-nums;
}

.frontpage__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(260px, 1fr);
}
.frontpage__lead-col {
  padding-right: 30px;
}

.kicker {
  margin: 0 0 8px;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--red);
  text-transform: none;
}
.kicker--sm {
  font-size: 11px;
  letter-spacing: 0.22em;
}

.lead-story__head {
  margin: 0 0 12px;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.18;
  letter-spacing: 0.02em;
}
.lead-story__head a {
  text-decoration: none;
}
.lead-story__head a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.lead-story__dek {
  margin: 0 0 12px;
  font-family: var(--mincho);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.lead-story__byline {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lead-story__photo {
  height: 250px;
  margin: 4px 0 16px;
  border: 1px solid var(--ink);
  background-color: #e6e0d1;
  background-image:
    linear-gradient(135deg, rgba(178, 58, 46, 0.18), rgba(26, 25, 22, 0.34)),
    url("/images/linenstation-lead.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(0.12) contrast(1.02);
}

.lead-story__body {
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-character;
  font-size: 16px;
  line-height: 1.95;
  column-count: 2;
  column-gap: 28px;
  column-rule: 1px solid var(--rule-soft);
}
.lead-story__more {
  display: inline-block;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

.secondary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 3px double var(--ink);
}
.secondary-story {
  padding: 0 22px;
}
.secondary-story:first-child {
  padding-left: 0;
}
.secondary-story:not(:first-child) {
  border-left: 1px solid var(--rule);
}
.secondary-story__head {
  margin: 0 0 8px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.32;
}
.secondary-story__head a {
  text-decoration: none;
}
.secondary-story__head a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.secondary-story__byline {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.secondary-story__dek {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  text-align: justify;
}

/* ===== Right rail ===== */
.rail {
  padding-left: 28px;
  border-left: 1px solid var(--ink);
}
.rail__title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.rail__briefs {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.rail__brief {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.rail__label {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
}
.rail__brief p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink);
}
.rail__masthead-note {
  border-top: 3px double var(--ink);
  padding-top: 14px;
}
.rail__note-kicker {
  margin: 0 0 6px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.rail__masthead-note p:last-child {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  text-align: justify;
}

/* ===== Article (newspaper story) ===== */
.paper {
  max-width: 760px;
  margin: 0 auto;
}
.paper__sectionline {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  margin-bottom: 26px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.paper__return {
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}
.paper__return:hover {
  text-decoration: underline;
}
.paper__section {
  font-family: var(--mincho);
  font-weight: 700;
  letter-spacing: 0.22em;
}
.paper__updated {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.story__head {
  margin-bottom: 22px;
}
.story__headline {
  margin: 4px 0 14px;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.24;
  letter-spacing: 0.015em;
}
.story__dek {
  margin: 0 0 16px;
  font-family: var(--mincho);
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-soft);
}
.story__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 3px double var(--ink);
  font-size: 13px;
  color: var(--muted);
}
.story__author {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.story__dateline {
  letter-spacing: 0.06em;
}

.story__standfirst {
  margin: 22px 0 18px;
  font-family: var(--mincho);
  font-size: 17px;
  line-height: 1.95;
  font-weight: 700;
  color: var(--ink);
  text-align: justify;
}

/* injected body */
.article-content {
  font-size: 16.5px;
  line-height: 2;
  text-align: justify;
  text-justify: inter-character;
}
.article-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 4.7em;
  line-height: 0.72;
  padding: 6px 12px 2px 0;
  color: var(--red);
}
.article-content p {
  margin: 0 0 1.15em;
}
.article-content h2 {
  margin: 1.9em 0 0.7em;
  padding: 7px 0 6px 14px;
  border-left: 5px solid var(--red);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.article-content h3 {
  margin: 1.5em 0 0.5em;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 19px;
}
.article-content a {
  color: var(--red);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-content ul,
.article-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}
.article-content li {
  margin-bottom: 0.45em;
}
.article-content blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--mincho);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--ink);
  text-align: left;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14.5px;
  line-height: 1.7;
}
.article-content thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--gothic);
  font-weight: 700;
  text-align: left;
  padding: 9px 12px;
  letter-spacing: 0.04em;
}
.article-content tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
}
.article-content tbody tr:nth-child(even) {
  background: rgba(26, 25, 22, 0.035);
}

.story__subhead {
  margin: 2em 0 0.7em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.story__faq details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
.story__faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 28px 12px 0;
  position: relative;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 16px;
}
.story__faq summary::-webkit-details-marker {
  display: none;
}
.story__faq summary::after {
  content: "＋";
  position: absolute;
  right: 2px;
  top: 12px;
  color: var(--red);
  font-weight: 700;
}
.story__faq details[open] summary::after {
  content: "－";
}
.story__faq details p {
  margin: 0 0 14px;
  padding-left: 2px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.story__sources {
  margin-top: 6px;
}
.story__sources p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.story__foot {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 3px double var(--ink);
}
.story__back {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

/* ===== Colophon ===== */
.colophon {
  margin-top: 40px;
  border-top: 4px solid var(--ink);
  padding-top: 18px;
}
.colophon__plate {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.colophon__name {
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.1em;
}
.colophon__latin {
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--muted);
}
.colophon__desc {
  margin: 10px 0 14px;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.colophon__policy {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.colophon__policy li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}
.colophon__policy li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--red);
  font-weight: 700;
}
.colophon__foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ===== Responsive collapse ===== */
@media (max-width: 900px) {
  .paper-frame {
    padding: 0 18px 32px;
  }
  .frontpage__grid {
    grid-template-columns: 1fr;
  }
  .frontpage__lead-col {
    padding-right: 0;
  }
  .lead-story__body {
    column-count: 1;
  }
  .rail {
    margin-top: 26px;
    padding-left: 0;
    padding-top: 22px;
    border-left: none;
    border-top: 3px double var(--ink);
  }
  .secondary-story {
    padding: 0 0 16px;
    border-left: none !important;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 560px) {
  .masthead__name {
    letter-spacing: 0.08em;
  }
  .article-content {
    text-align: left;
  }
  .lead-story__body {
    text-align: left;
  }
}
