/* The SDR Newsletter
   Palette from the logo: violet #B018F4, purple #7E4AB8, white. Change the purples below to adjust the whole site. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --navy: #3B1A66;
  --navy-2: #4A2380;
  --ink: #221533;
  --ink-soft: #4B3D5E;
  --muted: #6F5F85;
  --blue: #B018F4;
  --blue-dark: #8A0FC4;
  --yellow: #FFFFFF;
  --yellow-dark: #F3E3FE;
  --mist: #F9F2FE;
  --line: #ECDDF7;
  --paper: #FFFFFF;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif", Georgia, serif;
  --r: 14px;
  --r-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { text-wrap: balance; font-family: var(--sans); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .45em; color: inherit; }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-weight: 700; font-size: 1.2rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.wrap-narrow { max-width: 740px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.wrap-media { max-width: 1000px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.block { padding-top: 88px; }
.block-tight { padding-top: 40px; }
main > :last-child { padding-bottom: 96px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer; transition: background-color .15s ease, transform .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 11px 18px; font-size: .95rem; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-yellow { background: #fff; color: var(--blue-dark); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--navy); }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: var(--navy-2); color: #fff; }
.bh-embed { width: 100%; max-width: 460px; border-radius: 8px; }
.text-link { font-weight: 700; text-decoration: none; color: var(--blue-dark); white-space: nowrap; }
.text-link:hover { text-decoration: underline; color: var(--blue-dark); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); }
.wm-badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 900; font-size: .82rem; letter-spacing: .02em; font-stretch: 112%; }
.wm-logo { width: 44px; height: 44px; border-radius: 50%; }
.wm-text { font-weight: 800; font-size: 1rem; line-height: 1.02; letter-spacing: -.01em; }
.wordmark:hover { color: var(--navy); }
.wordmark-light { color: #fff; }
.wordmark-light:hover { color: #fff; }
.wordmark-light .wm-badge { background: #fff; color: var(--blue-dark); }
.nav { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 6px 0; position: relative; }
.nav a:not(.btn):hover { color: var(--blue-dark); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); border-radius: 2px; }

/* ---------- hero */
.hero { background: #7E4AB8; color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 40%, rgba(176,24,244,.45), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 5.9rem); font-weight: 900; font-stretch: 115%; line-height: .95; letter-spacing: -.03em; margin-bottom: 26px; max-width: 9.5em; animation: rise .7s ease-out both; }
.hero-lede { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: #F0E2FB; max-width: 31em; margin: 0 0 34px; animation: rise .7s .08s ease-out both; }
.hero-signup { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; animation: rise .7s .16s ease-out both; }
.hero-signup span { color: #DCC8EE; font-size: .95rem; font-weight: 500; }
/* illustrated inbox in the hero */
.inbox { width: 100%; max-width: 500px; margin-left: auto; background: #fff; color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.4); animation: rise .9s .1s ease-out both; }
.ib-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: var(--mist); border-bottom: 1px solid var(--line); }
.ib-bar i { width: 11px; height: 11px; border-radius: 50%; background: #E3D2F2; }
.ib-bar span { margin-left: 10px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.ib-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.ib-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .68rem; }
.ib-main { min-width: 0; display: flex; flex-direction: column; }
.ib-from { font-size: .82rem; color: var(--muted); font-weight: 600; }
.ib-subj { font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-day { font-size: .8rem; color: var(--muted); }
.ib-unread { background: #FBF4FF; }
.ib-unread .ib-subj { font-weight: 800; }
.ib-unread .ib-day { color: var(--blue-dark); font-weight: 700; }
.ib-open { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.ib-open-h { margin: 0 0 4px; font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.ib-line { height: 10px; border-radius: 5px; background: var(--line); }
.ib-line.short { width: 60%; }
.ib-btn { align-self: flex-start; margin-top: 8px; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; padding: 9px 16px; border-radius: 999px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- section heads */
.block-head { margin-bottom: 32px; max-width: 720px; }
.block-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: none; }
.row-head h2 { margin: 0; }
.row-head { flex-wrap: wrap; }

/* ---------- topics */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 24px; background: var(--mist); border-radius: var(--r); text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .15s ease, background-color .15s ease; }
.topic:hover { background: #fff; border-color: var(--blue); color: var(--ink); }
.topic-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.topic-icon svg { width: 24px; height: 24px; }
.topic-name { font-weight: 800; font-size: 1.2rem; }
.topic-count { color: var(--muted); font-size: .95rem; }

/* ---------- cards */
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.card-img { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--blue); background: linear-gradient(135deg, #F4E4FE, var(--mist)); }
.card-noimg svg { width: 56px; height: 56px; }
.card-link:hover .card-img img { transform: scale(1.035); }
.card-link:hover .card-title { color: var(--blue-dark); }
.card-body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.card-topic { font-size: .85rem; font-weight: 700; color: var(--blue-dark); margin: 0 0 6px; }
.card-title { font-size: 1.22rem; line-height: 1.22; margin: 0 0 10px; transition: color .15s ease; }
.card-excerpt { font-family: var(--serif); color: var(--ink-soft); margin: 0 0 14px; font-size: 1.08rem; line-height: 1.55; }
.card-meta { margin: auto 0 0; display: flex; gap: 14px; font-size: .88rem; color: var(--muted); }

.card-feature .card-img { aspect-ratio: 16 / 9; }
.card-feature .card-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.12; }
.card-row .card-link { flex-direction: row; gap: 20px; align-items: flex-start; }
.card-row .card-img { flex: 0 0 38%; aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.card-row .card-body { padding-top: 0; }
.card-row .card-title { font-size: 1.1rem; }
.card-row .card-excerpt { display: none; }
.card-feature .card-meta { margin-top: 4px; }

.latest-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; }
.latest-side { display: flex; flex-direction: column; gap: 26px; }
.latest-side .card + .card { border-top: 1px solid var(--line); padding-top: 26px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }

/* ---------- free resource */
.resource { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; background: var(--blue); color: #fff; border-radius: 22px; padding: 56px; overflow: hidden; }
.resource-tag { display: inline-block; font-weight: 700; font-size: .88rem; background: #fff; color: var(--blue-dark); padding: 5px 12px; border-radius: 999px; margin: 0 0 18px; }
.resource h2 { font-size: clamp(2rem, 4vw, 3rem); font-stretch: 112%; font-weight: 900; color: #fff; }
.resource-copy p:not(.resource-tag) { font-family: var(--serif); font-size: 1.2rem; color: #EDE5FF; margin: 0 0 28px; max-width: 26em; }
.resource .btn-blue { background: #fff; color: var(--blue-dark); }
.resource .btn-blue:hover { background: var(--yellow-dark); color: var(--navy); }
.resource-img img { border-radius: 22px; transform: rotate(2.5deg); box-shadow: 0 24px 50px rgba(59,26,102,.3); max-height: 460px; width: auto; margin: 0 auto; }

/* ---------- advertise */
.advertise { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 22px; padding: 44px 48px; background: var(--mist); }
.advertise h2 { margin-bottom: 8px; }
.advertise p { margin: 0; color: var(--ink-soft); max-width: 36em; font-family: var(--serif); font-size: 1.12rem; }

/* ---------- subscribe card */
.cta-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; background: var(--navy); color: #fff; border-radius: 22px; padding: 44px 48px; position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 100% 0%, rgba(176,24,244,.45), transparent 70%); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.cta-card p { margin: 0; color: #F0E2FB; font-family: var(--serif); font-size: 1.1rem; }
.cta-action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cta-action span { font-size: .88rem; color: #DCC8EE; }

/* ---------- blog page */
.blog-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.blog-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-stretch: 112%; font-weight: 900; letter-spacing: -.03em; margin-bottom: 14px; }
.blog-hero p { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-soft); margin: 0; max-width: 34em; }
.blog-feature { padding-top: 56px; }
.card-wide .card-link { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; }
.card-wide .card-body { padding-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 32px 0 36px; border-top: 1px solid var(--line); margin-top: 16px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.contribute { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contribute h2 { font-size: 1.45rem; }
.contribute p { font-family: var(--serif); color: var(--ink-soft); margin: 0; font-size: 1.1rem; }

/* ---------- article */
.post-head { padding: 64px 0 36px; text-align: center; }
.post-topic { display: inline-block; font-weight: 700; font-size: .9rem; text-decoration: none; background: #F4E4FE; color: var(--blue-dark); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.post-topic:hover { background: var(--blue); color: #fff; }
.post-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-stretch: 108%; letter-spacing: -.025em; line-height: 1.04; margin-bottom: 20px; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--muted); font-size: .95rem; margin: 0; }
.post-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 18px; }
.prose { font-family: var(--serif); font-size: 1.24rem; line-height: 1.75; padding-top: 48px; padding-bottom: 24px; color: #271A38; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); color: var(--ink); }
.prose h2 { font-size: 1.8rem; margin: 1.9em 0 .6em; }
.prose h3 { font-size: 1.38rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.15em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue-dark); text-decoration-color: rgba(138,15,196,.4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; padding-left: .2em; }
.prose li::marker { color: var(--blue); font-family: var(--sans); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 24px 28px; background: var(--mist); border-left: 4px solid var(--blue); border-radius: 0 var(--r) var(--r) 0; font-size: 1.12rem; line-height: 1.6; }
.prose blockquote p { margin: 0 0 .7em; }
.prose blockquote p:last-child { margin: 0; }
.prose mark { background: linear-gradient(transparent 55%, rgba(217,166,251,.55) 55%); color: inherit; padding: 0 .08em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r); border: 1px solid var(--line); margin: 0 auto; }
.prose figcaption { font-family: var(--sans); font-size: .9rem; color: var(--muted); text-align: center; margin-top: 10px; }
.share { display: flex; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 40px; background: linear-gradient(var(--line), var(--line)) 28px 0 / calc(100% - 56px) 1px no-repeat; margin-top: 16px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.share span:first-child { margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; font-weight: 600; font-size: .92rem; }
.share a:hover, .share button:hover { border-color: var(--blue); color: var(--blue-dark); }
.share svg { width: 18px; height: 18px; }
.post .cta-card { margin-top: 8px; }

/* ---------- footer */
.site-footer { background: var(--navy); color: #D2C0E6; font-size: .98rem; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 72px 0 56px; }
.footer-brand p { margin: 20px 0 24px; max-width: 24em; font-family: var(--serif); font-size: 1.1rem; color: #F0E2FB; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-cols a { display: block; color: #F0E2FB; text-decoration: none; padding: 5px 0; }
.footer-cols a:hover { color: #fff; }
.footer-h { color: #fff; font-weight: 800; margin: 0 0 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 32px; }
.footer-bottom p { margin: 0; font-size: .9rem; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.social a:hover { background: #fff; color: var(--navy); }
.social svg { width: 18px; height: 18px; }

/* ---------- responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 36px; }
  .inbox { margin: 0 auto; max-width: 460px; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .latest-grid, .card-wide .card-link, .resource, .cta-card, .footer-top, .contribute { grid-template-columns: 1fr; }
  .card-wide .card-link { gap: 0; }
  .card-wide .card-body { padding-top: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .resource { padding: 40px; }
  .cta-action { align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap, .wrap-narrow, .wrap-media { padding-left: 20px; padding-right: 20px; }
  .share { background-position: 20px 0; background-size: calc(100% - 40px) 1px; }
  .header-inner { height: 64px; }
  .nav { gap: 18px; }
  .nav a[href="/"], .nav a[href^="mailto"] { display: none; }
  .wm-logo { width: 40px; height: 40px; }
  .block { padding-top: 64px; }
  .topics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .topic { padding: 20px 18px; }
  .topic-name { font-size: 1.05rem; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .card-row .card-img { flex-basis: 34%; }
  .card-row .card-meta span { display: none; }
  .resource { padding: 32px 24px; gap: 32px; }
  .advertise, .cta-card { padding: 32px 26px; }
  .prose { font-size: 1.14rem; }
  .post-head { padding-top: 44px; }
  .post-image { aspect-ratio: 16 / 10; border-radius: 12px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
