/* Homepage only: the approved editorial treatment, built from shared SAT tokens. */
.home-page {
  background: var(--off-white);
}

.home-page .site-header {
  background: rgba(249, 248, 246, 0.96);
}

/* The homepage uses the same compact text wordmark treatment as the venue
   template, avoiding the transparent inset carried by the legacy mobile PNG. */
.home-page .nav-logo img {
  display: none;
}

.home-page .nav-logo {
  flex: 0 0 auto;
  gap: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.075em;
}

.home-page .nav-logo::before {
  color: var(--ink);
  content: "Snag";
}

.home-page .nav-logo::after {
  color: var(--teal);
  content: "ATime";
}

.home-main {
  overflow: hidden;
}

.home-main section {
  padding: 0;
}

.home-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding-inline: 40px;
}

.home-kicker {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-kicker > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: var(--r-full);
  background: var(--teal);
  vertical-align: 1px;
}

.home-main h1,
.home-main h2,
.home-main h3 {
  color: var(--ink);
  font-family: var(--display);
}

.home-hero {
  border-bottom: 1px solid var(--rule);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(390px, 0.87fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: stretch;
  padding-block: clamp(50px, 6vw, 80px) 54px;
}

.home-hero-copy {
  align-self: center;
  min-width: 0;
}

.home-hero h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(3.1rem, 6.35vw, 5.35rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.home-hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.home-lede {
  max-width: 620px;
  margin: 24px 0 28px;
  color: var(--ink-muted);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.75;
}

.home-search {
  display: flex;
  max-width: 650px;
  padding: 7px;
  border: 1px solid rgba(13, 110, 110, 0.35);
  border-radius: var(--r-sm);
  background: var(--paper);
  box-shadow: 0 15px 32px rgba(26, 31, 46, 0.07);
}

.home-search-field {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 5px 10px;
}

.home-search-field > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-search-input-row {
  display: flex;
  gap: 9px;
  align-items: center;
}

.home-search-input-row svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.home-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.98rem/1.65 var(--body);
}

.home-search input::placeholder {
  color: #7a847f;
}

.home-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.1), 0 15px 32px rgba(26, 31, 46, 0.07);
}

.home-search button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 18px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-search button:hover {
  background: var(--teal-light);
}

.home-activity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-activity-links a {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.home-activity-links a:hover,
.home-activity-links a:focus-visible,
.home-activity-links a.is-active {
  border-color: rgba(13, 110, 110, 0.22);
  background: var(--teal-tint);
  color: var(--teal-dark);
}

.home-media {
  min-width: 0;
}

.home-media-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(150px, 0.7fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 445px;
}

.home-media-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #d9dedb;
}

.home-media-primary {
  grid-row: 1 / 3;
  border-radius: 7px 0 0 7px;
}

.home-media-tile:nth-child(2) {
  border-radius: 0 7px 0 0;
}

.home-media-tile:nth-child(3) {
  border-radius: 0 0 7px 0;
}

.home-media-tile::after {
  position: absolute;
  z-index: 1;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(12, 22, 39, 0.7));
  content: "";
  pointer-events: none;
}

.home-media-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-media-tile figcaption {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 16px;
  left: 17px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  color: #fff;
  font: 600 0.68rem/1.35 var(--display);
}

.home-media-tile figcaption strong {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.home-media-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  line-height: 1.45;
}

.home-media-meta strong {
  color: var(--teal-dark);
}

.home-browse {
  border-bottom: 1px solid var(--rule);
}

.home-browse .home-shell {
  padding-block: 54px 62px;
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 26px;
}

.home-section-heading h2,
.home-states h2,
.home-steps h2,
.home-operator h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.home-section-heading .home-kicker,
.home-states .home-kicker,
.home-steps .home-kicker,
.home-operator .home-kicker {
  margin-bottom: 10px;
}

.home-section-heading > a {
  padding-block: 10px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-section-heading > a span {
  margin-left: 10px;
}

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

.home-category {
  color: var(--ink);
}

.home-category-art {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
  border-radius: 5px;
  background: #d9dedb;
}

.home-category-art::after {
  position: absolute;
  z-index: 1;
  inset: 36% 0 0;
  background: linear-gradient(transparent, rgba(12, 22, 39, 0.64));
  content: "";
  pointer-events: none;
}

.home-category-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.home-art-label {
  position: relative;
  z-index: 2;
  display: block;
  padding: 17px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-round-arrow {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 13px;
  color: #fff;
  font-size: 1.35rem;
}

.home-category-copy {
  display: block;
  padding-top: 17px;
}

.home-category-copy strong {
  display: block;
  color: var(--ink);
  font: 800 1.1rem/1.25 var(--display);
  letter-spacing: -0.025em;
}

.home-category-copy small {
  display: block;
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.home-category:hover .home-category-copy strong {
  color: var(--teal-dark);
}

.home-category:hover .home-category-art img {
  transform: scale(1.025);
}

.home-states {
  background: var(--paper);
}

.home-states-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: start;
  padding-block: 52px;
}

.home-states p:not(.home-kicker) {
  max-width: 320px;
  margin: 15px 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.home-state-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.home-state-links a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.79rem;
  font-weight: 600;
}

.home-state-links a::after {
  color: var(--teal);
  content: "↗";
}

.home-state-links a:hover {
  color: var(--teal-dark);
}

.home-steps {
  border-block: 1px solid var(--rule);
}

.home-steps-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 120px);
  padding-block: 58px;
}

.home-steps ol {
  display: grid;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-steps li {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 17px;
}

.home-steps li > span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.9;
}

.home-steps h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-steps li p {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.home-operator .home-shell {
  padding-block: 42px;
}

.home-operator-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 46px;
  padding: 42px;
  border-radius: 6px;
  background: #202b25;
  color: #f2f5eb;
}

.home-operator .home-kicker {
  color: #b1ccb4;
}

.home-operator h2 {
  color: #f2f5eb;
}

.home-operator p:not(.home-kicker) {
  max-width: 600px;
  margin: 17px 0 0;
  color: #bac8bd;
  font-size: 0.84rem;
  line-height: 1.7;
}

.home-operator-actions {
  flex: 0 1 420px;
}

.home-operator-primary {
  display: flex;
  min-height: 50px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 17px;
  border-radius: 4px;
  background: #dce9d1;
  color: #203827;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-operator-primary:hover {
  background: #edf3e7;
  color: #203827;
}

.home-operator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 15px;
}

.home-operator-links a {
  color: #c7d4c9;
  font-size: 0.7rem;
  text-decoration: underline;
  text-decoration-color: rgba(199, 212, 201, 0.45);
  text-underline-offset: 3px;
}

.home-operator-links a:hover {
  color: var(--paper);
}

@media (max-width: 920px) {
  .home-shell {
    padding-inline: 28px;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 28px;
  }

  .home-media-mosaic {
    min-height: 390px;
  }

  .home-category-grid {
    gap: 15px;
  }

  .home-category-art {
    height: 160px;
  }

  .home-operator-panel {
    align-items: flex-start;
    padding: 34px;
  }
}

@media (max-width: 700px) {
  .home-shell {
    padding-inline: 20px;
  }

  .home-hero-grid {
    display: block;
    padding-block: 36px 34px;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
    line-height: 1;
  }

  .home-lede {
    margin-block: 20px 23px;
    font-size: 0.92rem;
  }

  .home-media {
    margin-top: 30px;
  }

  .home-media-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 245px 132px;
    min-height: 0;
  }

  .home-media-primary {
    grid-row: auto;
    grid-column: 1 / -1;
    border-radius: 7px 7px 0 0;
  }

  .home-media-tile:nth-child(2) {
    border-radius: 0 0 0 7px;
  }

  .home-media-tile:nth-child(3) {
    border-radius: 0 0 7px 0;
  }

  .home-media-tile figcaption {
    right: 12px;
    bottom: 11px;
    left: 12px;
  }

  .home-media-tile figcaption strong {
    font-size: 0.9rem;
  }

  .home-media-meta {
    display: block;
    line-height: 1.75;
  }

  .home-search {
    display: block;
    padding: 8px;
  }

  .home-search-field {
    padding: 5px 5px 13px;
  }

  .home-search input {
    font-size: 1rem;
  }

  .home-search button {
    width: 100%;
    min-height: 48px;
  }

  .home-activity-links a {
    min-height: 44px;
    padding: 11px 10px;
    font-size: 0.7rem;
  }

  .home-browse .home-shell {
    padding-block: 34px 38px;
  }

  .home-section-heading {
    display: block;
    margin-bottom: 22px;
  }

  .home-section-heading > a {
    display: inline-block;
    margin-top: 8px;
  }

  .home-category-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .home-category {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 17px;
    align-items: center;
  }

  .home-category-art {
    height: 106px;
  }

  .home-category-copy {
    padding-top: 0;
  }

  .home-art-label {
    padding: 11px;
    font-size: 0.52rem;
  }

  .home-round-arrow {
    right: 9px;
    bottom: 8px;
    font-size: 1rem;
  }

  .home-states-grid,
  .home-steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 38px;
  }

  .home-state-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-state-links a {
    padding-right: 10px;
    font-size: 0.74rem;
  }

  .home-steps h2 br {
    display: none;
  }

  .home-operator .home-shell {
    padding-block: 28px;
  }

  .home-operator-panel {
    display: block;
    padding: 27px 23px;
  }

  .home-operator-actions {
    margin-top: 24px;
  }
}

@media (max-width: 420px) {
  .home-page .nav {
    gap: 12px;
    padding: 12px 16px;
  }

  .home-page .nav-logo {
    font-size: 1.32rem;
  }

  .home-page .nav-links {
    gap: 12px;
  }

  .home-page .nav-links li:nth-child(2) {
    display: none;
  }

  .home-page .nav-links a {
    font-size: 0.72rem;
  }

  .home-page .nav-cta {
    padding-inline: 11px;
  }
}

@media (max-width: 360px) {
  .home-page .nav-links li:nth-child(3) {
    display: none;
  }

  .home-shell {
    padding-inline: 16px;
  }

  .home-hero-grid {
    padding-top: 29px;
  }

  .home-hero h1 {
    font-size: 2.72rem;
  }

  .home-activity-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-activity-links a:last-child {
    grid-column: 1 / -1;
  }

  .home-state-links {
    grid-template-columns: 1fr;
  }

  .home-category {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 14px;
  }

  .home-category-copy strong {
    font-size: 1rem;
  }

  .home-category-copy small {
    font-size: 0.74rem;
  }

  .home-operator-primary {
    gap: 10px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page * {
    scroll-behavior: auto;
  }
}
