/* Shared stylesheet for every page on mcglaflinlabs.com.
   Palette and type deliberately match Bearings' own hosted pages (odyssey repo,
   backend/app/services/waitlist.py and legal.py) so the company site and the
   product's web surfaces read as one company. No CDN, no webfonts, no build
   step -- these pages get opened from in-app browsers (TikTok, Instagram) and
   by App Store / Apple Developer reviewers, none of which can be relied on to
   fetch a third-party font. */

:root {
  color-scheme: dark;
  --bg-top: #232840;
  --bg-mid: #12141c;
  --bg-bottom: #0b0c12;
  --ink: #e9e4d8;
  --ink-heading: #f1e6c8;
  --ink-body: #cfc9bc;
  --ink-muted: #9a9488;
  --ink-faint: #6b6a63;
  --accent: #d9a544;
  --surface: #191c28;
  --border: #35394d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% -10%, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); }

/* ---- Site chrome ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--ink-heading);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.88rem;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--accent); }

main {
  flex: 1;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

/* Long-form reading pages (about, legal) get a narrower measure than the
   homepage's card grid, which wants the full width. */
main.prose { max-width: 720px; }

.site-footer {
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.footer-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
}

.footer-inner p { margin: 0 0 4px; }
.footer-inner a { color: var(--ink-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

.footer-entity { font-style: normal; }
.footer-entity strong { color: var(--ink-muted); font-weight: 600; }

.footer-links { display: flex; flex-direction: column; gap: 6px; }

/* ---- Typography ---- */

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink-heading);
  text-wrap: balance;
}

h2 {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 40px 0 12px;
}

h3 {
  font-size: 1rem;
  color: var(--ink-heading);
  margin: 28px 0 8px;
}

p, li {
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--ink-body);
  margin: 0 0 16px;
}

ul { margin: 0 0 16px; padding-left: 1.3em; }
li { margin-bottom: 8px; }

.lede {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 28px;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.meta { font-size: 0.85rem; color: var(--ink-muted); margin: 0 0 36px; }

/* ---- Cards ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

.card {
  display: block;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

a.card:hover,
a.card:focus-visible { border-color: var(--accent); }
a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-name { font-size: 1.12rem; font-weight: 600; color: var(--ink-heading); }

.card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.card p { margin: 0; font-size: 0.92rem; color: var(--ink-body); }

/* ---- Feature list ---- */

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px 32px;
}

.features li { margin: 0; }
.features strong { display: block; color: var(--ink-heading); margin-bottom: 4px; }

/* ---- Contact ---- */

.contact-block {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 24px 26px;
  font-style: normal;
  margin: 0 0 28px;
}

.contact-block dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.contact-block dd {
  margin: 0 0 20px;
  font-size: 0.97rem;
  color: var(--ink-body);
  line-height: 1.6;
}

.contact-block dd:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg-mid);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn:active { background: #c6953b; }

@media (max-width: 560px) {
  h1 { font-size: 1.8rem; }
  main { padding: 40px 20px 56px; }
  .site-header { padding: 22px 20px 0; }
}
