/* Home page (templates/home_preview.html). Every rule is under .fp, so nothing
   here changes the navigation bar, the footer or any other page. The page
   does not use Tailwind utility classes, so it does not depend on which
   utilities the CSS build generated. */

.fp {
  --fp-ink: #111111;
  --fp-text-2: #333333;
  --fp-muted: #555555;
  --fp-faint: #6b6b6b;
  --fp-rule: #d9d9d9;
  --fp-grid: #e6e6e6;
  --fp-bg: #ffffff;
  --fp-tint: #fafafa;
  /* Chart series. Checked with the dataviz palette validator on a white surface. */
  --fp-current: #b8321a;   /* newest year */
  --fp-prior: #1f5fa8;     /* one year earlier */
  --fp-old-1: #8a8a8a;     /* two years earlier */
  --fp-old-2: #949494;     /* three years earlier, drawn as a dashed line */
  --fp-bar-prior: #555555;
  --fp-bar-earlier: #949494;
  --fp-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --fp-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --fp-mono-font: 'IBM Plex Mono', 'SF Mono', monospace;

  background: var(--fp-bg);
  color: var(--fp-ink);
  font-family: var(--fp-sans);
  font-size: 14px;
  line-height: 1.5;
  flex: 1 0 auto;
}
.fp *, .fp *::before, .fp *::after { box-sizing: border-box; }
/* :where() keeps this reset at the lowest priority, so the class rules below can set margins. */
:where(.fp) :where(p, h1, h2, h3, figure, ul, dl, dd) { margin: 0; padding: 0; }
:where(.fp) ul { list-style: none; }

.fp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px 96px; }

.fp a { color: var(--fp-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fp a:hover { text-decoration-thickness: 2px; }
.fp a:focus-visible { outline: 2px solid var(--fp-prior); outline-offset: 2px; }

.fp-mono { font-family: var(--fp-mono-font); font-variant-numeric: tabular-nums; }
.fp-muted { color: var(--fp-muted); }
.fp-label {
  font-family: var(--fp-sans); font-size: 11px; font-weight: 600; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--fp-ink);
}
.fp-note { font-size: 12px; line-height: 1.5; color: var(--fp-muted); }

/* Date line */
.fp-dateline {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px;
  padding: 14px 0 10px; border-bottom: 2px solid var(--fp-ink); font-size: 12px;
}

/* Lead figure and side column */
.fp-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 24px; }
.fp-lead { padding: 28px 24px 0 0; min-width: 0; }
.fp-side { border-left: 1px solid var(--fp-rule); padding: 28px 0 0 24px; min-width: 0; }

.fp-headline {
  font-family: var(--fp-serif); font-weight: 600; font-size: clamp(28px, 4.1vw, 46px);
  line-height: 1.08; letter-spacing: -0.01em; max-width: 20em; margin: 10px 0 14px; text-wrap: balance;
}
.fp-headline-2 {
  font-family: var(--fp-serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18; max-width: 26em; text-wrap: balance;
}
.fp-deck-2 { font-size: 15px; margin-top: 10px; }
.fp-deck { font-family: var(--fp-serif); font-size: 18px; line-height: 1.45; color: var(--fp-text-2); max-width: 62ch; }

/* Figures */
.fp-figure { margin-top: 24px; border-top: 1px solid var(--fp-ink); padding-top: 10px; }
.fp-figure-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.fp-figure figcaption {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--fp-rule);
  font-size: 12px; line-height: 1.5; color: var(--fp-muted); max-width: 90ch;
}
.fp-chart { position: relative; width: 100%; }
.fp-chart svg { display: block; overflow: visible; touch-action: pan-y; }
.fp-chart text { font-family: var(--fp-mono-font); font-size: 11px; fill: var(--fp-muted); }
.fp-chart .fp-t-ink { fill: var(--fp-ink); }
.fp-chart .fp-t-strong { fill: var(--fp-ink); font-weight: 500; font-size: 12px; }
.fp-chart .fp-halo { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.fp-nochart { font-size: 13px; color: var(--fp-muted); padding: 8px 0; }
.fp-readout { min-height: 18px; font-size: 12px; line-height: 18px; color: var(--fp-ink); }

.fp-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--fp-text-2); margin-bottom: 4px; }
.fp-key { display: inline-flex; align-items: center; gap: 6px; }
.fp-swatch { display: inline-block; width: 12px; height: 12px; flex: none; }
.fp-swatch-line { width: 16px; height: 3px; }
.fp-year-1 { background: var(--fp-current); }
.fp-year-2 { background: var(--fp-prior); }
.fp-year-3 { background: var(--fp-old-1); }
.fp-year-4 { background: repeating-linear-gradient(to right, var(--fp-old-2) 0 4px, transparent 4px 7px); }
.fp-year-prior-small { background: var(--fp-old-1); height: 2px; }
.fp-bar-last { background: var(--fp-ink); }
.fp-bar-prior { background: var(--fp-bar-prior); }
.fp-bar-earlier { background: var(--fp-bar-earlier); }

/* Side column figures */
.fp-section-label { border-top: 2px solid var(--fp-ink); padding-top: 12px; margin-bottom: 10px; }
.fp-stat {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px; column-gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--fp-rule);
}
.fp-stat-label { font-size: 13px; font-weight: 500; }
.fp-stat-value { font-size: 26px; font-weight: 500; line-height: 1.2; }
.fp-stat-change { font-size: 12px; color: var(--fp-muted); }
.fp-spark { width: 120px; height: 44px; }
.fp-side .fp-note { border-top: 1px solid var(--fp-rule); padding-top: 10px; }

/* Trial sign-up */
.fp-trial {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  margin-top: 40px; padding: 16px 20px; background: var(--fp-tint);
  border-top: 1px solid var(--fp-ink); border-bottom: 1px solid var(--fp-ink);
}
.fp-trial p { font-family: var(--fp-serif); font-size: 18px; line-height: 1.35; max-width: 46em; flex: 1 1 320px; }
.fp-trial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 14px; }
.fp a.fp-button {
  display: inline-block; background: var(--fp-ink); color: #fff; font-weight: 600; font-size: 14px;
  padding: 11px 18px; text-decoration: none;
}
.fp a.fp-button:hover { background: #333; }

/* Sections */
.fp-section { margin-top: 44px; border-top: 2px solid var(--fp-ink); padding-top: 12px; }
.fp-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; }
.fp-section-note { margin-top: 2px; }
.fp-sub-label { margin-top: 28px; padding-bottom: 8px; border-bottom: 1px solid var(--fp-ink); }

/* Blog posts */
.fp-posts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; margin-top: 18px; }
.fp-post-lead { padding-right: 24px; min-width: 0; }
.fp-post-list { border-left: 1px solid var(--fp-rule); padding-left: 24px; min-width: 0; }
.fp-date { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fp-muted); }
.fp-post-title-lead { font-family: var(--fp-serif); font-weight: 600; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.18; margin: 6px 0 10px; }
.fp-post-summary-lead { font-family: var(--fp-serif); font-size: 17px; line-height: 1.45; color: var(--fp-text-2); }
.fp-byline { font-size: 12px; color: var(--fp-faint); margin-top: 10px; }
.fp-post-stats {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px;
  border-top: 1px solid var(--fp-ink);
}
.fp-post-stats > div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--fp-rule); min-width: 0; }
.fp-post-stats > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--fp-rule); }
.fp-post-stats dt { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fp-muted); }
.fp-post-stats dd { font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.fp-post-stats + .fp-note { margin-top: 8px; }
.fp-post { padding: 14px 0; border-top: 1px solid var(--fp-rule); }
.fp-post:first-child { border-top: 0; padding-top: 0; }
.fp-post-title { font-family: var(--fp-serif); font-weight: 600; font-size: 18px; line-height: 1.25; margin: 4px 0 6px; }
.fp-post-summary {
  font-size: 13px; color: var(--fp-muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.fp .fp-post-title a, .fp .fp-post-title-lead a, .fp .fp-earlier a, .fp .fp-tool h3 a { text-decoration: none; }
.fp .fp-post-title a:hover, .fp .fp-post-title-lead a:hover, .fp .fp-earlier a:hover, .fp .fp-tool h3 a:hover {
  text-decoration: underline; text-decoration-thickness: 1px;
}
.fp-earlier li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--fp-rule);
}
.fp-earlier a { font-family: var(--fp-serif); font-weight: 500; font-size: 16px; line-height: 1.3; }

/* Builder Tracker */
.fp-builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 24px; margin-top: 18px; }
.fp-builder-main { padding-right: 24px; min-width: 0; }
.fp-builder-side { border-left: 1px solid var(--fp-rule); padding-left: 24px; min-width: 0; }
.fp-notice {
  margin-top: 16px; padding: 2px 0 2px 12px; border-left: 2px solid var(--fp-current);
  font-size: 12px; line-height: 1.5; color: var(--fp-text-2); max-width: 80ch;
}
.fp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fp-table caption { text-align: left; font-size: 13px; font-weight: 600; padding-bottom: 8px; }
.fp-table th {
  text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fp-muted); padding: 6px 0; border-top: 1px solid var(--fp-ink); border-bottom: 1px solid var(--fp-ink);
}
.fp-table td { padding: 9px 0; border-bottom: 1px solid var(--fp-rule); vertical-align: baseline; }
.fp-table .fp-num { text-align: right; padding-left: 12px; white-space: nowrap; }
.fp-builder-side .fp-note { margin-top: 10px; }
.fp-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 13px; }

/* Tools */
.fp-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.fp-tool { padding: 16px 24px 16px 0; border-bottom: 1px solid var(--fp-rule); }
.fp-tool:nth-child(3n+2), .fp-tool:nth-child(3n) { padding-left: 24px; border-left: 1px solid var(--fp-rule); }
.fp-tool:nth-last-child(-n+3) { border-bottom: 0; }
.fp-tool h3 { font-family: var(--fp-serif); font-weight: 600; font-size: 19px; line-height: 1.25; }
.fp-tool p { font-size: 13px; color: var(--fp-muted); margin-top: 4px; }
.fp-tool .fp-access { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fp-ink); margin-top: 8px; }

/* One column below 1024px */
@media (max-width: 1023px) {
  .fp-wrap { padding: 0 20px 96px; }
  .fp-top, .fp-posts, .fp-builder { grid-template-columns: minmax(0, 1fr); }
  .fp-lead, .fp-post-lead, .fp-builder-main { padding-right: 0; }
  .fp-side, .fp-post-list, .fp-builder-side { border-left: 0; padding-left: 0; }
  .fp-side { padding-top: 32px; }
  .fp-post-list { margin-top: 20px; border-top: 1px solid var(--fp-rule); padding-top: 14px; }
  .fp-builder-side { margin-top: 28px; }
  .fp-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fp-tool, .fp-tool:nth-child(3n+2), .fp-tool:nth-child(3n), .fp-tool:nth-last-child(-n+3) { padding: 16px 20px 16px 0; border-left: 0; border-bottom: 1px solid var(--fp-rule); }
  .fp-tool:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--fp-rule); }
  .fp-tool:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 639px) {
  .fp-wrap { padding: 0 16px 96px; }
  .fp-deck { font-size: 16px; }
  .fp-deck-2 { font-size: 14px; }
  .fp-readout { min-height: 54px; }
  .fp-trial { padding: 16px; }
  .fp-trial p { font-size: 16px; }
  .fp-tools { grid-template-columns: minmax(0, 1fr); }
  .fp-tool, .fp-tool:nth-child(3n+2), .fp-tool:nth-child(3n), .fp-tool:nth-child(even) {
    padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--fp-rule);
  }
  .fp-tool:last-child { border-bottom: 0; }
  .fp-earlier li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .fp-section-head { flex-wrap: wrap; }
}
