/* ==========================================================================
   一封好事 (Fortune / A Good Letter) — Official Website Stylesheet
   Palette directly derived from Fortune/Views/Theme.swift:
     Light: paperBackground #D6D3CA | paperSurface #FAF9F6 | inkBlue #2A3DFF
     Dark:  paperBackground #1C1B19 | paperSurface #282724 | inkBlue #6B7FFF
   ========================================================================== */

:root {
  --bg: #d6d3ca;
  --bg-subtle: #ccc8be;
  --surface: #faf9f6;
  --surface-pure: #ffffff;
  --ink: #1f1e1b;
  --ink-muted: #5a5750;
  --ink-subtle: #827e75;
  --border: rgba(31, 30, 27, 0.11);
  --border-strong: rgba(31, 30, 27, 0.2);
  --blue: #2a3dff;
  --blue-hover: #1d2ee0;
  --blue-soft: rgba(42, 61, 255, 0.1);
  --shadow-paper: 0 2px 6px rgba(31, 30, 27, 0.08), 0 14px 36px rgba(31, 30, 27, 0.11);
  --shadow-card: 0 2px 8px rgba(31, 30, 27, 0.09);
  --shadow-card-hover: 0 10px 26px rgba(31, 30, 27, 0.14);
  --header-bg: rgba(214, 211, 202, 0.84);

  --font-serif: "Newsreader", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;

  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1b19;
    --bg-subtle: #23221f;
    --surface: #282724;
    --surface-pure: #2f2e2a;
    --ink: #f1efe9;
    --ink-muted: #ada99f;
    --ink-subtle: #7c786f;
    --border: rgba(241, 239, 233, 0.11);
    --border-strong: rgba(241, 239, 233, 0.22);
    --blue: #6b7fff;
    --blue-hover: #8596ff;
    --blue-soft: rgba(107, 127, 255, 0.16);
    --shadow-paper: 0 4px 12px rgba(0, 0, 0, 0.35), 0 20px 44px rgba(0, 0, 0, 0.42);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.32);
    --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.48);
    --header-bg: rgba(28, 27, 25, 0.84);
  }
}

:root[data-theme="dark"] {
  --bg: #1c1b19;
  --bg-subtle: #23221f;
  --surface: #282724;
  --surface-pure: #2f2e2a;
  --ink: #f1efe9;
  --ink-muted: #ada99f;
  --ink-subtle: #7c786f;
  --border: rgba(241, 239, 233, 0.11);
  --border-strong: rgba(241, 239, 233, 0.22);
  --blue: #6b7fff;
  --blue-hover: #8596ff;
  --blue-soft: rgba(107, 127, 255, 0.16);
  --shadow-paper: 0 4px 12px rgba(0, 0, 0, 0.35), 0 20px 44px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.32);
  --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.48);
  --header-bg: rgba(28, 27, 25, 0.84);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(31, 30, 27, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  transition: background-color 0.35s var(--ease-calm), color 0.35s var(--ease-calm);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-pure);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(31, 30, 27, 0.15);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-subtle);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.site-nav a {
  position: relative;
  padding-block: 4px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 34px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 400;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--surface);
}

/* Theme icon visibility */
.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding-block: 14px 20px;
  gap: 4px;
}

.mobile-nav a {
  padding: 10px 4px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-calm), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--surface-pure);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--blue);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

/* Hero Section */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.seal-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1.5px solid var(--blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 48ch;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  color: var(--ink-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-facts dt {
  font-size: 0.78rem;
  color: var(--ink-subtle);
  margin-bottom: 4px;
}

.hero-facts dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
}

/* Interactive 3:4 Stationery Sheet */
.stationery-shell {
  width: min(100%, 400px);
  margin-inline: auto;
}

.stationery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mode-btn.is-active {
  background: var(--surface-pure);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(31, 30, 27, 0.12);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-action {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 6px;
}

.text-action:hover {
  color: var(--ink);
}

.send-btn {
  border: none;
  background: var(--blue);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.3s var(--ease-calm);
}

.send-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.stationery-paper {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border-radius: 3px;
  padding: 24px 24px 36px;
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.65s var(--ease-calm), opacity 0.65s var(--ease-calm), background-color 0.35s var(--ease-calm);
}

.stationery-paper.is-sending {
  transform: translateY(36px) scale(0.92);
  opacity: 0.2;
}

.paper-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: var(--ink-subtle);
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.paper-seal {
  color: var(--blue);
  opacity: 0.85;
  display: inline-flex;
}

.paper-textarea {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  border: none;
  resize: none;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink);
  outline: none;
}

.paper-textarea::placeholder {
  color: var(--ink-subtle);
  opacity: 0.78;
}

.ink-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  touch-action: none;
}

.stationery-paper.is-drawing .ink-canvas {
  z-index: 4;
  pointer-events: auto;
  cursor: crosshair;
}

.stationery-paper.is-drawing .paper-textarea {
  user-select: none;
}

.paper-hint {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 14px;
  font-size: 0.76rem;
  color: var(--ink-subtle);
  pointer-events: none;
  z-index: 3;
}

.stage-caption {
  margin: 12px 2px 0;
  font-size: 0.78rem;
  color: var(--ink-subtle);
  text-align: center;
}

/* Sections */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-kicker {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 400;
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.3;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
}

/* Letter Wall */
.letter-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.letter-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border-radius: 3px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s var(--ease-calm), box-shadow 0.45s var(--ease-calm), background-color 0.35s var(--ease-calm);
}

.letter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.letter-card.is-new {
  animation: cardArrive 0.65s var(--ease-calm) both;
}

@keyframes cardArrive {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-date {
  font-size: 0.78rem;
  color: var(--ink-subtle);
  position: relative;
  z-index: 2;
}

.card-excerpt {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  position: relative;
  z-index: 2;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-doodle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}

.card-ink-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

/* Manifesto (Philosophy) */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}

.manifesto-col {
  padding-top: 8px;
}

.manifesto-heading {
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
}

.manifesto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.manifesto-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.manifesto-list strong {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}

.manifesto-list span {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.manifesto-list.is-muted strong::before {
  content: "— ";
  color: var(--ink-subtle);
  font-weight: 300;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.pricing-sheet {
  background: var(--surface);
  border-radius: 3px;
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-sheet.is-pro {
  box-shadow: var(--shadow-paper);
  border-top: 2px solid var(--blue);
}

.pricing-top {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.pricing-badge {
  display: inline-block;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.pricing-badge.is-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.pricing-name {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.45rem;
}

.pricing-price {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.pricing-features li {
  position: relative;
  padding-left: 20px;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1.5px;
  background: var(--blue);
}

.pricing-features strong {
  color: var(--ink);
  font-weight: 500;
}

/* Closing Section */
.closing-sheet {
  background: var(--surface);
  border-radius: 3px;
  padding: clamp(36px, 6vw, 68px) clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-paper);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.closing-icon {
  margin: 0 auto 22px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(31, 30, 27, 0.14);
}

.closing-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.closing-desc {
  margin: 0 auto 28px;
  max-width: 44ch;
  color: var(--ink-muted);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Letter Reader Modal */
.reader-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(28, 27, 25, 0.52);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.reader-backdrop[hidden] {
  display: none;
}

.reader-sheet {
  width: min(100%, 440px);
  min-height: min(76vh, 560px);
  background: var(--surface);
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
  padding: 24px 26px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.reader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.reader-date {
  font-size: 0.88rem;
  color: var(--ink-subtle);
}

.reader-body {
  position: relative;
  flex: 1;
}

.reader-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 2;
  white-space: pre-wrap;
  position: relative;
  z-index: 2;
}

.reader-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.reader-art svg,
.reader-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Toast (matches Fortune/Views/ToastView.swift) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--surface-pure);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-paper);
  font-size: 0.88rem;
}

.toast[hidden] {
  display: none;
}

.toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* Privacy Policy Page */
.privacy-main {
  padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 100px);
}

.privacy-container {
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ink-subtle);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.legal-sheet {
  background: var(--surface);
  border-radius: 3px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-paper);
}

.legal-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.legal-header h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  line-height: 1.25;
}

.legal-meta {
  margin: 0 0 20px;
  font-size: 0.86rem;
  color: var(--ink-subtle);
}

.legal-summary {
  margin: 0;
  padding: 16px 18px;
  background: var(--blue-soft);
  border-radius: 3px;
  font-size: 0.94rem;
  color: var(--ink);
}

.legal-section + .legal-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--ink-muted);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink-muted);
  display: grid;
  gap: 8px;
}

.legal-section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section code {
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
}

/* 404 Page */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.not-found-sheet {
  width: min(100%, 460px);
  background: var(--surface);
  border-radius: 3px;
  padding: 44px 32px;
  box-shadow: var(--shadow-paper);
  text-align: center;
}

.not-found-sheet h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
}

.not-found-sheet p {
  margin: 0 0 28px;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 0.86rem;
  color: var(--ink-subtle);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.footer-sep {
  color: var(--ink-subtle);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  margin: 0;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-calm), transform 0.7s var(--ease-calm);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .letter-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manifesto-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .brand-sub {
    display: none;
  }
  .hero-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .letter-wall {
    gap: 14px;
  }
  .letter-card {
    padding: 14px;
  }
  .card-excerpt {
    font-size: 0.82rem;
    -webkit-line-clamp: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
