/* ============================================
   FIRST CONTACT, LAST CONTACT
   A novel reading experience
   ============================================ */

/* ------------ CSS Variables ------------ */
:root {
  /* Light mode (default) */
  --bg-primary: #FDFBF7;
  --bg-secondary: #F5F2EB;
  --text-primary: #2C2C2C;
  --text-secondary: #6B6B6B;
  --text-muted: #9A9A9A;
  --accent: #8B4513;
  --accent-hover: #A0522D;
  --border: #E8E4DC;
  --progress-bg: #E8E4DC;
  --progress-fill: #8B4513;
  --shadow: rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --content-width: 640px;
  --reading-size: 1.1875rem;
  --line-height: 1.72;
}

[data-theme="dark"] {
  --bg-primary: #1A1915;
  --bg-secondary: #252219;
  --text-primary: #E8E4DC;
  --text-secondary: #A8A498;
  --text-muted: #6B6860;
  --accent: #D4A574;
  --accent-hover: #E8B888;
  --border: #3A362E;
  --progress-bg: #3A362E;
  --progress-fill: #D4A574;
  --shadow: rgba(0, 0, 0, 0.3);
}

/* ------------ Reset & Base ------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--reading-size);
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------ Reading Progress Bar ------------ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--progress-bg);
  z-index: 1000;
}

.progress-bar__fill {
  height: 100%;
  background: var(--progress-fill);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ------------ Header ------------ */
.site-header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-title:hover {
  color: var(--text-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chapter-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chapter-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.chapter-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.chapter-nav a.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: color 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* ------------ Main Content ------------ */
main {
  padding-top: 80px;
  padding-bottom: 120px;
}

.cover-page main {
  padding-top: 0;
  padding-bottom: 0;
}

/* Cover page gets its own dark aesthetic to match the cover image */
.cover-page {
  background: #0a0908;
  color: #E8E4DC;
}

.cover-page .progress-bar {
  display: none;
}

/* Subtle star field background */
.cover-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 20%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 50%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 90%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 10%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.4; }
  100% { opacity: 0.7; }
}

.cover-page .cover {
  position: relative;
  z-index: 1;
}

.cover-page .cover__subtitle {
  color: #A8A498;
}

.cover-page .cover__tagline {
  color: #A8A498;
}

.cover-page .cover__meta {
  color: #6B6860;
}

.cover-page .cover__cta {
  background: #E8E4DC;
  color: #0a0908;
}

.cover-page .cover__continue,
.cover-page .cover__secondary-links a {
  color: #A8A498;
  border-color: #3A362E;
}

.cover-page .cover__continue:hover,
.cover-page .cover__secondary-links a:hover {
  color: #D4A574;
  border-color: #D4A574;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------ Cover / Landing Page ------------ */
.cover {
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.cover__image {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 2/3;
  background: var(--bg-secondary);
  border-radius: 4px;
  margin-bottom: 1.75rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  flex-shrink: 0;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cover__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cover__image:hover img {
  transform: scale(1.02);
}

.cover__image:hover {
  animation-play-state: paused;
}

.cover__title {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cover__subtitle {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cover__tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.cover__meta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.cover__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bg-primary);
  background: var(--text-primary);
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.cover__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cover-page .cover__cta::after {
  box-shadow: 0 0 30px rgba(232, 228, 220, 0.4);
}

.cover__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.cover__cta:hover::after {
  opacity: 1;
}

.cover__cta svg {
  transition: transform 0.2s ease;
}

.cover__cta:hover svg {
  transform: translateX(3px);
}

.cover__continue {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.cover__continue:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cover__secondary-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
}

.cover__secondary-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.cover__secondary-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ------------ Chapter Content ------------ */
.chapter {
  padding-top: 4rem;
}

.chapter__header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.chapter__number {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.chapter__title {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.chapter__meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.chapter__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chapter__content {
  font-feature-settings: 'liga' 1, 'kern' 1;
}

.chapter__content p {
  margin-bottom: 1.25rem;
  text-indent: 0;
}

.chapter__content p + p {
  text-indent: 1.5em;
}

.chapter__content p.chapter__pov + p {
  text-indent: 0;
}

/* Drop cap - applied to first real paragraph, not POV indicator */
.chapter__content > p:first-child:not(.chapter__pov)::first-letter,
.chapter__content > .chapter__pov + p::first-letter {
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.1em;
  font-weight: 400;
}

.chapter__content hr {
  border: none;
  text-align: center;
  margin: 2.5rem 0;
}

.chapter__content hr::before {
  content: '···';
  color: var(--text-muted);
  letter-spacing: 0.75em;
  font-size: 1rem;
}

.chapter__content em {
  font-style: italic;
}

.chapter__content strong {
  font-weight: 600;
}

.chapter__content blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
  color: var(--text-secondary);
  font-style: italic;
}

/* Perspective/POV indicator */
.chapter__pov {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

/* ------------ Chapter Footer / Navigation ------------ */
.chapter__footer {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.chapter-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.chapter-pagination__link {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chapter-pagination__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.chapter-pagination__link--prev {
  align-items: flex-start;
}

.chapter-pagination__link--next {
  align-items: flex-end;
  text-align: right;
  grid-column: 2;
}

.chapter-pagination__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.chapter-pagination__title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ------------ Table of Contents ------------ */
.toc {
  padding: 4rem 0;
}

.toc__title {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
}

.toc__list {
  list-style: none;
  max-width: 500px;
  margin: 0 auto;
}

.toc__item {
  border-bottom: 1px solid var(--border);
}

.toc__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s;
}

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

.toc__link:hover .toc__chapter-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc__chapter-num {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 3rem;
}

.toc__chapter-title {
  flex: 1;
  font-size: 1.05rem;
}

.toc__read-time {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 1rem;
}

.toc__item--read .toc__link::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

/* ------------ About Page ------------ */
.about {
  padding: 4rem 0;
}

.about__title {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.about__content {
  color: var(--text-secondary);
}

.about__content h2 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.about__content h2:first-child {
  margin-top: 0;
}

.about__content p {
  margin-bottom: 1rem;
}

.about__content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.about__content li {
  margin-bottom: 0.5rem;
}

.about__content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.about__content a:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.about__stats-inline {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 1.5rem 0 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.about__stats-inline strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ------------ Footer ------------ */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ------------ Responsive ------------ */
@media (max-width: 640px) {
  :root {
    --reading-size: 1.0625rem;
    --line-height: 1.68;
  }

  .container {
    padding: 0 1rem;
  }

  .header-inner {
    padding: 0.75rem 1rem;
  }

  .chapter__header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
  }

  .chapter__content p:first-child::first-letter {
    font-size: 3em;
  }

  .chapter-pagination {
    grid-template-columns: 1fr;
  }

  .chapter-pagination__link--prev {
    order: 2;
  }

  .cover__secondary-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ------------ Print Styles ------------ */
@media print {
  .site-header,
  .progress-bar,
  .chapter__footer,
  .theme-toggle {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
    background: white;
  }

  .chapter {
    padding-top: 0;
  }
}

/* ------------ Selection ------------ */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ------------ Focus States ------------ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------ Transitions for theme switch ------------ */
body,
.site-header,
.chapter-pagination__link,
.toc__link,
.cover__cta {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ------------ Link Underline Animations ------------ */
.about__content a,
.site-footer a {
  position: relative;
  border-bottom: none;
  background: linear-gradient(to right, var(--accent), var(--accent)) no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.2s ease;
}

.about__content a:hover,
.site-footer a:hover {
  background-size: 100% 2px;
}

/* ------------ Back to Top Button ------------ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.back-to-top:hover svg {
  stroke: var(--bg-primary);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  transition: stroke 0.2s;
}

/* ------------ Author Attribution (Cover) ------------ */
.cover__author {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.cover-page .cover__author {
  color: #6B6860;
}

.cover__author a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.cover__author a:hover {
  border-color: var(--accent);
}

.cover-page .cover__author a {
  color: #A8A498;
}

.cover-page .cover__author a:hover {
  color: #D4A574;
  border-color: #D4A574;
}

/* ------------ Share Button ------------ */
.cover__share {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.cover__share-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cover-page .cover__share-label {
  color: #6B6860;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cover-page .share-btn {
  border-color: #3A362E;
  color: #A8A498;
}

.share-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.cover-page .share-btn:hover {
  background: #D4A574;
  border-color: #D4A574;
  color: #0a0908;
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.share-btn--copied {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: white !important;
}

/* ------------ Hanging Punctuation ------------ */
.chapter__content > p:first-child:not(.chapter__pov),
.chapter__content > .chapter__pov + p {
  hanging-punctuation: first;
}

/* ------------ Theme Toggle Animation ------------ */
.theme-toggle {
  overflow: hidden;
}

.theme-toggle svg {
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

/* ------------ Print Styles (Enhanced) ------------ */
@media print {
  .site-header,
  .progress-bar,
  .chapter__footer,
  .theme-toggle,
  .back-to-top,
  .cover__share {
    display: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.6;
    color: black;
    background: white;
    opacity: 1;
    animation: none;
  }

  .chapter {
    padding-top: 0;
  }

  .chapter__content p {
    orphans: 3;
    widows: 3;
  }

  .chapter__title {
    page-break-after: avoid;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* ------------ Keyboard Hint ------------ */
.keyboard-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  opacity: 0;
  animation: hintFadeIn 0.4s ease-out 0.5s forwards;
}

.keyboard-hint.fade-out {
  animation: hintFadeOut 0.3s ease-out forwards;
}

.keyboard-hint kbd {
  display: inline-block;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 1.5rem;
  text-align: center;
}

@keyframes hintFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes hintFadeOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* Hide on mobile/touch devices */
@media (max-width: 768px) {
  .keyboard-hint {
    display: none !important;
  }
}

/* ------------ Colophon ------------ */
.colophon {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.colophon p {
  margin-bottom: 0.5rem;
}

/* ------------ AI Disclosure Note ------------ */
.ai-note {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid var(--accent);
}

.ai-note p {
  margin-bottom: 0.75rem;
}

.ai-note p:last-child {
  margin-bottom: 0;
}
