@font-face {
  font-family: "Sample Sans";
  src: url("/assets/fonts/sample-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sample Sans";
  src: url("/assets/fonts/sample-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #121212;
  --muted: #8a8a8a;
  --soft: #666;
  --line: #ececec;
  --paper: #f3efe6;
  --sheet: 390px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Sample Sans", "WenQuanYi Micro Hei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 400;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 8px 16px;
  background: #111;
  color: #fff;
}

.sheet {
  width: min(100%, var(--sheet));
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 16px;
}

.brand {
  color: #111;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-note {
  color: #9a9a9a;
  font-size: 12px;
}

.test-flag {
  background: #111;
  color: #fff;
  padding: 10px 16px 11px;
}

.test-flag strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.test-flag span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.story-title {
  margin: 20px 16px 12px;
  color: #0d0d0d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 16px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.layout-placeholder {
  margin: 0 16px 14px;
  padding: 14px 12px;
  border: 1px dashed #d0d0d0;
  background: #fafafa;
  color: var(--muted);
  text-align: center;
}

.layout-placeholder strong {
  display: block;
  color: #666;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}

.layout-placeholder span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.hero {
  margin: 0 0 4px;
}

.hero svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero figcaption {
  margin: 8px 16px 0;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.4;
}

.summary {
  margin: 16px 16px 22px;
  padding: 0 0 0 14px;
  border-left: 3px solid #e4e4e4;
  color: #3f3f3f;
  font-size: 16px;
  font-style: italic;
  line-height: 1.75;
}

.story-body p {
  margin: 0 16px 1.35em;
  color: #1a1a1a;
  font-size: 17px;
  line-height: 1.95;
}

.story-end {
  margin: 4px 16px 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}

.home-lead {
  margin: 0 16px 14px;
  color: #333;
  font-size: 16px;
  line-height: 1.85;
}

.story-list {
  margin: 8px 0 12px;
  padding: 0 16px;
  list-style: none;
}

.story-list a {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.story-list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.story-list h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.story-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.engage {
  margin: 20px 16px 4px;
}

.engage-note {
  margin: 0 0 8px;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.4;
}

.engage-row {
  display: flex;
  gap: 10px;
}

.engage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #ddd;
  border-radius: 999px;
  color: #444;
  font-size: 14px;
}

.section-label {
  margin: 26px 16px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.related-list {
  margin: 0;
  padding: 0 16px 8px;
  list-style: none;
}

.related-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.related-list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.thumb {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: var(--paper);
}

.thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}

.related-kicker {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.related-title {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.missing h1 {
  margin: 28px 16px 12px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
}

.missing p {
  margin: 0 16px 12px;
  font-size: 16px;
  line-height: 1.8;
}

.missing a,
.colophon a,
.story-list a:hover,
.related-list a:hover {
  color: #111;
}

.colophon {
  margin-top: 20px;
  padding: 18px 16px 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.colophon p { margin: 0; }

.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
}

.colophon a { color: #333; }

a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

@media (min-width: 760px) {
  body { background: #e7e4de; }

  .sheet {
    margin: 28px auto 48px;
    min-height: calc(100vh - 76px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  }
}
