:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --white: #fffcf8;
  --ink: #241b39;
  --muted: #635873;
  --border: #e3dbea;
  --purple: #5037a8;
  --night: #282044;
  --lilac: #eee7fc;
  --serif: Georgia, Cambria, "Times New Roman", serif;
  font: 16px/1.55 system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--purple); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #7656c0; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 3; background: white; padding: 9px; }
.skip:focus { top: 10px; }
.sitehead { border-bottom: 1px solid var(--border); background: var(--paper); }
.sitehead .wrap { display: flex; min-height: 75px; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; font-size: 1.58rem; font-weight: 790; letter-spacing: -.065em; text-decoration: none; }
.brand img { border-radius: 12px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 34px); }
.nav a { color: var(--ink); font-size: .91rem; font-weight: 660; text-decoration: none; padding-block: 9px; }
.nav a:hover, .nav a[aria-current] { color: var(--purple); text-decoration: underline; }
.intro { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 32px; padding-block: 44px 34px; }
.intro h1, .pagehero h1 { margin: 0; font: normal clamp(3.25rem, 6.8vw, 6.2rem)/.97 var(--serif); letter-spacing: -.07em; }
.intro h1 em { color: var(--purple); font-weight: inherit; }
.intro p, .pagehero p { max-width: 48ch; color: var(--muted); margin: 17px 0; }
.text-link { display: inline-flex; align-items: center; gap: .55em; font-size: .91rem; font-weight: 730; }
.text-link span { text-decoration: none; display: inline-block; }
.night-art { isolation: isolate; overflow: hidden; position: relative; min-height: 238px; aspect-ratio: 1.82; border-radius: 49% 49% 22px 22px / 60% 60% 22px 22px; background: radial-gradient(ellipse at 52% 17%, #69579b 0%, #403263 46%, #2b2249 83%); }
.art-moon { position: absolute; left: 50%; top: 15%; width: 25%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; box-shadow: inset -18px -13px 28px #8367a984, 0 0 42px #e8cafb5c; background: radial-gradient(circle at 30% 24%, #fff1dc, #e5bcdf 50%, #8b70ba 90%); }
.art-orbit { position: absolute; width: 76%; height: 43%; top: 19%; left: 12%; border: 1px solid #e2c5f273; border-radius: 50%; transform: rotate(-13deg); }
.art-star { position: absolute; top: 23%; right: 19%; color: #f9e6cc; font-size: 19px; }
.art-star.secondary { top: 41%; right: auto; left: 18%; font-size: 15px; }
.art-timeline { position: absolute; inset: auto 8% 9%; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: .65rem .95rem; border-radius: 14px; border: 1px solid #b5a3d15e; background: #2c2248e8; color: #fff2e6; font-weight: 700; font-variant-numeric: tabular-nums; }
.art-timeline small { display: block; color: #dfcfea; font-size: .71rem; font-weight: 500; }
.art-timeline i { height: 1px; background: #e2c5f280; }
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 7px; border: 1px solid var(--border); border-radius: 26px; background: var(--white); box-shadow: 0 17px 55px #3322560e; }
.panel { min-width: 0; padding: clamp(16px, 3vw, 34px); }
.panel h2, .sectionhead h2, .callout h2 { margin: 0; font: normal clamp(1.9rem, 3.2vw, 2.75rem)/1.04 var(--serif); letter-spacing: -.042em; }
.panel-lead, .sectionhead p { color: var(--muted); margin: 8px 0 0; }
.results-panel { border-radius: 19px; color: #f9f2ff; background: radial-gradient(ellipse at 94% 0, #4e3675, transparent 52%), var(--night); }
.results-panel .hint { color: #e1d3ed; }
.results-panel .text-link { color: #f5d0b4; margin-top: 4px; }
.results-panel :focus-visible { outline-color: #fae2b9; }
label { display: block; margin-bottom: 5px; font-size: .89rem; font-weight: 700; }
.field { margin: 11px 0; min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
input, select { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 46px; padding: .55rem .65rem; border-radius: 10px; border: 1px solid #b6a9c7; background: #fffefa; color: var(--ink); }
.settings { padding: .3rem 0 .8rem; font-size: .9rem; color: var(--muted); }
.settings summary { width: fit-content; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: .59rem .92rem; min-height: 44px; color: var(--ink); border: 1px solid #bca9d4; border-radius: 10px; background: var(--lilac); font-weight: 700; font-size: .91rem; text-decoration: none; }
.btn:hover { background: #ddd0f5; }
.btn.main { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn.main:hover { background: #3e248e; }
.btn.small { min-height: 37px; padding: .25rem .65rem; font-size: .81rem; }
.output { padding: 0; margin: 13px 0 0; list-style: none; }
.output li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; border-top: 1px solid #b8a5d458; padding: 10px 0; }
.output strong { display: block; color: #f8dcbd; font-size: clamp(1.23rem, 2vw, 1.55rem); line-height: 1.14; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.output small { display: block; color: #e1d3ed; margin-top: 4px; font-size: .82rem; }
.results-panel .btn.small { color: #fbf3ff; border-color: #af9bc7; background: #48365e; }
.results-panel .btn.small:hover { background: #624b7e; }
.hint, .status { color: var(--muted); margin: .47rem 0; font-size: .89rem; }
.status:empty { margin: 0; }
.results-panel .status { color: #f8dcbd; }
.section { margin-block: 61px; }
.sectionhead { margin-bottom: 17px; }
.subpanel { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: clamp(15px, 2.8vw, 27px); }
fieldset { min-width: 0; margin: 0; padding: 9px 14px 13px; border: 1px solid var(--border); border-radius: 11px; background: #fbf7ff; }
legend { padding: 0 6px; font-weight: 750; }
.latency { max-width: 225px; }
.comparison { margin-top: 17px; }
.barlabel, .entry { display: flex; justify-content: space-between; gap: 7px 12px; flex-wrap: wrap; margin: 9px 0 4px; font-size: .91rem; }
.bar { height: 8px; background: var(--lilac); border-radius: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--purple); border-radius: 10px; }
.bar.alt span { background: #93608e; }
.diary-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; }
.diary-record { border-left: 1px solid var(--border); padding-left: 22px; min-width: 0; }
.diary-record h3 { margin: 0; }
.entry { align-items: center; border-bottom: 1px solid var(--border); padding-block: 6px; }
.entry p { margin: 0; }
.entry small { color: var(--muted); }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.guide { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: 17px; padding: 16px; }
.guide-art { display: block; height: 74px; border-radius: 11px; background: radial-gradient(circle at 67% 45%, #fbefd95c 0 17%, transparent 18%), linear-gradient(120deg, #ddd0fa, #a48bbd); }
.guide:nth-child(3n + 2) .guide-art { background: radial-gradient(ellipse at 31% 100%, #fce8dc 0 33%, transparent 34%), linear-gradient(120deg, #efcab7, #be8c9e); }
.guide:nth-child(3n) .guide-art { background: radial-gradient(circle at 70% 67%, #ecdff7 0 15%, transparent 16%), linear-gradient(120deg, #bbafd6, #79659d); }
.guide h3 { font: normal 1.36rem/1.13 var(--serif); margin: .3rem 0 .42rem; }
.guide p { margin: .15rem 0 .75rem; color: var(--muted); font-size: .89rem; }
.guide .tag { color: var(--purple); font-weight: 750; margin: .72rem 0 0; font-size: .78rem; }
.guide a { margin-top: auto; font-size: .89rem; font-weight: 720; }
.callout { background: #eee5f8; border-radius: 20px; padding: clamp(18px, 4vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.callout p { margin: .55rem 0 0; color: var(--muted); }
.pagehero { padding-block: 40px 19px; }
.pagehero h1 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 21ch; margin-top: 12px; }
.reader { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 250px); gap: 38px; margin-bottom: 60px; }
.prose { max-width: 72ch; }
.prose h2 { font: normal clamp(1.55rem,3vw,2rem)/1.15 var(--serif); margin: 1.3em 0 .4em; }
.prose p { margin: .36em 0 .8em; }
.prose ol, .prose ul { padding-left: 1.25em; }
.aside { align-self: start; position: sticky; top: 15px; }
.aside a { display: block; margin: .42em 0; }
.sample { border-left: 3px solid var(--purple); background: var(--lilac); padding: .65em 1em; }
.detail-copy { margin-top: 26px; margin-bottom: 50px; }
.shift-output { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 1.4em; }
.shift-output strong { display: inline-block; margin-right: 8px; }
.sitefoot { padding-block: 20px; border-top: 1px solid var(--border); background: #ede7f3; }
.footgrid, .footgrid nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px 19px; }
.sitefoot a { font-size: .89rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 34px); }
  .intro { gap: 17px; padding-block: 29px 24px; }
  .night-art { min-height: 180px; }
  .guide { padding: 13px; }
  .guides { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reader { grid-template-columns: 1fr; gap: 16px; }
  .aside { position: static; }
}
@media (max-width: 575px) {
  .sitehead .wrap { min-height: 60px; gap: 10px; }
  .nav { gap: 11px; }
  .nav a { font-size: .81rem; }
  .brand { gap: 5px; font-size: 1.33rem; }
  .brand img { width: 29px; height: 29px; }
  .intro { display: block; padding-block: 23px 21px; }
  .night-art { display: none; }
  .intro h1 { font-size: clamp(2.78rem, 10.8vw, 4rem); }
  .intro h1 br { display: none; }
  .intro p { margin-block: 9px; }
  .section { margin-block: 42px; }
  .tool, .diary-panel { grid-template-columns: 1fr; }
  .diary-record { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 15px; }
  .panel { padding: 13px 15px 17px; }
  .guides { grid-template-columns: 1fr; }
  .guide-art { height: 50px; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 24px); }
  .nav { gap: 8px; }
  .split { gap: 8px; }
  fieldset { padding-inline: 7px; }
}
@media print {
  .sitehead, .sitefoot, button, .actions, .skip { display: none !important; }
  .wrap { width: 100%; }
}
