/* ==========================================================================
   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: clamp(1.3rem, 6vw, 2.4rem); letter-spacing: .12em;
  color: #f3ede4; white-space: nowrap;
}
.wordmark-main em {
  font-style: normal; color: var(--ember);
  text-shadow:
    0 0 12px rgba(232, 121, 50, .6),
    0 0 30px rgba(201, 84, 30, .35);
}
.wordmark-sub {
  display: block; font-family: var(--sans);
  font-size: clamp(.55rem, 1.7vw, .68rem);
  letter-spacing: .2em; text-transform: uppercase; color: #b9ad9d;
  white-space: nowrap;
}
/* ---- 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);
}
/* The text block defines the hero height; the image covers whatever that is.
   Nothing can ever clip, no matter how the buttons wrap on small screens. */
.hero-bleed .hero-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  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: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  min-height: clamp(240px, 34vw, 400px);
  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 .hero-tag {
  font-family: var(--sans); font-size: clamp(.8rem, 2.2vw, .95rem);
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #e8b48f; margin: .1rem 0 1rem; text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.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; }

/* ---- update card (fresh additions to archive articles) ---------------------- */
.update-card {
  position: relative; background: var(--card); border: 2px solid var(--ember);
  border-radius: 8px; padding: 1.35rem 1.3rem 1.15rem; margin: 1.8rem 0;
  font-family: var(--sans); font-size: .97rem;
  box-shadow: 0 6px 18px rgba(201, 84, 30, .12);
}
.update-card::before {
  content: attr(data-label);
  position: absolute; top: -.72rem; left: 1rem;
  background: var(--ember); color: #fff; border-radius: 999px;
  padding: .12rem .8rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.update-card h3 { margin: 0 0 .4rem; font-family: var(--serif); color: var(--rust); }
.update-card p { margin: .4rem 0; color: var(--ink-soft); }
.update-card .btn-row { margin: .8rem 0 0; }

/* ---- knife galleries -------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.5rem; margin: 1.8rem 0; }
.knife-card { margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; }
.knife-card img { width: 100%; display: block; }
.knife-card a { display: block; background: #241a12; }
.knife-card figcaption { padding: .9rem 1.05rem 1.05rem; font-family: var(--sans);
  font-size: .9rem; line-height: 1.55; }
.knife-card figcaption strong { display: block; font-family: var(--serif);
  font-size: 1.08rem; color: var(--rust); margin-bottom: .25rem; }
.knife-card figcaption span { color: var(--ink-soft); }
.cat-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin: 2rem 0 1rem;
  font-family: var(--sans); font-size: .9rem; }
.cat-nav a, .cat-nav .current { padding: .4rem .85rem; border-radius: 999px;
  text-decoration: none; border: 1px solid var(--line); }
.cat-nav a { color: var(--rust); background: var(--card); }
.cat-nav a:hover { border-color: var(--ember); color: var(--ember); }
.cat-nav .current { background: var(--rust); color: #fff; border-color: var(--rust); }

/* ---- press feature figures --------------------------------------------------- */
.press-fig { margin: 1.4rem 0; }
.press-fig img { width: 100%; max-width: 34rem; display: block; border-radius: 6px;
  border: 1px solid var(--line); }
.press-fig figcaption { font-family: var(--sans); font-size: .85rem;
  color: var(--ink-soft); margin-top: .45rem; }
blockquote { margin: 1.4rem 0; padding: .5rem 1.4rem; border-left: 4px solid var(--steel);
  background: var(--card); border-radius: 0 6px 6px 0; font-style: italic; }

/* ---- 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; }
.yt-badge { display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: #f3ede4 !important;
  background: #2e261e; border: 1px solid #4a3f33; border-radius: 8px;
  padding: .6rem .9rem; line-height: 1.25; }
.yt-badge:hover { border-color: #FF0000; }
.yt-badge svg { flex-shrink: 0; }
.yt-badge small { color: #b9ad9d; font-size: .78rem; }
.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; }
  .nav-toggle { padding: .35rem .7rem; font-size: .85rem; }
  .header-inner { padding-top: .7rem; padding-bottom: .7rem; }
}
