:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5f5f5f;
  --border: #e6e4df;
  --accent: #0d9488;
  --accent-text: #ffffff;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --surface: #1d1c17;
    --text: #f2f0ea;
    --text-muted: #a8a49a;
    --border: #322f27;
    --accent: #2dd4bf;
    --accent-text: #14130f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.hf-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

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

.hf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hf-back {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

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

/* Hero */

.hf-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hf-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 16px;
}

.hf-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Notes */

.hf-notes {
  padding: 24px 0 48px;
}

.hf-notes h2 {
  font-size: 1.4rem;
  margin: 0 0 20px;
  text-align: center;
}

.hf-note-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hf-note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.hf-note-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.hf-note-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hf-note-card--placeholder {
  opacity: 0.6;
}

.hf-note-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9rem;
}

.hf-note-link:hover {
  opacity: 0.8;
}

/* Support */

.hf-support {
  padding: 40px 0 56px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.hf-support h2 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.hf-support p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.hf-button-row {
  display: flex;
  justify-content: center;
}

.hf-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}

.hf-cta-btn:hover {
  opacity: 0.85;
}

/* Single note page */

.hf-note-body {
  padding: 40px 0 56px;
}

.hf-note-body h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 16px;
}

.hf-note-body p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Footer */

.hf-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.hf-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}
