/* Pronghorn Labs — one stylesheet, no scripts, nothing from anybody else. */

/* Sora, from Google Fonts, served from here (SIL Open Font License, /fonts/OFL.txt).
   One variable file covers the wordmark's 400 and 600. */
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* Brand tokens from the Pronghorn Labs kit (brand/tokens.css). Light is the
   kit's light version on bone; dark is its dark version on charcoal. */
:root {
  color-scheme: light dark;
  --pl-charcoal: #2D3234;
  --pl-bone: #ECE8E1;
  --pl-paintbrush: #E57B35;
  --pl-ember: #C9562A;
  --pl-horn: #4D5862;

  --bg: var(--pl-bone);
  --surface: #F7F5F1;
  --ink: var(--pl-charcoal);
  --muted: var(--pl-horn);
  --rule: #D9D3C8;
  --accent: var(--pl-ember);       /* "labs" in the wordmark, borders */
  --accent-ink: #A5431D;           /* ember darkened for link text contrast */
  --radius: 14px;
  --measure: 40rem;
  --wide: 60rem;
  --font-brand: "Sora", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--pl-charcoal);
    --surface: #363C3E;
    --ink: var(--pl-bone);
    --muted: #B9B2A7;
    --rule: #464D50;
    --accent: var(--pl-paintbrush);
    --accent-ink: #F0955A;           /* paintbrush lightened for text contrast */
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header and footer */

.site-header, .site-footer, main {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark { width: 40px; height: 50px; flex: none; }
.wordmark {
  font-family: var(--font-brand);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.wordmark span { font-weight: 400; color: var(--accent); margin-left: 0.28em; }

.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }

main { flex: 1; padding-bottom: 4rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--muted); }

/* Type */

h1, h2, h3 { font-family: var(--font-brand); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

.prose { max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.meta { color: var(--muted); font-size: 0.95rem; margin-top: -0.25rem; }

/* Home */

.intro { padding: 2.5rem 0 1rem; }

.apps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.apps li { margin: 0; }
.app-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.app-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.app-card img { width: 64px; height: 64px; border-radius: 22%; flex: none; }
.app-card strong { display: block; font-family: var(--font-brand); font-weight: 600; font-size: 1rem; }
.app-card span { display: block; color: var(--muted); font-size: 0.925rem; line-height: 1.45; margin-top: 0.15rem; }
.app-card small { display: block; color: var(--accent-ink); font-size: 0.8rem; margin-top: 0.5rem; font-weight: 600; letter-spacing: 0.02em; }

/* App pages */

.app-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}
.app-nav a { color: var(--muted); text-decoration: none; }
.app-nav a[aria-current] { color: var(--ink); font-weight: 600; }

.app-hero { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.app-hero img { width: 96px; height: 96px; border-radius: 22%; flex: none; }
.app-hero h1 { margin: 0; }
.tagline { font-size: 1.15rem; margin: 0.25rem 0 0; }
.platforms { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.shots.two { grid-template-columns: repeat(auto-fit, minmax(180px, 280px)); }
.shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 2rem;
}
.features h2 { margin-top: 1.5rem; }

.faq h3 { margin-top: 1.75rem; }

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .app-hero { align-items: flex-start; }
  .app-hero img { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none; }
  .app-card:hover { transform: none; }
}

/* Home: the inline lockup, large, with what we do beneath it. Proportions
   follow the kit: the mark is about 2.2 times the wordmark's size, with a gap
   of 0.45 of it. */

.hero { padding: 3rem 0 2.5rem; }
.lockup {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 8.4vw, 3.25rem);
  letter-spacing: normal;
}
.mark-lg { width: auto; height: 2.2em; aspect-ratio: 200 / 250; flex: none; }
.wordmark-lg { font-size: 1em; color: var(--ink); white-space: nowrap; }

.hero-lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; max-width: 36rem; margin-bottom: 1rem; }
.family { color: var(--muted); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.pillars section {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 0.4rem;
}
.pillars h2 { margin-top: 0; font-size: 1.15rem; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }
