/* ============================================================
   OtherHalf — The Journal (/blog + /blog/<slug>)
   Blog index + article pages in the Daylight Venn card grammar.
   The blog cards are page-scale renditions of the deck's card
   face (v3/src/deck/CardFace.jsx + deck.css): cream invitation
   stock, double gold frame, corner diamonds, gold mono kicker,
   two-tone line-art motif, Fraunces title with ONE italic-coral
   accent word, EQUAL ——— OPPOSITE foot. Tokens come from
   daylight.css (--dv-*), fonts from /assets/fonts/fonts.css.
   Loads AFTER legal.css/chrome.css and BEFORE daylight.css.
   ============================================================ */

/* ---------- page shell ----------
   (body background deliberately NOT set here: body.daylight already
   paints the cream + soft top-light radial; a shorthand override
   would erase the gradient) */
.bj-wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- hero ---------- */
.bj-hero{
  max-width: 760px;
  margin: 0 auto;
  padding: 84px 24px 8px;
  text-align: center;
}
.bj-kicker{
  display: block;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .3em;
  text-indent: .3em; /* recenter: tracking adds a trailing gap */
  text-transform: uppercase;
  color: var(--dv-gold-text);
}
.bj-hero h1{
  font-family: var(--serif, "Fraunces", serif);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--dv-ink);
  margin: 18px 0 0;
  text-wrap: balance;
}
.bj-hero h1 em,
.bj-title em,
.bj-article h1 em{
  font-style: italic;
  font-weight: 600;
  color: var(--dv-coral);
}
.bj-lede{
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--dv-body);
  max-width: 54ch;
  margin: 16px auto 0;
  text-wrap: pretty;
}

/* ---------- ornament divider (hairline · diamond · hairline) ---------- */
.bj-ornament{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 38px;
}
.bj-ornament::before,
.bj-ornament::after{
  content: "";
  width: 36px;
  height: 1px;
  background: var(--dv-gold-line);
}
.bj-ornament i{
  width: 5px;
  height: 5px;
  background: var(--dv-gold);
  transform: rotate(45deg);
}

/* ---------- the card (page-scale deck card face) ---------- */
.bj-card{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--dv-ink);
  text-decoration: none;
  background: var(--dv-grad);
  border: 1px solid var(--dv-gold-b-strong);
  border-radius: 20px;
  box-shadow: var(--dv-shadow);
  padding: 30px 26px 22px;
  transition: transform .18s ease, box-shadow .18s ease;
}
/* inner gold frame */
.bj-card::after{
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--dv-gold-b);
  border-radius: 11px;
  pointer-events: none;
}
/* four corner diamonds in the frame gutter (the deck card's dv-dots,
   drawn as one background layer so cards need no extra markup) */
.bj-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M3 0 6 3 3 6 0 3Z' fill='%23A8842F'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M3 0 6 3 3 6 0 3Z' fill='%23A8842F'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M3 0 6 3 3 6 0 3Z' fill='%23A8842F'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M3 0 6 3 3 6 0 3Z' fill='%23A8842F'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 6px 6px;
  background-position:
    8px 8px,
    calc(100% - 8px) 8px,
    8px calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px);
}
.bj-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--dv-shadow-hover);
}
/* focus ring: the site-wide body.daylight :focus-visible outline
   governs — no per-card ring, or the two stack into a doubled band */

.bj-card .bj-kicker{ font-size: 10.5px; }

.bj-motif{
  height: 118px;
  display: grid;
  place-items: center;
  margin: 14px 0 4px;
  color: var(--dv-gold);
}
.bj-motif svg{
  width: 112px;
  height: 112px;
  /* 28-viewBox line art blown up to 112px: thin the strokes so the
     lines sit at the deck motifs' ~2.5px visual weight */
  stroke-width: .62;
}

.bj-title{
  font-family: var(--serif, "Fraunces", serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -.005em;
  color: var(--dv-ink);
  margin: 8px 0 0;
  text-wrap: balance;
}
.bj-excerpt{
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--dv-body);
  margin: 10px 0 0;
  text-wrap: pretty;
}

/* index number on the left, READ cue on the right, above the foot */
.bj-meta{
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bj-meta .bj-index{ color: var(--dv-muted); font-weight: 500; }
.bj-meta .bj-read{ color: var(--dv-teal-deep); font-weight: 600; transition: color .18s ease; }
.bj-card:hover .bj-read{ color: var(--dv-coral); }
.bj-meta .bj-soon{ color: var(--dv-muted); font-weight: 500; }

/* a card whose essay is not written yet: present and honest, not a link */
.bj-card.is-coming{ cursor: default; }
.bj-card.is-coming:hover{ transform: none; box-shadow: var(--dv-shadow); }

/* EQUAL ——— OPPOSITE foot (the card face's own closer) */
.bj-foot{
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: 12px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.bj-foot .fy{ color: var(--dv-teal-deep); }
.bj-foot .fo{ color: var(--dv-coral); }
.bj-foot .fl{
  flex: 1;
  height: 1px;
  background: var(--dv-gold-line);
  margin: 0 12px;
}

/* ---------- featured card (wide, text leads, motif answers) ---------- */
.bj-featured{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main motif"
    "meta motif"
    "foot foot";
  column-gap: 44px;
  align-items: center;
  text-align: left;
  padding: 36px 44px 24px;
  margin: 0 0 0;
}
.bj-featured .bj-feat-main{ grid-area: main; }
.bj-featured .bj-kicker{ text-indent: 0; }
.bj-featured .bj-title{
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  margin-top: 12px;
}
.bj-featured .bj-excerpt{
  font-size: 15.5px;
  max-width: 58ch;
  margin-top: 12px;
}
.bj-featured .bj-motif{
  grid-area: motif;
  height: auto;
  margin: 0;
}
.bj-featured .bj-motif svg{
  width: 176px;
  height: 176px;
  stroke-width: .4;
}
.bj-featured .bj-meta{
  grid-area: meta;
  margin-top: 0;
  padding-top: 22px;
}
.bj-featured .bj-foot{ grid-area: foot; padding-top: 18px; }

/* ---------- the archive band + grid ---------- */
.bj-band{
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1120px;
  margin: 44px auto 26px;
  padding: 0 24px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dv-muted);
  white-space: nowrap;
}
.bj-band::before,
.bj-band::after{
  content: "";
  flex: 1;
  height: 1px;
  background: var(--dv-gold-line);
}

.bj-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.bj-tail{
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 14px;
  color: var(--dv-muted);
  text-align: center;
  margin: 44px auto 96px;
  padding: 0 24px;
}

/* the "ask us" card's placeholder-striped motif well */
.bj-motif.is-open-slot{
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--dv-gold-b);
  background: repeating-linear-gradient(115deg, #EAE0CD 0 14px, #E3D7C0 14px 28px);
}
.bj-motif.is-open-slot svg{ width: 84px; height: 84px; stroke-width: .82; }

/* ============================================================
   Article page (/blog/<slug>)
   ============================================================ */
.bj-back{
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 32px;
}
.bj-back a{
  display: inline-block;
  padding: 14px 0; /* grows the 11px text to a ~44px hit target */
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dv-teal-deep);
  text-decoration: none;
}
.bj-back a:hover{ color: var(--dv-coral); }

.bj-article-hero{
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 8px;
}
.bj-article-hero h1{
  font-family: var(--serif, "Fraunces", serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--dv-ink);
  margin: 16px 0 0;
  text-wrap: balance;
}
.bj-article-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 18px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dv-muted);
}

/* the short answer: the page's one "precious" framed panel — this is
   the block search engines lift into featured snippets */
.bj-answer{
  position: relative;
  max-width: 760px;
  margin: 30px auto 0;
  background: var(--dv-grad);
  border: 1px solid var(--dv-gold-b-strong);
  border-radius: 20px;
  box-shadow: var(--dv-shadow);
  padding: 26px 32px 28px;
}
.bj-answer::after{
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--dv-gold-b);
  border-radius: 11px;
  pointer-events: none;
}
.bj-answer::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M3 0 6 3 3 6 0 3Z' fill='%23A8842F'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M3 0 6 3 3 6 0 3Z' fill='%23A8842F'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M3 0 6 3 3 6 0 3Z' fill='%23A8842F'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M3 0 6 3 3 6 0 3Z' fill='%23A8842F'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 6px 6px;
  background-position:
    8px 8px,
    calc(100% - 8px) 8px,
    8px calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px);
}
.bj-answer .bj-kicker{ text-indent: 0; margin-bottom: 10px; }
.bj-answer p{
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
  margin: 0;
  text-wrap: pretty;
}

/* article body rides .legal-content (760 measure, serif h2s, teal-dot
   lists); these are the journal's own refinements on top */
.bj-article .legal-content{ padding-top: 40px; }
.bj-article .legal-content p{ font-size: 17px; }

/* centered serif pull quote with a gold diamond overhead */
.bj-pull{
  position: relative;
  max-width: 34ch;
  margin: 44px auto;
  padding-top: 26px;
  text-align: center;
  font-family: var(--serif, "Fraunces", serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.45;
  color: var(--graphite);
  text-wrap: balance;
}
.bj-pull::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--dv-gold);
  transform: translateX(-50%) rotate(45deg);
}

/* the launch-list nudge between essay and related reads */
.bj-cta{
  position: relative;
  max-width: 760px;
  margin: 20px auto 0;
  background: var(--dv-grad);
  border: 1px solid var(--dv-gold-b-strong);
  border-radius: 20px;
  box-shadow: var(--dv-shadow);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
}
.bj-cta::after{
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--dv-gold-b);
  border-radius: 11px;
  pointer-events: none;
}
.bj-cta p{
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--graphite);
  margin: 0;
  max-width: 46ch;
}
.bj-cta p strong{ color: var(--dv-ink); font-weight: 600; }
.bj-cta .bj-cta-btn{
  position: relative;
  z-index: 1;
  font-family: var(--sans, "Inter", sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--dv-ink);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--dv-gold-b-strong);
  transition: border-color .18s ease, background .18s ease;
  white-space: nowrap;
}
.bj-cta .bj-cta-btn:hover{
  border-color: var(--dv-gold);
  background: rgba(168,132,47,.06);
}

/* keep reading */
.bj-related{
  max-width: 1120px;
  margin: 56px auto 96px;
  padding: 0 24px;
}
.bj-related .bj-band{ margin: 0 0 26px; padding: 0; }
/* related reads are usually 2 cards: cap and center them instead of
   leaving an empty third grid track */
.bj-related .bj-grid{
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  justify-content: center;
}

/* article wrappers never draw a border against the footer; the page's
   bottom breathing room is the related block's own margin */

/* ---------- responsive ---------- */
@media (max-width: 760px){
  .bj-hero{ padding: 56px 20px 6px; }
  .bj-wrap{ padding: 0 20px; } /* keep the featured card flush with the grid cards */
  .bj-featured{
    grid-template-columns: 1fr;
    grid-template-areas: "main" "motif" "meta" "foot";
    text-align: center;
    padding: 30px 26px 22px;
  }
  .bj-featured .bj-kicker{ text-indent: .3em; }
  .bj-featured .bj-excerpt{ margin-left: auto; margin-right: auto; }
  .bj-featured .bj-motif{ margin: 18px auto 2px; }
  .bj-featured .bj-motif svg{ width: 140px; height: 140px; stroke-width: .5; }
  .bj-grid{ gap: 20px; padding: 0 20px; }
  .bj-band{ padding: 0 20px; }
  .bj-article-hero{ padding: 32px 20px 6px; }
  .bj-answer{ margin-left: 20px; margin-right: 20px; padding: 22px 24px 24px; }
  .bj-back{ padding: 0 20px; margin-top: 28px; }
  .bj-cta{ margin-left: 20px; margin-right: 20px; justify-content: center; text-align: center; }
  .bj-tail{ margin: 36px auto 72px; }
}

@media (prefers-reduced-motion: reduce){
  .bj-card{ transition: none; }
  .bj-card:hover{ transform: none; }
}
