/* ReferClub-inspired website theme, September 2026.
   Loaded after the original stylesheet so markup, content, forms, email templates,
   and SVG/SMIL animations remain unchanged. Green is reserved for the animation.
   Inter is self-hosted: no third-party font requests or CSP exceptions. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-v20.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/inter-latin-v20.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --bg: #fff;
  --card: #fff;
  --elevated: #fafafa;
  --text: #09090b;
  --muted: #52525b;
  --tertiary: #71717a;
  --border: #e4e4e7;
  --border2: #d4d4d8;
  --green: #09090b;
  --green2: #27272a;
  --green-muted: #f4f4f5;
  --green-border: #d4d4d8;
  --pink: #fafafa;
  --r: 12px;
  --font-head: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: var(--font-head);
}
body { background: #fff; letter-spacing: -.01em; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.035em; text-wrap: pretty; }
p { text-wrap: pretty; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #52525b; outline-offset: 4px;
}
input, textarea, select { color: var(--text); accent-color: #09090b; }
input::placeholder, textarea::placeholder { color: #71717a; opacity: 1; }
.container, .nav-inner { max-width: 1280px; padding-left: 48px; padding-right: 48px; }
#subscribe, #news { scroll-margin-top: 110px; }

/* Black announcement strip, white navigation, quiet wordmark. */
.featured-topbar {
  position: relative; min-height: 40px; padding: 10px 24px; gap: 14px;
  background: #09090b; color: #fafafa; border: 0; font-size: 12px; line-height: 1.5;
}
.featured-topbar .badge { background: #27272a; color: #fafafa; border: 1px solid #52525b; font-weight: 500; font-size: 9px; border-radius: 4px; }
.featured-topbar strong { font-size: 12px; font-weight: 600; }
.featured-topbar em { color: #d4d4d8; font-style: normal; }
.featured-topbar a { color: #fff; font-weight: 500; text-decoration: underline; }
.vibe-nav { position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(16px); border-bottom: 1px solid #f4f4f5; }
.nav-inner { height: 80px; gap: 24px; }
.logo { font-size: 27px; font-weight: 500; letter-spacing: -.045em; white-space: nowrap; }
.logo span { background: none; padding: 0; margin: 0; font-weight: 500; }
.nav-center { gap: 8px; }
.nav-center a { color: #3f3f46; font-size: 14px; font-weight: 500; padding: 10px 12px; }
.nav-center a:hover { background: #f4f4f5; }
.nav-right { gap: 12px; }
.btn-primary, .btn-outline { justify-content: center; border-radius: 6px; font-size: 14px; font-weight: 500; padding: 12px 18px; transition: background .2s, border-color .2s, transform .2s; }
.btn-primary { background: #09090b; color: #fff; }
.btn-primary:hover { background: #27272a; box-shadow: none; transform: translateY(-1px); }
.btn-primary span { background: none; padding: 0 0 0 4px; }
.btn-outline { background: #fff; border-color: #e4e4e7; }
.btn-outline:hover { background: #fafafa; border-color: #a1a1aa; color: #09090b; }
.vibe-nav .nav-right .btn-outline { background: #facc15; border-color: #facc15; color: #09090b; }
.vibe-nav .nav-right .btn-outline:hover { background: #eab308; border-color: #eab308; }

/* Keep the existing illustration and every animation; remove colored page washes. */
.hero { padding: 100px 0 108px; background: #fff; }
.hero:before, .grid-bg:after { background: none; }
.hero-content { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 64px; align-items: center; }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(52px,5.5vw,80px); line-height: 1.035; letter-spacing: -.045em; font-weight: 700; white-space: normal; margin: 0 0 28px; }
.hero h1 span { color: #09090b; }
.hero-desc { font-size: 18px; line-height: 1.7; color: #52525b; font-weight: 300; margin-bottom: 30px; }
.hero-signup { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 0; border: 0; border-radius: 0; box-shadow: none; max-width: 540px; }
.hero-signup input[type=text], .hero-signup input[type=email] { width: 100%; min-width: 0; height: 52px; font-size: 15px; border: 1px solid #d4d4d8; border-radius: 6px; padding: 0 16px; }
.hero-signup input:focus { border-color: #52525b; box-shadow: 0 0 0 3px #f4f4f5; }
.hero-signup button { grid-column: 1/-1; justify-self: start; min-width: 210px; height: 52px; padding: 0 26px; background: #09090b; border-radius: 6px; font-size: 15px; font-weight: 500; transition: background .2s, transform .2s; }
.hero-signup button span { margin-left: 14px; }
.hero-signup button:hover { background: #27272a; transform: translateY(-1px); }
.consent, .tip-form .consent { display: block; color: #71717a; font-size: 12px; line-height: 1.7; }
.consent input, .tip-form .consent input { display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }
.hero-visual { display: flex; min-width: 0; }
.hero-svg-wrap { max-height: none; overflow: visible; }
.trace-line { stroke: rgba(12,182,8,.35); }
.trace-line-glow { stroke: #0CB608; } /* Preserve original tracePulse duration, keyframes and SMIL. */
.cli-callout { margin-top: 24px; padding: 22px 24px; border: 1px solid #e4e4e7; border-radius: 12px; box-shadow: 0 2px 4px rgba(9,9,11,.03); }
.cli-callout code { font-size: clamp(12px,1.2vw,15px); font-weight: 600; overflow-wrap: anywhere; }
.cli-callout span { font-size: 13px; line-height: 1.7; color: #71717a; }
.hero-tag, .pill { border: 0; padding: 0; background: none; border-radius: 0; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #71717a; }
.hero-tag span { background: #09090b; box-shadow: none; }
.subscribe-callout { background: #fafafa; border-color: #e4e4e7; border-left-color: #09090b; box-shadow: none; }

/* Editorial cards: existing illustrations and text, now in neutral surfaces. */
.news-section { padding: 96px 0; background: #fafafa; }
.section-header { text-align: left; margin-bottom: 48px; }
.pill { margin-bottom: 16px; }
.section-header h2 { max-width: 830px; font-size: clamp(32px,3.6vw,50px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; }
.section-header p { font-weight: 300; line-height: 1.7; }
.news-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.news-card { border: 1px solid #e4e4e7; border-radius: 12px; box-shadow: 0 2px 3px rgba(9,9,11,.02); min-width: 0; }
.news-card.big { grid-column: 1/-1; grid-template-columns: 1fr 1fr; }
.news-card.compact { grid-column: auto; width: 100%; grid-template-columns: 1fr; }
.news-card > div:not(.card-media) { padding: 40px; }
.news-card .card-media { background: #09090b !important; padding: 40px; }
.news-card.compact .card-media { background: #f4f4f5 !important; border-bottom: 1px solid #e4e4e7; }
.news-card.compact .card-media svg { stroke: #52525b; }
.news-card.big h3 { font-size: 34px; font-weight: 600; line-height: 1.18; letter-spacing: -.03em; }
.news-card.compact h3 { font-size: 28px; }
.news-card span { color: #71717a; font-weight: 500; font-size: 11px; letter-spacing: .12em; margin-bottom: 18px; }
.news-card p { color: #52525b; font-size: 15px; font-weight: 300; line-height: 1.85; margin-bottom: 24px; }
.news-card p strong { color: #27272a; font-weight: 500; }
.news-card a { font-size: 14px; font-weight: 500; color: #09090b; text-decoration: underline; text-decoration-color: #d4d4d8; }
.news-card a:hover { text-decoration-color: #09090b; }
.news-week { margin-top: 18px !important; font-size: 14px !important; color: #71717a; }
.news-story.compact { grid-template-rows: auto 1fr; }
.news-story > div { display: flex; flex-direction: column; align-items: flex-start; }
.news-story > div > a { margin-top: auto; }
.news-story .news-image { margin: 0; min-width: 0; display: flex; flex-direction: column; background: #f4f4f5; }
.news-story .news-image img { width: 100%; height: 100%; min-height: 0; flex: 1; object-fit: cover; }
.news-story.compact .news-image img { height: auto; aspect-ratio: 16/9; flex: none; }
.news-story .news-image figcaption { padding: 10px 16px; background: #fafafa; border-top: 1px solid #e4e4e7; color: #71717a; font-size: 11px; line-height: 1.5; }
.news-story .news-image figcaption a { font: inherit; color: inherit; }
@media (max-width: 900px) {
  .news-story .news-image img { height: auto; aspect-ratio: 16/9; flex: none; }
}

/* ReferClub's dark community section, without adding or replacing content. */
.ecosystem-section { padding: 96px 0 104px; background: #09090b; border-color: #27272a; color: #fff; }
.ecosystem-section .section-header { text-align: center; }
.ecosystem-section .section-header h2 { max-width: none; color: #fafafa; }
.ecosystem-section .pill { color: #a1a1aa; }
.hub-cards { gap: 18px; }
.hub-cards a { min-width: 0; min-height: 250px; padding: 26px; background: #111113; border: 1px solid #27272a; border-radius: 12px; box-shadow: none; }
.hub-cards a:before { border: 0; }
.hub-cards a:hover { background: #18181b; border-color: #71717a; box-shadow: 0 12px 30px rgba(0,0,0,.15); transform: translateY(-3px); }
.hub-cards .hub-thumb { height: 48px !important; width: 48px; margin-bottom: 26px !important; border-radius: 10px !important; background: #27272a !important; border: 1px solid #3f3f46; }
.hub-cards .hub-artwork { width: 100%; height: 124px; display: flex; align-items: center; justify-content: center; padding: 16px; margin-bottom: 24px; background: #fff; border: 1px solid #3f3f46; border-radius: 10px; }
.hub-cards .hub-artwork-dark { background: #090909; }
.hub-cards .hub-artwork img { display: block; width: auto; height: auto; max-width: 100%; max-height: 84px; object-fit: contain; background: transparent; border: 0; border-radius: 0; margin: 0; box-shadow: none; }
.hub-cards b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #a1a1aa; font-size: 12px; font-weight: 400; margin-bottom: 14px; }
.hub-cards strong { color: #fafafa; font-size: 17px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.hub-cards span { color: #a1a1aa; font-size: 13px; line-height: 1.6; margin-top: 8px; }
.vibe-footer { padding: 68px 0 44px; text-align: left; background: #fff; border-color: #e4e4e7; }
.vibe-footer .container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.vibe-footer p { font-size: 20px; line-height: 1.4; text-transform: none; letter-spacing: -.03em; font-weight: 500; margin: 0; }
.vibe-footer nav { justify-content: flex-end; gap: 14px 24px; font-size: 13px; margin: 0; }
.vibe-footer nav a:hover { color: #09090b; text-decoration: underline; }
.vibe-footer small { grid-column: 1/-1; display: block; padding-top: 28px; border-top: 1px solid #f4f4f5; font-size: 12px; color: #71717a; }

/* The same typography and surfaces on editions, contact, privacy and result pages. */
.container.article { max-width: 960px; margin: 64px auto; padding: 48px; border: 1px solid #e4e4e7; border-radius: 12px; }
.article { color: #3f3f46; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.article h1 { color: #09090b; font-size: clamp(34px,4vw,52px); line-height: 1.12; letter-spacing: -.04em; margin: 28px 0 32px; }
.article h2 { color: #09090b; font-size: 27px; line-height: 1.3; margin: 40px 0 16px; }
.article h3 { color: #18181b; font-size: 21px; line-height: 1.4; }
.article a { color: #09090b; text-decoration-color: #a1a1aa; }
.article a:hover { text-decoration-color: #09090b; }
.back-home { color: #52525b; font-size: 13px; font-weight: 500; }
.article > a:first-child { color: #52525b; font-size: 13px; text-decoration: none; }
.article blockquote { background: #fafafa; border-left: 2px solid #09090b; border-radius: 0 8px 8px 0; padding: 22px 26px; color: #3f3f46; }
.article pre { max-width: 100%; overflow: auto; background: #f4f4f5; border: 1px solid #e4e4e7; border-radius: 8px; padding: 20px; }
.article code { font-size: .875em; overflow-wrap: anywhere; }
.article hr { border: 0; border-top: 1px solid #e4e4e7; margin: 32px 0; }
.article img { max-width: 100%; height: auto; }
.issue-list { margin: 32px 0 0; gap: 20px; }
.issue-list li { padding: 28px; border-radius: 8px; background: #fafafa; border-color: #e4e4e7; }
.issue-list li > a { font-size: 21px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.issue-list li > a:hover { text-decoration: underline; }
.issue-list p { color: #71717a; font-size: 15px; margin-bottom: 0; }
.media-card, .quote-card { background: #fafafa; border-radius: 10px; box-shadow: none; }
.tip-form { gap: 16px; }
.tip-form input, .tip-form textarea { border-color: #d4d4d8; border-radius: 6px; background: #fff; font-size: 15px; }
.tip-form button { min-height: 48px; padding: 12px 26px; background: #09090b; border-radius: 6px; font-weight: 500; cursor: pointer; }
.tip-form button:hover { background: #27272a; }
.tip-form .consent { font-size: 13px; }
body > main.container:not(.article) { max-width: 900px; margin-top: 80px; padding-bottom: 64px; }
body > main.container:not(.article) h1 { font-size: clamp(32px,4vw,52px); line-height: 1.12; }

/* Admin screens inherit the theme without touching their scripts or actions. */
.container.admin-article { max-width: 1280px; }
.stats div { border: 1px solid #e4e4e7; border-radius: 8px; box-shadow: none; padding: 24px; }
.stats b { color: #09090b; font-size: 38px; font-weight: 600; }
.admin-table th { background: #fafafa; font-weight: 500; }
.status.active, .status.pending, .status.unsubscribed { background: #f4f4f5; color: #3f3f46; }
body .ed-head, body .ed-card { border: 1px solid #e4e4e7; border-radius: 10px; }
body .ed-btn { background: #09090b; border-radius: 6px; font-weight: 500; }
body .ed-btn.sec, body .ed-btn.ghost { color: #09090b; background: #fff; border: 1px solid #d4d4d8; }
body .ed-btn.danger { background: #fff; }
body .ed-card h2 { font-weight: 500; font-size: 12px; letter-spacing: .1em; }
body .spon { border-color: #d4d4d8; background: #fafafa; }
body .ed-card input, body .ed-card textarea, body .ed-tokbar input { min-width: 0; }
body .ed-preview .article { padding: 24px; border-radius: 8px; }

@media (max-width: 1100px) {
  .container, .nav-inner { padding-left: 32px; padding-right: 32px; }
  .hero-content { gap: 40px; }
  .nav-inner { gap: 16px; }
  .nav-center a { padding: 8px; }
  .nav-right { gap: 8px; }
  .nav-right .btn-outline { padding: 12px; }
  .hub-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hub-cards a { min-height: 230px; }
}
@media (max-width: 900px) {
  .featured-topbar { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 10px 24px; }
  .nav-inner { height: auto; min-height: 80px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; gap: 16px; }
  .nav-center { display: flex; order: 3; width: 100%; justify-content: center; border-top: 1px solid #f4f4f5; padding-top: 8px; }
  .nav-right .btn-outline { display: inline-flex; }
  #subscribe, #news { scroll-margin-top: 160px; }
  .hero { padding: 64px 0 72px; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 680px; font-size: clamp(48px,8vw,72px); }
  .hero-desc { max-width: 680px; }
  .hero-signup { max-width: none; }
  .hero-visual { display: flex; width: 100%; max-width: 600px; margin: 0 auto; }
  .hero-svg-wrap { max-height: none; }
  .cli-callout code { font-size: 15px; }
  .news-section, .ecosystem-section { padding: 64px 0; }
  .section-header { margin-bottom: 32px; }
  .news-card.big { grid-template-columns: 1fr; }
  .news-card > div:not(.card-media) { padding: 28px; }
  .news-card.compact h3 { font-size: 25px; }
  .vibe-footer .container { grid-template-columns: 1fr; gap: 28px; }
  .vibe-footer nav { justify-content: flex-start; }
  .container.article { width: calc(100% - 48px); margin: 32px auto; padding: 32px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .container, .nav-inner { padding-left: 24px; padding-right: 24px; }
  .featured-topbar { font-size: 11px; padding: 10px 18px; gap: 5px 10px; text-align: center; }
  .featured-topbar em { flex-basis: 100%; order: 1; font-size: 10px; }
  .featured-topbar a { font-size: 10px; }
  .featured-topbar strong { font-size: 11px; }
  .featured-topbar .badge { font-size: 8px; padding: 2px 6px; }
  .nav-inner { gap: 12px 8px; }
  .logo { font-size: 23px; flex-basis: 100%; text-align: center; }
  .nav-right { gap: 6px; width: 100%; justify-content: center; }
  .nav-right .btn-outline, .nav-right .btn-primary { padding: 10px 9px; font-size: 11px; }
  .nav-center { gap: 16px; }
  .nav-center a { padding: 6px 0; font-size: 12px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: clamp(42px,10.6vw,58px); margin-bottom: 22px; }
  .hero-desc { font-size: 16px; line-height: 1.75; }
  .hero-signup { grid-template-columns: 1fr; gap: 12px; }
  .hero-signup button { width: 100%; }
  .hero-content { gap: 36px; }
  .cli-callout { margin-top: 8px; padding: 18px; }
  .cli-callout code { font-size: 12px; }
  .cli-callout span { font-size: 12px; }
  .section-header h2 { font-size: 32px; }
  .news-cards, .hub-cards { grid-template-columns: 1fr; gap: 20px; }
  .news-card.big h3 { font-size: 27px; }
  .news-card .card-media { min-height: 210px !important; }
  .news-card > div:not(.card-media) { padding: 26px; }
  .hub-cards a { min-height: 220px; }
  .hub-cards strong { font-size: 19px; }
  .vibe-footer { padding: 48px 0 32px; }
  .vibe-footer nav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .container.article { width: calc(100% - 32px); padding: 24px; margin: 16px auto; }
  .article h1 { font-size: 34px; }
  .article h2 { font-size: 24px; }
  .article { font-size: 15px; }
  .issue-list li { padding: 22px; }
  .issue-list li > a { font-size: 19px; }
  .stats { grid-template-columns: 1fr; }
  body .ed-wrap { padding: 24px 16px; }
  body .ed-meta-grid { grid-template-columns: 1fr; }
  body .ed-tokbar { min-width: 0; width: 100%; }
  body .ed-tokbar input { width: 100%; }
  body .ed-preview .article { padding: 16px; }
  .quote-card { grid-template-columns: 1fr; }
  .quote-card img { width: 100%; }
}
@media (max-width: 380px) {
  .nav-inner { padding-left: 16px; padding-right: 16px; }
  .logo { font-size: 21px; }
  .nav-right .btn-outline, .nav-right .btn-primary { font-size: 10px; padding: 10px 7px; }
}
