/* Giving Radar — shared styles for every page. */

:root {
  --purple: #633492; --purple-dark: #4A2470; --mauve: #7D6C8F; --lilac: #B79AD6;
  --ground: #F6F4EF; --paper: #FFFFFF; --ink: #2A2233; --muted: #5E5069; --faint: #8C7F99; --line: #CFC3DC;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1120px;
  --read: 700px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6;
       -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--purple); color: #fff; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 244, 239, .94); backdrop-filter: blur(8px);
               border-bottom: 1px solid rgba(207, 195, 220, .6); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 32px; object-fit: cover; object-position: top; } /* the radar only, not the logo's own wordmark */
.brand span { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; color: var(--mauve); }
.brand span b { color: var(--purple); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .08em; text-transform: uppercase;
         color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--purple); }
.nav .nav-cta { padding: 8px 16px; color: #fff; background: var(--purple); border-radius: 8px; }
.nav .nav-cta:hover { color: #fff; background: var(--purple-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; color: var(--purple); }
.menu-toggle svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2; }
/* Seven links: the menu folds earlier than it did with five. */
@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0;
         padding: 8px 24px 20px; background: var(--ground); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 20px; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-cta { margin-top: 8px; text-align: center; }
}

/* ---------- type ---------- */
.eyebrow { margin: 0 0 12px; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.display { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--ink); }
h1.display { font-size: clamp(46px, 7vw, 92px); }
h2.display { font-size: clamp(34px, 4.4vw, 54px); }
h3.display { font-size: 28px; }
.lede { max-width: 640px; margin: 20px 0 0; font-size: 21px; line-height: 1.5; color: var(--muted); }
.section { padding: 88px 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 40px; }
.source { display: block; margin-top: 12px; font-size: 14px; font-style: italic; color: var(--faint); }

/* ---------- home ---------- */
.hero { padding: 72px 0 32px; }
.hero .display { max-width: 900px; color: var(--mauve); }
.hero .display em { font-style: normal; color: var(--purple); }
.hero-title { margin: 0 auto; text-align: center; text-wrap: balance; }
.hero-sub { max-width: 640px; margin: 18px auto 0; text-align: center; font-size: 20px; line-height: 1.5; color: var(--muted); }
.map { position: relative; width: 100%; max-width: 1200px; aspect-ratio: 1200 / 490; margin: 24px auto 0; }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar { position: absolute; width: clamp(50px, 10vw, 120px); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.radar svg { width: 100%; height: auto; display: block; overflow: visible; }
.tag { position: absolute; top: 100%; margin-top: 4px; padding: 2px 10px; background: var(--ground); border: 1px solid #D9CFE3; border-radius: 999px;
       font-size: clamp(9px, 1vw, 12px); line-height: 1.5; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); white-space: nowrap; }
.lens { fill: var(--ground); fill-opacity: .86; }
.ring { fill: none; stroke: var(--purple); stroke-opacity: .35; stroke-width: 3; }
.cross { stroke: var(--purple); stroke-opacity: .25; stroke-width: 2; }
.sweep path { fill: var(--purple); fill-opacity: .16; }
.sweep line { stroke: var(--purple); stroke-opacity: .55; stroke-width: 1.5; }
.pulse { fill: none; stroke: var(--purple); stroke-width: 2; }
.blip { fill: var(--purple); }
.blip2 { fill: var(--purple); fill-opacity: .55; }
.sweep, .pulse { transform-box: view-box; transform-origin: 60px 60px; }
.sweep { animation: spin 4s linear infinite; animation-delay: var(--d); }
.pulse { animation: pulse 4s ease-out infinite; animation-delay: var(--d); }
.blip { animation: blip 4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.4); opacity: .55; } 100% { transform: scale(1.85); opacity: 0; } }
@keyframes blip { 0%, 100% { opacity: .45; } 20% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sweep, .pulse, .blip { animation: none; } .pulse { opacity: 0; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none;
         border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.stats li { padding: 28px 24px 28px 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats .num { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(52px, 6vw, 76px); line-height: 1; color: var(--purple); }
.stats .label { display: block; margin-top: 8px; font-size: 17px; line-height: 1.4; color: var(--muted); }
/* Five numbers (the home page): narrower columns, smaller figures. Wide screens only, so the
   one-column rule for small screens below still applies. */
@media (min-width: 861px) {
  .stats.five { grid-template-columns: repeat(5, 1fr); }
  .stats.five li { padding-right: 16px; }
  .stats.five li + li { padding-left: 16px; }
  .stats.five .num { font-size: clamp(38px, 4.2vw, 54px); }
  .stats.five .label { font-size: 16px; }
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
        color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { color: var(--ink); border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(42, 34, 51, .08); }
.card h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.05; text-transform: uppercase; color: var(--purple); }
.card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.card .source { margin-top: auto; padding-top: 18px; }
.card .more { margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps .n { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .12em; color: var(--lilac); }
.steps h3 { margin: 4px 0 10px; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.steps p { margin: 0; font-size: 17px; color: var(--muted); }

@media (max-width: 860px) {
  .stats, .cards, .steps { grid-template-columns: 1fr; }
  .stats li, .stats li + li { padding: 22px 0; border-left: 0; }
  .stats li + li { border-top: 1px solid var(--line); }
  .steps { gap: 32px; }
}

/* ---------- subscribe ---------- */
.subscribe { padding: 56px; background: var(--purple); color: #fff; border-radius: 20px; }
.subscribe .display { color: #fff; }
.subscribe .lede { color: #E6DAF2; }
.subscribe form { margin-top: 28px; max-width: 620px; }
.hero .subscribe-form { margin-top: 32px; max-width: 620px; }
.form-label { display: block; margin-bottom: 10px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.subscribe .form-label { color: #fff; }
.form-row { display: flex; gap: 12px; }
.form-row input { flex: 1; min-width: 0; height: 56px; padding: 0 20px; font: 18px var(--body); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 10px; }
.form-row button { height: 56px; padding: 0 30px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .1em; text-transform: uppercase;
                   color: #fff; background: var(--purple); border: 0; border-radius: 10px; cursor: pointer; }
.form-row button:hover { background: var(--purple-dark); }
@media (min-width: 641px) { .form-row input[name="name"] { flex: .7; } } /* in a row: shorter than the email */
.subscribe .form-row input { border-color: transparent; }
.subscribe .form-row button { color: var(--purple); background: #fff; }
.subscribe .form-row button:hover { background: #EFE7F7; }
.form-note { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.subscribe .form-note { color: #E6DAF2; }
.form-error { margin: 8px 0 0; font-size: 15px; color: #9B2C3C; }
.form-error:empty { display: none; }
.subscribe .form-error { color: #FFD4DC; }
.form-thanks strong { display: block; font-family: var(--display); font-size: 30px; text-transform: uppercase; color: var(--purple); }
.form-thanks p { margin: 4px 0 0; font-size: 17px; color: var(--muted); overflow-wrap: anywhere; }
.subscribe .form-thanks strong { color: #fff; }
.subscribe .form-thanks p { color: #E6DAF2; }
@media (max-width: 640px) {
  .subscribe { padding: 32px 22px; border-radius: 16px; }
  .form-row { flex-direction: column; }
  .form-row input, .form-row button { flex: none; width: 100%; height: 52px; } /* stacked: don't let flex squash the height */
}

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head .display { max-width: 900px; }
.page-head .lede { max-width: 700px; }
.intro { max-width: 700px; margin: 28px 0 0; padding-left: 20px; border-left: 3px solid var(--purple); font-size: 20px; line-height: 1.55; color: var(--ink); }
.intro p { margin: 0 0 12px; }
.intro p:last-child { margin-bottom: 0; }

/* ---------- long-form reading ---------- */
.prose { max-width: var(--read); padding: 56px 0 24px; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { margin: 2.2em 0 0; font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.prose h3 { margin: 1.8em 0 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; text-transform: uppercase; color: var(--purple); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--purple); }
.prose strong { color: var(--ink); }
.prose code { padding: 1px 6px; font-family: var(--mono); font-size: .82em; background: #ECE5F3; border-radius: 5px; overflow-wrap: anywhere; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--lilac); font-size: 20px; font-style: italic; color: var(--muted); }
.prose .source { margin-top: 2em; padding-top: 16px; border-top: 1px solid var(--line); }
.prose .note { padding: 16px 20px; background: #EFE9F5; border-radius: 10px; font-size: 16px; color: var(--muted); }
/* Blog posts (rendered from Markdown by the backend). */
.prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.prose figure { margin: 0; }
.prose pre { overflow-x: auto; padding: 16px 20px; background: #ECE5F3; border-radius: 10px; }
.prose pre code { padding: 0; background: none; }
.prose table { display: block; overflow-x: auto; }
.prose h4 { margin: 1.6em 0 0; font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--ink); }
.prose .contains-task-list { list-style: none; padding-left: 0; }
.prose .task-list-item-checkbox { margin-right: .5em; accent-color: var(--purple); }
.prose .footnotes-sep { margin-top: 2.5em; }
.prose .footnotes { font-size: 15px; color: var(--muted); }
.prose .footnote-ref a, .prose .footnote-backref { text-decoration: none; }
.page-head .source { margin-top: 16px; font-size: 15px; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 1.4em 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #E8E1EF; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); background: #FAF8FC; }
td.num { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--purple); white-space: nowrap; }
td code { white-space: nowrap; overflow-wrap: normal; }
.table-wrap table { min-width: 560px; }

/* post lists and pages (the blog) */
.post-list { display: grid; gap: 20px; padding: 48px 0 0; margin: 0; list-style: none; }
.post-list .card h3 { font-size: 36px; }
.post-list .card p { font-size: 18px; }
.post-meta { margin: 20px 0 0; font-size: 15px; font-style: italic; color: var(--faint); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; max-width: var(--read); padding: 24px 0 0; border-top: 1px solid var(--line); }
.post-nav a { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

/* calendar */
.moments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 980px; margin: 1.4em 0 0; padding: 0; list-style: none; }
.moments li { padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.moments h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; text-transform: uppercase; color: var(--purple); }
.moments p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) { .moments { grid-template-columns: 1fr; } }
.wide { max-width: 980px; }

/* about */
.mission { margin: 0; padding: 40px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02;
           text-transform: uppercase; color: var(--purple); max-width: 900px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--purple); text-decoration: underline; }
.socials { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.social { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--purple); text-decoration: none; }
.social:hover { text-decoration: underline; }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.social .dot { fill: currentColor; stroke: none; }
.footer-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-link:hover { color: var(--purple); }

/* ---------- cookie banner ---------- */
.cookies { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; width: min(720px, calc(100% - 32px));
           display: flex; align-items: center; gap: 20px; padding: 18px 20px; background: #fff; color: var(--ink);
           border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(42, 34, 51, .16); }
.cookies p { margin: 0; flex: 1; font-size: 15px; line-height: 1.45; color: var(--muted); }
.cookies strong { display: block; margin-bottom: 2px; font-family: var(--display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.cookies .actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookies button { height: 44px; padding: 0 18px; border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 16px;
                  letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cookies .accept { color: #fff; background: var(--purple); border: 2px solid var(--purple); }
.cookies .accept:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.cookies .essential { color: var(--purple); background: #fff; border: 2px solid var(--line); }
.cookies .essential:hover { border-color: var(--purple); }
@media (prefers-reduced-motion: no-preference) {
  .cookies { animation: cookies-in .35s ease-out; }
  @keyframes cookies-in { from { opacity: 0; transform: translate(-50%, 16px); } }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .hero, .page-head { padding-top: 48px; }
  .lede { font-size: 19px; }
  .intro { font-size: 18px; }
  .prose { padding-top: 40px; }
  .tag { padding: 1px 6px; letter-spacing: .1em; }
  .cookies { bottom: 16px; flex-direction: column; align-items: stretch; gap: 14px; }
  .cookies .actions { flex-direction: column-reverse; }
  .cookies button { width: 100%; }
}

/* ---------- prices ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 56px 0 0; }
.plan { display: flex; flex-direction: column; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.plan-open { border: 2px solid var(--purple); }
.plan-closed { background: transparent; border-style: dashed; }
.plan-status { align-self: flex-start; margin: 0 0 18px; padding: 3px 12px; font-family: var(--display); font-weight: 600; font-size: 15px;
               letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--purple); border-radius: 999px; }
.plan-closed .plan-status { color: var(--muted); background: #E6DEEE; }
.plan h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.plan-price { margin: 10px 0 0; font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; color: var(--purple); }
.plan-closed .plan-price { color: var(--mauve); }
.plan-price span { font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--faint); }
.plan-for { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink); }
.plan ul { margin: 20px 0 28px; padding: 20px 0 0 1.2em; border-top: 1px solid var(--line); }
.plan li { font-size: 17px; line-height: 1.5; color: var(--muted); }
.plan li + li { margin-top: .7em; }
.plan li::marker { color: var(--purple); }
.plan li strong { color: var(--ink); }
.plan-cta { margin-top: auto; padding: 12px 20px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .08em;
            text-align: center; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--purple); border-radius: 8px; }
.plan-cta:hover { background: var(--purple-dark); }
.plan-closed .plan-cta { color: var(--purple); background: transparent; border: 1px solid var(--purple); }
.plan-closed .plan-cta:hover { color: #fff; background: var(--purple); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
