:root {
  color-scheme: only light;
  --paper: #fff;
  --surface: #fff;
  --masthead-paper: #fff;
  --ink: #202631;
  --muted: #505967;
  --line: #d7dce4;
  --accent: #2d4869;
  --nav: #222f40;
  --tint: #eaf0f6;
  --focus: #335781;
  --reply-link: #16467c;
  --reply-target: #e8f1ff;
  --reply-number: #365e55;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.shell { width: min(1080px, calc(100% - 56px)); margin-inline: auto; }
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 8px 12px;
  transform: translateY(-200%);
  background: var(--surface);
}
.skip:focus { transform: translateY(0); }

body > header { border-top: 3px solid #526b88; background: var(--surface); }
.masthead-banner { background: var(--masthead-paper); }
.masthead {
  display: grid;
  grid-template-columns: minmax(0, max-content) 1fr;
  align-items: center;
  gap: 4px 12px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  grid-column: 1 / -1;
  justify-self: start;
  align-items: center;
  gap: 12px;
  font-size: clamp(29px, 5.1vw, 43px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1.22;
}
.brand-reels {
  display: grid;
  flex: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 18px;
  height: 10px;
  padding: 1px;
  border: 1px solid #3b4756;
  border-radius: 2px;
  background: linear-gradient(#5d6875, #293646);
}
.brand-reel {
  display: grid;
  place-items: center;
  border-radius: 1px;
  background: linear-gradient(#abb6c2, #e2e7ec 25%, #f5f6f4 55%, #dce3e9 78%, #b6c0cb);
}
.brand-reel::before {
  content: "";
  width: 92%;
  height: 52%;
  background: linear-gradient(135deg, var(--reel-shadow) 15%, var(--reel-color) 40%, var(--reel-glint) 49%, var(--reel-color) 63%, var(--reel-shadow) 92%);
}
.brand-reel-red {
  --reel-shadow: #672635;
  --reel-color: #b04a4c;
  --reel-glint: #e39675;
}
.brand-reel-red::before { clip-path: polygon(18% 0, 87% 15%, 100% 60%, 76% 100%, 9% 84%, 0 32%); }
.brand-reel-blue {
  --reel-shadow: #1e3d68;
  --reel-color: #477fac;
  --reel-glint: #97b8d4;
}
.brand-reel-blue::before { clip-path: polygon(27% 4%, 100% 0, 83% 59%, 66% 100%, 0 82%, 11% 37%); }
.brand-reel-green {
  --reel-shadow: #224b39;
  --reel-color: #478366;
  --reel-glint: #a4ba82;
}
.brand-reel-green::before { border-radius: 44% 24% 37% 26%; }
.brand-suffix {
  margin-inline-start: 4px;
  font-size: clamp(12px, 3.6vw, 19px);
  font-weight: 700;
  letter-spacing: -.025em;
}
.tagline { margin: 0; color: var(--muted); font-size: 14px; }
.preview-label {
  justify-self: start;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-band { background: var(--nav); color: #fff; }
.nav-inner, .nav-inner nav { display: flex; align-items: stretch; }
.nav-inner { justify-content: space-between; gap: 8px; }
.nav-inner nav a, .search-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 17px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.nav-inner a[aria-current="page"] {
  background: #3a5474;
}
.nav-inner a:not([aria-current]):hover, .search-toggle:hover { background: #35465c; }
.nav-inner :focus-visible { outline-color: #fff; outline-offset: -4px; }
.search-toggle {
  gap: 9px;
  color: inherit;
  border: 0;
  background: transparent;
}
.search-icon {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translate(-1px, -1px);
}
.search-icon::after {
  position: absolute;
  content: "";
  width: 6px;
  height: 1.5px;
  background: currentColor;
  top: 10px;
  left: 8px;
  transform: rotate(45deg);
}
.search-band { border-bottom: 1px solid var(--line); background: var(--surface); }
.search-form { display: grid; gap: 6px; padding-block: 14px; }
.search-form label { font-size: 13px; font-weight: 700; color: var(--muted); }
.search-controls { display: flex; gap: 8px; width: min(100%, 480px); }
.search-controls input {
  min-width: 0;
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.search-controls input::placeholder { color: var(--muted); }
.search-controls button {
  border: 0;
  background: var(--nav);
  color: #fffef8;
  padding-inline: 14px;
  white-space: nowrap;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  align-items: start;
  gap: 26px;
  min-height: 57vh;
  padding-block: 25px 40px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 0 10px;
  border-bottom: 2px solid var(--accent);
}
.section-header h1 { margin: 0; font-size: 22px; line-height: 1.4; }
.muted { font-size: 12px; color: var(--muted); }
.search-message { margin: 14px 0; color: var(--muted); }
.story-list,
.side-section ul { list-style: none; margin: 0; padding: 0; }
.story-list { background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.story-list li + li { border-top: 1px solid var(--line); }
.story-link {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 16px;
  padding: 11px 16px 12px;
}
.story-link:focus-visible { outline-offset: -3px; }
.story-link:hover { background: var(--tint); }
.story-meta, .article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}
.category {
  background: var(--tint);
  color: var(--accent);
  padding: 0 6px;
  font-weight: 700;
}
.story-title { font-size: clamp(16px, 2.35vw, 19px); line-height: 1.46; font-weight: 600; text-wrap: pretty; }
.story-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: 22px; }

.side-section + .side-section { margin-top: 24px; }
.side-section h2 {
  margin: 0;
  border-top: 2px solid var(--accent);
  background: var(--tint);
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 800;
}
.side-section ul { border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.side-section li + li { border-top: 1px solid var(--line); }
.side-section a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 12px;
  font-size: 14px;
}
.side-section a:hover, .footer a:hover { color: var(--accent); text-decoration: underline; }
.side-picks a { line-height: 1.6; }
.side-product-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.side-product-link:hover { color: var(--accent); }

.breadcrumb, .text-link { display: inline-block; color: var(--accent); font-weight: 500; }
.breadcrumb { padding: 2px 0; font-size: 13px; }
.breadcrumb:hover, .text-link:hover { text-decoration: underline; }
.thread-article { margin-top: 6px; }
.thread-article header {
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  background: var(--surface);
}
.thread-article h1 {
  margin: 9px 0 0;
  line-height: 1.38;
  font-size: clamp(22px, 4.6vw, 30px);
  font-weight: 650;
  text-wrap: balance;
  word-break: auto-phrase;
}
.article-body, .about-copy { background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.about-copy { padding: 18px 22px 22px; }
.about-copy p { margin: 0 0 15px; }
.review-page .shell { max-width: 740px; }
.review-status { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.review-page .about-copy h2 { margin: 18px 0 5px; font-size: 18px; line-height: 1.5; font-weight: 650; }
.review-page .about-copy p { margin: 0; }
.article-source { margin: 0; padding: 12px 21px; color: var(--muted); font-size: 13px; }
.article-source a { display: inline; text-decoration: underline; text-underline-offset: 2px; }
.article-status { margin: 0; padding: 16px 21px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.thread-replies {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.thread-replies li { padding: 12px 21px; }
.thread-replies li:focus-visible { outline-offset: -2px; }
.reply-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 7px;
  color: var(--muted);
  font-size: 12px;
}
.reply-number { color: var(--reply-number); font-variant-numeric: tabular-nums; }
.reply-text { margin: 4px 0 0; font-size: 17px; white-space: pre-wrap; }
.reply-quote { margin: 0; }
.reply-anchor { color: var(--reply-link); text-decoration: underline; text-underline-offset: 2px; }
.reply-selected { background: var(--reply-target); }
.related { padding: 13px 21px; border-top: 1px solid var(--line); }
.related span { display: block; color: var(--muted); font-size: 12px; }
.related a { display: block; padding: 5px 0; line-height: 1.6; }
.related a:hover { text-decoration: underline; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-block: 16px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .masthead { padding-block: 12px 9px; }
  .page-grid { grid-template-columns: 1fr; gap: 21px; padding-block: 16px 25px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .side-section + .side-section { margin-top: 0; }
  .side-product-link { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
  .section-header h1 { font-size: 21px; }
  .nav-inner nav a, .search-toggle { padding-inline: 10px; min-height: 45px; }
  .story-link { padding: 10px 12px; column-gap: 9px; }
  .thread-article header, .article-source, .article-status, .thread-replies li, .related, .about-copy { padding-inline: 13px; }
  .thread-article header { padding-block: 11px; }
}

@media (max-width: 375px) {
  .shell { width: calc(100% - 24px); }
  .brand { font-size: 27px; }
  .preview-label { padding-inline: 5px; font-size: 11px; }
  .nav-inner { gap: 3px; }
  .nav-inner nav a, .search-toggle { padding-inline: 8px; }
}

@media (max-width: 620px) {
  .masthead { gap: 3px 8px; }
  .brand { gap: 8px; }
  .tagline { font-size: 12px; }
}
