/*
Theme Name: REASON
Theme URI: https://reasonaccelerator.com/
Description: Site theme for REASON, the AI acceleration program of Golrang Accelerator. RTL / Persian.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: reason
*/

/* ── Fonts (bundled: Google Fonts is slow or blocked for many visitors in Iran) ── */
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/vazirmatn-var.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/jetbrains-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/jetbrains-mono-600.woff2') format('woff2'); }

/* ── Tokens: dark theme, brand blue (the dot in the REASON logo) ──
   --accent  #3843D7  brand blue: fills, buttons, bars
   --accent2 #5B66F0  lifted blue: glows, lines and marks drawn on the dark background
   --accent-ink #8B93FF  blue text on the dark background (contrast 6.9:1) */
:root {
	--bg: #07090D; --surf: #0E121A; --surf2: #141A25; --fg: #EDEFF3; --muted: #9AA3B5;
	--line: rgba(237,239,243,0.08); --line2: rgba(237,239,243,0.16);
	--glass: rgba(10,13,19,0.62); --glass2: rgba(14,18,26,0.78); --logo-ink: #FFFFFF;
	--accent: #3843D7; --accent2: #5B66F0; --accent-ink: #8B93FF; --on-accent: #FFFFFF;
	--r: 14px; --rb: 10px; --grid-o: 1; --grain-o: 0;
	--pad: 40px; --header-h: 72px;
	--mono: 'JetBrains Mono', ui-monospace, monospace;
}
@media (max-width: 639px) { :root { --pad: 20px; } }

html, body { margin: 0; background: var(--bg); }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }
img { max-width: 100%; height: auto; }
bdi { unicode-bidi: isolate; }

.rs-root { position: relative; min-height: 100vh; background: var(--bg); color: var(--fg); font-family: Vazirmatn, Tahoma, sans-serif; font-size: 17px; line-height: 1.9; overflow-x: clip; }
.rs-mono { font-family: var(--mono); }
.rs-wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }

/* Skip link */
.rs-skip { position: absolute; right: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--rb); }
.rs-skip:focus { top: 12px; color: var(--on-accent); }

/* Background texture */
.rs-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--grid-o); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.rs-grain { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: var(--grain-o); mix-blend-mode: overlay; }

/* ── Announcement bar ── */
.rs-announce { position: relative; z-index: 5; background: var(--accent); color: var(--on-accent); }
.rs-announce__in { max-width: 1320px; margin: 0 auto; padding: 8px var(--pad); display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 14px; line-height: 1.6; flex-wrap: wrap; text-align: center; }
.rs-announce__tag { font-family: var(--mono); font-size: 11px; font-weight: 600; border: 1px solid currentColor; padding: 1px 7px; border-radius: 4px; }
.rs-announce a { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.rs-announce a:hover { color: inherit; }

/* ── Header ── */
.rs-header { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.admin-bar .rs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rs-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rs-header { top: 0; } }
.rs-header__in { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rs-brand { display: flex; align-items: center; gap: 14px; flex: none; }
.rs-brand:hover { color: inherit; }
.rs-brand__logo { --accent: var(--accent2); position: relative; display: inline-flex; }
.rs-brand__logo svg { display: block; }
.rs-brand__sep { width: 1px; height: 26px; background: var(--line2); }
.rs-brand__sub { font-size: 12px; line-height: 1.5; color: var(--muted); white-space: nowrap; }
.rs-nav { white-space: nowrap; display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.rs-nav a:hover, .rs-nav a[aria-current="page"] { color: var(--fg); }
.rs-header__actions { display: flex; align-items: center; gap: 10px; }
.rs-menu-btn { display: none; background: transparent; border: 1px solid var(--line2); color: var(--fg); border-radius: var(--rb); width: 44px; height: 44px; font: inherit; cursor: pointer; }
.rs-mnav { display: flex; flex-direction: column; padding: 8px var(--pad) 20px; gap: 4px; font-size: 17px; border-top: 1px solid var(--line); }
.rs-mnav[hidden] { display: none; }
.rs-mnav a { padding: 10px 0; }
@media (max-width: 1119px) {
	.rs-nav { display: none; }
	.rs-menu-btn { display: inline-block; }
}
@media (min-width: 1120px) { .rs-mnav { display: none !important; } }
@media (max-width: 420px) { .rs-brand__sep, .rs-brand__sub { display: none; } }

/* ── Buttons ── */
.rs-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; border-radius: var(--rb); font-weight: 800; transition: box-shadow 300ms, border-color 300ms, background-color 300ms; }
.rs-btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 transparent; }
.rs-btn--accent:hover { color: var(--on-accent); box-shadow: 0 0 32px color-mix(in oklab, var(--accent2) 55%, transparent); }
.rs-btn--sm { font-size: 15px; padding: 10px 18px; }
.rs-btn--lg { font-size: 17px; padding: 15px 26px; gap: 12px; }
.rs-btn--lg.rs-btn--accent:hover { box-shadow: 0 0 44px color-mix(in oklab, var(--accent2) 60%, transparent); }
.rs-btn--ghost { border: 1px solid var(--line2); color: var(--fg); font-weight: 600; font-size: 17px; padding: 15px 24px; background: var(--glass); backdrop-filter: blur(8px); }
.rs-btn--ghost:hover { border-color: var(--fg); color: var(--fg); }
.rs-btn--dark { align-self: flex-start; background: var(--bg); color: var(--fg); padding: 13px 22px; }
.rs-btn--dark:hover { color: var(--fg); box-shadow: 0 0 0 1px var(--bg), 0 10px 30px rgba(0,0,0,.35); }
@media (max-width: 420px) { .rs-header .rs-btn--sm { padding: 10px 12px; font-size: 14px; } }

/* ── Hero ──
   Desktop (≥900px, motion allowed): the hero is 175vh tall and its stage sticks for the scroll,
   so the neural field condenses into the wordmark as you scroll. Narrow screens: a normal block. */
.rs-hero { position: relative; height: auto; }
.rs-hero__stage { position: relative; top: 0; height: auto; min-height: 0; overflow: hidden; }
.rs-hero__canvas { --accent: var(--accent2); position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; transition: opacity 600ms; }
.rs-hero__fade-side { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, var(--bg) 0%, color-mix(in oklab, var(--bg) 72%, transparent) 36%, transparent 62%); }
.rs-hero__fade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; pointer-events: none; background: linear-gradient(to top, var(--bg), transparent); }
.rs-hero__glow { position: absolute; width: 70vw; height: 70vw; left: -18vw; top: -26vw; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent2) 18%, transparent), transparent); }
.rs-hero__content { position: relative; max-width: 1320px; margin: 0 auto; min-height: 100%; padding: 56px var(--pad); display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
@media (min-width: 900px) {
	.rs-hero { height: 175vh; }
	.rs-hero__stage { position: sticky; height: 100vh; min-height: 700px; }
	.rs-hero__content { padding-block: 0; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
	.rs-hero { height: auto; }
	.rs-hero__stage { position: relative; height: auto; min-height: 100vh; }
	.rs-hero__content { padding-block: 96px; }
}
.rs-hero__copy { flex: 1 1 560px; max-width: 780px; display: flex; flex-direction: column; gap: 28px; }
.rs-kicker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.rs-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink); border: 1px solid color-mix(in oklab, var(--accent2) 55%, transparent); padding: 3px 10px; border-radius: 999px; }
.rs-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 10px var(--accent2); }
.rs-h1 { margin: 0; font-weight: 900; font-size: clamp(42px, 6.2vw, 96px); line-height: 1.28; text-wrap: balance; }
.rs-lead { margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.95; color: var(--muted); max-width: 640px; text-wrap: pretty; }
.rs-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Countdown */
.rs-cd { display: flex; max-width: 100%; align-items: stretch; align-self: flex-start; background: var(--glass); border: 1px solid var(--line2); border-radius: var(--r); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.rs-cd__label { padding: 12px 18px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-inline-end: 1px solid var(--line); }
.rs-cd__label b { font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.rs-cd__label span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.rs-cd__units { display: flex; }
.rs-cd__unit { padding: 10px 16px; text-align: center; min-width: 70px; }
.rs-cd__unit + .rs-cd__unit { border-inline-start: 1px solid var(--line); }
.rs-cd__num { font-size: 30px; font-weight: 800; line-height: 1.3; }
.rs-cd__unit small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 520px) {
	.rs-cd { flex-direction: column; align-self: stretch; }
	.rs-cd__label { border-inline-end: 0; border-bottom: 1px solid var(--line); flex-direction: row; justify-content: space-between; align-items: center; }
	.rs-cd__units { justify-content: space-between; }
	.rs-cd__unit { flex: 1; min-width: 0; padding: 10px 6px; }
	.rs-cd__num { font-size: 26px; }
}
.rs-cd__num--accent { color: var(--accent-ink); }
.rs-sponsor { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.rs-sponsor::before { content: ""; width: 28px; height: 1px; background: var(--line2); flex: none; }
.rs-sponsor strong { color: var(--fg); font-weight: 700; }

/* ── Stats ── */
.rs-stats { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 70%, transparent); }
.rs-stats__grid { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.rs-stat { padding: 48px 28px 44px; display: flex; flex-direction: column; gap: 10px; }
.rs-stat + .rs-stat { border-inline-start: 1px solid var(--line); }
.rs-stat__tag { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); }
.rs-stat__num { font-size: clamp(60px, 6.4vw, 96px); font-weight: 900; line-height: 1; }
.rs-stat__label { font-size: 17px; color: var(--muted); line-height: 1.7; }
@media (max-width: 559px) { .rs-stat + .rs-stat { border-inline-start: 0; border-top: 1px solid var(--line); } .rs-stat { padding: 32px 8px; } }

/* ── Section heads ── */
.rs-section { position: relative; padding: 128px 0 96px; }
@media (max-width: 899px) { .rs-section { padding: 88px 0 64px; } }
.rs-shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.rs-shead__main { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.rs-eyebrow { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }
.rs-h2 { margin: 0; font-weight: 900; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.3; }
.rs-shead p { margin: 0; max-width: 420px; color: var(--muted); font-size: 17px; line-height: 1.9; }

/* ── Bento ── */
.rs-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rs-bento .rs-span2 { grid-column: span 2; }
.rs-bento .rs-rspan2 { grid-row: span 2; }
@media (max-width: 899px) { .rs-bento { grid-template-columns: minmax(0, 1fr); } .rs-bento .rs-span2, .rs-bento .rs-rspan2 { grid-column: auto; grid-row: auto; } }
.rs-card { padding: 1px; border-radius: var(--r); background: linear-gradient(115deg, var(--line2) 0%, var(--line2) 40%, var(--accent2) 50%, var(--line2) 60%, var(--line2) 100%); background-size: 300% 300%; }
.rs-card__in { position: relative; height: 100%; background: var(--surf); border-radius: calc(var(--r) - 1px); padding: 30px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 270px; }
.rs-card__spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--accent) 11%, transparent), transparent 60%); opacity: var(--spot, 0); transition: opacity 400ms; }
.rs-card__tag { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.rs-card h3 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.4; }
.rs-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
@media (max-width: 559px) { .rs-card__in { padding: 22px; } .rs-card h3 { font-size: 22px; } }

/* ── Intro: the one-line position + the two framing paragraphs ── */
.rs-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
@media (max-width: 899px) { .rs-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.rs-statement { margin: 0; font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.45; text-wrap: balance; }
.rs-statement em { font-style: normal; color: var(--accent-ink); }
.rs-intro__text p { margin: 0 0 1.2em; color: var(--muted); font-size: 18px; line-height: 2; }
.rs-intro__text p:first-child { color: var(--fg); }
.rs-intro__text p:last-child { margin-bottom: 0; }

/* ── Card pairs and the four-step growth flow ── */
.rs-duo, .rs-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 899px) { .rs-duo, .rs-flow { grid-template-columns: minmax(0, 1fr); } }
.rs-card__num { font-size: 14px; font-weight: 800; color: var(--accent-ink); }
.rs-card p + p { margin-top: 4px; }
.rs-chips { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.rs-chip__mark { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.rs-areas { margin-top: auto; position: relative; height: 68px; overflow: hidden; border-top: 1px solid var(--line); padding-top: 10px; }
.rs-areas span { position: absolute; right: 0; top: 12px; font-size: clamp(26px, 2.8vw, 38px); font-weight: 900; line-height: 1.3; color: var(--accent-ink); white-space: nowrap; }

/* ── Closing call to action ── */
.rs-cta { position: relative; z-index: 2; padding: 0 0 120px; }
.rs-cta__box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--accent); color: var(--on-accent); border-radius: var(--r); padding: 40px; }
.rs-cta__box h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1.4; }
.rs-cta__box p { margin: 6px 0 0; font-size: 17px; line-height: 1.9; opacity: .9; }
@media (max-width: 639px) { .rs-cta__box { padding: 28px 22px; } }

/* ── Pinned path ── */
.rs-pin { position: relative; height: 300vh; }
@media (max-width: 899px) { .rs-pin { height: 380vh; } }
.rs-pin__view { position: sticky; top: 0; height: 100vh; min-height: 760px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 44px; padding-top: 72px; }
@media (max-width: 899px) { .rs-pin__view { min-height: 640px; gap: 28px; } }
.rs-track { position: relative; display: flex; gap: 24px; width: max-content; padding-top: 44px; will-change: transform; }
.rs-stage { position: relative; width: clamp(290px, 30vw, 420px); opacity: 0.45; }
@media (max-width: 380px) { .rs-stage { width: 270px; } }
.rs-stage__dot { position: absolute; top: -40px; right: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent2); }
.rs-stage__card { height: 100%; background: var(--surf); border: 1px solid var(--line2); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.rs-stage__card h3 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.4; }
.rs-stage__card p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }

/* ── Footer ── */
.rs-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.rs-footer__in { max-width: 1320px; margin: 0 auto; padding: 28px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* ── Inner pages (magazine, about, apply…) ── */
.rs-page { position: relative; z-index: 2; padding: 96px 0 120px; }
@media (max-width: 899px) { .rs-page { padding: 56px 0 88px; } }
.rs-page__head { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin-bottom: 48px; }
.rs-page__title { margin: 0; font-weight: 900; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.3; }
.rs-page__meta { color: var(--muted); font-size: 15px; }
.rs-prose { max-width: 820px; font-size: 18px; line-height: 2; color: color-mix(in oklab, var(--fg) 88%, var(--muted)); }
.rs-prose > * { margin-block: 0 1.1em; }
.rs-prose h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; line-height: 1.4; color: var(--fg); margin-top: 1.8em; }
.rs-prose h3 { font-size: 22px; font-weight: 800; line-height: 1.5; color: var(--fg); margin-top: 1.6em; }
.rs-prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.rs-prose strong { color: var(--fg); }
.rs-prose ul, .rs-prose ol { padding-inline-start: 1.3em; }
.rs-prose li { margin-bottom: .4em; }
.rs-prose li::marker { color: var(--accent-ink); }
.rs-prose blockquote { margin-inline: 0; padding: 18px 22px; border-inline-start: 3px solid var(--accent2); background: var(--surf); border-radius: 0 var(--r) var(--r) 0; }
.rs-prose code, .rs-prose .rs-mono { font-family: var(--mono); font-size: .85em; }
.rs-prose figure { margin-inline: 0; }
.rs-prose .wp-block-image img, .rs-prose img { border-radius: var(--r); }
.rs-prose hr { border: 0; height: 1px; background: var(--line2); margin-block: 2.4em; }
.rs-path { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); direction: ltr; unicode-bidi: isolate; }
.rs-note { border: 1px solid var(--line2); background: var(--surf); border-radius: var(--r); padding: 22px 24px; color: var(--muted); }

/* Magazine list */
.rs-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.rs-post { display: flex; flex-direction: column; gap: 10px; background: var(--surf); border: 1px solid var(--line2); border-radius: var(--r); padding: 26px; transition: border-color 300ms; }
.rs-post:hover { border-color: var(--accent2); color: inherit; }
.rs-post h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.5; }
.rs-post p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.rs-post__meta { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }
.rs-post__thumb { margin: -26px -26px 6px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surf2); }
.rs-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.rs-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--rb); color: var(--muted); }
.rs-pagination .page-numbers.current, .rs-pagination a.page-numbers:hover { border-color: var(--accent2); color: var(--fg); }

/* Apply form */
.rs-form { max-width: 820px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.rs-form .rs-field--wide { grid-column: 1 / -1; }
@media (max-width: 639px) { .rs-form { grid-template-columns: minmax(0, 1fr); } }
.rs-field { display: flex; flex-direction: column; gap: 8px; }
.rs-field label { font-size: 15px; font-weight: 700; }
.rs-field label small { color: var(--muted); font-weight: 400; }
.rs-field input, .rs-field select, .rs-field textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--surf); border: 1px solid var(--line2); border-radius: var(--rb); padding: 12px 14px; outline: none; width: 100%; transition: border-color 200ms, box-shadow 200ms; }
.rs-field textarea { min-height: 150px; resize: vertical; line-height: 1.8; }
.rs-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 50%, 13px 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 36px; }
.rs-field input:focus, .rs-field select:focus, .rs-field textarea:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent2) 30%, transparent); }
.rs-field input[dir="ltr"] { text-align: left; }
.rs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rs-form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.rs-form__foot button { border: 0; cursor: pointer; font-family: inherit; }
.rs-form__foot p { margin: 0; color: var(--muted); font-size: 14px; }
.rs-alert { max-width: 820px; border-radius: var(--r); padding: 18px 22px; margin-bottom: 28px; border: 1px solid var(--line2); background: var(--surf); }
.rs-alert--ok { border-color: color-mix(in oklab, var(--accent2) 60%, transparent); }
.rs-alert--ok b { color: var(--accent-ink); }
.rs-alert--err { border-color: #ff6b6b; }
.rs-alert ul { margin: 8px 0 0; padding-inline-start: 1.2em; }

/* 404 */
.rs-404 { font-family: var(--mono); font-size: clamp(90px, 16vw, 200px); line-height: 1; font-weight: 600; color: var(--accent-ink); }

/* WordPress bits */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.alignwide { max-width: 1100px; }
.aligncenter { margin-inline: auto; display: block; }
