/* =============================================================
   THE IRONBEES — design system
   Rebuilt faithfully from the live theme's computed styles.
   Single hand-written stylesheet. No framework, no WordPress.
   ============================================================= */

/* ---- Design tokens ---------------------------------------- */
:root {
  /* Palette (DARK — default) */
  --bg:          #171717;
  --surface:     #2b2b2b;   /* search field, social/icon squares, cards */
  --surface-2:   #202020;   /* subtle raised card (TL;DR) */
  --text:        #f9f9f9;   /* body copy — bright on dark */
  --text-soft:   #f9f9f9;   /* prominent secondary text on dark */
  --text-meta:   #d1d1d1;   /* post meta — kept grey, not brightened */
  --text-strong: #ffffff;   /* headings */
  --accent:      #C75000;   /* IRONBEES orange — backgrounds/fills (white text sits on it) */
  --accent-text: #E56A15;   /* orange AS text on the dark page bg — brighter so small text passes AA */
  --accent-ink:  #ffffff;   /* text on accent */
  --num:         rgba(199, 80, 0, 0.12); /* giant feature numerals */
  --hairline:    rgba(255, 255, 255, 0.14);
  --hr:          rgba(255, 255, 255, 0.22);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 40px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:          #faf7f2;   /* barely-warm off-white, softer than pure white */
  --surface:     #efebe4;
  --surface-2:   #f5f1ea;
  --text:        #575757;
  --text-soft:   #333333;
  --text-meta:   #8a8a8a;   /* post meta — grey */
  --text-strong: #171717;
  --accent:      #C75000;
  --accent-text: #B34700;   /* orange AS text on the light page bg — darker so small text passes AA */
  --accent-ink:  #ffffff;
  --num:         rgba(199, 80, 0, 0.14);
  --hairline:    rgba(0, 0, 0, 0.12);
  --hr:          rgba(0, 0, 0, 0.18);
  color-scheme: light;
}

/* Always-dark islands (hero, CTA, single-post header) keep the bright text-orange in BOTH themes */
.hero, .cta, .post-band { --accent-text: #E56A15; }

/* ---- Reset / base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { transition: background-color .18s ease, color .18s ease; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--text-strong); font-weight: 600; margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Layout ----------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: none; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
  line-height: 1;
  border-radius: 9999px;
  padding: 14px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: #A94400; border-color: #A94400; }

.btn--outline {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 28px;
}
.btn--outline:hover { background: var(--accent); color: var(--accent-ink); }

/* ---- Header ----------------------------------------------- */
/* Solid, opaque bar overlaying the very top of the hero: the photo runs to
   the top edge behind it, but the bar itself stays a distinct band that
   flips black<->light with the theme toggle (so you can see it working). */
.site-header {
  position: relative; z-index: 10;
  background: var(--bg);           /* solid bar ABOVE the hero, not over it */
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
}
.brand { display: block; line-height: 1; }
.brand a { color: var(--text-strong); text-decoration: none; display: inline-block; }
.brand__name {
  display: block;               /* logo on its own line */
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text-strong);
}
.brand__name b { color: inherit; font-weight: 700; } /* monochrome logo, no orange */
.brand__tagline {
  display: block;               /* tagline UNDER the logo */
  margin-top: 5px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-soft);
}
.nav { display: flex; align-items: center; gap: 18px; }
.nav__link {
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--text-strong); text-decoration: none;
}
.nav__link:hover { color: var(--accent-text); text-decoration: none; }
@media (max-width: 560px) { .hide-sm { display: none !important; } }

/* Theme toggle */
.theme-toggle {
  --sz: 42px;
  width: var(--sz); height: var(--sz);
  display: inline-grid; place-items: center;
  background: var(--surface);
  color: var(--text-strong);
  border: 0; border-radius: 9999px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.theme-toggle:hover { color: var(--accent-text); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---- Hero ------------------------------------------------- */
/* Photo band = fixed "dark island": stays dark in BOTH themes so the
   toggle can flip everything else without wrecking text over the image. */
.hero {
  background-color: #171717;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.88) 0%, rgba(23, 23, 23, 0.72) 100%),
    var(--band-img, none);
  background-size: cover;
  background-position: center 22%;   /* keep the runner's head in frame */
}
.hero__inner { padding-block: 170px; }
.hero__eyebrow {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent-text);
}
.hero__title {
  margin: 0 0 20px;
  font-size: 64px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff; /* pinned: hero is a dark island over the photo */
}
.hero__subhead {
  margin: 0;
  max-width: 560px;
  font-size: 20.8px;
  line-height: 1.5;
  font-style: italic;
  color: #f9f9f9; /* pinned bright over the photo */
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 50px; }

/* ---- Feature trio ----------------------------------------- */
.features { background: var(--bg); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 100px;
  row-gap: 60px;
  padding-block: 100px;
}
.feature { max-width: 420px; }
.feature__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin-bottom: 24px;
  border-radius: 16px;
  color: var(--accent-text);            /* dark mode: orange icon, no tile */
  background: transparent;
  transition: background-color .15s ease, color .15s ease;
}
.feature__icon svg { width: 38px; height: 38px; }
:root[data-theme="light"] .feature__icon {
  background: var(--accent);        /* light mode: brand-orange tile... */
  color: #ffffff;                   /* ...with a white icon */
}
.feature__title { font-size: 33px; line-height: 1.3; margin: 0 0 20px; }
.feature__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text); }

/* ---- Join-today CTA band (photo, fixed dark island) ------- */
.cta {
  background-color: #171717;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.82), rgba(23, 23, 23, 0.82)),
    var(--band-img, none);
  background-size: cover;
  background-position: center;
}
.cta__inner { padding-block: 140px; text-align: center; }
.cta__heading {
  font-size: 33px; line-height: 1.3; font-weight: 600;
  text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px;
}
.cta__body {
  max-width: 640px; margin: 0 auto 24px;
  font-size: 16px; line-height: 1.5; color: #fff; /* pinned over photo */
}
.cta__body a { color: var(--accent-text); }

/* ---- Site footer ------------------------------------------ */
.site-footer { background: var(--bg); border-top: 1px solid var(--hairline); }
.site-footer__inner { padding: 80px var(--gutter) 50px; }

.footer-quote { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.footer-quote h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 0 0 12px;
}
.footer-quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
}
.get-in-touch { display: flex; align-items: center; gap: 12px; }
.get-in-touch__icon {
  width: 49px; height: 49px;
  flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.get-in-touch__icon svg { width: 20px; height: 20px; }
.get-in-touch__text { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.5; }
.get-in-touch__text a { color: var(--accent-text); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 49px; height: 49px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text-strong);
  transition: background-color .15s ease, color .15s ease;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
:root[data-theme="light"] .footer-social a { color: var(--accent-text); } /* orange icons in light mode */
:root[data-theme="light"] .footer-social a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 100px;
}
.footer-bottom__links a { font-size: 13px; font-weight: 500; color: var(--text-strong); text-decoration: underline; text-underline-offset: 2px; }
.footer-colophon { font-size: 14px; line-height: 1.8; color: #9a9a9a; }
:root[data-theme="light"] .footer-colophon { color: #5f5f5f; }
.footer-colophon a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 2px; }
.footer-colophon a:hover { color: var(--accent-text); }
.footer-colophon .heart { color: var(--accent-text); }

/* ---- Blog index ------------------------------------------- */
.page-band { background: var(--bg); }
.page-band__inner { padding-block: 90px 60px; text-align: center; }
.page-band__eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: 6px;
  text-transform: uppercase; color: var(--accent-text); margin: 0 0 18px;
}
.page-band__title {
  font-size: 56px; line-height: 1.1; font-weight: 600;
  text-transform: uppercase; color: var(--text-strong); margin: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  padding-block: 20px 100px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  padding: 30px;
  transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover { border-color: var(--accent); }
.post-card__cat {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px;
}
.post-card__title { font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
.post-card__title a { color: var(--text-strong); }
.post-card__title a:hover { color: var(--accent-text); text-decoration: none; }
.post-card__excerpt { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--text); }
.post-card__meta { margin-top: auto; font-size: 13px; color: var(--text-meta); }

/* ---- Single post ------------------------------------------ */
/* Solid, theme-aware band (inverts black<->white with the toggle). */
.post-band { background: var(--bg); }
.post-band__inner { padding-block: 90px 90px; text-align: center; }
.post-band__cat {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-text); margin: 0 0 20px;
}
.post-band__title {
  font-size: 40px; line-height: 1.4; font-weight: 600;
  text-transform: uppercase; color: var(--text-strong);
  margin: 0 auto; max-width: 900px;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
  padding-bottom: 100px;
  align-items: start;
}

.post-meta {
  font-size: 16px; color: var(--text-meta); margin-bottom: 24px;
}
.post-meta a { color: var(--accent-text); }

/* Article typography */
.article { max-width: 760px; }
.article p { margin: 0 0 24px; font-size: 16px; line-height: 1.5; color: var(--text); }
.article h2 {
  font-size: 34px; line-height: 1.2; font-weight: 600;
  color: var(--text-strong); margin: 44px 0 20px;
}
.article h3 { font-size: 22px; line-height: 1.3; margin: 32px 0 14px; color: var(--text-strong); }
.article a { color: var(--accent-text); }
.article a:hover { text-decoration: underline; }
.article strong { color: var(--text-soft); font-weight: 700; }
.article ul, .article ol { margin: 0 0 24px; padding-left: 22px; }
.article li { margin-bottom: 8px; font-size: 16px; line-height: 1.5; color: var(--text); }
.article hr { border: 0; height: 2px; background: var(--hr); margin: 40px 0; }
.article img { margin: 24px 0; }

/* TL;DR callout (scoped so .article p/ul/li don't override) */
.article .tldr {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  padding: 22px 26px;
  margin: 16px 0 36px;
}
.article .tldr__label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent-text); margin: 0 0 12px;
}
.article .tldr ul { margin: 0; padding-left: 20px; }
.article .tldr li { margin-bottom: 8px; color: var(--text); }
.article .tldr li:last-child { margin-bottom: 0; }

/* FAQ */
.article .faq { margin: 8px 0 32px; }
.article .faq__item { padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.article .faq__item:first-child { border-top: 1px solid var(--hairline); }
.article .faq__q { font-size: 16px; font-weight: 700; color: var(--text-strong); margin: 0 0 8px; line-height: 1.4; }
.article .faq__a { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text); }

/* Post CTA */
.post-cta { margin-top: 40px; padding-top: 4px; }

/* ---- Sidebar ---------------------------------------------- */
.sidebar { position: sticky; top: 30px; display: grid; gap: 40px; }
.widget__title {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-strong); margin: 0 0 16px;
}
.search-form { display: flex; }
.search-form input {
  flex: 1 1 auto; min-width: 0;
  height: 46px; padding: 0 15px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--hairline); border-right: 0;
  font-family: var(--font); font-size: 16px;
}
.search-form input::placeholder { color: var(--text-meta); }
.search-form button {
  width: 56px; height: 46px; flex: none;
  background: var(--accent); color: #fff;
  border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.search-form button svg { width: 18px; height: 18px; }

.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { margin-bottom: 12px; line-height: 1.4; }
.widget-list a { color: var(--text-soft); }
.widget-list a:hover { color: var(--accent-text); text-decoration: none; }

.sidebar-cta {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  padding: 28px;
}
.sidebar-cta h3 { font-size: 20px; text-transform: uppercase; margin: 0 0 10px; }
.sidebar-cta p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--text); }
.sidebar-cta .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ---- Prelaunch banner ------------------------------------- */
.prelaunch {
  background: var(--accent); color: #fff;
  text-align: center; font-size: 13px; font-weight: 600;
  letter-spacing: .5px; padding: 8px 16px;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner { padding-block: 130px; }
  .hero__title { font-size: 48px; }
  .features__grid { column-gap: 60px; }
  .post-layout { grid-template-columns: 1fr; gap: 50px; }
  .sidebar { position: static; grid-template-columns: 1fr; }
  .post-band__title { font-size: 32px; }
  .page-band__title { font-size: 42px; }
}

@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .hero__inner { padding-block: 90px; }
  .hero__title { font-size: 38px; }
  .hero__subhead { font-size: 18px; }
  .features__grid { grid-template-columns: 1fr; padding-block: 70px; row-gap: 50px; }
  .feature { max-width: none; }
  .footer-quote h2 { font-size: 28px; }
  .footer-bottom { margin-top: 60px; }
  .brand__tagline { display: block; }
  .article h2 { font-size: 27px; }
  .post-band__inner { padding-block: 64px 70px; }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .brand__name { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
