/* Sauce — the blog. Scoped under .sauce. Reuses the same :root tokens as
   the rest of the site (site.css) so it reads as one system, not a
   bolted-on microsite. */

.sauce { background: var(--chart); }
.sauce .wrap { max-width: 900px; margin: 0 auto; padding: 0 22px; }
.sauce .wrap--wide { max-width: 1180px; }

/* ---------- hero ---------- */
.sauce-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--basemap);
  padding: 96px 0 88px;
}
/* Default hero background is the neutral geo-grid texture -- no bright
   focal point, so it works under a title of any length. A post with its
   own hero photo (like the hologram/handshake image on the first post)
   overrides --hero-img via inline style on .sauce-hero itself; reusing
   a photo with a bright, busy centre as the sitewide default made later
   titles unreadable where they happened to land on the glow. */
.sauce-hero {
  --hero-img: image-set(
    url(/assets/img/mapcheck-geogrid-1800.webp) type("image/webp"),
    url(/assets/img/mapcheck-geogrid-1800.jpg) type("image/jpeg")
  );
}
.sauce-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: 50% 45%;
  animation: sauce-hero-drift 40s ease-in-out infinite alternate;
}
@keyframes sauce-hero-drift {
  from { background-position: 46% 42%; background-size: cover; }
  to   { background-position: 54% 48%; background-size: 108%; }
}
@media (prefers-reduced-motion: reduce) { .sauce-hero::before { animation: none; } }
/* .sauce-hero__in sits inside the top 55-60% of the band where the heading
   lives, so that region needs to read dark regardless of how bright the
   source photo is -- a light background image (like the pale map variant)
   otherwise leaves the white heading and any text baked into the photo
   fighting for the same contrast. */
.sauce-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 20, 22, 0.5) 0%, rgba(12, 20, 22, 0.62) 60%, rgba(12, 20, 22, 0.88) 100%);
}

.sauce-hero__in { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 0 22px; }
.sauce-hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8FD9D2;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sauce-hero__eyebrow::before { content: ""; width: 22px; height: 1.5px; background: #8FD9D2; display: inline-block; }
.sauce-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.06;
  font-size: clamp(34px, 5.6vw, 58px);
  color: #FFFFFF;
  margin: 0 0 22px;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.sauce-hero__meta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #C7D6D4;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- TLDR ---------- */
.sauce-tldr {
  margin: -44px auto 56px;
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0 22px;
}
.sauce-tldr__box {
  background: #fff;
  border: 1.5px solid var(--ink);
  box-shadow: 0 18px 44px rgba(16,22,28,.16);
  padding: 28px 30px;
}
.sauce-tldr__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--beacon);
  font-weight: 700;
  margin: 0 0 10px;
}
.sauce-tldr p { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--ink); }

/* ---------- article body ---------- */
.sauce-article { padding: 8px 0 64px; }
.sauce-article p { font-size: 18px; line-height: 1.72; color: var(--ink); margin: 0 0 24px; }
.sauce-article h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.018em;
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--ink);
  margin: 52px 0 20px;
  line-height: 1.2;
}
.sauce-article strong { color: var(--ink); }
.sauce-article a { color: var(--beacon-lo); text-decoration-thickness: 1.5px; }
.sauce-article__lead {
  font-size: 21px !important;
  line-height: 1.6 !important;
  color: var(--ink-soft) !important;
}

/* ---------- interactive: click to see your leak ---------- */
.sauce-pick { margin: 60px 0; }
.sauce-pick__head { text-align: center; margin: 0 auto 32px; max-width: 640px; }
.sauce-pick__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--beacon);
  font-weight: 700;
  margin: 0 0 10px;
}
.sauce-pick__head h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.sauce-pick__head p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.sauce-pick__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .sauce-pick__grid { grid-template-columns: 1fr; } }
.sauce-pick__card {
  display: block;
  position: relative;
  border: 1.5px solid var(--rule-hard);
  background: #fff;
  padding: 26px 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.sauce-pick__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--beacon-wash);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}
.sauce-pick__card:hover::before,
.sauce-pick__card:focus-visible::before { transform: translateY(0); }
.sauce-pick__card:hover,
.sauce-pick__card:focus-visible {
  border-color: var(--beacon);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16,22,28,.1);
}
.sauce-pick__card > * { position: relative; z-index: 1; }
.sauce-pick__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 10px;
}
.sauce-pick__card h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18.5px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.sauce-pick__card p { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 16px; }
.sauce-pick__go {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--beacon-lo);
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.sauce-cta {
  background: var(--basemap);
  color: #fff;
  padding: 52px 0;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.sauce-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 70% 90% at 12% 20%, rgba(13,110,110,.34) 0%, transparent 62%),
    radial-gradient(ellipse 65% 85% at 88% 82%, rgba(184,74,51,.22) 0%, transparent 62%);
}
.sauce-cta__eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8FD9D2;
  margin: 0 0 12px;
}
.sauce-cta h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 16px;
  max-width: 26ch;
  margin-inline: auto;
}
.sauce-cta p { color: #C7D6D4; font-size: 16px; margin: 0 0 26px; max-width: 52ch; margin-inline: auto; }
.sauce-cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sauce .btn {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 15px 26px;
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid #fff;
  transition: background .15s ease, color .15s ease;
}
.sauce .btn--go { background: var(--beacon); border-color: var(--beacon); color: #fff; }
.sauce .btn--go:hover { background: var(--beacon-lo); border-color: var(--beacon-lo); }
.sauce .btn--ghost { color: #fff; background: none; }
.sauce .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* top CTA strip: same buttons, dark ink border instead of white since it
   sits on the paper background, not the dark band. */
.sauce-cta-top {
  border: 1.5px solid var(--ink);
  background: var(--beacon-wash);
  padding: 22px 26px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.sauce-cta-top p { margin: 0; font-size: 15px; color: var(--ink); max-width: 46ch; }
.sauce-cta-top p b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 3px; }
.sauce-cta-top .btn--go { border-color: var(--beacon); }
.sauce-cta-top .btn--ghost { color: var(--ink); border-color: var(--ink); }
.sauce-cta-top .btn--ghost:hover { background: rgba(16,22,28,.06); }
@media (max-width: 560px) { .sauce-cta-top { padding: 18px 20px; } }

/* ---------- related reads ---------- */
.sauce-related { padding: 60px 0 72px; }
.sauce-related h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin: 0 0 22px;
}
.sauce-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .sauce-related__grid { grid-template-columns: 1fr; } }
.sauce-related__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}
.sauce-related__card h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.sauce-related__card:hover h4 { color: var(--beacon-lo); }
.sauce-related__card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- author strip ---------- */
.sauce-author {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 44px 0;
  padding: 20px 22px;
  background: var(--beacon-wash);
  border-left: 3px solid var(--beacon);
}
.sauce-author__av {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--basemap); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 17px;
}
.sauce-author__name { font-family: var(--display); font-weight: 700; font-size: 15px; margin: 0 0 2px; color: var(--ink); }
.sauce-author__role { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin: 0; }

/* ---------- index (blog hub) ---------- */
.sauce-index { padding: 64px 0 88px; }
.sauce-index__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
@media (max-width: 900px) { .sauce-index__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .sauce-index__grid { grid-template-columns: 1fr; } }
.sauce-index__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--rule-hard);
  background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.sauce-index__card:hover { border-color: var(--beacon); transform: translateY(-3px); }
.sauce-index__thumb {
  aspect-ratio: 16/10;
  background-color: var(--basemap);
  /* Default thumbnail, used unless a card sets its own via inline style
     (each post's real hero image, once there is more than one). */
  background-image: url(/assets/img/mapcheck-geogrid-1800.jpg);
  background-image: image-set(url(/assets/img/mapcheck-geogrid-1800.webp) type("image/webp"), url(/assets/img/mapcheck-geogrid-1800.jpg) type("image/jpeg"));
  background-size: cover;
  background-position: 50% 35%;
  position: relative;
}
.sauce-index__thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(12,20,22,.15), rgba(12,20,22,.55)); }
.sauce-index__tag {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; padding: 12px 14px; display: block;
}
.sauce-index__body { padding: 18px 18px 20px; }
.sauce-index__body h3 { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin: 0 0 8px; color: var(--ink); }
.sauce-index__body p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
