:root {
  color-scheme: light dark;
  --paper: #f5efe2;
  --ink: #2a2a2a;
  --navy: #1f2a44;
  --accent: #864411;
  --gold: #c8782a;
  --muted: #5d574d;
  --line: #cbbda7;
  --surface: #ece3d1;
  --cover: #1f2a44;
  --cover-ink: #faf1df;
  --cover-muted: #d7cebd;
  --cover-gold: #efb578;
  --cover-line: #897a68;
  --plate: #efdfbf;
  --hero-opacity: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.9 system-ui, 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
}
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }
p { margin: .75rem 0 1.1rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.45; text-wrap: balance; }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { margin: 0 0 1.15rem; font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.2rem; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 10; padding: .7rem; background: var(--paper); }
.skip:focus { top: 1rem; }

.masthead { border-top: 3px solid var(--navy); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy); text-decoration: none; font-weight: 750; }
.brand img { width: 43px; height: 43px; }
.brand small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.nav { display: flex; align-items: center; gap: clamp(.85rem, 2.3vw, 2rem); }
.nav a { color: var(--navy); text-decoration: none; white-space: nowrap; font-size: .875rem; }
.nav a:hover { text-decoration: underline; }
.menu-toggle { display: none; align-items: center; gap: .5rem; border: 1px solid var(--line); background: transparent; color: var(--navy); padding: .42rem .6rem; }
.hamburger { width: 16px; display: grid; gap: 4px; }
.hamburger i { height: 1px; background: currentColor; }

/* The border and mounted plate echo the printed book the image came from. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5rem);
  margin-top: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--cover-ink);
  background: var(--cover);
}
.hero::before {
  position: absolute;
  inset: .65rem;
  border: 1px solid var(--cover-line);
  content: '';
  pointer-events: none;
}
.hero-copy { min-width: 0; }
.hero h1 {
  color: inherit;
  font-size: clamp(2.35rem, 4.9vw, 4.25rem);
  font-weight: 750;
  line-height: 1.28;
  margin: 1rem 0 1.15rem;
}
.hero h1 span { display: block; }
.eyebrow { margin: 0 0 .45rem; color: var(--accent); font-size: .875rem; font-weight: 700; }
.hero .eyebrow { color: var(--cover-gold); }
.hero .subtitle { color: var(--cover-ink); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.hero .intro { color: var(--cover-muted); max-width: 29rem; }
.hero .hero-note { margin: .8rem 0 0; color: var(--cover-muted); font-size: .875rem; }
.button {
  display: inline-block;
  padding: .68rem 1.15rem;
  border: 1px solid var(--navy);
  color: var(--paper);
  background: var(--navy);
  text-decoration: none;
  font-weight: 700;
}
.hero .button { margin-top: .4rem; color: var(--cover); background: var(--plate); border-color: var(--plate); }
.hero .button:hover { background: #f9ead0; }
.hero a:focus-visible, .site-footer a:focus-visible { outline-color: var(--cover-gold); }
.hero figure {
  box-sizing: border-box;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: clamp(.65rem, 1.4vw, 1rem) clamp(.75rem, 2vw, 1.8rem) .65rem;
  border: 1px solid var(--cover-line);
  background: var(--plate);
}
.plate { position: relative; width: min(100%, 312px); margin: auto; isolation: isolate; background: var(--plate); }
.plate img { display: block; width: 100%; mix-blend-mode: multiply; }
.plate .whole { opacity: var(--hero-opacity); }
.plate .smile {
  position: absolute;
  inset: 0;
  clip-path: polygon(51% 19.3%, 55% 20.5%, 61% 20.4%, 65% 19.5%, 63% 21.9%, 58% 22.3%, 54% 21.5%);
  pointer-events: none;
}
.hero figcaption {
  margin-top: .4rem;
  padding-top: .45rem;
  border-top: 1px solid #ad9b79;
  color: #50422d;
  font-size: .81rem;
  text-align: center;
}
.hero figcaption a { color: inherit; }
.hero figcaption a:focus-visible { outline-color: #864411; }

.rule-note {
  display: flex;
  justify-content: space-between;
  gap: .55rem 1.5rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.rule-note span:first-child { color: var(--navy); font-weight: 700; }
.section { padding: clamp(2.5rem, 5vw, 4.25rem) 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.section-heading > p { color: var(--muted); font-size: .875rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.facts { padding-left: 1.55rem; border-left: 1px solid var(--line); }
.facts h3 { margin: .75rem 0 .35rem; }
.facts p { color: var(--muted); }
.source-link, .attribution { font-size: .875rem; }
.quote { margin-top: 2rem; padding: 1.65rem 1rem; border-block: 1px solid var(--line); text-align: center; }
.quote blockquote { margin: 0; color: var(--navy); font: italic clamp(1.6rem, 3.2vw, 2.3rem)/1.4 Georgia, 'Times New Roman', serif; }
.quote .translation { margin-block: .4rem; }
.quote .attribution { margin-bottom: 0; color: var(--muted); }

/* Lay out the planned articles as a table of contents. */
.pillar-grid { border-top: 2px solid var(--navy); }
.pillar {
  display: grid;
  grid-template-columns: minmax(12rem, .9fr) minmax(0, 2fr) minmax(10rem, .8fr);
  align-items: baseline;
  gap: .45rem 1.45rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.pillar .motif { display: none; }
.pillar h3, .pillar p { margin: 0; }
.pillar .status { color: var(--muted); font-size: .875rem; }
.editorial { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(1.8rem, 5vw, 4rem); }
.editorial figure { margin: 0; }
.editorial img { display: block; mix-blend-mode: multiply; }
.editorial figcaption { margin-top: .55rem; color: var(--muted); font-size: .81rem; }
.update-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .3rem 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.update-row span { color: var(--muted); font-size: .875rem; }

.site-footer { margin-top: 2.5rem; padding: 2.4rem 0; background: var(--cover); color: var(--cover-ink); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.site-footer .brand, .site-footer a { color: var(--cover-ink); }
.site-footer .brand small, .site-footer p { color: var(--cover-muted); }
.footer-links { display: flex; gap: .7rem 1.45rem; flex-wrap: wrap; }
.footer-links, .site-footer p { font-size: .875rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; margin-top: 1.25rem; padding-top: .8rem; border-top: 1px solid var(--cover-line); color: var(--cover-muted); font-size: .81rem; }

.breadcrumbs { padding: 1.2rem 0; color: var(--muted); font-size: .875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li+li::before { content: '/'; margin-right: .6rem; }
.article { max-width: 45rem; margin: 0 auto; padding: 1.5rem 0 2.5rem; }
.article h1 { padding-bottom: .65rem; border-bottom: 2px solid var(--navy); }
.article h2 { margin-top: 2.35rem; font-size: 1.45rem; }
.article .lead { color: var(--muted); font-size: 1.08rem; }
.article a { overflow-wrap: anywhere; }
.article li { margin-bottom: .65rem; }
.notice, .parallel { padding: 1.25rem 1.5rem; background: var(--surface); }
.notice { border-left: 2px solid var(--gold); }
.source-list { padding-left: 1.4rem; }
.source-list li { padding: .55rem 0 .8rem; border-bottom: 1px solid var(--line); }
.source-list small { display: block; color: var(--muted); font-size: .875rem; }
.parallel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.parallel blockquote { margin: 0; font: 1.25rem/1.6 Georgia, 'Times New Roman', serif; }
.parallel p { margin: 0; }
.reading { padding-left: 1.2rem; border-left: 2px solid var(--gold); }
.label { padding: .18rem .55rem; border: 1px solid var(--accent); color: var(--accent); font-size: .875rem; }

@media (prefers-color-scheme:dark) {
  :root {
    --paper: #1f2a44;
    --ink: #efe8da;
    --navy: #f5efe2;
    --accent: #efb578;
    --muted: #c9ccd4;
    --line: #6b7180;
    --surface: #2d3952;
    --cover: #192237;
    --cover-line: #80796d;
    --plate: #27344b;
  }
  .masthead { border-top-color: var(--gold); }
  .plate img, .editorial img { filter: invert(1); mix-blend-mode: screen; }
  .plate .whole { opacity: calc(var(--hero-opacity) * .82); }
  .hero figcaption { color: var(--cover-muted); border-top-color: var(--cover-line); }
  .hero .button { color: var(--cover); background: var(--cover-gold); border-color: var(--cover-gold); }
  .site-footer { border-top: 1px solid var(--line); }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; flex-wrap: wrap; gap: 0 .5rem; }
  .brand { font-size: .94rem; }
  .brand img { width: 35px; height: 35px; }
  .header-inner .brand small { display: none; }
  .menu-toggle { display: flex; font-size: .875rem; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: .55rem; }
  .js .nav:not(.is-open) { display: none; }
  .nav a { padding: .55rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; padding: 1.65rem 1.35rem; }
  .hero::before { inset: .38rem; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 3.55rem); margin: .55rem 0 .65rem; }
  .hero .subtitle, .hero .intro { margin-block: .5rem; }
  .hero .hero-note { margin-top: .55rem; }
  .hero .button { padding: .52rem .8rem; font-size: .9rem; }
  .hero figure { max-width: 320px; }
  .plate { max-width: 270px; }
  .rule-note { flex-direction: column; }
  .section-heading { display: block; }
  .two-col, .editorial, .parallel { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .facts { padding: .1rem 0 0 1rem; }
  .pillar { grid-template-columns: minmax(0, 1fr); gap: .38rem; }
  .editorial figure { max-width: 31rem; }
  .footer-top { display: block; }
  .footer-links { margin-top: 1rem; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; }
  .article { padding-top: .5rem; }
  .article h2 { font-size: 1.3rem; }
  .notice { padding: 1rem; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .plate .whole { opacity: 1 !important; }
  .plate .smile { display: none; }
}
