/* ==========================================================================
   Mastersmith.com design system — "forged in fire", readable in daylight.
   Light ground, charcoal text, ember + steel accents. Georgia stack (no CDNs).
   ========================================================================== */
:root {
  /* Scheme C — "Leather & Brass" (chosen by Rob + Dave, 2026-07-07) */
  --paper:   #f6efe3;   /* warm cream ground            */
  --ink:     #2a211a;   /* espresso text                */
  --ink-soft:#5f5347;   /* secondary text               */
  --ember:   #c9541e;   /* forge-orange accent / store CTA */
  --rust:    #7a4a21;   /* saddle brown — headings, primary btn */
  --steel:   #a5772e;   /* brass — YouTube/channel btn  */
  --line:    #e6dac5;   /* hairline dividers            */
  --hdr:     #241a12;   /* header top                   */
  --hdr2:    #33251a;   /* header bottom                */
  --card:    #ffffff;
  --serif:   Georgia, 'Times New Roman', serif;
  --sans:    -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap:    62rem;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1.06rem/1.7 var(--serif);
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
img { max-width: 100%; height: auto; }
a { color: var(--rust); }
a:hover { color: var(--ember); }

/* ---- header / wordmark -------------------------------------------------- */
.site-header {
  background: linear-gradient(180deg, var(--hdr) 0%, var(--hdr2) 100%);
  border-bottom: 3px solid var(--ember);
}
.header-inner { display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; padding-top: .9rem; padding-bottom: .9rem; }
.wordmark { text-decoration: none; display: inline-block; line-height: 1.15; }
.wordmark-main {
  display: block; font-family: var(--serif); font-weight: bold;
  font-size: 2.4rem; letter-spacing: .13em; color: #f3ede4;
}
.wordmark-main em {
  font-style: normal; color: var(--ember);
  text-shadow: 0 0 18px rgba(201, 84, 30, .5);
}
.wordmark-sub {
  display: block; font-family: var(--sans); font-size: .68rem;
  letter-spacing: .22em; text-transform: uppercase; color: #b9ad9d;
}
/* ---- nav ---------------------------------------------------------------- */
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem;
  margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .45rem .7rem; font-family: var(--sans);
  font-size: .86rem; letter-spacing: .04em; text-decoration: none;
  color: #d8cfc2; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; border-bottom-color: var(--ember); }
.nav-toggle { display: none; }

/* ---- typography ---------------------------------------------------------- */
h1 { font-size: 2.1rem; line-height: 1.2; color: var(--rust); margin: 1.6rem 0 .6rem; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 2rem 0 .5rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
h2, h3 { color: var(--ink); }
.lede { font-size: 1.18rem; color: var(--ink-soft); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

/* ---- buttons: same function = same color, everywhere --------------------- */
.btn {
  display: inline-block; padding: .65rem 1.25rem; border-radius: 4px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--rust); color: #fff; }          /* internal actions   */
.btn-primary:hover { background: var(--ember); color: #fff; }
.btn-store   { background: var(--ember); color: #fff; }         /* buy funnel, always */
.btn-store:hover { background: var(--rust); color: #fff; }
.btn-youtube { background: var(--steel); color: #fff; }         /* channel, always    */
.btn-youtube:hover { background: #37404c; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0; }

/* ---- full-bleed hero (breaks out of .wrap) -------------------------------- */
.hero-bleed {
  width: 100vw; margin-left: calc(50% - 50vw);
  position: relative; overflow: hidden;
  border-bottom: 3px solid var(--ember);
}
.hero-bleed .hero-img {
  width: 100%; height: clamp(300px, 44vw, 460px);
  object-fit: cover; display: block; filter: saturate(1.05);
}
.hero-bleed .hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,14,10,.88) 0%, rgba(20,14,10,.55) 55%, rgba(20,14,10,.12) 100%);
}
.hero-bleed .hero-text {
  position: absolute; inset: 0; max-width: var(--wrap); margin: 0 auto;
  padding: 2rem 1.25rem; display: flex; flex-direction: column; justify-content: center;
}
.hero-bleed h1 {
  color: #f6efe4; font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin: 0 0 .5rem; text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.hero-bleed .lede {
  color: #e3d7c6; max-width: 27rem; margin: 0 0 1rem; font-size: 1.05rem;
}

/* ---- retired/funnel notice ------------------------------------------------ */
.notice {
  background: linear-gradient(90deg, #fdf1e7, #faf7f2);
  border-left: 4px solid var(--ember); border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem; margin: 1.8rem 0; font-family: var(--sans);
  font-size: .97rem;
}
.notice strong { color: var(--rust); }

/* ---- cards ---------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.1rem; padding: 0; margin: 1.4rem 0; list-style: none; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card a { text-decoration: none; }
.card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---- footer ---------------------------------------------------------------- */
.site-footer {
  margin-top: 3.5rem; background: #211c18; color: #c8bfb2;
  font-family: var(--sans); font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem; padding-top: 2.2rem; padding-bottom: 1rem; }
.footer-wordmark { font-family: var(--serif); font-weight: bold; letter-spacing: .12em;
  color: #f3ede4; font-size: 1.05rem; margin-top: 0; }
.footer-wordmark em { font-style: normal; color: var(--ember); }
.footer-head { color: #f3ede4; font-weight: 600; margin-top: 0; }
.site-footer a { color: #e8b48f; }
.footer-legal { border-top: 1px solid #3a322a; padding-top: .8rem; padding-bottom: 1.2rem; }

/* ---- mobile ----------------------------------------------------------------- */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.65rem; }
  .nav-toggle {
    display: block; background: none; border: 1px solid #5b5147; color: #d8cfc2;
    font-family: var(--sans); padding: .4rem .9rem; border-radius: 4px;
  }
  .site-nav ul { display: none; width: 100%; flex-direction: column; }
  .site-nav ul.open { display: flex; }
  .wordmark-main { font-size: 1.9rem; }
}
