@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Manrope:wght@400;500;600&family=Noto+Sans+JP:wght@400;500;600&display=swap');

:root {
  --paper: #ffffff;
  --ink: #172524;
  --muted: #424b4a;
  --line: #d3dfdd;
  --accent: #81d8d0;
  --dark: #163c3a;
  --display: 'Libre Caslon Display', Georgia, serif;
  --serif: var(--display);
  --blue: #81d8d0;
  --sans: Manrope, 'Noto Sans JP', sans-serif;
  --gutter: clamp(24px, 5.3vw, 88px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #08756e; outline-offset: 6px; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { background: #81d8d0; color: #000000; }
.wrap { padding-inline: var(--gutter); max-width: 1400px; margin-inline: auto; }
.section { padding-block: clamp(90px, 9vw, 144px); }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .15em; line-height: 1.8; text-transform: none; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; padding: 13px 0; border-bottom: 1px solid currentColor; font-size: 11px; line-height: 1.8; }
.text-link > span[aria-hidden] { font-size: 20px; line-height: 1; transition: transform .2s ease; }
.text-link:hover > span[aria-hidden] { transform: translate(2px, -2px); }
.skip { position: fixed; left: 20px; top: -100px; z-index: 200; background: var(--paper); padding: 12px 20px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 52px; }
.section-heading h2 { font: 400 clamp(40px, 4.1vw, 60px)/1.12 var(--display); letter-spacing: -.02em; margin-top: 20px; }
.section-heading h2 em { font: inherit; }
.section-heading .intro { max-width: 320px; font-size: 12px; color: var(--muted); line-height: 2.15; padding-bottom: 4px; }
.section-separator { border-bottom: 1px solid var(--line); }
.status-message { font-size: 10px; color: var(--muted); margin-top: 28px; letter-spacing: .06em; }

/* Keep native dialogs, readable source summaries and keyboard focus. */
dialog { color: var(--ink); border: 1px solid var(--line); background: var(--paper); padding: 0; width: min(940px, calc(100% - 48px)); max-width: none; max-height: 90svh; overflow: auto; }
dialog::backdrop { background: #0c1d28b8; backdrop-filter: blur(5px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-size: 25px; line-height: 1; }
.close:hover { background: var(--ink); color: var(--paper); }
.dialog-body { padding: 40px; }
.dialog-body h2 { font: 400 40px/1.4 var(--serif); margin-bottom: 24px; }
.dialog-body p { line-height: 2.2; margin: 20px 0; color: var(--muted); }
.dialog-body > img { width: 100%; height: auto; max-height: 58svh; object-fit: contain; background: #e2e6e5; }
.dialog-body .text-link { margin-right: 25px; }
.video-frame { width: 100%; aspect-ratio: 16/9; border: 0; }
#detail-dialog[data-mode=press] { background: #e8ecea; max-height: 92svh; }
#detail-dialog[data-mode=press] .dialog-top { background: #e8ecea; }
#detail-dialog[data-mode=press] .dialog-body { padding: 28px 34px 40px; }
.press-preview-context { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; line-height: 1.8; margin-bottom: 20px; }
.press-preview-context > span:last-child { font-size: 9px; letter-spacing: .09em; text-align: right; }
.press-article-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.press-article-switcher button { border: 1px solid #aebbc0; padding: 10px 16px; min-height: 44px; font-size: 12px; text-align: left; }
.press-article-switcher button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.press-paper { background: #fffefa; border: 1px solid #d4d8d4; padding: clamp(24px,4vw,56px); }
.press-paper-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); margin-bottom: 25px; }
#detail-dialog .press-paper h2 { font: 500 clamp(22px,2.6vw,32px)/1.7 var(--sans); letter-spacing: .02em; margin: 0 0 18px; overflow-wrap: anywhere; }
#detail-dialog .press-publisher { font-size: 12px; line-height: 1.8; margin: 0; color: var(--muted); }
.press-paper-rule { height: 1px; background: var(--line); margin: 28px 0; }
.press-paper-photo { margin: 0 0 28px; }
#detail-dialog .press-paper-photo img { width: 100%; height: auto; max-height: 58svh; object-fit: contain; margin: 0; background: #000000; }
.press-paper-photo figcaption { margin-top: 10px; font-size: 10px; line-height: 1.8; color: var(--muted); }
.press-paper-photo figcaption a { border-bottom: 1px solid #b4bfc3; }
#detail-dialog .press-summary { font-size: 16px; line-height: 2.15; color: #34444d; margin: 0 0 28px; }
#detail-dialog .press-preview-note { font-size: 11px; line-height: 1.9; color: var(--muted); margin: 0 0 18px; }
.press-read-original { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: #fff; padding: 17px 22px; font-size: 13px; min-height: 54px; }
.press-read-original:hover { background: #405b6b; }
.press-read-original > span[aria-hidden] { font-size: 23px; line-height: 1; }
#detail-dialog .press-source-domain { font-size: 10px; line-height: 1.8; margin: 12px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.press-related { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.press-related h3 { flex-basis: 100%; font-size: 12px; font-weight: 500; }
.press-related > a { font-size: 12px; line-height: 1.8; border-bottom: 1px solid #b4bfc3; }

@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .section { padding-block: 72px; }
  .section-heading { display: block; margin-bottom: 36px; }
  .section-heading h2 { font-size: clamp(43px, 10vw, 65px); margin-top: 16px; }
  .section-heading .intro { max-width: 100%; margin-top: 22px; font-size: 12px; padding: 0; }
  dialog { width: calc(100% - 24px); }
  .dialog-top { padding: 12px 18px; }
  .dialog-body { padding: 24px; }
  .dialog-body h2 { font-size: 28px; }
  .dialog-body p { font-size: 13px; }
  #detail-dialog[data-mode=press] .dialog-body { padding: 18px 12px 28px; }
  .press-preview-context { display: block; }
  .press-preview-context > span:last-child { display: block; text-align: left; margin-top: 5px; }
  .press-paper { padding: 25px 20px; }
  .press-paper-meta { font-size: 10px; gap: 10px; }
  #detail-dialog .press-summary { font-size: 14px; }
  .press-read-original { font-size: 12px; padding: 15px 16px; }
  .press-article-switcher button { font-size: 11px; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
