@charset "UTF-8";

/* Warm white / oat glass: the room and the Westie set the page's materials. */
@font-face {
  font-family: "LXGW WenKai";
  src: url("./assets/lxgw-wenkai-ui.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-bright: #ffffff;
  --ink: #4c453c;
  --ink-soft: #6e655b;
  --muted: #77736d;
  --line: rgba(105, 111, 109, .13);
  --line-strong: rgba(105, 111, 109, .24);
  --accent: #a58d6f;
  --accent-soft: #eee5d8;
  --green: #756858; /* warm bark tone used by the existing primary-state tokens */
  --serif: "LXGW WenKai", "Noto Serif CJK SC", "Songti SC", "STSong", Georgia, serif;
  --sans: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1120px 720px at 96% 4%, rgba(255, 255, 255, .96), transparent 68%),
    radial-gradient(880px 580px at 4% 42%, rgba(239, 241, 241, .28), transparent 70%),
    linear-gradient(145deg, #ffffff 0%, #fdfdfc 52%, #ffffff 100%);
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, .94);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 8px 28px rgba(56, 64, 62, .035), 0 1px 0 rgba(135, 145, 142, .08);
  backdrop-filter: blur(26px) saturate(1.06);
  -webkit-backdrop-filter: blur(26px) saturate(1.06);
}
.brand-mark {
  border-color: rgba(166, 145, 114, .34);
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px rgba(255, 255, 255, .98), 0 2px 7px rgba(100, 82, 59, .06);
}
.brand-mark::before { background: #ad9677; }
.brand-mark i { background: rgba(141, 121, 93, .56); }
.brand-copy strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .015em;
}
.brand-copy small { color: #8b8379; }
.nav-link:hover, .nav-link.is-current { color: var(--ink); }
.nav-link::after { background: #a58d6f; }

.button { border-radius: 999px; }
.button-primary {
  color: #554b3f;
  border-color: rgba(143, 139, 128, .28);
  background: linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(245, 245, 242, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .99), 0 5px 15px rgba(56, 64, 62, .08);
}
.button-primary:hover {
  color: #4d4439;
  background: linear-gradient(145deg, #ffffff, #f0f1ee);
  box-shadow: inset 0 1px #fff, 0 8px 20px rgba(56, 64, 62, .11);
}
.button-outline {
  border-color: rgba(153, 134, 109, .34);
  background: rgba(255, 254, 251, .48);
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
}
.button-outline:hover { border-color: rgba(125, 106, 82, .5); background: rgba(255, 255, 252, .78); }
.button-quiet { border-radius: 999px; background: rgba(255, 255, 255, .44); }

/* Hero pane: bright bevel, soft blur, and a readable but still translucent milk-glass field. */
.home-intro {
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 35px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 28px 76px rgba(56, 64, 62, .11), inset 0 1px rgba(255, 255, 255, .99);
}
.home-intro::before {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
  top: 21px;
  bottom: 21px;
  left: 21px;
  width: min(59%, 700px);
  border: 1px solid rgba(255, 255, 255, .97);
  border-radius: 28px;
  background:
    linear-gradient(137deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .84) 52%, rgba(251, 252, 251, .72) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .4), transparent 54%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .99),
    inset 0 -1px rgba(160, 166, 162, .12),
    0 18px 46px rgba(56, 64, 62, .085);
  backdrop-filter: blur(28px) saturate(1.07);
  -webkit-backdrop-filter: blur(28px) saturate(1.07);
}
.hero-world { border-radius: inherit; background: #f2f3f1; }
.hero-world::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .025) 45%, transparent 72%),
    linear-gradient(0deg, rgba(46, 52, 50, .065), transparent 30%);
}
.home-intro > .intro-copy,
.home-intro > .distance-area { position: relative; z-index: 1; }
.home-intro > .intro-copy { max-width: 600px; }
.home-intro #pageTitle {
  width: min(100%, 600px);
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 4.1vw, 54px);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.handwritten-title {
  display: grid;
  justify-items: start;
  gap: 3px;
  overflow: visible;
  color: #50473d;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", serif;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.title-line {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}
.hero-glyph {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  margin-right: -.025em;
  color: var(--glyph-ink, #a6553d);
  -webkit-text-stroke: 1.3px rgba(255,255,255,.98);
  paint-order: stroke fill;
  text-shadow: 0 3px 5px rgba(70,63,52,.12);
  transform: rotate(var(--glyph-tilt, 0deg));
  transform-origin: 50% 74%;
}
.hero-glyph:nth-child(5n + 1) { --glyph-ink: #a64f3b; --glyph-tilt: -2.2deg; }
.hero-glyph:nth-child(5n + 2) { --glyph-ink: #347a6d; --glyph-tilt: 1.4deg; }
.hero-glyph:nth-child(5n + 3) { --glyph-ink: #9a6b17; --glyph-tilt: -1.5deg; }
.hero-glyph:nth-child(5n + 4) { --glyph-ink: #4c6e99; --glyph-tilt: 2deg; }
.hero-glyph:nth-child(5n) { --glyph-ink: #855276; --glyph-tilt: -.8deg; }
.title-line-first .hero-glyph:nth-child(3n) { transform: translateY(-2px) rotate(var(--glyph-tilt)); }
.title-line-second .hero-glyph:nth-child(3n + 2) { transform: translateY(1px) rotate(var(--glyph-tilt)); }
.title-westie-sticker {
  display: block;
  flex: 0 0 auto;
  width: .78em;
  height: .78em;
  margin: .02em 0 0 .05em;
  overflow: visible;
  filter: drop-shadow(0 3px 3px rgba(63,55,45,.16));
  transform: rotate(7deg);
}
.sticker-cut {
  fill: #fff;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5px;
}
.westie-head {
  fill: #fffdf8;
  stroke: #817563;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45px;
}
.westie-ear, .westie-fur, .westie-mouth {
  fill: none;
  stroke: #817563;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.05px;
}
.westie-eye { fill: #433f39; }
.westie-muzzle { fill: #fff; stroke: #c8b9a3; stroke-width: .7px; }
.westie-nose { fill: #443d38; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.home-intro .intro-text { max-width: 455px; color: #6d645a; font-size: 13px; line-height: 1.92; }
.home-intro .distance-area { max-width: 545px; }
.home-intro .life-distance {
  padding: 15px clamp(12px, 2vw, 18px) 13px;
  border: 1px solid rgba(255, 255, 255, .98);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px rgba(255, 255, 255, .99), 0 10px 28px rgba(56, 64, 62, .075);
  backdrop-filter: blur(22px) saturate(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(1.04);
}
.home-intro .life-stat > span,
.home-intro .life-stat > small { color: #81786e; }
.home-intro .life-stat > strong { color: #51483e; }
.home-intro .life-divider { background: rgba(137, 119, 95, .22); }
.home-intro .life-distance-note { color: #81776c; }
.first-coordinate {
  max-width: 430px;
  padding-left: 17px;
  border-left: 1px solid rgba(165, 141, 111, .7);
}
.first-coordinate-kicker {
  color: #51483e;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .005em;
}
.first-coordinate > p:not(.first-coordinate-kicker) { color: #797065; }
.hero-actions { gap: 23px; }
.text-button-warm { color: #897453; }
.text-button:hover { color: #765f43; border-bottom-color: rgba(165, 141, 111, .62); }

/* Observation controls share the same pale glass; the scale itself stays quiet. */
.coordinate-strip {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .97);
  border-radius: 24px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 34px rgba(56, 64, 62, .055), inset 0 1px rgba(255, 255, 255, .99);
  backdrop-filter: blur(24px) saturate(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.05);
}
.coordinate-copy > strong,
.focus-reading > div:first-child strong,
.current-reading > div strong,
.scroll-open h3,
.empty-copy p,
.about-heading h2,
.modal-top h2,
.detail-frame h2,
#momentEntryTitle {
  color: #50473d;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.025em;
}
.coordinate-copy > span:last-child,
.focus-window-copy,
.focus-side-note { color: #81786e; }
.focus-step {
  border-color: rgba(141, 140, 132, .3);
  background: rgba(255, 255, 255, .76);
  box-shadow: inset 0 1px rgba(255, 255, 255, .99), 0 3px 10px rgba(56, 64, 62, .05);
}
.focus-step:hover:not(:disabled) { border-color: #a18a6b; background: #e9dfd1; color: #51483e; }
.focus-path #focusRange::-webkit-slider-runnable-track { background: linear-gradient(90deg, rgba(153, 129, 97, .42), rgba(153, 129, 97, .18)); }
.focus-path #focusRange::-moz-range-track { background: linear-gradient(90deg, rgba(153, 129, 97, .42), rgba(153, 129, 97, .18)); }
.focus-path #focusRange::-webkit-slider-thumb { border-color: #fffdf8; background: #a78f6f; box-shadow: 0 0 0 1px #a78f6f; }
.focus-path #focusRange::-moz-range-thumb { border-color: #fffdf8; background: #a78f6f; box-shadow: 0 0 0 1px #a78f6f; }
.focus-path #focusRange:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(167, 143, 111, .2), 0 0 0 1px #a78f6f; }
.focus-path #focusRange:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(167, 143, 111, .2), 0 0 0 1px #a78f6f; }
.focus-companion {
  border: 2px solid rgba(255, 255, 255, .96);
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 16px rgba(56, 64, 62, .12), inset 0 1px rgba(255, 255, 255, .99);
  filter: none;
  will-change: left, transform;
}
.focus-companion.is-moving { animation: dog-step .32s cubic-bezier(.4, 0, .3, 1) infinite alternate; }
.focus-companion.is-settling { animation: dog-settle .38s cubic-bezier(.2, .8, .25, 1) both; }
.focus-companion.is-curious { animation: dog-curious .56s cubic-bezier(.2, .7, .25, 1) both; }
@keyframes dog-breathe {
  0%, 100% { transform: translate(-50%, 0) rotate(0) scale(1); }
  50% { transform: translate(-50%, -1px) rotate(.4deg) scale(1.014); }
}
@keyframes dog-step {
  from { transform: translate(-50%, 0) rotate(-1.4deg) scale(.99); }
  to { transform: translate(-50%, -3px) rotate(1.4deg) scale(1.02); }
}
@keyframes dog-settle {
  0% { transform: translate(-50%, -3px) rotate(1.4deg) scale(1.02); }
  48% { transform: translate(-50%, 1px) rotate(-1.2deg) scale(.995); }
  100% { transform: translate(-50%, 0) rotate(0) scale(1); }
}
@keyframes dog-curious {
  0% { transform: translate(-50%, 0) rotate(0) scale(1); }
  34% { transform: translate(-50%, -2px) rotate(-4deg) scale(1.015); }
  67% { transform: translate(-50%, 1px) rotate(2deg) scale(1); }
  100% { transform: translate(-50%, 0) rotate(0) scale(1); }
}
.focus-companion-note { color: #81766a; }
.current-reading {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .97);
  border-left: 2px solid #b19a79;
  border-radius: 17px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 28px rgba(56, 64, 62, .045), inset 0 1px rgba(255, 255, 255, .99);
  backdrop-filter: blur(20px) saturate(1.04);
  -webkit-backdrop-filter: blur(20px) saturate(1.04);
}
.current-reading > div strong { font-weight: 500; }
.current-reading > p { color: #786f64; }

.section-number,
.principle-no { color: #a28b6c; }
.section-title-group h2,
.about-heading h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }
.section-title-group h2 span { color: #8c7b65; }
.section-intro,
.about-heading > p:last-child { color: #7c7369; }
.timeline-section { padding-top: 78px; }
.coverage-mark { border-left-color: rgba(150, 132, 106, .35); }
.coverage-mark strong { color: #51483e; }
.scroll-item {
  margin: 7px 0;
  border: 1px solid rgba(255, 255, 255, .82);
  border-bottom-color: rgba(105, 111, 109, .14);
  border-radius: 17px;
  background: rgba(255, 255, 255, .34);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px) saturate(1.03);
  -webkit-backdrop-filter: blur(12px) saturate(1.03);
}
.scroll-item:hover { background: rgba(255, 255, 255, .64); }
.scroll-item::before { background: #b8a287; }
.scroll-open h3 { font-size: 21px; }
.scroll-open:hover h3 { color: #806a4f; }
.scroll-feeling { color: #76644d; border-bottom-color: rgba(160, 138, 108, .35); }
.scroll-note, .scroll-history { color: #746b61; }

/* Empty state: the photo stays present behind a single luminous pane, not a solid card. */
.empty-timeline {
  border: 1px solid rgba(255, 255, 255, .97);
  border-radius: 29px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 20px 52px rgba(56, 64, 62, .08), inset 0 1px rgba(255, 255, 255, .99);
}
.empty-art { border-radius: inherit; background: #f1f2f0; }
.empty-art::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .48) 37%, rgba(255, 255, 255, .035) 70%, transparent 100%),
    linear-gradient(0deg, rgba(46, 52, 50, .10), transparent 39%);
}
.empty-copy {
  border: 1px solid rgba(255, 255, 255, .98);
  border-left: 2px solid #b09a7b;
  border-radius: 25px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 17px 44px rgba(56, 64, 62, .095), inset 0 1px rgba(255, 255, 255, .99);
  backdrop-filter: blur(25px) saturate(1.06);
  -webkit-backdrop-filter: blur(25px) saturate(1.06);
}
.empty-page-mark { border-color: rgba(167, 146, 116, .28); border-radius: 11px; color: #9d8464; background: rgba(255, 255, 255, .58); }
.empty-copy p { font-weight: 500; }
.empty-hint, .moment-reassurance { color: #786f65; }
.moment-entry { border-top-color: rgba(121, 105, 84, .19); }
.moment-preview { border-left-color: #a58d6f; background: rgba(255, 255, 255, .57); }
.moment-preview strong { color: #534a40; font-family: var(--serif); font-weight: 500; }

.principle-list > div { border-top-color: rgba(121, 105, 84, .28); }
.principle-list p { color: #7d746a; }
.principle-list strong { color: #51483e; }
.local-notice { border-top-color: rgba(121, 105, 84, .18); color: #7b7268; }
.notice-mark { border-color: rgba(145, 127, 101, .36); color: #766a5d; }
.local-notice strong { color: #64594d; }
.footer { border-top-color: rgba(121, 105, 84, .28); color: #81786e; }
.footer > strong { color: #51483e; font-family: var(--serif); font-weight: 500; }
.footer p { color: #74685b; }

.modal, .detail-dialog {
  border: 1px solid rgba(255, 255, 255, .98);
  border-radius: 25px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 90px rgba(50, 58, 56, .19), inset 0 1px rgba(255, 255, 255, .99);
  backdrop-filter: blur(28px) saturate(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(1.05);
}
.modal::backdrop, .detail-dialog::backdrop {
  background: rgba(66, 57, 47, .26);
  backdrop-filter: blur(8px) saturate(.9);
  -webkit-backdrop-filter: blur(8px) saturate(.9);
}
.mode-option { border-color: rgba(121, 105, 84, .19); border-radius: 15px; background: rgba(255, 255, 255, .34); }
.mode-option:has(input:checked) { border-color: rgba(157, 135, 103, .48); background: rgba(239, 232, 220, .69); }
.mode-option input { accent-color: #927958; }
.text-input { border-color: rgba(131, 114, 91, .34); border-radius: 12px; background: rgba(255, 255, 253, .82); }
.text-input::placeholder { color: #a29a8e; }
.feeling-chip { border-color: rgba(131, 114, 91, .31); border-radius: 999px; background: rgba(255, 255, 255, .52); }
.feeling-chip[aria-pressed="true"] { color: #51483e; border-color: rgba(156, 133, 100, .52); background: #eee5d8; }
.icon-button { border-color: rgba(121, 105, 84, .2); background: rgba(255, 255, 255, .54); }
.detail-meaning > p { color: #726047; }
.toast { border: 1px solid rgba(255, 255, 255, .72); border-radius: 16px; background: rgba(87, 76, 63, .92); backdrop-filter: blur(18px); }

@media (max-width: 1000px) {
  .home-intro::before { width: min(66%, 640px); }
}

@media (max-width: 700px) {
  .topbar { background: rgba(255, 255, 255, .82); }
  .brand-copy strong { font-size: 13px; }
  .home-intro { min-height: 590px; border-radius: 28px; }
  .home-intro::before {
    top: 10px;
    right: 9px;
    bottom: auto;
    left: 9px;
    width: auto;
    height: 390px;
    border-radius: 23px;
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, .91) 0%,
        rgba(255, 255, 255, .85) 43%,
        rgba(255, 255, 255, .68) 60%,
        rgba(255, 255, 255, .4) 77%,
        rgba(255, 255, 255, .17) 100%),
      linear-gradient(110deg, rgba(255, 255, 255, .18), transparent 66%);
    box-shadow: inset 0 1px rgba(255, 255, 255, .99), inset 0 -1px rgba(160, 166, 162, .1), 0 10px 28px rgba(56, 64, 62, .05);
    backdrop-filter: blur(12px) saturate(1.05);
    -webkit-backdrop-filter: blur(12px) saturate(1.05);
  }
  .hero-world { border-radius: inherit; }
  .hero-world img { object-position: center 66%; }
  .hero-world::after { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 58%, rgba(46, 52, 50, .07)); }
  .home-intro #pageTitle { width: min(100%, 600px); font-size: clamp(28px, 7.8vw, 35px); }
  .handwritten-title { gap: 1px; }
  .home-intro .intro-text { max-width: 370px; color: #6c6359; }
  .home-intro .life-distance { padding-inline: 10px; border-radius: 15px; background: rgba(255, 255, 255, .84); backdrop-filter: blur(20px) saturate(1.04); -webkit-backdrop-filter: blur(20px) saturate(1.04); }
  .coordinate-strip { border-radius: 20px; background: rgba(255, 255, 255, .82); }
  .current-reading { border-radius: 15px; background: rgba(255, 255, 255, .76); }
  .focus-companion { border-width: 1.5px; }
  .timeline-section { padding-top: 58px; }
  .scroll-item { margin: 6px 0; border-radius: 16px; }
  .empty-timeline { min-height: 410px; border-radius: 23px; }
  .empty-art img { object-position: 70% 64%; }
  .empty-art::after { background: linear-gradient(180deg, rgba(249, 247, 241, .13) 0%, rgba(249, 247, 241, .035) 48%, rgba(66, 55, 43, .12) 100%); }
  .empty-copy { border-radius: 21px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(24px) saturate(1.04); -webkit-backdrop-filter: blur(24px) saturate(1.04); }
  .modal, .detail-dialog { border-radius: 23px; }
}

@media (max-width: 370px) {
  .home-intro { min-height: 610px; }
  .home-intro #pageTitle { width: 100%; font-size: 25px; }
  .title-westie-sticker { width: .82em; height: .82em; }
}

@media (prefers-reduced-motion: reduce) {
  .focus-companion,
  .focus-companion.is-moving,
  .focus-companion.is-settling,
  .focus-companion.is-curious { animation: none !important; }
}
