:root {
  --paper: #f4f0e8;
  --paper-deep: #e9e2d6;
  --ink: #1b1a17;
  --ink-soft: #5d5a53;
  --indigo: #1e3a5f;
  --vermilion: #c84b31;
  --matcha: #66705a;
  --line: rgba(27, 26, 23, .18);
  --line-strong: rgba(27, 26, 23, .5);
  --shadow: 0 24px 70px rgba(42, 33, 22, .12);
  --serif: "Noto Serif JP", serif;
  --sans: "Zen Kaku Gothic New", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 82px;
}

html[data-theme="yoru"] {
  --paper: #172231;
  --paper-deep: #101a27;
  --ink: #f1eadf;
  --ink-soft: #b9c0c6;
  --indigo: #95b5d4;
  --vermilion: #df6b51;
  --matcha: #99a58b;
  --line: rgba(241, 234, 223, .16);
  --line-strong: rgba(241, 234, 223, .45);
  --shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

html[data-theme="yuki"] {
  --paper: #f5f8f8;
  --paper-deep: #e6edef;
  --ink: #17242b;
  --ink-soft: #56666d;
  --indigo: #315e75;
  --vermilion: #b84433;
  --matcha: #738a84;
  --line: rgba(23, 36, 43, .16);
  --line-strong: rgba(23, 36, 43, .45);
  --shadow: 0 28px 80px rgba(36, 61, 73, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  transition: background-color .5s var(--ease), color .5s var(--ease);
  overflow-x: clip;
}
body.no-motion *, body.no-motion *::before, body.no-motion *::after { animation: none !important; transition-duration: .01ms !important; }
body.menu-open, body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: var(--paper); background: var(--vermilion); }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
html[data-theme="yoru"] .page-noise { mix-blend-mode: screen; opacity: .07; }

.skip-link { position: fixed; left: 12px; top: -70px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); transition: top .2s; }
.skip-link:focus { top: 12px; }

.site-header {
  height: var(--header-h);
  padding: 0 clamp(22px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: grid; line-height: 1.05; position: relative; padding: 8px 0; }
.wordmark::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--vermilion); transition: width .45s var(--ease); }
.wordmark:hover::after { width: 100%; }
.wordmark-jp { font-family: var(--serif); font-weight: 700; letter-spacing: .12em; }
.wordmark-cn { color: var(--ink-soft); font-size: 10px; letter-spacing: .32em; margin-top: 6px; text-transform: uppercase; }
.main-nav { display: flex; height: 100%; align-items: center; gap: clamp(18px, 2.2vw, 38px); }
.nav-link, .nav-search { position: relative; display: inline-flex; align-items: center; height: 100%; border: 0; background: none; padding: 0; cursor: pointer; font-size: 14px; letter-spacing: .08em; }
.nav-link::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; background: var(--vermilion); transition: left .3s var(--ease), right .3s var(--ease); }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.is-current::after { left: 0; right: 0; }
.nav-search { height: 40px; padding: 0 16px; gap: 18px; border: 1px solid var(--line-strong); overflow: hidden; }
.nav-search::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(105%); transition: transform .35s var(--ease); }
.nav-search:hover { color: var(--paper); }
.nav-search:hover::before { transform: translateY(0); }
.nav-search > * { position: relative; z-index: 1; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; position: relative; cursor: pointer; }
.menu-toggle span { position: absolute; width: 20px; height: 1px; background: var(--ink); left: 12px; transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 27px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.hero { min-height: calc(100svh - var(--header-h)); max-width: 1560px; margin: 0 auto; padding: clamp(62px, 9vw, 140px) clamp(22px, 6vw, 96px) clamp(72px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(370px, .72fr); align-items: center; gap: clamp(50px, 8vw, 130px); }
.eyebrow, .section-number { margin: 0 0 25px; font-size: 11px; line-height: 1; letter-spacing: .24em; text-transform: uppercase; color: var(--vermilion); font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 22px; }
.eyebrow::after { content: ""; flex: 0 0 80px; height: 1px; background: var(--line-strong); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 6.1vw, 94px); line-height: 1.18; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.hero-intro { max-width: 680px; color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 20px); margin: 34px 0 0; text-wrap: pretty; }
.hero-actions { display: flex; gap: 13px; margin-top: 38px; flex-wrap: wrap; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 0 22px; border: 1px solid var(--ink); background: transparent; cursor: pointer; position: relative; overflow: hidden; }
.button::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-101%); transition: transform .42s var(--ease); }
.button > * { position: relative; z-index: 1; }
.button:hover { color: var(--paper); }
.button:hover::before { transform: translateX(0); }
.button-primary { color: var(--paper); background: var(--indigo); border-color: var(--indigo); }
.button-primary::before { background: var(--vermilion); }
.button-mark { font-family: var(--serif); font-size: 12px; padding-left: 16px; border-left: 1px solid currentColor; }
.hero-stats { display: flex; gap: 0; margin: 58px 0 0; }
.hero-stats div { display: grid; min-width: 125px; padding: 0 28px; border-left: 1px solid var(--line); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { color: var(--ink-soft); font-size: 11px; letter-spacing: .12em; }
.hero-stats dd { font-family: var(--serif); font-size: 28px; margin: 2px 0 0; }

.hero-poster { aspect-ratio: .72; max-height: 650px; position: relative; background: var(--indigo); color: var(--paper); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.hero-poster::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent); border-radius: 50%; left: -24%; top: 20%; box-shadow: 0 0 0 55px color-mix(in srgb, var(--paper) 3%, transparent), 0 0 0 110px color-mix(in srgb, var(--paper) 2%, transparent); }
.poster-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(to right, transparent calc(100% - 1px), var(--paper) 1px), linear-gradient(to bottom, transparent calc(100% - 1px), var(--paper) 1px); background-size: 20% 20%; }
.poster-kicker { position: absolute; top: 22px; left: 24px; margin: 0; font-size: 9px; letter-spacing: .24em; }
.poster-main { position: absolute; font-family: var(--serif); font-weight: 700; font-size: clamp(106px, 14vw, 200px); line-height: .78; left: 8%; bottom: 13%; letter-spacing: -.1em; }
.poster-vertical { position: absolute; right: 8%; top: 13%; writing-mode: vertical-rl; font-family: var(--serif); letter-spacing: .18em; font-size: clamp(12px, 1.2vw, 16px); line-height: 2; }
.poster-stamp { position: absolute; right: 9%; bottom: 18%; width: 82px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; background: var(--vermilion); border-radius: 50%; font-family: var(--serif); font-weight: 700; line-height: 1.1; transform: rotate(-8deg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vermilion) 72%, var(--paper)); animation: stamp-breathe 4s ease-in-out infinite; }
.poster-stamp small { font-family: var(--sans); font-size: 7px; letter-spacing: .12em; margin-top: 6px; }
.poster-footer { position: absolute; bottom: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .18em; }
@keyframes stamp-breathe { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-6deg) scale(1.045); } }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 14px 0; }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 26px; animation: marquee 35s linear infinite; font-family: var(--serif); font-size: 12px; letter-spacing: .18em; }
.marquee-track i { width: 5px; height: 5px; background: var(--vermilion); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-shell { max-width: 1560px; margin: 0 auto; padding: clamp(96px, 11vw, 170px) clamp(22px, 6vw, 96px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: clamp(46px, 6vw, 86px); }
.section-heading h2 { font-family: var(--serif); font-size: clamp(42px, 5.3vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -.04em; margin: 0; }
.section-heading h2 span { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .3em; color: var(--ink-soft); margin-top: 18px; }
.section-intro { max-width: 470px; margin: 0; color: var(--ink-soft); text-wrap: pretty; }
.date-lockup { display: flex; align-items: center; gap: 14px; }
.date-lockup strong { font-family: var(--serif); font-size: 66px; line-height: 1; font-weight: 500; }
.date-lockup span { font-size: 10px; line-height: 1.45; letter-spacing: .14em; color: var(--ink-soft); }

.daily-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.daily-lead { position: sticky; top: calc(var(--header-h) + 40px); padding: clamp(28px, 4vw, 54px); background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.daily-lead::after { content: "観"; position: absolute; right: 20px; bottom: -18px; color: color-mix(in srgb, var(--paper) 7%, transparent); font-family: var(--serif); font-size: 190px; line-height: 1; pointer-events: none; }
.daily-meta { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: .1em; color: color-mix(in srgb, var(--paper) 65%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); padding-bottom: 18px; }
.daily-lead h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 43px); line-height: 1.55; font-weight: 600; margin: 42px 0 30px; position: relative; z-index: 1; }
.daily-lead > p { color: color-mix(in srgb, var(--paper) 78%, transparent); position: relative; z-index: 1; }
.lead-notes { position: relative; z-index: 1; margin-top: 46px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); display: grid; gap: 16px; font-size: 11px; }
.text-link { width: fit-content; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link b { display: inline-block; transition: transform .3s var(--ease); }
.text-link:hover b { transform: translate(4px, -4px); }
.observation-card { border-top: 1px solid var(--line-strong); }
.observation-card:last-child { border-bottom: 1px solid var(--line-strong); }
.observation-toggle { width: 100%; display: grid; grid-template-columns: 48px 1fr 30px; gap: 18px; align-items: center; padding: 27px 4px; text-align: left; border: 0; background: transparent; cursor: pointer; }
.observation-index { font-family: var(--serif); color: var(--vermilion); }
.observation-title { font-family: var(--serif); font-size: clamp(19px, 2vw, 27px); line-height: 1.5; }
.plus { justify-self: end; font-weight: 300; font-size: 24px; transition: transform .35s var(--ease); }
.observation-card.is-open .plus { transform: rotate(45deg); }
.observation-detail { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .35s; }
.observation-detail > * { overflow: hidden; }
.observation-detail p { margin: 0; color: var(--ink-soft); padding: 0 48px 0 66px; }
.observation-card.is-open .observation-detail { grid-template-rows: 1fr; opacity: 1; padding-bottom: 32px; }
.source-link { display: block; margin: 18px 48px 0 66px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--indigo); font-size: 12px; letter-spacing: .04em; }
.source-link span { float: right; transition: transform .3s var(--ease); }
.source-link:hover span { transform: translate(5px, -5px); }

.topics { border-top: 1px solid var(--line); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.topic-card { min-height: 280px; padding: 26px; display: flex; flex-direction: column; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); position: relative; overflow: hidden; transition: color .4s var(--ease), transform .4s var(--ease); }
.topic-card::before { content: ""; position: absolute; inset: 0; background: var(--indigo); transform: translateY(101%); transition: transform .5s var(--ease); }
.topic-card > * { position: relative; z-index: 1; }
.topic-card:hover { color: var(--paper); transform: translateY(-5px); box-shadow: var(--shadow); }
.topic-card:hover::before { transform: translateY(0); }
.topic-no { color: var(--vermilion); font-family: var(--serif); }
.topic-card h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; margin: 55px 0 8px; }
.topic-card p { color: var(--ink-soft); font-size: 14px; margin: 0; transition: color .4s; }
.topic-card:hover p { color: color-mix(in srgb, var(--paper) 76%, transparent); }
.topic-card b { margin-top: auto; font-size: 9px; letter-spacing: .17em; font-weight: 500; }
.topic-card-search { background: var(--vermilion); color: var(--paper); }
.topic-card-search::before { background: var(--ink); }
.topic-card-search .topic-no, .topic-card-search p { color: color-mix(in srgb, var(--paper) 75%, transparent); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; max-width: 580px; }
.filter-chip { border: 1px solid var(--line); background: transparent; padding: 8px 14px; cursor: pointer; font-size: 12px; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.filter-chip:hover, .filter-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.notes-list { border-top: 1px solid var(--line-strong); }
.note-row { display: grid; grid-template-columns: 70px 145px minmax(0, 1fr) 100px 22px; gap: 20px; align-items: center; min-height: 95px; padding: 20px 4px; border-bottom: 1px solid var(--line); position: relative; transition: padding .35s var(--ease), background .35s; }
.note-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--vermilion); transition: width .35s var(--ease); }
.note-row:hover { padding-inline: 20px; background: color-mix(in srgb, var(--paper-deep) 60%, transparent); }
.note-row:hover::before { width: 4px; }
.note-date, .note-source, .note-tag { font-size: 11px; color: var(--ink-soft); letter-spacing: .06em; }
.note-row strong { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.note-tag { border: 1px solid var(--line); width: fit-content; padding: 3px 8px; }
.note-arrow { transition: transform .3s var(--ease); }
.note-row:hover .note-arrow { transform: translate(5px, -5px); }
.note-row[hidden] { display: none; }
.empty-state { text-align: center; padding: 70px 20px; border-bottom: 1px solid var(--line); }
.empty-state span { font-family: var(--serif); font-size: 24px; }
.empty-state p { color: var(--ink-soft); }

.archive-band { color: var(--paper); background: var(--indigo); }
.archive-inner { max-width: 1370px; margin: 0 auto; padding: clamp(80px, 9vw, 135px) clamp(22px, 6vw, 96px); display: grid; grid-template-columns: .7fr 1fr; column-gap: 90px; align-items: end; }
.archive-band .section-number { grid-column: 1 / -1; color: color-mix(in srgb, var(--paper) 65%, transparent); }
.archive-band h2 { font-family: var(--serif); font-size: clamp(42px, 5vw, 72px); line-height: 1.3; margin: 0; }
.archive-band h2 span { display: block; margin-top: 15px; font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .26em; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.archive-band p:not(.section-number) { color: color-mix(in srgb, var(--paper) 72%, transparent); margin: 0 0 30px; }
.archive-calendar { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); }
.calendar-day { min-height: 150px; background: transparent; color: var(--paper); border: 0; border-right: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); border-block: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); cursor: pointer; display: grid; place-items: center; align-content: center; transition: background .3s, color .3s; }
.calendar-day span, .calendar-day small { font-size: 9px; letter-spacing: .1em; opacity: .65; }
.calendar-day strong { font-family: var(--serif); font-size: 40px; line-height: 1.2; }
.calendar-day:hover, .calendar-day.is-selected { color: var(--ink); background: var(--paper); }
.calendar-day:disabled { cursor: not-allowed; opacity: .45; }

.source-ledger { border-top: 1px solid var(--line-strong); }
.source-group { min-height: 128px; display: grid; grid-template-columns: 90px minmax(0, 1fr) 180px; align-items: center; gap: 34px; border-bottom: 1px solid var(--line); position: relative; transition: padding .35s var(--ease), background .35s; }
.source-group::before { content: ""; position: absolute; left: 0; inset-block: 0; width: 0; background: var(--vermilion); transition: width .35s var(--ease); }
.source-group:hover { padding-inline: 20px; background: var(--paper-deep); }
.source-group:hover::before { width: 3px; }
.source-count { font-family: var(--serif); font-size: 38px; color: var(--vermilion); }
.source-group p { margin: 0; color: var(--ink-soft); font-size: 11px; letter-spacing: .1em; }
.source-group h3 { margin: 3px 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.source-group small { color: var(--ink-soft); }
.source-group b { justify-self: end; font-size: 9px; letter-spacing: .14em; font-weight: 500; }
.provenance-note { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border: 1px solid var(--line-strong); }
.provenance-note div { min-height: 150px; padding: 24px; border-right: 1px solid var(--line); }
.provenance-note div:last-child { border-right: 0; }
.provenance-note span { font-family: var(--serif); font-size: 28px; color: var(--indigo); }
.provenance-note p { margin: 28px 0 0; color: var(--ink-soft); font-size: 13px; }

.site-footer { color: var(--paper); background: var(--ink); padding: 70px clamp(22px, 6vw, 96px) 28px; }
.footer-main { min-height: 190px; display: grid; grid-template-columns: 1.4fr .55fr 1fr 72px; gap: clamp(28px, 5vw, 80px); align-items: start; }
.site-footer strong { font-family: var(--serif); }
.footer-brand strong { font-size: 26px; letter-spacing: .1em; }
.site-footer p { color: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 12px; }
.footer-owner, .footer-contact { display: grid; align-content: start; gap: 7px; }
.footer-owner > span, .footer-contact > span { color: color-mix(in srgb, var(--paper) 48%, transparent); font-size: 10px; letter-spacing: .14em; margin-bottom: 6px; }
.footer-owner strong { font-size: 20px; letter-spacing: .12em; }
.footer-contact a { width: fit-content; color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 13px; border-bottom: 1px solid color-mix(in srgb, var(--paper) 24%, transparent); transition: color .25s, border-color .25s, transform .25s; }
.footer-contact a:hover { color: var(--paper); border-color: var(--vermilion); transform: translateX(5px); }
.footer-legal { display: grid; grid-template-columns: .8fr 1.5fr .8fr; gap: 30px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.footer-legal p { margin: 0; font-size: 10px; }
.back-top { width: 70px; height: 70px; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); display: grid; place-items: center; align-content: center; transition: background .3s, color .3s, transform .3s; }
.back-top span { font-size: 10px; }
.back-top b { font-size: 22px; font-weight: 400; }
.back-top:hover { background: var(--paper); color: var(--ink); transform: translateY(-8px); }

.detail-nav { display: flex; align-items: center; gap: 30px; font-size: 11px; letter-spacing: .12em; }
.detail-nav a { position: relative; padding-block: 8px; }
.detail-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--vermilion); transition: right .35s var(--ease); }
.detail-nav a:hover::after { right: 0; }
.detail-nav span { color: var(--ink-soft); }
.article-shell { max-width: 1120px; margin: 0 auto; padding: clamp(80px, 10vw, 150px) clamp(22px, 6vw, 80px); }
.article-header { padding-bottom: clamp(70px, 9vw, 120px); border-bottom: 1px solid var(--line-strong); }
.article-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(52px, 8vw, 102px); line-height: 1.15; font-weight: 600; letter-spacing: -.045em; }
.article-header h1::before { content: "今日の観測"; display: block; margin-bottom: 18px; font-family: var(--serif); font-size: 20px; letter-spacing: .12em; color: var(--vermilion); }
.article-date { display: flex; align-items: center; gap: 24px; margin-top: 42px; }
.article-date strong { font-family: var(--serif); font-size: 24px; }
.article-date span { color: var(--ink-soft); font-size: 12px; }
.article-deck { max-width: 800px; margin: 62px 0 24px; font-family: var(--serif); font-size: clamp(27px, 4vw, 48px); line-height: 1.55; }
.sample-note { max-width: 780px; color: var(--ink-soft); font-size: 13px; }
.article-body { counter-reset: article-section; }
.article-body section { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 42px; padding: clamp(68px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.article-index { grid-row: 1 / 5; font-family: var(--serif); font-size: 22px; color: var(--vermilion); }
.article-body h2 { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(27px, 4vw, 43px); line-height: 1.5; font-weight: 600; }
.article-body p { max-width: 780px; margin: 0; color: var(--ink-soft); }
.article-source { width: fit-content; margin-top: 32px; padding: 11px 0; border-top: 1px solid var(--line-strong); color: var(--indigo); font-size: 12px; }
.article-source b { display: inline-block; margin-left: 18px; transition: transform .3s var(--ease); }
.article-source:hover b { transform: translate(5px, -5px); }
.article-sources { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 24px; }
.article-takeaways { margin-top: 100px; padding: clamp(35px, 6vw, 65px); color: var(--paper); background: var(--indigo); }
.article-takeaways .section-number { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.article-takeaways h2 { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); }
.article-takeaways ul { margin: 0; padding-left: 1.3em; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.article-takeaways li + li { margin-top: 12px; }
.compact-footer { margin-top: 0; }

.search-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 0; background: var(--paper); color: var(--ink); }
.search-dialog::backdrop { background: rgba(0,0,0,.4); }
.search-dialog[open] { animation: dialog-in .5s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(30px); } }
.dialog-close { position: fixed; right: 34px; top: 24px; width: 54px; height: 54px; border: 1px solid var(--line-strong); background: transparent; font-size: 28px; cursor: pointer; transition: transform .3s, background .3s, color .3s; }
.dialog-close:hover { transform: rotate(90deg); background: var(--ink); color: var(--paper); }
.search-dialog-inner { width: min(900px, calc(100% - 44px)); margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 90px 0; }
.search-dialog h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 66px); line-height: 1.3; margin: 0 0 45px; }
.search-form label { display: block; color: var(--ink-soft); font-size: 12px; margin-bottom: 10px; }
.search-input-wrap { display: grid; grid-template-columns: 1fr auto; border-bottom: 2px solid var(--ink); }
.search-input-wrap input { min-width: 0; font-family: var(--serif); font-size: clamp(20px, 3vw, 34px); padding: 18px 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-input-wrap input::placeholder { color: color-mix(in srgb, var(--ink-soft) 48%, transparent); }
.search-input-wrap button { border: 0; background: transparent; cursor: pointer; padding: 0 10px 0 30px; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.search-suggestions button { border: 1px solid var(--line); background: transparent; padding: 8px 13px; cursor: pointer; font-size: 12px; transition: background .25s, color .25s; }
.search-suggestions button:hover { background: var(--ink); color: var(--paper); }
.search-result { margin-top: 45px; padding: 28px; background: var(--paper-deep); }
.search-result p { margin: 0 0 10px; color: var(--vermilion); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.search-result > span { display: block; color: var(--ink-soft); margin-top: 18px; }
.query-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.query-tags span { padding: 5px 10px; border: 1px solid var(--line); font-size: 12px; }

.tweaks { position: fixed; right: 18px; bottom: 18px; z-index: 40; }
.tweaks-toggle { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--vermilion); color: var(--paper); font-family: var(--serif); cursor: pointer; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.tweaks-toggle:hover { transform: rotate(15deg) scale(1.08); }
.tweaks-panel { position: absolute; right: 0; bottom: 60px; width: 190px; padding: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tweaks-panel strong { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 10px; }
.theme-option { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 5px; cursor: pointer; text-align: left; }
.theme-option:hover, .theme-option.is-active { background: var(--paper-deep); }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.swatch-washi { background: #f4f0e8; }
.swatch-yoru { background: #172231; }
.swatch-yuki { background: #f5f8f8; }
.motion-option { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }

.interactive { -webkit-tap-highlight-color: transparent; }
.interactive:focus-visible { outline: 3px solid color-mix(in srgb, var(--vermilion) 70%, transparent); outline-offset: 4px; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; pointer-events: none; transform: translate(-50%, -50%) scale(0); animation: ripple .65s var(--ease); }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100svh - var(--header-h)); background: var(--paper); display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 40px clamp(24px, 8vw, 80px); gap: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(36px); transition: transform .5s var(--ease), opacity .35s, visibility .35s; }
  .menu-open .main-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
  .nav-link { height: auto; font-family: var(--serif); font-size: clamp(26px, 5vw, 48px); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-search { width: fit-content; height: 50px; margin-top: 30px; }
  .hero { grid-template-columns: 1fr .68fr; gap: 40px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .back-top { justify-self: end; }
  .note-row { grid-template-columns: 60px 120px minmax(0, 1fr) 80px 20px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { padding-inline: 18px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .hero h1 { font-size: clamp(42px, 13vw, 67px); }
  .hero-poster { width: min(100%, 430px); justify-self: center; max-height: none; }
  .hero-stats { justify-content: space-between; }
  .hero-stats div { min-width: 0; flex: 1; padding-inline: 14px; }
  .section-heading { align-items: start; flex-direction: column; }
  .daily-layout { grid-template-columns: 1fr; }
  .daily-lead { position: relative; top: auto; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 220px; }
  .filter-row { justify-content: start; }
  .note-row { grid-template-columns: 55px 1fr 22px; gap: 10px; }
  .note-source { grid-column: 2; grid-row: 1; }
  .note-row strong { grid-column: 1 / 4; grid-row: 2; font-size: 17px; }
  .note-tag { grid-column: 1 / 3; grid-row: 3; }
  .note-arrow { grid-column: 3; grid-row: 1 / 4; align-self: center; }
  .archive-inner { grid-template-columns: 1fr; gap: 34px; }
  .archive-calendar { grid-column: 1; }
  .calendar-day { min-height: 125px; }
  .source-group { grid-template-columns: 56px 1fr; gap: 16px; padding-block: 22px; }
  .source-group b { grid-column: 2; justify-self: start; }
  .source-count { font-size: 28px; }
  .provenance-note { grid-template-columns: 1fr; }
  .provenance-note div { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .provenance-note div:last-child { border-bottom: 0; }
  .footer-main { grid-template-columns: 1fr; min-height: 0; }
  .footer-contact { margin-top: 6px; }
  .back-top { justify-self: start; }
  .footer-legal { grid-template-columns: 1fr; }
  .detail-nav span { display: none; }
  .article-date { align-items: start; flex-direction: column; gap: 4px; }
  .article-body section { grid-template-columns: 1fr; }
  .article-index { grid-row: auto; margin-bottom: 18px; }
  .article-sources { grid-column: 1; }
  .article-source { line-height: 1.6; }
  .daily-meta { flex-direction: column; gap: 5px; }
  .observation-toggle { grid-template-columns: 30px 1fr 24px; gap: 10px; }
  .observation-detail p { padding-left: 40px; padding-right: 10px; }
  .source-link { margin-left: 40px; margin-right: 10px; }
  .poster-main { font-size: 36vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
