/* ============================================================
   BRAZOS CYCLES -- Shop Floor design system
   Palette: Blaze / Steel / Asphalt / Chrome / Bone / Black
   Typography: Bebas Neue (display) + Source Sans 3 (body)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blaze: #E8590C;
  --steel: #2A2D2E;
  --asphalt: #1A1C1D;
  --chrome: #9EA3A8;
  --bone: #F0EDE8;
  --black: #111213;
  --white: #FFFFFF;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --container: 1100px;
  --section-pad: 80px;
  --gutter: 32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--bone);
  background: var(--asphalt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }


/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--bone);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--chrome);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blaze); }


/* --- Hero --- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--black);
  padding: calc(var(--section-pad) + 60px) 0 var(--section-pad);
  overflow: hidden;
}

.hero__stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero__stripe::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 400px;
  height: 600px;
  background: var(--blaze);
  opacity: 0.07;
  transform: skewX(-12deg);
}

.hero__stripe::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: 80px;
  width: 200px;
  height: 400px;
  background: var(--blaze);
  opacity: 0.04;
  transform: skewX(-12deg);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blaze);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--chrome);
  max-width: 520px;
}

.hero__rule {
  width: 60px;
  height: 3px;
  background: var(--blaze);
  border: none;
  margin-top: 32px;
}


/* --- Article list sections --- */
.article-section {
  position: relative;
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.article-section--dark { background: var(--asphalt); }
.article-section--darker { background: var(--black); }

.article-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.article-section__meta {
  position: sticky;
  top: 100px;
}

.article-section__num {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: var(--blaze);
  opacity: 0.3;
  margin-bottom: 8px;
}

.article-section__date {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 16px;
}

.article-section__title {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.article-section__title a {
  text-decoration: none;
  color: var(--bone);
  transition: color 0.2s;
}

.article-section__title a:hover { color: var(--blaze); }

.article-section__excerpt {
  font-size: 16px;
  line-height: 1.65;
  color: var(--chrome);
}

.article-section__excerpt a {
  color: var(--blaze);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-section__body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--chrome);
  margin-bottom: 18px;
}

.article-section__body h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin: 36px 0 14px;
}

.article-section__body a {
  color: var(--blaze);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blaze);
  text-decoration: none;
  transition: gap 0.2s;
}

.article-section__cta:hover { gap: 12px; }

.article-section__cta::after { content: '\2192'; }

/* Decorative angle */
.article-section__deco {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  overflow: hidden;
}

.article-section__deco::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -40px;
  width: 160px;
  height: 140%;
  background: var(--blaze);
  opacity: 0.03;
  transform: skewX(-12deg);
}


/* --- Footer --- */
.site-footer {
  background: var(--black);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.footer__right a {
  color: var(--chrome);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__right a:hover { color: var(--blaze); }

.footer__right span { color: rgba(255,255,255,0.25); }


/* --- Article page --- */
.article-accent {
  height: 4px;
  width: 100%;
  background: var(--blaze);
}

.article-header {
  background: var(--asphalt);
  padding: 100px 0 48px;
}

.article-header .container { max-width: 760px; }

.article-header__date {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 16px;
}

.article-header__title {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin-bottom: 16px;
}

.article-header__rule {
  width: 48px;
  height: 3px;
  background: var(--blaze);
  border: none;
}

.article-body {
  background: var(--bone);
  color: var(--steel);
  padding: 56px 0 80px;
}

.article-body .container { max-width: 760px; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--asphalt);
  margin: 48px 0 16px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body a {
  color: var(--blaze);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--asphalt);
}


/* --- Related articles --- */
.related-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.related-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

.related-card--a { background: var(--steel); }
.related-card--b { background: var(--asphalt); }

.related-card__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blaze);
  margin-bottom: 8px;
}

.related-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.related-card__title a {
  text-decoration: none;
  color: var(--bone);
  transition: color 0.2s;
}

.related-card__title a:hover { color: var(--blaze); }


/* --- About page --- */
.about-body {
  background: var(--bone);
  color: var(--steel);
  padding: 0 0 80px;
}

.about-body .container { max-width: 760px; }

.about-body h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--asphalt);
  margin: 48px 0 16px;
}

.about-body p { margin-bottom: 20px; }


/* --- 404 page --- */
.four-oh-four {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bone);
}

.four-oh-four__num {
  font-family: var(--font-display);
  font-size: 120px;
  letter-spacing: 0.1em;
  color: var(--blaze);
  opacity: 0.6;
  margin-bottom: 16px;
}

.four-oh-four__msg {
  font-size: 18px;
  color: var(--chrome);
  margin-bottom: 24px;
}

.four-oh-four__link {
  color: var(--blaze);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.four-oh-four__link:hover { text-decoration: underline; }


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero__title { font-size: 64px; }

  .article-section__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-section__meta {
    position: static;
  }

  .article-section__num { font-size: 48px; }
  .article-section__title { font-size: 36px; }

  :root { --section-pad: 60px; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 48px;
    --gutter: 20px;
  }

  .hero__title { font-size: 48px; }
  .hero__sub { font-size: 16px; }

  .article-section__num { font-size: 36px; }
  .article-section__title { font-size: 30px; }
  .article-section__excerpt { font-size: 15px; }
  .article-section__deco { display: none; }

  .article-header__title { font-size: 38px; }

  .related-articles { grid-template-columns: 1fr; }

  .site-footer .container { flex-direction: column; gap: 16px; text-align: center; }
  .footer__right { flex-direction: column; gap: 8px; }

  .nav-wordmark { font-size: 18px; }
}
