/* latin-ext */
@font-face {
  font-family: 'Jersey 15';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jersey15-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jersey 15';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jersey15-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f0e6;
  --bg-hover: #efe8d8;
  --ink: #2c2a24;
  --ink-soft: #4a463c;
  --ink-muted: #5c574b;
  --faint: #8c8676;
  --fainter: #a99f88;
  --line: #cdc7b8;
  --line-strong: #b9b29f;
  --green: #7f9b6e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { background: var(--bg); }

body {
  font-family: 'Jersey 15', ui-sans-serif, sans-serif;
  min-height: 100vh;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Chinese mode: the Jersey 15 pixel face is Latin-only, so switch content text
   to the self-hosted LXGW WenKai (霞鹜文楷) handwritten-kai face, with a system
   CJK stack as fallback while its subsets load. The logo keeps the pixel font
   (rule below). */
body.lang-zh {
  font-family: 'LXGW WenKai', ui-sans-serif, system-ui, -apple-system,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}
body.lang-zh .logo {
  font-family: 'Jersey 15', ui-sans-serif, sans-serif;
}
/* LXGW WenKai ships only weight 400 — avoid synthesized fake-bold on headlines. */
body.lang-zh .moment-headline { font-weight: 400; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.28; } }

.dot {
  width: 8px; height: 8px;
  background: var(--green);
  display: inline-block;
  border-radius: 1px;
  flex: 0 0 auto;
}
.dot.pulse { animation: pulse 2.4s ease-in-out infinite; }

/* --- header --- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 860px; margin: 0 auto;
  padding: 18px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 18px; letter-spacing: 0.01em; }
.logo-accent { color: var(--green); }

.tabs { display: flex; gap: 24px; align-items: center; }
.tab {
  font: inherit; font-size: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--faint);
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s ease;
  user-select: none;
}
.tab.active { color: var(--ink); }
.tab-sq {
  width: 7px; height: 7px;
  background: var(--ink); border-radius: 1px;
  opacity: 0; transition: opacity .2s ease;
}
.tab.active .tab-sq { opacity: 1; }

.tabs-divider {
  width: 1px; height: 16px;
  background: var(--line-strong);
  flex: 0 0 auto;
}
.lang-toggle {
  font: inherit; font-size: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--faint); letter-spacing: 0.02em;
  padding: 2px 2px;
  transition: color .2s ease;
  user-select: none;
}
.lang-toggle:hover { color: var(--ink); }

/* --- layout --- */
.container { max-width: 860px; margin: 0 auto; padding: 0 28px; }

.intro { padding: 64px 0 8px; }
.tagline {
  max-width: 600px;
  font-size: 19px; line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.live-line {
  margin-top: 24px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--faint); letter-spacing: 0.02em;
}

/* --- moments --- */
.moments {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  transition: opacity .6s ease;
}
.moments.fading { opacity: 0; }

.moment {
  display: flex; gap: 26px; align-items: flex-start;
  padding: 30px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 3px;
  transition: background .25s ease;
}
.moment:hover { background: var(--bg-hover); }
.moment .dot { margin-top: 10px; }

.moment-headline {
  font-size: 23px; line-height: 1.4;
  color: var(--ink); font-weight: 500;
  text-wrap: pretty; max-width: 58ch;
}
.moment-meta {
  margin-top: 9px;
  font-size: 14px; color: var(--faint); letter-spacing: 0.03em;
}
.moment-meta .sep { margin: 0 9px; color: #c2bba8; }

.moments-empty {
  padding: 48px 14px;
  font-size: 16px; color: var(--fainter);
}

/* --- more button (drift-bottle icon) --- */
/* Tighter gap from the last moment to the button. */
.more-row { display: flex; justify-content: center; padding: 24px 0 0; }
.more-btn {
  cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 240px; height: 46px;       /* flat, wide hit area */
  padding: 0;
  background: none;
  border: none;                     /* transparent boundary */
  transition: opacity .2s ease;
}
.more-btn:hover .more-icon { opacity: 0.6; }
.more-icon {
  display: block; width: 40px; height: 40px;
  image-rendering: pixelated;       /* keep the pixel grid crisp */
  transition: opacity .2s ease;
}

.footnote {
  padding: 48px 14px 80px;
  font-size: 12px; color: var(--fainter);
  letter-spacing: 0.03em; line-height: 1.6;
  max-width: 560px;
}

/* --- about --- */
.about { max-width: 600px; padding: 80px 0 96px; }
.about h1 { font-size: 34px; color: var(--ink); font-weight: 600; letter-spacing: 0.01em; }
.about-body {
  margin-top: 34px;
  display: flex; flex-direction: column; gap: 24px;
  font-size: 19px; line-height: 1.7;
  color: var(--ink-soft); text-wrap: pretty;
}
.about-fine {
  border-top: 1px solid var(--line);
  margin-top: 46px; padding-top: 26px;
  font-size: 13px; line-height: 1.75;
  color: var(--faint); max-width: 520px;
}
