/* Full-bleed editorial hero and publication masthead. */
.home .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 12, 10, .78) 0%, rgba(8, 12, 10, .45) 72%, transparent 100%);
  border: 0;
  box-shadow: none;
}

.home .masthead {
  height: 86px;
}

.home .masthead .brand {
  color: #fff;
  font-size: 1.85rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}

.home .brand-mark {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .65);
}

.home .nav-shell {
  width: min(calc(100% - 48px), 1200px);
  height: 54px;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.home .primary-nav {
  gap: 39px;
}

.home .nav-item,
.home .nav-link {
  color: #fff;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

.home .nav-item > a::after,
.home .nav-link::after {
  height: 2px;
  background: #f36f21;
}

.home .dropdown-toggle {
  color: #fff;
}

.home .dropdown-panel {
  top: 53px;
  color: #171717;
  text-shadow: none;
}

.mast-search-form {
  justify-self: start;
  width: 220px;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #222;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(36, 36, 36, .25);
  border-radius: 2px;
  backdrop-filter: blur(9px);
  transition: width .2s ease, background .2s ease, border-color .2s ease;
}

.home .mast-search-form {
  color: #fff;
  background: rgba(0, 0, 0, .2);
  border-color: rgba(255, 255, 255, .52);
}

.mast-search-form:focus-within {
  width: 255px;
  background: #fff;
  color: #171717;
  border-color: #f36f21;
}

.mast-search-form svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mast-search-form input {
  width: 100%;
  min-width: 0;
  padding: 0 9px;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.mast-search-form input::placeholder {
  color: currentColor;
  opacity: .86;
}

.mast-search-form button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}

.home .hero.hero-overlay {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 175px 28px 90px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(8, 12, 10, .46), rgba(8, 12, 10, .58)),
    url('/images/site/home-hero.webp');
  background-position: center center;
  background-size: cover;
  border: 0;
}

.home .hero.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 48%, transparent 0%, rgba(5, 8, 7, .08) 48%, rgba(5, 8, 7, .3) 100%);
}

.hero-overlay-content {
  width: min(100%, 1000px);
  margin: 0 auto;
  transform: translateY(22px);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f36f21;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.home .hero.hero-overlay h1 {
  max-width: none;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3.9rem, 6.1vw, 6.65rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.038em;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .58);
}

.home .hero.hero-overlay h1 em {
  color: #fff;
  font-style: normal;
  font-weight: 600;
}

.home .hero.hero-overlay p {
  max-width: 720px;
  margin: 30px auto 0;
  color: rgba(255, 255, 255, .94);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
}

.home .featured-heading {
  text-align: left;
}

.home .featured-heading h2 {
  margin-top: 0;
}

.home .explore-section {
  padding: 0 0 86px;
  background: #ededed;
  border-top: 0;
  border-bottom: 1px solid #d6d6d6;
}

.explore-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
}

.explore-column > h2 {
  margin: 0 0 22px;
  padding: 15px 18px 16px;
  background: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -.025em;
}

.explore-column > h2 a:hover {
  color: #d94f0b;
}

.explore-column .article-card {
  margin-bottom: 38px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
}

.explore-column .card-thumb {
  height: 190px;
}

.explore-column .thumb-label,
.explore-column .card-copy p,
.explore-column .card-copy .text-link {
  display: none;
}

.explore-column .card-copy {
  min-height: 142px;
  justify-content: center;
  padding: 26px 25px 29px;
}

.explore-column .card-copy h3 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.feature-module {
  margin-top: 56px;
  padding-top: 1px;
  border-top: 1px solid #c8c8c8;
}

.feature-module > h2 {
  margin: 32px 0 22px;
  padding: 20px 24px 21px;
  background: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -.025em;
}

.feature-module > h2 a { color: #f36f21; }
.feature-module > h2 a:hover { color: #d94f0b; }

.feature-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
}

.feature-module-grid .article-card {
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
}

.feature-module-grid .card-thumb { height: 190px; }

.feature-module-grid .thumb-label,
.feature-module-grid .card-copy p,
.feature-module-grid .card-copy .text-link { display: none; }

.feature-module-grid .card-copy {
  min-height: 150px;
  justify-content: center;
  padding: 27px 25px 30px;
}

.feature-module-grid .card-copy h3 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.home-feature-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
  margin-top: 72px;
}

.home-feature-card {
  --home-feature-image: url('/images/categories/tool-accessories.webp');
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  padding: 34px;
  color: #fff;
  text-align: center;
}

.home-feature-accessories {
  --home-feature-image: url('/images/categories/tool-accessories.webp');
}

.home-feature-basics {
  --home-feature-image: url('/images/categories/tool-basics.webp');
}

.home-feature-card::before,
.home-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

.home-feature-card::before {
  z-index: -2;
  background-image: var(--home-feature-image);
  background-position: center;
  background-size: cover;
  transition: transform .4s ease;
}

.home-feature-card::after {
  z-index: -1;
  background: rgba(6, 8, 7, .46);
  transition: background .3s ease;
}

.home-feature-card:hover::before,
.home-feature-card:focus-visible::before,
.home-feature-card:active::before {
  transform: scale(1.055);
}

.home-feature-card:hover::after,
.home-feature-card:focus-visible::after {
  background: rgba(6, 8, 7, .36);
}

.home-feature-card strong {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

@media (max-width: 1100px) {
  .home .primary-nav { gap: 22px; }
  .mast-search-form { width: 190px; }
  .mast-search-form:focus-within { width: 220px; }
}

@media (max-width: 900px) {
  .home .site-header {
    height: 70px;
    background: rgba(8, 12, 10, .78);
    backdrop-filter: blur(10px);
  }

  .home .masthead { height: 70px; }
  .mast-search-form { display: none; }
  .home .masthead .brand { font-size: 1.45rem; }
  .home .menu-toggle { color: #fff; }
  .home .menu-toggle i { background: #fff; }
  .home .primary-nav {
    top: 70px;
    color: #222;
    background: #fff;
  }
  .home .nav-item,
  .home .nav-link,
  .home .dropdown-toggle { color: #222; text-shadow: none; }
  .home .hero.hero-overlay {
    min-height: 680px;
    padding-top: 125px;
    background-position: 48% center;
  }
  .explore-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-column:last-child { grid-column: 1 / -1; }
  .feature-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-module-grid .article-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .home .hero.hero-overlay {
    min-height: 610px;
    padding: 105px 20px 58px;
  }
  .hero-overlay-content { transform: none; }
  .hero-kicker { font-size: .61rem; letter-spacing: .15em; }
  .home .hero.hero-overlay h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .home .hero.hero-overlay p { margin-top: 24px; font-size: 1rem; }
  .home .explore-section { padding-bottom: 58px; }
  .explore-columns { grid-template-columns: 1fr; gap: 12px; }
  .explore-column:last-child { grid-column: auto; }
  .explore-column > h2 { margin-top: 18px; }
  .explore-column .article-card { margin-bottom: 20px; }
  .feature-module { margin-top: 42px; }
  .feature-module > h2 { margin-top: 24px; }
  .feature-module-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-module-grid .article-card:last-child { grid-column: auto; }
  .home-feature-links { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
  .home-feature-card { min-height: 230px; }
}

/* Reference-aligned masthead, typography, menu, and guide controls. */
.home h1,
.home h2,
.home h3,
.home .card-copy h3,
.home .latest-list strong {
  font-family: "Lora", Georgia, serif;
}

.home .brand,
.home .nav-item,
.home .nav-link,
.utility-search,
.utility-menu-toggle,
.utility-menu-close,
.module-more {
  font-family: "Roboto Slab", Georgia, serif;
}

.utility-search {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.utility-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.home .utility-search { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.utility-search:hover { color: #d94f0b; }

.mast-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

.utility-menu-toggle {
  position: relative;
  z-index: 151;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.utility-menu-toggle i,
.utility-menu-toggle i::before,
.utility-menu-toggle i::after {
  width: 12px;
  height: 1px;
  display: block;
  background: currentColor;
}

.utility-menu-toggle i { position: relative; }
.utility-menu-toggle i::before,
.utility-menu-toggle i::after { content: ""; position: absolute; left: 0; }
.utility-menu-toggle i::before { top: -4px; }
.utility-menu-toggle i::after { top: 4px; }

.utility-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  visibility: hidden;
  opacity: 0;
  color: #fff;
  background: rgba(8, 9, 8, .9);
  backdrop-filter: blur(8px);
  transition: opacity .2s ease, visibility .2s ease;
  pointer-events: none;
}

.utility-menu-overlay.open { visibility: visible; opacity: 1; pointer-events: auto; }
.utility-menu-open { overflow: hidden; }

.utility-menu-inner {
  width: min(calc(100% - 48px), 1200px);
  min-height: 100%;
  margin: 0 auto;
  padding: 0;
}

.utility-menu-close {
  position: fixed;
  top: 32px;
  right: 40px;
  z-index: 2;
  width: 76px;
  height: 68px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  color: #fff;
  background: rgba(0, 0, 0, .82);
  border: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.utility-menu-close:hover,
.utility-menu-close:focus-visible {
  color: #f36f21;
  outline: 1px solid rgba(255, 255, 255, .55);
  outline-offset: -6px;
}

.utility-menu-inner nav {
  width: min(calc(100% - 48px), 680px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 42px;
  margin: 0 auto;
  padding: 120px 0 90px;
}

.utility-menu-inner nav a {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2.2rem, 3.2vw, 3.35rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.utility-menu-inner nav a:hover { color: #f36f21; }

.home .hero.hero-overlay {
  min-height: 880px;
  padding-top: 190px;
}

.home .hero.hero-overlay h1 {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(4rem, 6.2vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
}

.home .hero.hero-overlay h1 em { font-weight: 500; }
.home .hero.hero-overlay p { font-family: "Lora", Georgia, serif; }

.home .nav-item,
.home .nav-link {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: .73rem;
  letter-spacing: .12em;
}

.category-heading {
  padding: 64px 0 28px;
  text-align: left;
}

.category-heading h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 2.35rem;
  font-weight: 500;
  letter-spacing: -.035em;
}

.explore-column { display: flex; flex-direction: column; }
.explore-column .article-card { flex: 0 0 auto; }

.module-more-row {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.module-more {
  min-width: 210px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid #999;
  color: #4e413a;
  background: transparent;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.module-more:hover {
  color: #fff;
  background: #29231f;
  border-color: #29231f;
}

.explore-column > .module-more {
  align-self: center;
  margin: auto 0 14px;
}

.feature-module {
  margin-top: 70px;
  padding-top: 0;
  border-top: 0;
}

.home .explore-section { border-bottom: 0; }
.home .topic-rule,
.home .latest-section { border-top: 0; }

@media (min-width: 901px) {
  .home .masthead .brand,
  .inner .masthead .brand {
    font-size: 2.05rem;
  }

  .home .brand-mark,
  .inner .brand-mark {
    width: 38px;
    height: 38px;
  }

  .utility-search,
  .utility-menu-toggle {
    font-size: .82rem;
    letter-spacing: .14em;
  }

  .utility-search svg {
    width: 18px;
    height: 18px;
  }

  .home .nav-item,
  .home .nav-link,
  .inner .nav-item,
  .inner .nav-link {
    font-size: .8rem;
    letter-spacing: .115em;
  }
}

@media (max-width: 900px) {
  .utility-search,
  .utility-menu-toggle { display: none; }
  .home .hero.hero-overlay { min-height: 760px; padding-top: 135px; }
  .category-heading { padding-top: 48px; }
}

@media (max-width: 620px) {
  .utility-menu-inner { width: 100%; }
  .utility-menu-close { top: 18px; right: 18px; width: 58px; height: 54px; }
  .utility-menu-inner nav { width: calc(100% - 44px); padding: 95px 0 65px; }
  .home .hero.hero-overlay { min-height: 680px; padding-top: 110px; }
  .category-heading { padding: 42px 0 18px; }
  .category-heading h2 { font-size: 2rem; }
  .module-more { width: 100%; min-width: 0; }
}
