/* The red is the rocket's, sampled from the original logo. Each product card
   takes its accent from that product's own site (Unbent's theme colour,
   CurlHub's purple, PushThat's pink), passed in as --brand. */
:root {
  --red: #ED1E24;
  --ink: #1f1f1f;
  --muted: #5c5c5c;
  --bg: #fafaf9;
  --card: #ffffff;
  --line: #e4e4e2;
  --link: #c4161b;
  --ink-top: #000000;
  --ink-bottom: #5a5a5a;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ededed;
    --muted: #a3a3a3;
    --bg: #161616;
    --card: #202020;
    --line: #333333;
    --link: #ff6b6f;
    /* the logo's black-to-grey, inverted */
    --ink-top: #ffffff;
    --ink-bottom: #a8a8a8;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 2px; }

.masthead, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

.masthead {
  padding-top: 56px;
  text-align: center;
}

.mark { display: block; margin: 0 auto 12px; }

/* The logo set in type rather than shipped as the old PNG, whose near-black
   "Make" and "Go" vanish on a dark background. Antonio is the closest open
   face to its lettering (square-shouldered O and G, same weight); Saira
   Condensed, Oswald and Big Shoulders were compared and are rounder or
   heavier. The logo's lowercase is small capitals about four fifths of cap
   height, so the initials are full size and the rest is capitals at 0.8em:
   the browser's synthesized small-caps came out far shorter. */
.lockup {
  display: inline-grid; /* the rules beside "Software" span the wordmark's width, no wider */
  max-width: 100%;
}

.wordmark {
  margin: 0;
  font: 600 clamp(2.5rem, 11vw, 4.2rem)/1 Antonio, "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.wordmark small {
  font-size: 0.8em;
  text-transform: uppercase;
}

/* Each half fades down the letters, as in the logo. The text stays real (it
   is clipped to the gradient), so it selects, copies and reads out. */
.wordmark span {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark .ink { background-image: linear-gradient(var(--ink-top) 35%, var(--ink-bottom)); }
.wordmark .red { background-image: linear-gradient(#f2262c 35%, #8e0f12); }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin: 8px 0 0;
  color: var(--ink);
  font: 400 clamp(0.75rem, 3.2vw, 1.05rem)/1 Questrial, system-ui, sans-serif;
  letter-spacing: 0.6em;
  text-transform: uppercase;
}
.kicker::before,
.kicker::after {
  content: "";
  flex: 1;
  border-top: 2px solid currentColor;
}
/* letter-spacing trails the last letter, which would sit the word off-centre
   between its rules */
.kicker::after { margin-left: -0.6em; }

.lede {
  margin: 40px 0 28px;
  color: var(--muted);
  text-align: center;
}
/* A sentence a line, so the second never starts at the end of the first and
   leaves its last word alone below. Where a sentence still has to wrap (a
   phone), balance evens its lines out. */
.lede span {
  display: block;
  text-wrap: balance;
}

.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.product {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
}

.product h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.product h2 a { color: inherit; text-decoration: none; }
.product h2 a:hover { text-decoration: underline; }

.product p { margin: 4px 0 0; text-wrap: pretty; } /* pretty: no lone last word */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.9rem;
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

/* CurlHub's mark sits on a white disc in its own header, and PushThat's on
   its near-black page, so each tile repeats the ground its logo was drawn for. */
.tile {
  display: grid;
  place-items: center;
}
.tile.curlhub { background: #ffffff; border: 1px solid var(--line); }
.tile.pushthat { background: #1c1a1d; border: 1px solid var(--line); }

.about {
  margin: 48px 0 0;
}
.about h2 { margin: 0 0 4px; font-size: 1.1rem; }
.about p { margin: 0; text-wrap: pretty; }

.contact {
  margin: 48px 0 0;
  text-align: center;
}
.contact h2 { margin: 0 0 4px; font-size: 1.1rem; }
.contact p { margin: 0; overflow-wrap: anywhere; }

footer {
  margin-top: 56px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 480px) {
  .masthead { padding-top: 40px; }
  .mark { width: 76px; height: 76px; }
  .product { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .icon { width: 44px; height: 44px; border-radius: 11px; }
  .tile img { width: 28px; height: 28px; }
}
