/* Your Buddy Carl — shared styles for yourbuddycarl.com
   Palette: deep navy (never green or teal). Tokens match SPEC.md. */

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

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F8F7F4;
  --ink: #1B2433;
  --muted: #586174;
  --card: #FFFFFF;
  --line: #E2E0DA;
  --band: #F1EFEA;
  --deep: #1E3A5F;
  --deep-ink: #F4F6FA;
  --deep-muted: #C3CFE0;
  --primary: #1E3A5F;
  --primary-hover: #142842;
  --primary-ink: #FFFFFF;
  --compose: #F4F3EF;
  --toast-border: #E5E2DB;
  --shadow: 0 16px 40px rgba(16, 24, 38, 0.16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}


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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--card);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 10;
}
.skip-link:focus { left: 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Header and footer ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 600; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer .wordmark { font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-links a { color: var(--muted); }
.footer-links a.strong { color: var(--ink); font-weight: 700; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--primary); }
.btn-outline:hover { background: var(--band); color: var(--ink); }

/* ---------- Type helpers ---------- */

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.12; }
h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; }

.lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 34rem; }
.muted { color: var(--muted); }

.section { padding: 112px 0; }
.section-band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 56px; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 112px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-ctas .text-link { min-height: 52px; display: inline-flex; align-items: center; padding: 0 8px; color: var(--ink); font-size: 17px; font-weight: 700; }
.hero-note { margin: 0; font-size: 14px; color: var(--muted); }

.shot {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
  min-height: 440px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.shot-mail { padding: 28px 28px 200px; display: flex; flex-direction: column; gap: 12px; }
.shot-dots { display: flex; gap: 8px; }
.shot-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-meta { margin: 0; font-size: 13px; color: var(--muted); }
.shot-meta:first-of-type { margin-top: 8px; }
.shot-draft { background: var(--compose); border-radius: 14px; padding: 18px; font-size: 16px; line-height: 1.6; }

.toast {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: var(--card);
  border: 1px solid var(--toast-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px 18px 16px 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.toast-buddy { width: 96px; flex: none; }
.toast-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.toast-title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.toast-text { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.toast-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.chip-primary { background: var(--primary); color: var(--primary-ink); }
.chip-secondary { border: 2px solid var(--line); font-weight: 700; }

/* ---------- Why it matters ---------- */

.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split .eyebrow { margin-bottom: 16px; }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.prose p { margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.pill {
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

/* ---------- Cards ---------- */

.cards { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.card {
  flex: 1 1 300px;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.card .step { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--primary); }
.card-buddy { width: 180px; }

.buddy-card { flex: 1 1 220px; max-width: 260px; padding: 24px 12px; gap: 8px; }
.buddy-card img { width: 200px; }
.buddy-name { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--ink); }
.buddy-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Sites ---------- */

.site-group { display: flex; flex-direction: column; gap: 10px; }
.site-group + .site-group { margin-top: 20px; }
.site-label { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.site-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-list li { padding: 10px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.site-list.quiet li { background: transparent; padding: 8px 14px; font-weight: 600; }

/* ---------- Privacy band ---------- */

.privacy-band { background: var(--deep); color: var(--deep-ink); }
.privacy-band .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.privacy-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.privacy-copy .eyebrow { color: var(--deep-muted); }
.privacy-copy h2 { font-size: clamp(34px, 4.8vw, 48px); line-height: 1.1; }
.privacy-copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--deep-muted); }
.privacy-copy a { color: var(--deep-ink); font-weight: 700; }
.promises { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.promises li { padding: 18px 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.22); font-size: 18px; font-weight: 700; }

/* ---------- Tip jar ---------- */

.tip { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.tip img { width: 160px; }
.tip p { margin: 0; font-size: 18px; color: var(--muted); max-width: 36rem; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.faq-item { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.faq-item h3 { font-size: 19px; }
.faq-item p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- Contact ---------- */

.contact-form {
  flex: 1 1 480px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; }
.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}
.field input { min-height: 48px; padding: 0 16px; }
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-note a { color: var(--muted); }
.form-status { margin: 0; font-size: 15px; font-weight: 700; }
.form-status[data-state="error"] { color: #B3261E; }
.contact-form .btn { align-self: flex-start; }

/* ---------- Policy page ---------- */

.policy { padding: 80px 0 104px; }
.policy .wrap { display: flex; flex-direction: column; gap: 36px; }
.policy h1 { font-size: clamp(38px, 5.4vw, 52px); line-height: 1.08; }
.policy-head { display: flex; flex-direction: column; gap: 12px; }
.policy-head p { margin: 0; }
.summary {
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
}
.summary p { margin: 0; font-size: 17px; line-height: 1.65; }
.summary p + p { margin-top: 10px; }
.policy section { display: flex; flex-direction: column; gap: 12px; }
.policy section h2 { font-family: var(--sans); font-size: 22px; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.policy section p,
.policy section li { font-size: 17px; line-height: 1.7; color: var(--muted); }
.policy section p { margin: 0; }
.policy section ul { margin: 0; padding-left: 22px; }
.policy strong { color: var(--ink); }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .hero { padding: 56px 0 72px; }
  .section { padding: 72px 0; }
  .nav { gap: 4px 16px; }
  .nav .nav-link { display: none; }
  .site-header .wrap { gap: 12px; flex-wrap: nowrap; }
  .site-header .wordmark { font-size: 21px; }
  .site-header .btn { padding: 0 14px; font-size: 14px; }
  .shot { min-height: 480px; }
  .toast { left: 12px; right: 12px; bottom: 12px; }
  .toast-buddy { width: 72px; }
  .contact-form { padding: 24px; }
  .privacy-band .wrap { padding-top: 72px; padding-bottom: 72px; }
}
