:root {
  color-scheme: dark;
  --portal-bg: #11151b;
  --portal-surface: #181e26;
  --portal-ink: #f1eee5;
  --portal-muted: #aab2bd;
  --portal-gold: #d6b574;
  --portal-line: #343b45;
  --portal-soft: #242b35;
  --portal-serf: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  font-family: system-ui, -apple-system, 'Yu Gothic', Meiryo, sans-serif;
  color: var(--portal-ink);
  background: var(--portal-bg);
  font-synthesis: none;
}
:root[data-theme='light'] {
  color-scheme: light;
  --portal-bg: #f6f4ef;
  --portal-surface: #fffdf8;
  --portal-ink: #262c33;
  --portal-muted: #626771;
  --portal-gold: #88631f;
  --portal-line: #d7d3c9;
  --portal-soft: #e9e5dc;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--portal-gold); outline-offset: 4px; }
.portal-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.portal-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.portal-skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 18px; background: var(--portal-gold); color: var(--portal-bg); }
.portal-skip:focus { top: 10px; }
.portal-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; min-height: 92px; padding-block: 20px; border-bottom: 1px solid var(--portal-line); }
.portal-brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font: 700 23px var(--portal-serf); letter-spacing: .1em; }
.portal-seal { display: grid; place-items: center; width: 38px; height: 42px; border: 1px solid var(--portal-gold); border-radius: 3px; color: var(--portal-gold); font-size: 22px; }
.portal-brand small { display: block; margin-top: 4px; font: 8px system-ui, sans-serif; letter-spacing: .18em; color: var(--portal-muted); }
.portal-header__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px; min-width: 0; max-width: 100%; margin-left: auto; }
.portal-group-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 14px; padding: 10px 16px; border: 1px solid var(--portal-line); border-radius: 7px; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.portal-group-link > span { color: var(--portal-gold); font-size: 18px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--portal-line); border-radius: 6px; background: transparent; color: var(--portal-ink); }
.theme-toggle:hover { border-color: var(--portal-gold); }
.theme-moon { display: none; }
[data-theme='light'] .theme-moon { display: block; }
[data-theme='light'] .theme-sun { display: none; }
.portal-masthead { padding: 38px 0 32px; text-align: center; }
.portal-masthead__eyebrow { color: var(--portal-gold); font-size: 9px; font-weight: 650; letter-spacing: .32em; }
.portal-masthead__wordmark { margin: 10px 0 12px; padding-left: .2em; font: 800 clamp(48px, 6vw, 76px)/1.2 var(--portal-serf); letter-spacing: .2em; }
.portal-masthead h1 { font-size: 15px; font-weight: 500; letter-spacing: .16em; }
.portal-masthead__intro { margin-top: 20px; color: var(--portal-muted); font-size: 12px; line-height: 1.9; letter-spacing: .03em; }
.portal-mobile-break { display: none; }
.portal-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; border-top: 3px double var(--portal-gold); border-bottom: 1px solid var(--portal-line); }
.portal-tabs { display: flex; align-items: stretch; align-self: stretch; flex-wrap: wrap; gap: 8px 28px; min-width: 0; }
.portal-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; position: relative; min-height: 52px; padding: 12px 2px; color: var(--portal-muted); font-size: 13px; font-weight: 650; }
.portal-tabs a[aria-current='page'] { color: var(--portal-ink); }
.portal-tabs a[aria-current='page']::after { content: ''; position: absolute; height: 3px; background: var(--portal-gold); bottom: -1px; left: 0; right: 0; }
.portal-search { display: flex; align-items: center; gap: 10px; width: min(360px, 45%); min-width: 0; min-height: 44px; border: 1px solid var(--portal-line); border-radius: 5px; padding-left: 12px; background: var(--portal-surface); }
.portal-search > svg { flex-shrink: 0; color: var(--portal-muted); }
.portal-search input[type='search'] { width: 100%; min-width: 0; min-height: 44px; border: 0; border-radius: 0; padding: 8px 0; background: transparent; color: var(--portal-ink); font-size: 14px; }
.portal-search input::placeholder { color: var(--portal-muted); opacity: 1; }
.portal-search button { align-self: stretch; min-width: 56px; min-height: 44px; border: 0; border-left: 1px solid var(--portal-line); border-radius: 0 4px 4px 0; padding: 8px 14px; background: var(--portal-soft); color: var(--portal-ink); font-size: 13px; font-weight: 650; }
.portal-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 30px 0 24px; }
.portal-section-heading h2 { min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: .03em; overflow-wrap: anywhere; }
.portal-section-heading > p { flex-shrink: 0; color: var(--portal-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.portal-section-heading strong { margin: 0 5px; color: var(--portal-ink); font-size: 15px; font-weight: 500; }
.portal-search-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: -10px 0 22px; padding: 4px 12px; border: 1px solid var(--portal-line); border-radius: 7px; background: var(--portal-surface); color: var(--portal-muted); font-size: 13px; line-height: 1.7; }
.portal-search-summary > span { min-width: 0; overflow-wrap: anywhere; }
.portal-search-summary a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-left: auto; color: var(--portal-gold); text-decoration: underline; text-underline-offset: 4px; }
.portal-front { display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(0, 1fr); gap: 30px; }
.portal-front:not(:has(.portal-rail)) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.portal-front--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.portal-front--single .portal-rail { border-left: 0; padding-left: 0; }
.portal-card { min-width: 0; }
.portal-card__link { display: block; min-height: 44px; height: 100%; }
.portal-card__visual { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 8/5; background: var(--portal-soft); }
.portal-card__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portal-card__visual figcaption { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 7px; border-radius: 3px; background: #131820df; color: #f1eee5; font-size: 11px; line-height: 1.5; }
.portal-card__placeholder { display: none; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 14px; color: var(--portal-muted); }
.portal-card__placeholder > span { color: var(--portal-gold); font: 32px var(--portal-serf); opacity: .8; }
.portal-card__placeholder > p { font-size: 11px; text-align: center; }
.portal-card__visual[data-image-state='unavailable'] .portal-card__placeholder { display: flex; }
.portal-card__visual[data-image-state='unavailable'] img { display: none; }
.portal-card__visual[data-image-state='unavailable'] figcaption { display: none; }
.portal-card__body { min-width: 0; padding: 16px 0 0; }
.portal-card__dateline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--portal-muted); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.6; }
.portal-card__latest { color: var(--portal-gold); letter-spacing: .04em; }
.portal-card h3 { margin: 10px 0 12px; font: 700 20px/1.6 var(--portal-serf); overflow-wrap: anywhere; line-break: strict; }
.portal-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--portal-muted); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.portal-card__meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; margin-top: 15px; color: var(--portal-muted); font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.portal-card__numbers { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.portal-card__read { display: flex; align-items: center; justify-content: space-between; width: fit-content; min-height: 44px; gap: 28px; margin-top: 12px; border-bottom: 1px solid var(--portal-gold); color: var(--portal-gold); font-size: 12px; }
.portal-card__read > span { font-size: 18px; }
.portal-card--lead .portal-card__visual { aspect-ratio: 1.94; }
.portal-card--lead h3 { margin-top: 12px; font-size: clamp(25px, 2.8vw, 34px); line-height: 1.5; }
.portal-card--lead .portal-card__excerpt { -webkit-line-clamp: 3; max-width: 62ch; font-size: 13px; }
.portal-card--lead .portal-card__body { padding-top: 20px; }
.portal-rail { min-width: 0; border-left: 1px solid var(--portal-line); padding-left: 28px; }
.portal-rail__label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 0 0 4px; font-size: 12px; font-weight: 650; }
.portal-rail__label > span { color: var(--portal-muted); font-size: 8px; font-weight: 400; letter-spacing: .14em; }
.portal-card--rail { padding: 20px 0; border-bottom: 1px solid var(--portal-line); }
.portal-card--rail:last-child { border-bottom: 0; }
.portal-card--rail .portal-card__link { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 15px; }
.portal-card--rail .portal-card__visual { aspect-ratio: 1; }
.portal-card--rail .portal-card__visual figcaption { right: 3px; bottom: 3px; max-width: calc(100% - 6px); padding: 2px 3px; font-size: 10px; }
.portal-card--rail .portal-card__body { padding: 0; }
.portal-card--rail h3 { margin: 7px 0; font-size: 16px; line-height: 1.65; }
.portal-card--rail .portal-card__excerpt { display: none; }
.portal-card--rail .portal-card__meta { margin-top: 9px; font-size: 11px; }
.portal-card--rail .portal-card__numbers { gap: 7px; }
.portal-more { margin-top: 38px; padding-top: 28px; border-top: 3px double var(--portal-line); }
.portal-more__heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.portal-more__heading h2 { font-size: 16px; font-weight: 600; }
.portal-more__heading > span { color: var(--portal-muted); font-size: 9px; letter-spacing: .16em; }
.portal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }
.portal-card--grid { border-bottom: 1px solid var(--portal-line); padding-bottom: 22px; }
.portal-card--grid h3 { font-size: 19px; }
.portal-grid--results { margin-top: 6px; }
.portal-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 40px 0 16px; }
.portal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; gap: 26px; border: 1px solid var(--portal-gold); border-radius: 5px; color: var(--portal-ink); background: var(--portal-surface); font-size: 13px; font-weight: 550; }
.portal-button > span { color: var(--portal-gold); }
.portal-button--quiet { border-color: var(--portal-line); background: transparent; color: var(--portal-muted); }
.portal-empty { display: grid; justify-items: center; gap: 16px; padding: 62px 24px; border: 1px solid var(--portal-line); background: var(--portal-surface); text-align: center; }
.portal-empty__mark { color: var(--portal-gold); font: 40px var(--portal-serf); }
.portal-empty__eyebrow { color: var(--portal-gold); font-size: 9px; letter-spacing: .2em; }
.portal-empty h3 { font: 700 clamp(20px, 3vw, 27px)/1.7 var(--portal-serf); }
.portal-empty > p:not(.portal-empty__eyebrow) { max-width: 45em; color: var(--portal-muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.portal-empty .portal-button { margin-top: 8px; }
.portal-expiry-note { margin: 0 0 22px; padding: 12px 16px; border: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 12px; line-height: 1.8; }
.portal-expiry-note a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 10px; text-decoration: underline; text-underline-offset: 4px; }
.portal-invitation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; margin: 56px 0 0; padding: 28px 0; border-top: 1px solid var(--portal-line); }
.portal-invitation p { margin-bottom: 8px; font: 700 18px var(--portal-serf); }
.portal-invitation > div > span { color: var(--portal-muted); font-size: 12px; line-height: 1.8; }
.portal-invitation > a { display: inline-flex; align-items: center; min-height: 44px; gap: 24px; color: var(--portal-gold); font-size: 12px; }
.portal-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-block: 24px 36px; border-top: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 11px; }
.portal-footer > div > a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; color: var(--portal-ink); font-family: var(--portal-serf); font-size: 15px; }
.portal-footer > div > a > span { color: var(--portal-muted); font: 10px system-ui, sans-serif; }
.portal-footer p { max-width: 48em; line-height: 1.9; }
.portal-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; min-width: 0; }
.portal-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
/* Metadata, search queries and original headlines can be much longer than the sample edition. */
.portal-card__dateline > *, .portal-card__meta > *, .portal-invitation > div,
.portal-footer > div, .portal-empty, .portal-expiry-note, .portal-button {
  min-width: 0;
  overflow-wrap: anywhere;
}
.portal-card__read, .portal-button { max-width: 100%; }
.portal-group-link > span, .portal-card__read > span, .portal-button > span { flex-shrink: 0; }
@media (hover: hover) {
  .portal-card__link:hover h3, .portal-tabs a:hover, .portal-footer a:hover, .portal-group-link:hover { color: var(--portal-gold); }
  .portal-button:hover, .portal-group-link:hover { background: var(--portal-soft); border-color: var(--portal-gold); }
}
@media (min-width: 821px) and (max-width: 1080px) {
  .portal-front { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
  .portal-rail { padding-left: 22px; }
  .portal-card--rail .portal-card__link { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .portal-card--rail h3 { font-size: 15px; }
  .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .portal-wrap { width: calc(100% - 40px); }
  .portal-front { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .portal-rail { border-left: 0; border-top: 1px solid var(--portal-line); padding: 24px 0 0; }
  .portal-card--rail .portal-card__link { grid-template-columns: 138px minmax(0, 1fr); gap: 20px; }
  .portal-card--rail .portal-card__visual { aspect-ratio: 1.3; }
  .portal-card--rail h3 { font-size: 19px; }
  .portal-card--rail .portal-card__excerpt { display: -webkit-box; -webkit-line-clamp: 2; }
  .portal-card--rail .portal-card__meta { font-size: 11px; }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .portal-tools { flex-wrap: wrap; gap: 0; padding-bottom: 14px; }
  .portal-tabs { width: 100%; min-height: 56px; margin-bottom: 14px; border-bottom: 1px solid var(--portal-line); }
  .portal-search { width: 100%; }
  .portal-footer { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .portal-wrap { width: calc(100% - 32px); }
  .portal-header { flex-wrap: wrap; gap: 12px; min-height: 82px; padding-block: 16px; }
  .portal-brand { font-size: 20px; gap: 8px; }
  .portal-brand small { font-size: 7px; }
  .portal-seal { width: 32px; height: 36px; font-size: 20px; }
  .portal-header__actions { gap: 10px; margin-left: auto; }
  .portal-group-link { gap: 7px; padding: 9px 10px; font-size: 12px; }
  .portal-group-link > span { font-size: 15px; }
  .portal-masthead { padding: 28px 0 26px; }
  .portal-masthead__wordmark { margin-block: 12px; }
  .portal-masthead h1 { font-size: 13px; letter-spacing: .09em; }
  .portal-masthead__intro { margin-top: 16px; font-size: 11px; }
  .portal-mobile-break { display: initial; }
  .portal-tabs { justify-content: space-between; gap: 14px; }
  .portal-tabs a { font-size: 12px; }
  .portal-search input[type='search'] { font-size: 16px; }
  .portal-section-heading { flex-wrap: wrap; gap: 10px; margin-block: 24px 20px; }
  .portal-section-heading h2 { font-size: 13px; }
  .portal-section-heading > p { margin-left: auto; }
  .portal-card--lead .portal-card__visual { aspect-ratio: 1.5; }
  .portal-card--lead h3 { font-size: 25px; }
  .portal-card--lead .portal-card__excerpt { font-size: 12px; }
  .portal-card--rail .portal-card__link { grid-template-columns: 98px minmax(0, 1fr); gap: 14px; }
  .portal-card--rail .portal-card__visual { aspect-ratio: 1; }
  .portal-card--rail h3 { font-size: 16px; }
  .portal-card--rail .portal-card__excerpt { display: none; }
  .portal-card--rail .portal-card__meta { font-size: 11px; }
  .portal-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .portal-card--grid .portal-card__visual { aspect-ratio: 1.7; }
  .portal-card--grid h3 { font-size: 22px; }
  .portal-more { margin-top: 28px; padding-top: 24px; }
  .portal-more__heading h2 { font-size: 14px; }
  .portal-more__heading > span { font-size: 8px; }
  .portal-empty { padding: 40px 18px; }
  .portal-empty > p:not(.portal-empty__eyebrow) { font-size: 12px; }
  .portal-invitation { margin-top: 40px; }
  .portal-invitation p { font-size: 17px; }
  .portal-footer { font-size: 10px; }
}
@media (max-width: 360px) {
  .portal-card--rail .portal-card__link { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .portal-empty { padding-inline: 14px; }
  .portal-tabs { gap: 8px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .portal-card h3, .portal-button, .theme-toggle { transition: color .15s, border-color .15s, background-color .15s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
