/* ==========================================================================
   The Deep Dive: newsletter archive + issue pages (Deploy 13.1)
   --------------------------------------------------------------------------
   Kept in its own file on purpose. The CloudFront CSP allow-lists inline
   <style>/<script> blocks by SHA-256 hash and does not allow inline style=""
   attributes, so every rule for the newsletter pages lives here (served
   from 'self') and the page markup only uses classes.
   Root font-size is 62.5% (theme.css), so 1rem = 10px.
   ========================================================================== */

.dd {
  --dd-card: #0f1428;
  --dd-card-deep: #0d1226;
  --dd-card-founder: #141c50;
  --dd-card-cta: #161235;
  --dd-border: #1c2440;
  --dd-border-founder: #23305f;
  --dd-border-cta: #2a2560;
  --dd-cyan: #69d6eb;
  --dd-cyan-dark: #2494ae;
  --dd-label: #8ae8f8;
  --dd-head: #eaf2ff;
  --dd-text: #d7e3f5;
  --dd-muted: #9db2d4;
  --dd-faint: #6c7fa3;
  --dd-purple: #6f61c9;
  --dd-purple-hover: #8174d6;
  --dd-mono: "Courier New", Courier, monospace;
  max-width: 76rem;
  margin: 0 auto;
  color: var(--dd-text);
  font-size: 1.7rem;
  line-height: 1.7;
}
.dd *, .dd *::before, .dd *::after { box-sizing: border-box; }
.dd p { margin: 0; }
.dd p + p { margin-top: 1.4rem; }

/* links: theme underlines .entry-content links; keep that for body text,
   restyle for buttons and source lines */
.dd a.dd-btn, .dd a.dd-btn:hover, .dd a.dd-btn:focus { text-decoration: none; }

/* Section labels ("Issue N° 01 · October 2026", "Thoughts from the founder"...).
   13.1 follow-up: larger, bold and brighter so they read clearly on the dark
   cards; the darker teal variant now uses the same bright cyan. */
.dd-eyebrow {
  display: block;
  font-family: var(--dd-mono);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dd-label);
  line-height: 1.5;
}
.dd-eyebrow-dark { color: var(--dd-label); }

.dd-card {
  background: var(--dd-card);
  border: 1px solid var(--dd-border);
  border-radius: 1.8rem;
  padding: 2.6rem 2.8rem;
  margin: 0 0 2.4rem;
}
.dd-card-deep { background: var(--dd-card-deep); }
.dd-card-founder { background: var(--dd-card-founder); border-color: var(--dd-border-founder); }
.dd-card-cta { background: var(--dd-card-cta); border-color: var(--dd-border-cta); text-align: center; }

.dd-section-label { margin: 3.4rem 0 1.2rem; }

.dd h2.dd-title, .dd .dd-title {
  font-size: 2.3rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--dd-head);
  margin: 0.8rem 0 0;
  letter-spacing: 0;
  text-transform: none;
}
.dd h3.dd-subhead {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dd-head);
  margin: 2.2rem 0 0.8rem;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

/* intro */
.dd .dd-lede { font-size: 1.75rem; color: var(--dd-muted); margin-top: 1rem; }
.dd-slogan {
  margin-top: 1.8rem !important;
  border-left: 3px solid var(--dd-cyan);
  padding: 0.4rem 0 0.4rem 1.6rem;
  color: #fff;
}
.dd-slogan strong { color: #fff; }
.dd-slogan em { color: var(--dd-cyan); }

/* big stat */
.dd-stat {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 1.8rem 0 1.8rem;
}
.dd-stat-num {
  flex: 0 0 auto;
  font-size: 3.8rem;
  line-height: 1;
  font-weight: 800;
  color: var(--dd-cyan);
  min-width: 10rem;
}
.dd-stat-text { font-size: 1.45rem; line-height: 1.55; color: var(--dd-muted); }

.dd-sign { margin-top: 1.6rem !important; font-size: 1.5rem; color: var(--dd-muted); }
.dd-sign strong { color: var(--dd-head); }

.dd-source {
  margin-top: 1.6rem !important;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--dd-faint);
}
.dd .dd-source a:not(.button) { color: var(--dd-faint); text-decoration: underline; text-decoration-color: rgba(108, 127, 163, 0.6); }
.dd .dd-source a:not(.button):hover, .dd .dd-source a:not(.button):focus { color: var(--dd-muted); }

/* lists */
.dd ul.dd-list, .dd ol.dd-list {
  margin: 0.6rem 0 0;
  padding-left: 2.2rem;
  font-size: 1.6rem;
  line-height: 1.65;
}
.dd ul.dd-list { list-style: disc; }
.dd ol.dd-list { list-style: decimal; }
.dd .dd-list li { margin: 0 0 0.7rem; padding-left: 0.2rem; }
.dd .dd-list li::marker { color: var(--dd-muted); }
.dd code, .dd .dd-code { font-family: var(--dd-mono); font-size: 0.95em; color: var(--dd-head); background: none; padding: 0; }

/* founder */
.dd-founder { display: flex; gap: 1.8rem; align-items: flex-start; }
.dd-avatar {
  flex: 0 0 5.2rem;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: #4d3fa0;
  color: var(--dd-head);
  font-family: var(--dd-mono);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dd-founder-text p { font-style: italic; color: var(--dd-head); font-size: 1.65rem; line-height: 1.65; }
.dd-founder-text p.dd-sign { font-style: normal; color: var(--dd-muted); }

/* callout */
.dd-callout {
  background: var(--dd-card-founder);
  border: 1px solid var(--dd-border-founder);
  border-radius: 1.2rem;
  padding: 1.8rem 2rem;
  margin-top: 2.2rem;
  font-size: 1.55rem;
}
.dd-callout strong { color: var(--dd-head); }
.dd-note {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1.2rem;
  border: 1px solid var(--dd-border);
  background: #0f2830;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--dd-muted);
}
.dd-note strong { color: var(--dd-cyan); }

/* buttons */
.dd a.dd-btn {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 1.15rem 2.4rem;
  border-radius: 999px;
  background: var(--dd-purple);
  color: #fff;
  font-family: var(--dd-mono);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.dd a.dd-btn:hover, .dd a.dd-btn:focus { background: var(--dd-purple-hover); color: #fff; transform: translateY(-1px); }
.dd a.dd-btn:focus-visible { outline: 2px solid var(--dd-cyan); outline-offset: 3px; }
.dd a.dd-btn-ghost { background: transparent; border: 1px solid var(--dd-purple); color: var(--dd-head); margin-left: 1rem; }
.dd a.dd-btn-ghost:hover, .dd a.dd-btn-ghost:focus { background: rgba(111, 97, 201, 0.18); color: #fff; }

/* company updates */
.dd-update {
  background: var(--dd-card);
  border: 1px solid var(--dd-border);
  border-radius: 1.4rem;
  padding: 1.8rem 2rem;
  margin: 0 0 1.2rem;
}
.dd-update-num { font-family: var(--dd-mono); font-size: 1.35rem; font-weight: 700; color: var(--dd-label); }
.dd .dd-update h3 { font-size: 1.65rem; font-weight: 700; color: var(--dd-head); margin: 0.6rem 0 0; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.dd-update p { font-size: 1.45rem; color: var(--dd-muted); margin-top: 0.6rem; line-height: 1.6; }
.dd-updates-title { font-size: 2.1rem !important; margin: 0.4rem 0 1.6rem !important; }

/* recipe */
.dd .dd-recipe-title { font-size: 2.4rem; }
.dd-recipe-intro { font-size: 1.5rem; color: var(--dd-muted); margin-top: 1rem !important; }
.dd-recipe-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--dd-border);
  font-size: 1.25rem;
  color: var(--dd-faint);
  line-height: 1.4;
}
.dd-recipe-meta strong { display: block; font-family: var(--dd-mono); font-size: 1.4rem; color: var(--dd-head); margin-top: 0.3rem; }
.dd h3.dd-recipe-label { margin: 2.4rem 0 0.6rem; font-family: var(--dd-mono); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dd-label); line-height: 1.5; }
.dd .dd-recipe .dd-list { font-size: 1.5rem; line-height: 1.75; }
.dd .dd-recipe .dd-list li { margin-bottom: 0.3rem; }

/* CTA */
.dd-card-cta p { font-size: 1.6rem; }
.dd-card-cta strong { color: var(--dd-head); }

.dd-back { margin-top: 3.2rem !important; font-size: 1.5rem; }

/* ---------- archive (blog index) ---------- */
.dd-archive-intro { color: var(--dd-muted); font-size: 1.8rem; margin-bottom: 3rem !important; }
.dd-issue-card { padding: 3rem 3rem 2.8rem; }
.dd .dd-issue-card h2.dd-title { font-size: 2.8rem; margin-top: 1rem; }
.dd .dd-issue-card h2.dd-title a { color: var(--dd-head); text-decoration: none; }
.dd .dd-issue-card h2.dd-title a:hover, .dd .dd-issue-card h2.dd-title a:focus { color: var(--dd-cyan); }
.dd-issue-summary { margin-top: 1.2rem !important; color: var(--dd-muted); }
.dd-in-this-issue { margin: 2.2rem 0 0.4rem; }
.dd-issue-actions { margin-top: 1rem; }

@media (max-width: 640px) {
  .dd { font-size: 1.6rem; }
  .dd-eyebrow, .dd h3.dd-recipe-label { font-size: 1.3rem; letter-spacing: 0.1em; }
  .dd-card { padding: 2.2rem 1.9rem; border-radius: 1.5rem; }
  .dd-stat { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .dd-founder { flex-direction: column; }
  .dd-recipe-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
  .dd a.dd-btn-ghost { margin-left: 0; }
  .dd .dd-issue-card h2.dd-title { font-size: 2.3rem; }
}

@media print {
  .dd-card, .dd-update, .dd-callout, .dd-note { background: none; border-color: #999; color: #000; }
  .dd, .dd p, .dd li, .dd-founder-text p, .dd-title, .dd h3 { color: #000 !important; }
  .dd a.dd-btn { display: none; }
}

/* Homepage "Newsletter" section: the pop-up button became plain links to the
   blog (Deploy 13.1). Keep them looking like the other "Learn more" triggers. */
a.services-detail-trigger, a.services-detail-trigger:hover, a.services-detail-trigger:focus { text-decoration: none; }
a.services-detail-trigger + a.services-detail-trigger { margin-left: 1.6rem; }
