/* Apex Daily site: the app's garage carbon. Carbon black, F1 red, white, slanted panels. */

:root {
  --carbon: #0a0c0f;
  --carbon-2: #14171c;
  --panel: #181c22;
  --panel-edge: #2a2f37;
  --text: #f2f4f7;
  --muted: #a3aab5;
  --red: #ff140f;
  --red-deep: #db0805;
  --chrome: #d6dbe2;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--carbon);
  /* Carbon weave: two crossed fine stripes over a vertical falloff. */
  background-image:
    linear-gradient(180deg, rgba(10, 12, 15, 0) 0%, var(--carbon) 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 6px);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: #fff; text-decoration-color: #fff; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header: the wordmark. */
.top { padding: 22px 0 8px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.mark img { width: 36px; height: 36px; border-radius: 9px; }
.word { display: inline-flex; flex-direction: column; line-height: 1; transform: skewX(-10deg); }
.word b { font-size: 21px; font-weight: 900; letter-spacing: 0.02em; }
.word i {
  font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: 0.42em;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  padding: 2px 4px 2px 6px; margin-top: 3px;
}
.nav { display: flex; gap: 18px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

main { flex: 1; padding: 24px 0 48px; }

/* Big slanted titles, like the garage pages. */
h1 {
  font-size: clamp(34px, 8vw, 54px); line-height: 1; margin: 12px 0 20px;
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.01em;
}
h1 span { color: var(--red); }
h2 {
  font-size: 15px; font-weight: 900; font-style: italic; text-transform: uppercase;
  letter-spacing: 0.12em; margin: 34px 0 10px; color: var(--chrome);
}
h2::before { content: ""; display: inline-block; width: 18px; height: 4px; background: var(--red); transform: skewX(-20deg); margin-right: 10px; vertical-align: middle; }

/* Carbon card with a slanted corner. */
.card {
  background: linear-gradient(180deg, #1d2128, var(--panel));
  border: 1px solid var(--panel-edge);
  padding: 20px 22px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  margin: 16px 0;
}
.card p:first-child { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.lede { font-size: 19px; color: var(--chrome); }
.small { font-size: 14px; color: var(--muted); }
ul { padding-left: 20px; }
li { margin: 6px 0; }
li::marker { color: var(--red); }
strong { color: #fff; }

/* Red slanted button: RACE. */
.btn {
  display: inline-block; text-decoration: none; color: #fff;
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.1em; font-size: 16px;
  padding: 13px 26px;
  background: linear-gradient(180deg, #ff3b2f 0%, var(--red) 50%, var(--red-deep) 100%);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn:hover { color: #fff; filter: brightness(1.1); }

/* Landing. */
.hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding-top: 12px; }
.hero img.icon { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 20px 60px rgba(255, 20, 15, 0.18), 0 0 0 1px var(--panel-edge); }
@media (min-width: 680px) { .hero { grid-template-columns: 1.15fr 1fr; } .hero img.icon { justify-self: end; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 8px; }
.fact { background: var(--panel); border: 1px solid var(--panel-edge); padding: 12px 12px; transform: skewX(-8deg); }
.fact > * { transform: skewX(8deg); display: block; }
.fact b { font-size: 22px; font-weight: 900; font-style: italic; color: #fff; }
.fact span { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.soon { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-left: 12px; }

.mail {
  display: inline-block; font-size: clamp(18px, 5vw, 24px); font-weight: 900; word-break: break-all;
}

footer { border-top: 1px solid var(--panel-edge); padding: 18px 0 28px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 420px) {
  .nav { gap: 12px; font-size: 12px; }
  .word b { font-size: 18px; }
  .facts { grid-template-columns: 1fr; }
}
