@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #f2f1eb;
  --paper-bright: #f9f8f3;
  --ink: #1e302c;
  --ink-soft: #51645d;
  --muted: #77827b;
  --line: #d4d6ce;
  --line-strong: #aeb7ad;
  --accent: #bf6249;
  --accent-soft: #ead1c4;
  --green: #284840;
  --serif: "Iowan Old Style", "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-width: 1280px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.page-shell { width: min(var(--page-width), calc(100% - 80px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 38px; min-height: 76px; border-bottom: 1px solid var(--line-strong); background: rgba(242, 241, 235, .96); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { position: relative; width: 25px; height: 25px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.brand-mark::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.brand-mark i { position: absolute; width: 13px; height: 1px; background: var(--line-strong); transform: rotate(-35deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.18; }
.brand-copy strong { font-size: 14px; font-weight: 680; letter-spacing: -.045em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 32px; }
.nav-link { position: relative; padding: 7px 1px; color: var(--muted); font-size: 12px; transition: color .18s ease; }
.nav-link::after { content: ""; position: absolute; right: 100%; bottom: 0; left: 0; height: 1px; background: var(--accent); transition: right .18s ease; }
.nav-link:hover, .nav-link.is-current { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-current::after { right: 0; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: 12px; font-weight: 650; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 36px; padding-inline: 13px; font-size: 11px; }
.button-primary { color: #fffaf0; background: var(--green); }
.button-primary:hover { background: #355b50; }
.button-outline { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.button-outline:hover { border-color: var(--ink); background: rgba(255,255,255,.28); }
.button-quiet { min-height: 38px; color: var(--ink-soft); border-color: var(--line-strong); background: transparent; }
.button-quiet:hover { color: white; border-color: var(--ink); background: var(--ink); }
.main-app { padding-top: 16px; }
.home-section { padding-top: 12px; }
.home-meta { display: flex; align-items: center; gap: 12px; min-height: 24px; color: var(--muted); font-size: 10px; }
.meta-label { color: var(--accent); font-size: 10px; font-weight: 720; letter-spacing: .1em; }
.meta-rule { width: 31px; height: 1px; background: var(--line-strong); }
#todayLabel { color: var(--ink); font-variant-numeric: tabular-nums; }
.today-term { color: var(--accent); font-size: 10px; }
.meta-right { margin-left: auto; color: #909a91; font-size: 10px; letter-spacing: .03em; }
.home-intro { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(48px, 7vw, 112px); padding: clamp(44px, 6vw, 80px) 0 56px; }
.intro-copy { max-width: 560px; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.intro-copy > .eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); }
.now-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(191,98,73,.11); }
h1, h2, h3, p { overflow-wrap: break-word; }
#pageTitle { margin: 0; color: var(--ink); font: 560 clamp(39px, 4.1vw, 56px)/1.35 var(--serif); letter-spacing: -.07em; text-wrap: balance; }
#pageTitle em { color: var(--accent); font-style: normal; }
.intro-text { max-width: 420px; margin: 20px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.95; }
.distance-area { min-width: 0; }
.life-distance { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: center; gap: clamp(17px, 2.4vw, 34px); padding: 16px 0 14px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.life-stat { min-width: 0; display: grid; align-content: start; }
.life-stat > span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.life-stat > strong { display: block; margin-top: 5px; color: var(--ink); font: 580 clamp(40px, 5.2vw, 68px)/1.1 var(--sans); letter-spacing: -.075em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.life-stat > small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.life-divider { width: 1px; height: 62px; background: var(--line); }
.life-distance-note { grid-column: 1 / -1; margin: -2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.first-coordinate { max-width: 430px; padding: 18px 0 18px 20px; border-left: 1px solid var(--accent); }
.first-coordinate-kicker { margin: 0 0 7px; color: var(--ink); font: 600 19px/1.35 var(--serif); }
.first-coordinate > p:not(.first-coordinate-kicker) { max-width: 370px; margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 17px; }
.text-button { min-height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 0 0 2px; border: 0; border-bottom: 1px solid transparent; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 11px; text-align: left; }
.text-button:hover { color: var(--accent); border-bottom-color: var(--accent); }
.text-button-warm { color: var(--accent); }
.text-button-muted { color: var(--muted); }
.coordinate-strip { display: grid; grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr) auto; align-items: center; gap: 30px; min-height: 98px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coordinate-copy { display: grid; align-content: center; gap: 3px; min-width: 0; }
.small-label { display: block; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.coordinate-copy > strong { color: var(--ink); font: 620 17px/1.35 var(--serif); }
.coordinate-copy > span:last-child { color: var(--muted); font-size: 10px; line-height: 1.5; }
.coordinate-empty-note { color: var(--muted); font-size: 10px; white-space: nowrap; }
.focus-selector { min-width: 0; }
.focus-reading { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 8px; }
.focus-reading > div:first-child { display: grid; gap: 2px; }
.focus-reading > div:first-child strong { color: var(--ink); font: 620 16px/1.3 var(--serif); }
.focus-window-copy { display: grid; gap: 1px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.focus-window-copy small { color: var(--muted); font-size: 9px; }
.focus-now { min-height: 25px; font-size: 10px; white-space: nowrap; }
.focus-control-group { display: grid; grid-template-columns: 36px minmax(100px, 1fr) 36px; align-items: center; gap: 14px; }
.focus-step { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; font-size: 17px; line-height: 1; }
.focus-step:hover:not(:disabled) { color: white; border-color: var(--green); background: var(--green); }
.focus-step:disabled { opacity: .35; cursor: not-allowed; }
#focusRange { width: 100%; margin: 0; accent-color: var(--accent); cursor: pointer; }
.focus-scale { grid-column: 2; display: flex; justify-content: space-between; margin-top: -4px; color: var(--muted); font: 9px var(--mono); }
.focus-side-note { color: var(--muted); font-size: 9px; white-space: nowrap; }
.current-reading { display: grid; grid-template-columns: 7px minmax(175px, .45fr) minmax(0, 1fr); align-items: center; gap: 16px; max-width: 930px; margin: 25px 0 0 2px; padding: 3px 0 4px 17px; border-left: 1px solid var(--accent); }
.reading-mark { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.current-reading > div { display: grid; gap: 2px; }
.current-reading > div strong { font: 620 16px/1.35 var(--serif); }
.current-reading > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.timeline-section { padding: 91px 0 67px; scroll-margin-top: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 22px; }
.section-title-group .eyebrow { margin-bottom: 10px; }
.section-number { margin-right: 9px; color: var(--accent); font: 650 10px var(--mono); }
.section-title-group h2 { margin: 0; color: var(--ink); font: 560 clamp(30px, 3vw, 42px)/1.25 var(--serif); letter-spacing: -.06em; }
.section-title-group h2 span { color: #829088; }
.section-intro { max-width: 560px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.timeline-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.coverage-mark { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px; min-width: 135px; padding-left: 13px; border-left: 1px solid var(--line-strong); }
.coverage-label { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.coverage-mark strong { color: var(--ink); font: 600 27px/1.15 var(--sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.coverage-unit { color: var(--muted); font-size: 10px; }
.coverage-mark small { grid-column: 1 / -1; margin-top: 2px; color: var(--muted); font-size: 8px; }
.timeline-summary { min-height: 19px; margin: 0 0 7px; color: var(--muted); font-size: 10px; }
.timeline-list { border-top: 1px solid var(--line-strong); }
.scroll-track { display: block; }
.scroll-item { position: relative; display: grid; grid-template-columns: minmax(210px, .48fr) minmax(0, .92fr); gap: clamp(30px, 6vw, 90px); padding: 23px 18px 22px 19px; border-bottom: 1px solid var(--line); transition: background .18s ease; }
.scroll-item::before { content: ""; position: absolute; top: 30px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #b7c0b6; }
.scroll-item:hover { background: rgba(255,255,255,.25); }
.scroll-item:hover::before { background: var(--accent); }
.scroll-open { display: block; width: 100%; border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.scroll-date { display: block; color: var(--muted); font: 10px/1.5 var(--mono); }
.scroll-open h3 { margin: 7px 0 4px; color: var(--ink); font: 620 22px/1.3 var(--serif); letter-spacing: -.04em; }
.scroll-open:hover h3 { color: var(--accent); }
.scroll-type { color: var(--muted); font-size: 10px; }
.scroll-meaning { min-width: 0; padding-top: 1px; }
.meaning-kicker { display: block; color: var(--muted); font-size: 10px; }
.scroll-feeling { display: inline-block; margin-top: 3px; padding-bottom: 2px; border-bottom: 1px solid var(--line-strong); color: var(--green); font-size: 13px; font-weight: 680; }
.scroll-note, .scroll-history { max-width: 640px; margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.scroll-history { color: var(--muted); }
.scroll-actions { display: flex; gap: 18px; margin-top: 9px; }
.scroll-actions button { min-height: 28px; border: 0; border-bottom: 1px solid transparent; padding: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.scroll-actions button:hover { color: var(--accent); border-bottom-color: var(--accent); }
.empty-timeline { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; isolation: isolate; overflow: hidden; min-height: 360px; border: 1px solid var(--line); background: #e6e0d4; }
.empty-art { position: absolute; z-index: -1; inset: 0; min-width: 0; min-height: 0; overflow: hidden; background: #e3e2d8; }
.empty-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(242,241,235,.86) 0%, rgba(242,241,235,.72) 25%, rgba(242,241,235,.24) 47%, rgba(242,241,235,0) 67%), linear-gradient(0deg, rgba(34,43,38,.12), transparent 34%); pointer-events: none; }
.empty-art picture { display: block; width: 100%; height: 100%; }
.empty-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 58%; transition: transform .65s cubic-bezier(.2,.65,.3,1); }
.empty-timeline:hover .empty-art img, .empty-timeline:focus-within .empty-art img { transform: scale(1.018); }
.empty-copy { position: relative; z-index: 1; align-self: center; width: min(420px, calc(100% - 68px)); margin: 30px 34px; padding: 21px 25px 22px; border: 1px solid rgba(93,86,72,.18); border-left: 2px solid var(--accent); background: rgba(249,248,243,.9); box-shadow: 0 14px 45px rgba(44,40,32,.11); backdrop-filter: blur(6px); }
.empty-page-mark { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid rgba(174,183,173,.8); color: var(--accent); }
.empty-page-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.empty-kicker { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.empty-copy p { margin: 5px 0 5px; color: var(--ink); font: 600 23px/1.35 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.empty-hint { display: block; max-width: 345px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.moment-reassurance { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.empty-add { min-height: 40px; margin-top: 17px; padding-inline: 14px; font-size: 10px; }
.moment-entry { margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(93,86,72,.22); }
.moment-entry-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#momentEntryTitle { margin: 8px 0 4px; color: var(--ink); font: 600 19px/1.35 var(--serif); letter-spacing: -.025em; }
.moment-entry-hint { max-width: 345px; margin: 0 0 12px !important; color: var(--muted) !important; font: 9px/1.65 var(--sans) !important; letter-spacing: 0 !important; }
.moment-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.moment-date-fields label { display: block; min-width: 0; color: var(--ink-soft); font-size: 9px; font-weight: 650; }
.moment-date-fields label span { color: var(--muted); font-size: 8px; font-weight: 400; }
.moment-date-fields .text-input { display: block; min-height: 38px; margin-top: 4px; padding: 6px 7px; font-size: 10px; }
.moment-preview { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 3px 10px; margin-top: 11px; padding: 9px 10px; border-left: 1px solid var(--accent); background: rgba(255,255,255,.42); }
.moment-preview-label { grid-row: 1 / span 2; align-self: start; padding-top: 2px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.moment-preview strong { color: var(--ink); font: 600 12px/1.4 var(--serif); }
.moment-preview > span:last-child { color: var(--muted); font-size: 8px; line-height: 1.45; }
.moment-error { margin-top: 7px; font-size: 9px; }
.moment-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.moment-actions .button { min-height: 37px; padding-inline: 10px; font-size: 9px; }
.moment-actions .button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.timeline-footnote { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; color: var(--muted); font-size: 9px; }
.about-section { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: 9%; padding: 40px 0 48px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.about-heading .eyebrow { margin-bottom: 10px; }
.about-heading h2 { margin: 0; color: var(--ink); font: 560 36px/1.3 var(--serif); letter-spacing: -.055em; }
.about-heading > p:last-child { max-width: 320px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.principle-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principle-list > div { padding-top: 9px; border-top: 1px solid var(--line-strong); }
.principle-no { color: var(--accent); font: 10px var(--mono); }
.principle-list p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.principle-list strong { color: var(--ink); font-size: 11px; }
.local-notice { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 9px; margin-top: 25px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.65; }
.notice-mark { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-soft); font: 9px var(--serif); }
.local-notice p { margin: 0; }
.local-notice strong { color: var(--ink-soft); }
.about-tools { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 15px; }
.about-tools .text-button { font-size: 10px; }
.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; min-height: 67px; border-top: 1px solid var(--line-strong); color: var(--muted); }
.footer > strong { color: var(--ink); font-size: 11px; }
.footer p { margin: 0; text-align: center; font-family: var(--serif); font-size: 11px; }
.footer > span { font-size: 9px; }
.modal, .detail-dialog { width: min(560px, calc(100% - 28px)); max-height: min(88vh, 850px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 3px; padding: 0; color: var(--ink); background: var(--paper-bright); box-shadow: 0 22px 80px rgba(25,43,37,.18); }
.modal::backdrop, .detail-dialog::backdrop { background: rgba(24,38,34,.42); backdrop-filter: blur(3px); }
.modal form { padding: 27px 31px 24px; }
.modal-top, .detail-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.modal-top .eyebrow { margin-bottom: 6px; }
.modal-top h2, .detail-frame h2 { margin: 0; color: var(--ink); font: 600 25px/1.3 var(--serif); letter-spacing: -.045em; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); }
.field-label { display: block; margin: 16px 0 7px; color: var(--ink); font-size: 11px; font-weight: 660; }
.field-label span, .field-hint { color: var(--muted); font-size: 10px; font-weight: 400; }
.mode-options, .feeling-field { margin: 0; border: 0; padding: 0; }
.mode-options legend, .feeling-field legend { padding: 0; }
.mode-option { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; padding: 11px 12px; border: 1px solid var(--line); cursor: pointer; }
.mode-option:has(input:checked) { border-color: #91a398; background: rgba(218,228,215,.33); }
.mode-option input { margin: 4px 0 0; accent-color: var(--green); }
.mode-option span { display: grid; gap: 2px; }
.mode-option strong { font-size: 11px; }
.mode-option small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.field-pair > div { min-width: 0; }
.text-input { width: 100%; min-height: 43px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 9px 11px; color: var(--ink); background: #fffefa; }
.text-input::placeholder { color: #a1a89f; }
.note-input { min-height: 95px; resize: vertical; }
.field-hint { margin: 6px 0 0; line-height: 1.6; }
.birthdate-field { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.form-error { margin: 13px 0 0; color: #a33d2d; font-size: 11px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.feeling-options { display: flex; flex-wrap: wrap; gap: 7px; }
.feeling-chip { min-height: 33px; border: 1px solid var(--line-strong); border-radius: 20px; padding: 0 12px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 10px; }
.feeling-chip[aria-pressed="true"] { color: white; border-color: var(--green); background: var(--green); }
.detail-frame { padding: 28px 32px 27px; }
.detail-topline { align-items: center; margin-bottom: 24px; color: var(--muted); font-size: 10px; }
.detail-date { margin: 0 0 5px; color: var(--muted); font: 10px var(--mono); }
.detail-frame h2 { font-size: 29px; }
.detail-fact { margin: 7px 0 18px; color: var(--muted); font-size: 10px; }
.detail-meaning, .detail-history { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-meaning > span, .detail-history > span { color: var(--muted); font-size: 10px; }
.detail-meaning > p { margin: 7px 0; color: var(--green); font-size: 14px; font-weight: 700; }
#detailNote { color: var(--ink-soft); font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
#detailHistoryList p { display: flex; justify-content: space-between; gap: 16px; margin: 7px 0 0; color: var(--ink-soft); font-size: 10px; }
#detailHistoryList time { color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid rgba(255,255,255,.2); color: #fffaf0; background: var(--green); box-shadow: 0 8px 30px rgba(25,43,37,.16); font-size: 11px; }

@media (max-width: 1000px) {
  .page-shell { width: calc(100% - 52px); }
  .home-intro { grid-template-columns: minmax(0, .9fr) minmax(0,1.1fr); gap: 38px; padding-block: 52px 42px; }
  .life-stat > strong { font-size: clamp(36px, 5.5vw, 55px); }
  .coordinate-strip { grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); gap: 22px; }
  .coordinate-empty-note { grid-column: 2; margin-top: -12px; }
  .focus-side-note { display: none; }
  .focus-reading { gap: 11px; }
  .timeline-section { padding-top: 70px; }
  .section-heading { align-items: end; gap: 20px; }
  .timeline-tools { gap: 9px; }
  .about-section { gap: 6%; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 105px; }
  body { font-size: 14px; }
  .page-shell { width: calc(100% - 36px); }
  .topbar { grid-template-columns: 1fr auto; gap: 4px 12px; min-height: 67px; padding: 7px 0 0; }
  .brand { gap: 8px; }
  .brand-mark { width: 22px; height: 22px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { margin-top: 2px; font-size: 8px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 27px; min-height: 31px; border-top: 1px solid var(--line); }
  .nav-link { padding: 5px 0; font-size: 10px; }
  .top-action { min-height: 31px; padding-inline: 10px; font-size: 9px; }
  .main-app { padding-top: 10px; }
  .home-section { padding-top: 6px; }
  .home-meta { gap: 8px; min-height: 20px; font-size: 9px; }
  .meta-label, .today-term { font-size: 9px; }
  .meta-rule { width: 15px; }
  .meta-right { display: none; }
  .home-intro { grid-template-columns: 1fr; gap: 28px; padding: 31px 0 30px; }
  .eyebrow { margin-bottom: 9px; font-size: 9px; }
  #pageTitle { max-width: 460px; font-size: clamp(35px, 9.2vw, 43px); line-height: 1.35; }
  .intro-text { max-width: 420px; margin-top: 11px; font-size: 12px; line-height: 1.8; }
  .life-distance { gap: 11px; padding: 11px 0 10px; }
  .life-stat > span { font-size: 9px; }
  .life-stat > strong { margin-top: 4px; font-size: clamp(34px, 9vw, 43px); letter-spacing: -.075em; }
  .life-stat > small { font-size: 9px; }
  .life-divider { height: 49px; }
  .life-distance-note { font-size: 9px; }
  .first-coordinate { padding: 13px 0 13px 14px; }
  .first-coordinate-kicker { font-size: 17px; }
  .first-coordinate > p:not(.first-coordinate-kicker) { margin-bottom: 12px; font-size: 11px; }
  .hero-actions { gap: 18px; margin-top: 12px; }
  .text-button { min-height: 32px; font-size: 10px; }
  .coordinate-strip { grid-template-columns: 1fr; gap: 13px; min-height: 0; padding: 14px 0; }
  .coordinate-copy { gap: 2px; }
  .coordinate-copy > strong { font-size: 15px; }
  .coordinate-copy > span:last-child { font-size: 9px; }
  .coordinate-empty-note { grid-column: auto; margin: -9px 0 0; font-size: 9px; }
  .focus-reading { grid-template-columns: max-content minmax(0,1fr); gap: 7px 12px; margin-bottom: 8px; }
  .focus-reading > div:first-child strong { font-size: 15px; }
  .focus-window-copy { font-size: 9px; }
  .focus-window-copy small { font-size: 8px; }
  .focus-now { grid-column: 1 / -1; justify-self: start; min-height: 25px; }
  .focus-control-group { grid-template-columns: 34px minmax(80px, 1fr) 34px; gap: 11px; }
  .focus-step { width: 34px; height: 34px; }
  .focus-scale { font-size: 8px; }
  .current-reading { grid-template-columns: 5px minmax(0,1fr); gap: 5px 12px; margin: 18px 0 0; padding-left: 12px; }
  .current-reading > div strong { font-size: 15px; }
  .current-reading > p { grid-column: 2; font-size: 10px; }
  .timeline-section { padding: 58px 0 42px; }
  .section-heading { display: block; margin-bottom: 13px; }
  .section-title-group .eyebrow { margin-bottom: 7px; }
  .section-title-group h2 { font-size: 30px; }
  .section-intro { margin-top: 8px; font-size: 10px; line-height: 1.65; }
  .timeline-tools { justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
  .coverage-mark { min-width: 0; padding-left: 9px; }
  .coverage-label, .coverage-unit { font-size: 8px; }
  .coverage-mark strong { font-size: 23px; }
  .coverage-mark small { max-width: 125px; font-size: 7px; }
  .timeline-tools .button { min-height: 33px; padding-inline: 9px; font-size: 9px; }
  .timeline-summary { min-height: 18px; font-size: 9px; line-height: 1.5; }
  .scroll-item { grid-template-columns: 1fr; gap: 10px; padding: 16px 6px 16px 16px; }
  .scroll-item::before { top: 21px; left: 0; width: 6px; height: 6px; }
  .scroll-date { font-size: 9px; }
  .scroll-open h3 { margin: 4px 0 2px; font-size: 19px; }
  .scroll-type, .meaning-kicker { font-size: 9px; }
  .scroll-meaning { padding-left: 11px; border-left: 1px solid var(--line); }
  .scroll-feeling { font-size: 12px; }
  .scroll-note, .scroll-history { margin-top: 6px; font-size: 10px; }
  .scroll-actions { margin-top: 6px; }
  .scroll-actions button { min-height: 30px; font-size: 9px; }
  .empty-timeline { min-height: 410px; }
  .empty-art::after { background: linear-gradient(180deg, rgba(242,241,235,.34) 0%, rgba(242,241,235,.14) 38%, rgba(34,43,38,.04) 63%, rgba(34,43,38,.2) 100%); }
  .empty-art img { object-position: 50% 63%; }
  .empty-copy { align-self: start; width: auto; margin: 15px; padding: 17px 17px 18px; background: rgba(249,248,243,.92); }
  .empty-page-mark { width: 30px; height: 30px; margin-bottom: 9px; }
  .empty-page-mark svg { width: 20px; height: 20px; }
  .empty-kicker { font-size: 9px; }
  .empty-copy p { margin: 4px 0; font-size: 21px; }
  .empty-hint { max-width: 320px; font-size: 9px; line-height: 1.65; }
  .moment-reassurance { margin-top: 7px; font-size: 8px; }
  .empty-add { min-height: 38px; margin-top: 13px; padding-inline: 12px; font-size: 9px; }
  .moment-entry { margin-top: 11px; padding-top: 11px; }
  #momentEntryTitle { margin-top: 6px; font-size: 18px; }
  .moment-entry-hint { margin-bottom: 10px !important; font-size: 8px !important; }
  .moment-date-fields { gap: 7px; }
  .moment-date-fields label { font-size: 8px; }
  .moment-date-fields label span { display: block; min-height: 14px; font-size: 7px; }
  .moment-date-fields .text-input { min-height: 38px; margin-top: 3px; padding-inline: 5px; font-size: 9px; }
  .moment-preview { gap: 3px 7px; margin-top: 9px; padding: 8px; }
  .moment-preview-label, .moment-preview > span:last-child { font-size: 7px; }
  .moment-preview strong { font-size: 11px; }
  .moment-actions { gap: 7px; margin-top: 10px; }
  .moment-actions .button { flex: 1; min-height: 37px; padding-inline: 7px; font-size: 8px; }
  .moment-error { font-size: 8px; }
  .timeline-footnote { gap: 8px; margin-top: 10px; font-size: 8px; }
  .about-section { grid-template-columns: 1fr; gap: 20px; padding: 27px 0 31px; }
  .about-heading .eyebrow { margin-bottom: 7px; }
  .about-heading h2 { font-size: 29px; }
  .about-heading > p:last-child { margin-top: 8px; font-size: 10px; }
  .principle-list { grid-template-columns: 1fr; gap: 9px; }
  .principle-list > div { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding-top: 8px; }
  .principle-no { padding-top: 2px; font-size: 9px; }
  .principle-list p { margin: 0; font-size: 9px; }
  .principle-list strong { font-size: 10px; }
  .local-notice { margin-top: 18px; padding-top: 10px; font-size: 8px; }
  .about-tools { gap: 13px; margin-top: 11px; }
  .about-tools .text-button { font-size: 9px; }
  .footer { grid-template-columns: 1fr auto; gap: 2px 10px; min-height: 70px; padding: 11px 0; }
  .footer > strong { font-size: 10px; }
  .footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: 10px; }
  .footer > span { grid-column: 2; grid-row: 1; font-size: 7px; text-align: right; }
  .modal form { padding: 21px 17px 18px; }
  .modal-top { margin-bottom: 17px; }
  .modal-top h2 { font-size: 21px; }
  .field-pair { gap: 9px; }
  .field-label { font-size: 10px; }
  .text-input { min-height: 42px; padding: 8px 9px; font-size: 13px; }
  .mode-option { padding: 9px; }
  .mode-option strong { font-size: 10px; }
  .mode-option small, .field-hint { font-size: 9px; }
  .modal-actions { gap: 7px; }
  .modal-actions .button { flex: 1; min-height: 42px; padding-inline: 8px; font-size: 10px; }
  .detail-frame { padding: 21px 17px; }
  .detail-actions { justify-content: flex-start; }
  .toast { right: 16px; bottom: 16px; }
}
@media (max-width: 370px) {
  .page-shell { width: calc(100% - 28px); }
  #pageTitle { font-size: 34px; }
  .life-stat > strong { font-size: 32px; }
  .top-action { font-size: 8px; }
  .timeline-tools { gap: 6px; }
  .timeline-tools .button { padding-inline: 7px; font-size: 8px; }
  .coverage-mark { padding-left: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* A small world to enter, not a dashboard placed beside an illustration. */
.home-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 535px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  padding: clamp(42px, 5.8vw, 72px);
  border: 1px solid rgba(174,183,173,.46);
}
.hero-world { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: #e7e1d4; }
.hero-world picture, .hero-world img { display: block; width: 100%; height: 100%; }
.hero-world img { object-fit: cover; object-position: center 54%; }
.hero-world::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242,241,235,.92) 0%, rgba(242,241,235,.84) 32%, rgba(242,241,235,.62) 47%, rgba(242,241,235,.12) 67%, rgba(242,241,235,0) 82%), linear-gradient(0deg, rgba(34,43,38,.08), transparent 28%);
  content: "";
  pointer-events: none;
}
.home-intro > .intro-copy, .home-intro > .distance-area { position: relative; z-index: 1; width: min(100%, 590px); }
.home-intro > .intro-copy { max-width: 600px; }
.home-intro #pageTitle { font-size: clamp(42px, 4.4vw, 59px); }
.home-intro .intro-text { max-width: 455px; }
.home-intro .distance-area { max-width: 545px; }
.home-intro .life-distance { grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr); gap: clamp(18px, 2.8vw, 38px); }
.home-intro .life-stat > strong { font-size: clamp(40px, 4.6vw, 60px); }
.home-intro .first-coordinate { max-width: 430px; }
.home-intro .hero-actions { gap: 24px; }

/* The companion is a moving landmark: its position follows the selected time,
   while the neutral rail avoids implying progress toward a deadline. */
.focus-control-group { grid-template-columns: 36px minmax(100px,1fr) 36px; align-items: center; gap: 14px; }
.focus-path { position: relative; min-width: 0; height: 64px; }
.focus-companion {
  position: absolute;
  z-index: 2;
  top: -3px;
  left: 8px;
  width: 52px;
  height: 52px;
  transform: translateX(-50%);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 1px rgba(30,48,44,.13));
  transition: left .16s ease-out;
}
.focus-companion.is-moving { animation: companion-nudge .18s ease-in-out infinite alternate; }
@keyframes companion-nudge {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, -2px); }
}
.focus-path #focusRange {
  position: absolute;
  top: 29px;
  left: 20px;
  width: calc(100% - 40px);
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.focus-path #focusRange::-webkit-slider-runnable-track { height: 2px; border: 0; background: linear-gradient(90deg, rgba(40,72,64,.38), rgba(40,72,64,.20)); }
.focus-path #focusRange::-moz-range-track { height: 2px; border: 0; background: linear-gradient(90deg, rgba(40,72,64,.38), rgba(40,72,64,.20)); }
.focus-path #focusRange::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -6px; appearance: none; border: 2px solid var(--paper-bright); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.focus-path #focusRange::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid var(--paper-bright); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.focus-path #focusRange:focus-visible { outline: none; }
.focus-path #focusRange:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(191,98,73,.2), 0 0 0 1px var(--accent); }
.focus-path #focusRange:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(191,98,73,.2), 0 0 0 1px var(--accent); }
.focus-path .focus-scale { position: absolute; top: 50px; right: 28px; left: 28px; grid-column: auto; margin: 0; }
.focus-companion-note { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; line-height: 1.5; }

@media (max-width: 1000px) {
  .home-intro { min-height: 500px; }
  .home-intro #pageTitle { font-size: clamp(40px, 5vw, 55px); }
}
@media (max-width: 700px) {
  .home-intro { min-height: 590px; justify-content: flex-start; gap: 18px; padding: 84px 17px 24px; }
  .hero-world img { object-position: center 58%; }
  .hero-world::after { background: linear-gradient(180deg, rgba(242,241,235,.99) 0%, rgba(242,241,235,.98) 62%, rgba(242,241,235,.93) 76%, rgba(242,241,235,.66) 87%, rgba(242,241,235,.10) 100%); }
  .home-intro #pageTitle { font-size: clamp(35px, 9.1vw, 43px); }
  .home-intro .intro-text { max-width: 370px; margin-top: 10px; }
  .home-intro .distance-area { width: min(100%, 430px); }
  .home-intro .life-distance { gap: 11px; }
  .home-intro .life-stat > strong { font-size: clamp(33px, 8.6vw, 42px); }
  .home-intro .hero-actions { gap: 15px; }
  .focus-control-group { grid-template-columns: 34px minmax(80px,1fr) 34px; gap: 11px; }
  .focus-path { height: 62px; }
  .focus-companion { top: -1px; width: 46px; height: 46px; }
  .focus-path #focusRange { top: 28px; }
  .focus-path .focus-scale { top: 48px; }
  .focus-companion-note { font-size: 10px; }
}
@media (max-width: 370px) {
  .home-intro { min-height: 610px; padding-inline: 14px; }
  .home-intro #pageTitle { font-size: 34px; }
  .focus-control-group { grid-template-columns: 32px minmax(70px,1fr) 32px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .focus-companion.is-moving { animation: none !important; transition: none !important; }
}
