/* ==========================================================================
   Put It On My List: shared design system
   Language: "a literary journal beside a bonfire" (refero 34baa524)
   Used by every page. Landing-only rules live in landing.css.
   ========================================================================== */

/* ---- Fonts (local, no external requests) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --parchment: #fefffc;
  --paper: #ffffff;
  --linen: #f9faf7;
  --ink: #171717;
  --graphite: #2c2c2c;
  --charcoal: #444141;
  --ash: #646464;
  --fog: #b4b8b4;
  --mist: #dee2de;
  --twilight: #282834;
  --dusk: #1f1f29;
  --signal: #41a1cf;
  --cerulean: #0081c0;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --u: 4px;
  --max: 1200px;
  --r-card: 16px;
  --r-btn: 8px;
  --r-pill: 50px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-ligatures: none;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--dusk);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--r-btn);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 16px; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Buttons ---- */
.button-primary,
.button-outline,
.button-paper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  font: 500 15px/1 var(--ui);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.button-primary { background: var(--dusk); color: var(--paper); }
.button-primary:hover { background: var(--twilight); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--signal); }
.button-outline:hover { background: rgba(65,161,207,.08); }
.button-paper { background: var(--paper); color: var(--ink); }
.button-paper:hover { background: var(--linen); }
.button-primary svg, .button-paper svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- Frosted floating pill nav ---- */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding-inline: 16px;
}
.site-header .header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: auto;
  max-width: 760px;
  min-width: min(100%, 560px);
  padding: 8px 8px 8px 20px;
  border-radius: var(--r-pill);
  background: rgba(254,255,252,.72);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled .header-inner {
  border-color: var(--mist);
  background: rgba(254,255,252,.86);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 15px/1 var(--ui);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--parchment);
  font-size: 13px;
  line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--charcoal);
  border-radius: var(--r-pill);
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--linen); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a.nav-cta {
  margin-left: 4px;
  padding: 9px 16px;
  color: var(--ink);
  border: 1px solid var(--signal);
  border-radius: var(--r-pill);
  background: transparent;
}
.site-nav a.nav-cta:hover { background: rgba(65,161,207,.1); }

@media (max-width: 640px) {
  .site-header .header-inner { min-width: 0; width: 100%; padding-left: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .brand span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--mist);
  margin-top: 96px;
  padding: 48px 0 56px;
  color: var(--ash);
  font-size: 14px;
}
.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--charcoal); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-note { flex-basis: 100%; font-size: 13px; color: var(--ash); max-width: 640px; }
.site-footer p { margin: 0; }

/* ---- Document pages (privacy, support, terms) ---- */
main.container.doc { padding-top: 144px; max-width: 840px; }
.page-header { margin-bottom: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--mist); }
.page-header h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 400; letter-spacing: -0.035em; }
.page-meta { margin: 16px 0 0; color: var(--ash); font-size: 15px; }
.prose-section { margin-bottom: 48px; }
.prose-section h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 450; margin-bottom: 16px; }
.prose-section h3 { font-size: 22px; margin: 28px 0 8px; }
.prose-section p, .prose-section li { color: var(--graphite); font-size: 17px; line-height: 1.7; max-width: 68ch; }
.prose-section p { margin: 0 0 16px; }
.prose-section ul { padding-left: 22px; margin: 0 0 16px; }
.prose-section li { margin-bottom: 8px; }
.prose-section a { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.prose-section a:hover { text-decoration-color: var(--ink); }
.callout {
  margin: 24px 0;
  padding: 24px 28px;
  background: var(--linen);
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
}
.callout p { margin: 0; }
.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--mist);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--paper);
}

/* Terms/Privacy lists and keyboard hints */
kbd { font: 500 13px var(--ui); padding: 2px 6px; border: 1px solid var(--mist); border-radius: 6px; background: var(--linen); }
