/* 443sec - magazine landing */

.hero-lede {
  padding: 3.2rem 0 2rem;
}
.hero-lede h1 {
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  margin: 0.9rem 0 0.8rem; max-width: 22ch;
}
.hero-lede h1 span {
  background: linear-gradient(135deg, var(--orange), var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede p { color: var(--text-2); font-size: 1.02rem; max-width: 46rem; }

/* ---------- featured ---------- */
.featured {
  display: block; position: relative; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--border);
  min-height: 30rem; isolation: isolate;
  transition: border-color 0.3s, transform 0.3s;
}
.featured:hover { border-color: rgba(251, 146, 60, 0.4); transform: translateY(-3px); }

.featured video, .featured img.fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.featured::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 15, 8, 0.97) 8%, rgba(20, 15, 8, 0.72) 42%, rgba(20, 15, 8, 0.35) 75%),
    linear-gradient(to right, rgba(20, 15, 8, 0.85), rgba(20, 15, 8, 0.15) 62%);
}
.featured-body {
  position: relative; padding: 2.4rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 30rem; max-width: 46rem;
}
.featured h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.13;
  margin: 0.85rem 0 0.7rem;
}
.featured .dek { color: var(--text-2); font-size: 1rem; max-width: 40rem; margin-bottom: 1.1rem; }
.featured .cta {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  font-weight: 600; font-size: 0.9rem; color: var(--orange);
}
.featured .cta svg { transition: transform 0.25s; }
.featured:hover .cta svg { transform: translateX(4px); }

@media (max-width: 640px) {
  .featured, .featured-body { min-height: 26rem; }
  .featured-body { padding: 1.6rem; }
}

/* ---------- section head ---------- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 3.6rem 0 1.4rem; flex-wrap: wrap;
}
.sec-head h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.sec-head .count { font-size: 0.78rem; color: var(--text-3); }

/* ---------- card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(17rem, 30vw, 21rem), 1fr)); gap: 1.1rem; }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  overflow: hidden;
}

/* ---------- card media ---------- */
.card-media {
  position: relative; margin: -1.5rem -1.5rem 0.3rem;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg-soft);
}
.card-media img, .card-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.card-media video { opacity: 0; transition: opacity 0.35s; }
.card:hover .card-media video { opacity: 1; }
.card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 18, 10, 0.72), rgba(24, 18, 10, 0.08) 55%);
}
.card-media img { transition: transform 0.5s; }
.card:hover .card-media img { transform: scale(1.04); }

/* generated tile for pieces with no photography */
.card-media.tile { display: grid; place-items: center; }
.card-media.tile::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 0);
  background-size: 14px 14px; opacity: 0.5;
}
.card-media.tile svg { position: relative; z-index: 1; opacity: 0.5; }
.tile-a { background: linear-gradient(135deg, #3a2412, #6b3410); }
.tile-b { background: linear-gradient(135deg, #34211a, #5e2b2f); }
.tile-c { background: linear-gradient(135deg, #2c2413, #5c4415); }

/* whole-card link without nesting <a> inside <a> */
.card a.stretch { color: inherit; }
.card a.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.card .langs { position: relative; z-index: 2; }
/* whole-card link without nesting <a> inside <a> */
.card a.stretch { color: inherit; }
.card a.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.card .langs { position: relative; z-index: 2; }
.card:hover { background: var(--card-hover); border-color: var(--border-strong); transform: translateY(-3px); }
.card.is-soon { opacity: 0.62; }
.card.is-soon:hover { transform: none; }

.card h4 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.card p { font-size: 0.88rem; color: var(--text-2); flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.card .fmt { font-size: 0.72rem; color: var(--text-3); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

.card .langs { display: flex; gap: 0.4rem; }
.card .langs a {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem; border-radius: 6px;
  border: 1px solid var(--border-strong); color: var(--text-2); transition: all 0.2s;
}
.card .langs a:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- about strip ---------- */
.strip {
  margin-top: 3.6rem; padding: 2rem;
  border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.07), rgba(251, 113, 133, 0.04));
}
.strip h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.55rem; letter-spacing: -0.015em; }
.strip p { color: var(--text-2); font-size: 0.92rem; max-width: 52rem; }
.strip a.link { color: var(--orange); font-weight: 600; }
.strip a.link:hover { text-decoration: underline; }
