/* Shorty marketing site.
 *
 * Deliberately hand-written CSS with no build step. The app on :3002 is a Next
 * app with Tailwind v4; this is four static HTML files served straight off disk
 * by Apache, so anything requiring a compile would mean this directory could no
 * longer be edited and deployed by pushing to main. The palette is copied from
 * app/globals.css rather than shared, because sharing it would reintroduce
 * exactly that build step for the sake of five hex values. If the app's brand
 * colours change, change them here too.
 */

:root {
  --background: #faf9ef;
  --foreground: #003049;
  --primary: #d62828;
  --accent: #fcbf49;
  --card-bg: #ffffff;

  /* Same de-emphasis ladder as the app: the three named steps all clear WCAG AA
     against the cream background, which the eyeballed opacities they replaced
     did not. */
  --subtle: color-mix(in srgb, var(--foreground) 65%, transparent);
  --muted: color-mix(in srgb, var(--foreground) 72%, transparent);

  --border-color: rgba(0, 48, 73, 0.12);
  --card-shadow: 0 1px 2px rgba(0, 48, 73, 0.08), 0 4px 12px rgba(0, 48, 73, 0.06);

  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --measure: 42rem;
}

/* The logo is navy-on-transparent, so it survives a dark surface only because
   the ghost keeps a light outline; the surfaces here stay light enough that it
   reads either way. Dark mode is a tint of the same palette rather than a
   second one -- a legal page nobody theme-switches mid-read does not need two
   full colour systems. */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #012536;
    --foreground: #f2f1e6;
    --primary: #ff5a5a;
    --card-bg: #063149;
    --subtle: color-mix(in srgb, var(--foreground) 70%, transparent);
    --muted: color-mix(in srgb, var(--foreground) 78%, transparent);
    --border-color: rgba(250, 249, 239, 0.16);
    --card-shadow: none;
  }

  /* The ghost is prussian blue and there is no light variant of the mark, so on
     a dark surface it sits about 1.2:1 against its own background -- legible
     only because the eyes are white. A hairline halo separates it without
     touching the hue of either half of the logo. */
  .logo {
    filter: drop-shadow(0 0 1px rgba(250, 249, 239, 0.85))
      drop-shadow(0 0 3px rgba(250, 249, 239, 0.25));
  }
}

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

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

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-system);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  padding-bottom: 2.5rem;
}

.site-header a {
  display: inline-block;
}

.logo {
  display: block;
  width: 180px;
  height: auto;
}

/* ── Type ───────────────────────────────────────────────────────────────── */

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.meta {
  font-size: 0.9375rem;
  color: var(--subtle);
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.5rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}

/* ── Home page pieces ───────────────────────────────────────────────────── */

.notice {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent);
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  padding: 1rem 1.25rem;
  margin: 0 0 2.5rem;
}

.notice p {
  margin: 0;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: 1rem;
}

.features li {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  padding: 1.125rem 1.25rem;
  margin: 0;
}

.features strong {
  display: block;
  margin-bottom: 0.25rem;
}

.features span {
  color: var(--muted);
  font-size: 0.9688rem;
}

/* ── Legal / support pages ──────────────────────────────────────────────── */

.doc h2:first-of-type {
  margin-top: 2rem;
}

.doc dl {
  margin: 0 0 1rem;
}

.doc dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.doc dd {
  margin: 0 0 0.25rem;
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9375rem;
  color: var(--subtle);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

/* Every interactive target on this site is a text link, so the focus ring is
   the whole of its keyboard affordance -- browsers' default outline disappears
   against the red on some surfaces. */
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}
