/* Faye — fayemanifest.com
   Design tokens follow Design/00-tasarim-yonu.md v4: terracotta accent, no pure
   black or white, serif = Faye speaking, sans = the app speaking. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #F6EFF4;
  --ink-2: #EDE6EB;
  --muted: #B3A8AF;
  --muted-2: #8F838B;
  --muted-3: #6E646B;
  --paper: #100D10;
  --paper-deep: #0B090B;
  --paper-light: #F1EAF1;
  --ink-dark: #1C181A;
  --ink-dark-2: #5A5156;
  --ink-dark-3: #635A5F;
  --accent: #A85436;
  --accent-light: #D08360;
  --hair: rgba(246, 239, 244, .08);
  --serif: Fraunces, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: #EDA079; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--ink-dark);
  font: 600 14px/1 var(--sans);
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--ink-dark); }

/* Scroll-reveal. Applied only when JS is running, so the page is complete
   without it — for crawlers and for anyone with scripting off. */
.js [data-reveal] { opacity: 0; will-change: opacity, transform; }
.js [data-reveal].is-in { opacity: 1; }

@keyframes auraDrift  { 0%,100% { transform: translate3d(0,0,0) scale(1);    } 50% { transform: translate3d(-4%,5%,0) scale(1.12); } }
@keyframes auraDrift2 { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(6%,-4%,0) scale(.92); } }
@keyframes ringSpin   { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

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

/* Horizontal scroller (series shelf) — hide the bar, keep the keyboard */
.shelf { scrollbar-width: none; -ms-overflow-style: none; }
.shelf::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------------------
   Prose pages — privacy, terms, support
   --------------------------------------------------------------------------- */

.prose-page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 40px) clamp(72px, 9vw, 120px); }

.prose-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #C6B9C1;
}
.prose-eyebrow::before { content: ''; width: 32px; height: 1.5px; background: var(--accent); flex: none; }

.prose-page h1 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-variation-settings: 'opsz' 54, 'wght' 400, 'SOFT' 12, 'WONK' 1;
  color: var(--ink);
  text-wrap: pretty;
}

.prose-lede {
  margin: 22px 0 0;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.prose-meta {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 239, 244, .12);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.prose-body { margin-top: clamp(36px, 5vw, 56px); }

.prose-body h2 {
  margin: clamp(44px, 5vw, 64px) 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.2;
  letter-spacing: -.015em;
  font-variation-settings: 'opsz' 31, 'wght' 500, 'SOFT' 6, 'WONK' 0;
  color: var(--ink);
  text-wrap: pretty;
}
.prose-body h2:first-child { margin-top: 0; }

.prose-body h3 {
  margin: 30px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2);
}

.prose-body p, .prose-body li {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
}
.prose-body p { margin: 16px 0 0; }
.prose-body ul, .prose-body ol { margin: 16px 0 0; padding-left: 22px; }
.prose-body li { margin-top: 9px; }
.prose-body li::marker { color: var(--accent-light); }
.prose-body strong { color: var(--ink-2); font-weight: 600; }

.prose-body a { border-bottom: 1px solid rgba(208, 131, 96, .35); }
.prose-body a:hover { border-bottom-color: currentColor; }

.prose-note {
  margin: 28px 0 0;
  padding: 22px 24px;
  border: 1px solid rgba(246, 239, 244, .12);
  border-radius: 18px;
  background: rgba(246, 239, 244, .028);
}
.prose-note p:first-child { margin-top: 0; }

.table-wrap { margin: 20px 0 0; overflow-x: auto; }
.prose-body table { width: 100%; min-width: 520px; border-collapse: collapse; }
.prose-body th, .prose-body td {
  text-align: left;
  vertical-align: top;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid rgba(246, 239, 244, .10);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}
.prose-body th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 400;
  border-bottom-color: rgba(246, 239, 244, .18);
}

.prose-body dl { margin: 16px 0 0; }
.prose-body dt { margin-top: 22px; font-size: 16.5px; font-weight: 600; color: var(--ink-2); }
.prose-body dd { margin: 8px 0 0; font-size: 16.5px; line-height: 1.72; color: var(--muted); }

/* Consent bar --------------------------------------------------------------- */

.consent {
  position: fixed;
  z-index: 60;
  left: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 18px 22px;
  border: 1px solid rgba(246, 239, 244, .14);
  border-radius: 18px;
  background: rgba(11, 9, 11, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1);
}
.consent.is-up { opacity: 1; transform: none; }

.consent__text {
  flex: 1 1 300px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.consent__text a { color: var(--muted); border-bottom: 1px solid rgba(208, 131, 96, .45); }
.consent__text a:hover { color: var(--ink-2); }

.consent__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.consent__btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(246, 239, 244, .18);
  background: transparent;
  color: var(--muted);
  font: 500 13.5px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.consent__btn:hover { color: var(--ink-2); border-color: rgba(246, 239, 244, .34); }

.consent__btn--yes {
  border-color: transparent;
  background: var(--ink);
  color: var(--ink-dark);
  font-weight: 600;
}
.consent__btn--yes:hover { background: #FFF9FD; color: var(--ink-dark); }

@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; opacity: 1; transform: none; }
}

/* Shared chrome ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(16, 13, 16, .72);
  border-bottom: 1px solid var(--hair);
}
.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  height: 68px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
}
.wordmark { display: flex; align-items: center; gap: 11px; }
/* The app icon itself, so the tab, the App Store listing and the header agree. */
.wordmark__dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex: none;
  background: url('/assets/logo-mark.png') center / cover no-repeat, var(--accent);
}
.wordmark__name {
  font-family: var(--serif);
  font-size: 20px;
  font-variation-settings: 'opsz' 20, 'wght' 500, 'SOFT' 6, 'WONK' 0;
  letter-spacing: .2px;
  color: var(--ink);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font: 400 13.5px/1 var(--sans);
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink-2); }
@media (max-width: 720px) { .site-nav { display: none; } }

.btn-primary {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-dark);
  font: 600 13.5px/1 var(--sans);
  white-space: nowrap;
}
.btn-primary:hover { background: #FFF9FD; color: var(--ink-dark); }

.site-footer { background: var(--paper-deep); border-top: 1px solid var(--hair); padding: 44px clamp(20px, 5vw, 56px) 52px; }
.site-footer__inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px 26px; font-size: 13.5px; }
.site-footer nav a { color: var(--muted-2); }
.site-footer nav a:hover { color: var(--ink-2); }
.site-footer__legal { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8F838B; }
