/* viktorgrant.com, 2026-11-29: back to the site's own look (Archivo, the Earthgrid logo, blue pill buttons),
   made whiter after my.earthgrid.com: a white page, light grey bands, white cards with rounded corners and a
   soft shadow, the portrait in a circle, and no sharp corners anywhere. The only strong colour left is the blue
   closing card. Colours live in site.json tokens; this file reaches the places the ancient look hard codes.
   Loaded on every page through "css": ["pages/site.css"].
   Earlier versions beside this file: site.css.2026.11.28 (blue hero cards, 2026-11-25) and
   site.css.2026.11.29 (the white editorial look after aprosina.com, retired today). */

@font-face{font-family:"Archivo";font-style:normal;font-weight:400;font-display:swap;src:url("../../../grid/fonts/archivo-400.woff2") format("woff2")}
@font-face{font-family:"Archivo";font-style:normal;font-weight:600;font-display:swap;src:url("../../../grid/fonts/archivo-600.woff2") format("woff2")}
@font-face{font-family:"Archivo";font-style:normal;font-weight:800;font-display:swap;src:url("../../../grid/fonts/archivo-800.woff2") format("woff2")}

:root { --vg-grey: #f5f5f7; --vg-round: 18px; --vg-round-lg: 28px; --vg-blue: #1428ff; --vg-blue-dk: #0b1399; }

/* the page: white, near black type, no grain */
body.eg { color: var(--eg-text); background: #fff; }
body.eg::before { display: none; }
h1, h2, h3, h4, .eg-title, .eg-hero-title { font-weight: 700; letter-spacing: -.02em; color: var(--eg-heading); }
.eg-eyebrow { color: var(--eg-accent); letter-spacing: .14em; font-weight: 700; font-size: .8rem; }
.eg-lead, .eg-hero-text { color: var(--eg-muted); }
a { color: var(--eg-accent); }
a:hover { color: var(--vg-blue-dk); }

/* header: white glass, a hairline, the Earthgrid logo, a blue pill */
.eg-header { background: var(--eg-header-bg); border-bottom: 1px solid var(--eg-line); backdrop-filter: saturate(1.8) blur(16px); }
.eg-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .05); }
.eg-logo { height: 34px; width: auto; display: block; }
.eg-nav a:not(.eg-btn) { color: var(--eg-header-text); font-weight: 500; }
.eg-nav a:not(.eg-btn):hover { color: var(--eg-accent); }
.eg-nav a.eg-btn-ghost { color: var(--eg-accent); border-color: var(--eg-accent); background: transparent; }
.eg-nav a.eg-btn-ghost:hover { background: rgba(20, 40, 255, .07); color: var(--eg-accent); }
.eg-nav a.eg-btn-primary { background: var(--eg-accent); border-color: var(--eg-accent); color: #fff; }
.eg-nav a.eg-btn-primary:hover { background: var(--vg-blue-dk); border-color: var(--vg-blue-dk); color: #fff; }

/* buttons: pills, blue fill or blue outline */
.eg-btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.eg-btn-primary { background: var(--eg-accent); border-color: var(--eg-accent); color: #fff; }
.eg-btn-primary:hover, .eg-btn-primary:focus { background: var(--vg-blue-dk); border-color: var(--vg-blue-dk); color: #fff; }
.eg-btn-ghost { color: var(--eg-accent); border-color: var(--eg-accent); background: transparent; }
.eg-btn-ghost:hover, .eg-btn-ghost:focus { background: rgba(20, 40, 255, .07); color: var(--eg-accent); border-color: var(--eg-accent); }

/* page heroes (Talks, Book, Watch): a soft grey card with rounded corners, dark type */
.eg-hero:not(.eg-scene) { background: var(--vg-grey); margin: 14px 14px 0; border-radius: var(--vg-round-lg); overflow: hidden; color: var(--eg-text); }
.eg-hero:not(.eg-scene)::after, .eg-hero:not(.eg-scene)::before { display: none; }
.eg-hero .eg-hero-title { color: var(--eg-heading); text-shadow: none; }
.eg-hero .eg-hero-text, .eg-hero .eg-lead { color: var(--eg-muted); text-shadow: none; }
.eg-hero .eg-eyebrow { color: var(--eg-accent); }
/* a picture hero, if a page ever uses one again: the same rounded card */
.eg-scene { margin: 14px 14px 0; border-radius: var(--vg-round-lg); overflow: hidden; }
.eg-scene .eg-hero-title { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.eg-scene .eg-hero-text { color: rgba(255,255,255,.9); }
.eg-band { height: 48px; background-color: #fff; border: 0; opacity: .6; }

/* tones: white and light grey only, the way my.earthgrid.com alternates */
.eg-tone-alt, .eg-tone-bone, .eg-tone-sand, .eg-tone-dark { background: var(--vg-grey); color: var(--eg-text); }
.eg-tone-dark h1, .eg-tone-dark h2, .eg-tone-dark h3, .eg-tone-dark .eg-title, .eg-tone-dark .eg-feature-title, .eg-tone-dark .eg-card-title,
.eg-tone-dark .eg-stat-value, .eg-tone-dark .eg-panel-title { color: var(--eg-heading); }
.eg-tone-dark p, .eg-tone-dark .eg-lead, .eg-tone-dark .eg-body, .eg-tone-dark .eg-body p, .eg-tone-dark .eg-pull-body,
.eg-tone-dark .eg-pull-body p, .eg-tone-dark .eg-feature p, .eg-tone-dark .eg-panel p { color: var(--eg-muted); }
.eg-tone-dark .eg-eyebrow, .eg-tone-dark .eg-panel-kicker { color: var(--eg-accent); }
.eg-tone-dark a { color: var(--eg-accent); }
.eg-tone-dark .eg-btn-primary { background: var(--eg-accent); border-color: var(--eg-accent); color: #fff; }
.eg-tone-dark .eg-btn-ghost { color: var(--eg-accent); border-color: var(--eg-accent); }

/* the ancient look paints bone and sand sections brown; here they keep the site's own colours */
.eg-tone-bone, .eg-tone-sand { --eg-text:#1d1d1f; --eg-muted:#5d5f6b; --eg-heading:#0c0c0c; --eg-accent:#1428ff; --eg-line:rgba(12,12,12,.10); --eg-surface:#ffffff; }
.eg-tone-bone a, .eg-tone-sand a { color: var(--vg-blue); }
.eg-tone-bone a:hover, .eg-tone-sand a:hover { color: var(--vg-blue-dk); }
.eg-tone-bone .eg-btn-primary, .eg-tone-sand .eg-btn-primary { background: var(--vg-blue); border-color: var(--vg-blue); color: #fff; }
.eg-tone-bone .eg-btn-primary:hover, .eg-tone-sand .eg-btn-primary:hover { background: var(--vg-blue-dk); border-color: var(--vg-blue-dk); color: #fff; }
.eg-tone-bone .eg-btn-ghost, .eg-tone-sand .eg-btn-ghost { color: var(--vg-blue); border-color: var(--vg-blue); }

/* the closing call: the one blue moment, a rounded card set inside the page */
.eg-tone-accent { background: linear-gradient(160deg, var(--vg-blue), var(--vg-blue-dk) 75%); color: #fff; margin: 14px 14px 28px; border-radius: var(--vg-round-lg); overflow: hidden; }
.eg-tone-accent h2, .eg-tone-accent .eg-title { color: #fff; }
.eg-tone-accent .eg-eyebrow { color: #cfe6ff; }
.eg-tone-accent .eg-lead, .eg-tone-accent p, .eg-tone-accent .eg-body p { color: rgba(255,255,255,.9); }
.eg-tone-accent a { color: #fff; }
.eg-tone-accent .eg-btn-primary { background: #fff; border-color: #fff; color: var(--vg-blue-dk); }
.eg-tone-accent .eg-btn-primary:hover { background: #e9ecff; border-color: #e9ecff; color: var(--vg-blue-dk); }
.eg-tone-accent .eg-btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.eg-tone-accent .eg-btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* cards and panels: white, rounded, a soft shadow; on a white section a hairline instead */
.eg-panel, .eg-card, .eg-feature { border-radius: var(--vg-round); }
.eg-panel, .eg-card { background: #fff; border: 1px solid var(--eg-line); box-shadow: none; }
.eg-tone-alt .eg-panel, .eg-tone-alt .eg-card, .eg-tone-bone .eg-panel, .eg-tone-bone .eg-card, .eg-tone-sand .eg-panel, .eg-tone-sand .eg-card,
.eg-tone-dark .eg-panel, .eg-tone-dark .eg-card { border-color: transparent; box-shadow: var(--eg-shadow); }
.eg-card img, .eg-panel img { border-radius: calc(var(--vg-round) - 6px); }
.eg-panel-kicker { color: var(--eg-accent); }
.eg-stat-value { color: var(--eg-accent); font-weight: 700; }
.eg-scroller-btn { border-radius: 999px; background: #fff; border: 1px solid var(--eg-line); color: var(--eg-heading); box-shadow: var(--eg-shadow); }
.eg-pull, .eg-quote, .eg-blockquote { color: var(--eg-heading); }

/* talk pages: the small labels over "what they leave with" and "formats" */
.vg-leave .eg-feature-title, .vg-formats .eg-feature-title { font-family: var(--eg-font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--eg-accent); font-weight: 700; }

/* Home, first section: the portrait in a circle on the left, the claim on the right (split, class vg-hero) */
.vg-hero { padding-top: clamp(32px, 6vw, 80px); }
.vg-hero .eg-split { align-items: center; gap: clamp(28px, 5vw, 72px); }
.vg-hero .eg-split-pic { margin: 0; display: flex; justify-content: center; }
.vg-hero .eg-split-pic img, .eg-portrait img { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%;
  width: min(380px, 78vw); height: auto; display: block; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--eg-line), 0 18px 50px rgba(12, 20, 120, .14); }
.vg-hero .eg-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; }
/* the three credentials under the headline: soft rounded chips */
.vg-hero .eg-split-text p:first-of-type { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.1rem 0; }
.vg-hero .eg-split-text p:first-of-type a { display: inline-block; padding: .38em .9em; border-radius: 999px; background: var(--vg-grey); color: var(--eg-heading);
  font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.vg-hero .eg-split-text p:first-of-type a:hover { background: rgba(20, 40, 255, .08); color: var(--eg-accent); }
.vg-hero .eg-split-text p:not(:first-of-type) { color: var(--eg-muted); font-size: 1.08rem; line-height: 1.55; }
.vg-cap { font-size: .78rem; color: var(--eg-muted); margin-top: 10px; text-align: center; }
/* any other portrait on the site (About) is a circle too */
.eg-split-pic img[src*="viktor"] { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; max-width: 380px; margin: 0 auto; display: block; }
/* the split's text lines up with the headline (the ancient look centres .eg-body in a reading measure) */
.eg-split-text .eg-body { margin-left: 0; margin-right: 0; }

/* the Ask Viktor box (engine/char.php): a rounded white card */
body.eg .egc-in { border-radius: var(--vg-round); border: 1px solid var(--eg-line); background: #fff; box-shadow: var(--eg-shadow); }
body.eg .egc-in:focus { box-shadow: 0 0 0 4px rgba(20, 40, 255, .14); border-color: var(--eg-accent); }
body.eg .egc-ex { border-radius: 999px; background: var(--vg-grey); border-color: transparent; }
body.eg .egc-ex:hover { background: rgba(20, 40, 255, .08); color: var(--eg-accent); }
body.eg .egc .eg-btn.egc-go, body.eg .egc-gate .eg-btn { border-radius: 999px; background: var(--eg-accent); border-color: var(--eg-accent); color: #fff; }
body.eg .egc .eg-btn.egc-go:hover, body.eg .egc-gate .eg-btn:hover { background: var(--vg-blue-dk); border-color: var(--vg-blue-dk); }
body.eg .egc-out { border-radius: var(--vg-round); background: #fff; border: 1px solid var(--eg-line); box-shadow: var(--eg-shadow); }
body.eg .egc-gate { border-radius: var(--vg-round); background: var(--vg-grey); }
body.eg .egc-out-tools button { border-radius: 999px; }
.vg-ask-note { font-size: .92rem; color: var(--eg-muted); margin: .9rem 0 0; }

/* forms */
.eg-field input, .eg-field textarea, .eg-field select { border-radius: 12px; }
.eg-form { border-radius: var(--vg-round); }

/* video, gallery and images: rounded */
.eg-yt, .eg-video iframe, .eg-gallery li, .eg-gallery img { border-radius: var(--vg-round); overflow: hidden; }

/* footer: light grey like my.earthgrid.com */
.eg-footer { background: var(--eg-footer-bg); color: var(--eg-footer-text); border-top: 1px solid var(--eg-line); }
.eg-footer a { color: var(--eg-text); }
.eg-footer a:hover { color: var(--eg-accent); }
.eg-footer p, .eg-footer .eg-eyebrow { color: var(--eg-muted); }
.eg-footer .eg-logo { height: 30px; }
.eg-actionbar { background: rgba(255,255,255,.92); border-top: 1px solid var(--eg-line); backdrop-filter: blur(12px); }

@media (max-width: 760px) {
  .vg-hero .eg-split-pic img { width: min(260px, 70vw); }
  .eg-hero:not(.eg-scene), .eg-scene, .eg-tone-accent { margin-left: 8px; margin-right: 8px; border-radius: 22px; }
}

/* header pills read in sentence case like the rest of the buttons */
.eg-nav a.eg-btn { text-transform: none; letter-spacing: .01em; font-size: .92rem; }
