/* FNOTE — Kindle-like Reading Experience */
@import url('https://fonts.googleapis.com/css2?family=Literata:ital,wght@0,400;0,500;0,600;1,400&family=Syne:wght@600;700;800&display=swap');

/* === THEME VARIABLES === */
:root,
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #111;
  --bg-surface: #161616;
  --text: #e8e6e3;
  --text-secondary: #a8a8a8;
  --text-muted: #666;
  --border: rgba(255,255,255,0.08);
  --accent: #c8ff00;
  --accent-dim: rgba(200,255,0,0.15);
  --link: #c8ff00;
}

[data-theme="light"] {
  --bg: #f8f5f0;
  --bg-elevated: #fff;
  --bg-surface: #f0ede8;
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #999;
  --border: rgba(0,0,0,0.08);
  --accent: #5a7a00;
  --accent-dim: rgba(90,122,0,0.1);
  --link: #5a7a00;
}

/* === BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Literata', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.8; }

/* === GRADIENT TEXT === */
.grad, sup {
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .grad,
[data-theme="light"] sup {
  background: linear-gradient(135deg, #5a7a00, #0088aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === TOP BAR === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Logo (center) */
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Back button */
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.back-link:hover { color: var(--accent); }

/* === HOME PAGE === */
.home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 120px);
  padding: 40px 24px 100px;
  max-width: 480px;
  margin: 0 auto;
}

.hero {
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 11vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tagline {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
}

.summary {
  margin-bottom: 32px;
}

.summary .desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 360px;
}

.summary .note {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.summary .fn {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Subscribe form */
.subscribe form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

.subscribe input {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.subscribe input::placeholder { color: var(--text-muted); }
.subscribe input:focus { 
  outline: none; 
  border-color: var(--accent);
}

.subscribe button {
  padding: 12px 16px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: transform 0.15s;
}

.subscribe button:hover { transform: scale(1.02); }
.subscribe button:active { transform: scale(0.98); }

/* === BOTTOM TIMELINE === */
.timeline {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 100;
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s;
}

.bar:hover:not(.empty) { transform: translateY(-2px); }

.bar::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.2s;
}

.bar span {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
}

.bar.active::before {
  height: 22px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}

.bar.active span { color: var(--accent); }

.bar:hover:not(.empty):not(.active)::before {
  height: 18px;
  background: var(--text-secondary);
}

.bar:hover:not(.empty):not(.active) span { color: var(--text); }

.bar.empty {
  opacity: 0.2;
  pointer-events: none;
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
  .topbar { padding: 16px 32px; }
  .nav-links { gap: 28px; }
  .home { padding: 60px 32px 120px; }
  .timeline { gap: 24px; }
  .bar::before { width: 4px; }
}
/* v1770656863 */
