/* ==========================================================================
   SAV — Base: fonts, reset, typography, links, focus, prose.
   ========================================================================== */

/* Self-hosted, latin subset only — the site is English. */
@font-face {
	font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("../fonts/geist-400-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap;
	src: url("../fonts/geist-500-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap;
	src: url("../fonts/geist-600-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Fragment Mono"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("../fonts/fragmentmono-400-latin.woff2") format("woff2");
}
/* Geist 700 + 800 — Figma ExtraBold headings ke liye (Google-hosted) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2) format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* an author display: on a component must never resurrect a hidden element */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--sav-header-h) + var(--sav-header-top) + 16px);
}
body {
	margin: 0;
	background: var(--sav-bg);
	color: var(--sav-fg);
	font-family: var(--sav-font-sans);
	font-size: var(--sav-text-body);
	line-height: var(--sav-leading-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 600; color: var(--sav-fg); text-wrap: balance; }
h1 { font-size: var(--sav-text-h1); line-height: var(--sav-leading-h1); letter-spacing: var(--sav-track-h1); }
h2 { font-size: var(--sav-text-h2); line-height: var(--sav-leading-h2); letter-spacing: var(--sav-track-h2); }
h3 { font-size: var(--sav-text-h3); line-height: var(--sav-leading-h3); letter-spacing: var(--sav-track-h3); }
h4 { font-size: var(--sav-text-body); line-height: var(--sav-leading-h3); }
hr { border: 0; border-top: 1px solid var(--sav-line); margin: var(--sav-8) 0; }
strong, b { font-weight: 600; }
small { font-size: var(--sav-text-small); }
::selection { background: rgba(59, 130, 246, .22); }

/* Kicker — Fragment Mono, uppercase, wide tracking. */
.kicker,
.is-style-kicker {
	font-family: var(--sav-font-mono);
	font-size: var(--sav-text-kicker);
	letter-spacing: var(--sav-track-kicker);
	text-transform: uppercase;
	color: var(--sav-fg-faint);
	line-height: 1.4;
	margin: 0 0 var(--sav-4);
	font-weight: 400;
}
.kicker--accent { color: var(--sav-accent); }
.lede, .is-style-lede { font-size: var(--sav-text-lede); line-height: var(--sav-leading-lede); color: var(--sav-fg-soft); max-width: var(--sav-measure); }
.mono, .data { font-family: var(--sav-font-mono); font-variant-numeric: tabular-nums; }
.text-soft { color: var(--sav-fg-soft); }
.text-faint { color: var(--sav-fg-faint); }
.measure { max-width: var(--sav-measure); }

/* Focus: visible, on-brand, never removed. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sav-accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
	position: absolute; left: var(--sav-4); top: -100px; z-index: calc(var(--z-menu) + 1);
	padding: var(--sav-3) var(--sav-4); background: var(--sav-ink); color: var(--sav-white);
	border-radius: var(--sav-radius-sm); font-weight: 500;
}
.skip-link:focus { top: var(--sav-4); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}

/* Prose (page editor content) */
.prose { max-width: var(--sav-measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose a { color: var(--sav-accent); text-decoration: underline; text-decoration-color: rgba(59, 130, 246, .35); text-underline-offset: .18em; }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote {
	margin: 1.5em 0; padding: var(--sav-5) var(--sav-6);
	border-left: 3px solid var(--sav-accent); background: var(--sav-bg-alt);
	border-radius: 0 var(--sav-radius-md) var(--sav-radius-md) 0; color: var(--sav-fg-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul.is-style-slashes, ul.is-style-slashes { list-style: none; padding-left: 0; }
.prose ul.is-style-slashes li, ul.is-style-slashes li { position: relative; padding-left: 1.9em; margin-bottom: .5em; }
.prose ul.is-style-slashes li::before, ul.is-style-slashes li::before {
	content: ""; position: absolute; left: 0; top: .5em; width: 20px; height: 8px;
	background: url("../img/sav-logomark.svg") no-repeat left center / contain;
}
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-family: var(--sav-font-mono); font-size: var(--sav-text-kicker); letter-spacing: .06em; color: var(--sav-fg-faint); margin-top: var(--sav-2); }
.prose img { border-radius: var(--sav-radius-lg); }
.prose code { font-family: var(--sav-font-mono); font-size: .92em; background: var(--sav-bg-alt); padding: .1em .35em; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--sav-text-small); }
.prose th, .prose td { text-align: left; padding: var(--sav-3) var(--sav-2); border-bottom: 1px solid var(--sav-line); }
.prose th { font-family: var(--sav-font-mono); font-size: var(--sav-text-kicker); letter-spacing: .1em; text-transform: uppercase; color: var(--sav-fg-faint); font-weight: 400; }
.prose .wp-block-buttons { margin-top: 1.6em; }

/* Editor-authored groups mapped to the system */
.is-style-glass { background: var(--sav-glass); border: 1px solid var(--sav-glass-border); backdrop-filter: blur(var(--sav-blur)); -webkit-backdrop-filter: blur(var(--sav-blur)); border-radius: var(--sav-radius-lg); box-shadow: var(--sav-shadow); padding: var(--sav-6); }
.is-style-card { background: var(--sav-card); border: 1px solid var(--sav-line); border-radius: var(--sav-radius-lg); box-shadow: var(--sav-shadow-card); padding: var(--sav-6); }
