/* ===========================================================
   Blog — Aurora Light
   Editorial listing + long-read article styles
   Pairs with css/landing.css (shared palette + nav + footer)
   =========================================================== */

/* ===========================================================
   LISTING — hero
   =========================================================== */
.b-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 32px 40px;
  text-align: center;
}
.b-hero .l-mast {
  display: flex;
  justify-content: center;
  align-items: baseline;
  max-width: 720px;
  margin: 0 auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.b-hero .l-mast .name { color: var(--ink); font-weight: 600; }
.b-hero .est {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}
.b-hero .tagline {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 350;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 720px;
  margin: 14px auto 36px;
}
.b-hero h1 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 350;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}
.b-hero h1 em { font-style: italic; font-weight: 300; color: var(--accent-2); }
.b-hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 600px;
  margin: 28px auto 0;
}

/* ===========================================================
   LISTING — grid
   =========================================================== */
.b-list {
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 0 32px;
}
.b-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.b-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: white;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.b-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  box-shadow: 0 16px 36px rgba(10, 22, 40, 0.08);
}
.b-card .img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--rule-2);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.b-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.b-card:hover .img img { transform: scale(1.02); }
.b-card .body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.b-card .meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.b-card .meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-3); opacity: 0.5;
}
.b-card h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
  color: var(--ink);
}
.b-card .excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.b-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.b-card .tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f0eb;
  color: var(--ink-2);
  letter-spacing: 0.05em;
}
.b-card .read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: 4px;
}
.b-card:hover .read { color: var(--accent); }
.b-card .read .arr { transition: transform 0.2s; }
.b-card:hover .read .arr { transform: translateX(3px); }

/* Featured (first) card spans full width with horizontal layout on wide screens */
.b-card.feat {
  grid-column: 1 / -1;
  flex-direction: row;
}
.b-card.feat .img {
  flex: 0 0 52%;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--rule);
}
.b-card.feat .body {
  flex: 1;
  padding: 36px 40px;
  justify-content: center;
}
.b-card.feat h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.025em;
}
.b-card.feat .excerpt {
  font-size: 16px;
  max-width: 50ch;
}

.b-empty {
  padding: 80px 24px;
  text-align: center;
  color: var(--ink-3);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
}

/* ===========================================================
   ARTICLE — header
   =========================================================== */
.a-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 32px;
  text-align: center;
}
.a-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 40px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
}
.a-back:hover { color: var(--accent-2); }
.a-back .arr { font-size: 13px; transition: transform 0.2s; }
.a-back:hover .arr { transform: translateX(-3px); }
.a-tag {
  display: block;
  width: fit-content;
  margin: 0 auto 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.a-header h1 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 350;
  font-size: clamp(36px, 5.6vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--ink);
}
.a-header h1 em { font-style: italic; font-weight: 300; color: var(--accent-2); }
.a-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.a-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.a-author img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--rule);
}
.a-meta .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-3); opacity: 0.5;
}
.a-meta .item {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.a-tags {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.a-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f0eb;
  color: var(--ink-2);
  letter-spacing: 0.05em;
}

/* ===========================================================
   ARTICLE — featured image
   =========================================================== */
.a-feat {
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 0 32px;
}
.a-feat-inner {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 80px rgba(10, 22, 40, 0.10);
  background: white;
}
.a-feat-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================================================
   ARTICLE — body
   =========================================================== */
.a-body {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 0 32px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.a-body > p:first-child::first-letter,
.a-body > p.lede::first-letter {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 3.4em;
  float: left;
  line-height: 0.95;
  padding: 4px 12px 0 0;
  color: var(--accent-2);
}
.a-body p {
  margin: 0 0 1.4em;
  color: var(--ink);
}
.a-body p strong { color: var(--ink); font-weight: 600; }
.a-body p em { font-style: italic; }
.a-body a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.a-body a:hover { color: var(--accent); }

.a-body h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 2em 0 0.6em;
  color: var(--ink);
}
.a-body h2 em { font-style: italic; color: var(--accent-2); font-weight: 350; }
.a-body h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 1.8em 0 0.5em;
  color: var(--ink);
}
.a-body h4 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  margin: 1.6em 0 0.4em;
  color: var(--ink);
}

.a-body ul, .a-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
.a-body li { margin: 0 0 0.45em; }
.a-body li::marker { color: var(--accent-2); }

.a-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 350;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
}
.a-body blockquote p { margin: 0 0 0.5em; }
.a-body blockquote p:last-child { margin-bottom: 0; }

.a-body hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2.4em auto;
  width: 80px;
}

.a-body code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f0eb;
  color: var(--ink);
  border: 1px solid var(--rule-2);
}
.a-body pre {
  margin: 1.4em 0;
  padding: 18px 22px;
  background: #1a1c22;
  color: #f5f3ee;
  border-radius: 12px;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  line-height: 1.6;
  border: 1px solid #2a2c34;
  box-shadow: 0 14px 36px rgba(10, 22, 40, 0.10);
}
.a-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.a-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 14.5px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.04);
}
.a-body table thead { background: #faf8f4; }
.a-body table th {
  text-align: left;
  padding: 12px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.a-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: top;
  color: var(--ink);
  line-height: 1.5;
}
.a-body table tr:last-child td { border-bottom: 0; }
.a-body table td strong { color: var(--ink); font-weight: 600; }

.a-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.6em auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
}

/* ===========================================================
   ARTICLE — share
   =========================================================== */
.a-share {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0 32px;
  text-align: center;
}
.a-share .l-tag {
  display: block;
  margin-bottom: 16px;
}
.a-share .btns {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.a-share a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s;
}
.a-share a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.a-share .ic {
  width: 14px; height: 14px;
  fill: currentColor;
}

/* ===========================================================
   NEWSLETTER CTA (shared, sits above footer)
   =========================================================== */
.b-cta {
  max-width: 760px;
  margin: 96px auto 0;
  padding: 0 32px;
  text-align: center;
}
.b-cta-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 14px 36px rgba(10, 22, 40, 0.06);
}
.b-cta h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.b-cta h2 em { font-style: italic; color: var(--accent-2); font-weight: 350; }
.b-cta p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.b-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.b-cta .btn:hover { background: var(--accent); transform: translateY(-1px); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .b-hero { padding: 56px 24px 32px; }
  .b-list { padding: 0 24px; margin-top: 40px; }
  .b-grid { grid-template-columns: 1fr; gap: 14px; }
  .b-card.feat { flex-direction: column; }
  .b-card.feat .img {
    flex: none;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .b-card.feat .body { padding: 22px 24px 24px; }

  .a-header { padding: 48px 24px 24px; }
  .a-feat { padding: 0 24px; }
  .a-body { padding: 0 24px; font-size: 17px; margin-top: 40px; }
  .a-body > p:first-child::first-letter { font-size: 3em; }
  .a-share { padding: 0 24px; }

  .b-cta { padding: 0 24px; margin-top: 72px; }
  .b-cta-card { padding: 28px 24px; }
}

@media (max-width: 720px) {
  .b-hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .a-meta { gap: 10px; }
  .a-body table { font-size: 13px; }
  .a-body table th, .a-body table td { padding: 10px 12px; }
}
