/* tuckercoffey.com — proof page */

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

:root {
  --black: #0d0d0d;
  --gray-900: #1a1a1a;
  --gray-700: #3d3d3d;
  --gray-500: #6b6b6b;
  --gray-300: #c0c0c0;
  --gray-100: #f2f2f2;
  --white: #ffffff;
  --accent: #1a56db;
  --accent-dim: #dbe8ff;
  --lead-green: #16a34a;
  --junk-gray: #9ca3af;
  --tag-bg: #e0f2fe;
  --tag-text: #0369a1;

  --font: 'Hanken Grotesk', system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Fira Mono", "Consolas", monospace;

  --max-w: 900px;
  --block-pad: 64px 0;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── layout ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

section { padding: var(--block-pad); border-bottom: 1px solid var(--gray-100); }
section:last-of-type { border-bottom: none; }

/* ── typography ── */
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.18;
  margin-bottom: 8px;
  text-wrap: balance;
}
h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
  word-break: break-word;
}
.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500) !important;
  margin-bottom: 16px;
  word-break: break-word;
  max-width: none !important;
  text-wrap: initial;
}
p { color: var(--gray-700); max-width: 65ch; text-wrap: pretty; }
p + p { margin-top: 12px; }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* ── hero ── */
#hero { padding: 96px 0 80px; }
#hero .label { margin-bottom: 24px; }
#hero h1 { margin-bottom: 28px; }
#hero .sub { font-size: 1.1rem; color: var(--gray-500); margin-bottom: 40px; max-width: 56ch; }

.stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ── block layout ── */
.block-intro { margin-bottom: 48px; }
.block-intro h2 { margin-bottom: 14px; }
.problem-line {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* ── animation containers ── */
.anim-wrap {
  background: var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}
/* SVG fills the container, height driven by viewBox ratio */
.anim-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  /* no max-height here — that would force SVG to recompute width to maintain ratio,
     making it wider than the container and triggering overflow:hidden clipping */
}
/* External SVG/PNG diagrams loaded via img */
.anim-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── screenshot placeholders ── */
.screenshot-placeholder {
  background: var(--gray-100);
  border: 1.5px dashed var(--gray-300);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-family: var(--mono);
}
.screenshot-placeholder svg { opacity: 0.4; }

/* ── tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── outcome strip — full border, no side-stripe ── */
.outcome {
  margin-top: 40px;
  padding: 18px 22px;
  background: var(--accent-dim);
  border-radius: 6px;
  border: 1.5px solid #b3cefa;
  font-size: 0.92rem;
  color: var(--gray-900);
}

/* ── two-col screenshot layout ── */
.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.screenshots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ── focus ── */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── footer ── */
footer {
  padding: 48px 0;
  background: var(--gray-900);
  color: var(--gray-300);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-name { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  white-space: nowrap;        /* prevent mid-word breaks */
  min-height: 44px;           /* minimum tap target */
}
.footer-links a:hover { color: var(--white); }

/* ── responsive ── */
@media (max-width: 600px) {
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .screenshots { grid-template-columns: 1fr; }
  .stat-num { font-size: 1.6rem; }
  p, h2, h3, .kicker { max-width: 100%; word-break: break-word; }
  #hero .sub { max-width: 100%; }
  /* Footer: stack one item per line */
  footer .wrap { flex-direction: column; align-items: flex-start; }
  .footer-links {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .footer-links a {
    white-space: nowrap;
    min-height: 44px;
  }
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .static-fallback { display: block !important; }
  .animated-diagram { display: none !important; }
}
