@import url("tokens.css");
@import url("components.css");

/* Site-specific styles. Shared palette/components live in web/design/. */

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--brand-black); /* matches the logo's baked-in background */
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
/* Tri-color brand bar — the logo's red/gold/blue, echoing its letter colors */
.tricolor {
  height: 3px;
  background: linear-gradient(90deg,
    var(--brand-red) 0%, var(--brand-red) 33%,
    var(--brand-gold) 33%, var(--brand-gold) 66%,
    var(--brand-blue) 66%, var(--brand-blue) 100%);
}
nav a { margin-left: 22px; color: var(--muted); }
nav a:hover { color: var(--ink); }

.hero { padding: 88px 0 64px; }
.hero .kicker { color: var(--brand-gold); }
h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 18px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.lede strong { color: var(--ink); }
.cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

section.wrap { padding-top: 40px; padding-bottom: 40px; }
h2 { font-size: 1.5rem; margin: 0 0 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }

.spec-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 700px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-grid li {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.spec-grid strong { color: var(--accent); }
/* Cycle the logo's red/gold/blue through the spec highlights,
   echoing the alternating letter colors of the wordmark */
.spec-grid li:nth-child(3n+1) strong { color: var(--brand-red); }
.spec-grid li:nth-child(3n+2) strong { color: var(--brand-gold); }
.spec-grid li:nth-child(3n) strong { color: var(--brand-blue); }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-list .date { color: var(--muted); font-size: 0.9rem; margin-left: 12px; }

.post h1 { margin-top: 6px; }
.post p, .post li { max-width: 680px; }

.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem;
}
