/* Bio page. Tokens, base and components are copied from the landing page's stylesheet, so this page stands on its own */

:root {
  --bg: #f5f6fa;
  --ink: #1c2033;
  --ink-2: #4a5064;
  --muted: #5d6377;
  --accent: #3d58fd;
  --accent-hover: #3249ec;
  --tint: rgb(28 32 51 / .05);
  --font: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --shadow-small: 0 1px 1px rgb(28 32 51 / .025), 0 6px 18px -12px rgb(28 32 51 / .14);
  --shadow-card: 0 1px 1px rgb(28 32 51 / .02), 0 12px 32px -24px rgb(28 32 51 / .1);
  --shadow-panel: inset 0 1px 0 rgb(255 255 255 / .8), 0 28px 64px -44px rgb(36 44 110 / .18);
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font: 18px/1.55 var(--font);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Soft color wash at the top of the page */
  background: var(--bg) no-repeat;
  background-image:
    radial-gradient(40% 55% at 8% 0%, rgb(254 168 168 / .36), transparent 70%),
    radial-gradient(36% 50% at 92% 0%, rgb(60 152 254 / .18), transparent 72%),
    radial-gradient(30% 40% at 52% 0%, rgb(254 205 96 / .18), transparent 70%);
  background-size: 100% 900px;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; }
strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
a { color: inherit; text-decoration: none; }
p a { color: var(--accent); text-decoration: underline; }
p a:hover { color: var(--accent-hover); }

/* Many inline links here, so underlines sit a little lower and lighter */
p a, .job h3 a { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: rgb(61 88 253 / .35); text-underline-offset: .2em; transition: color .2s, text-decoration-color .2s; }
.job h3 a { text-decoration-color: rgb(28 32 51 / .2); }
.job h3 a:hover { color: var(--accent); }
p a:hover, .job h3 a:hover { text-decoration-color: currentColor; }

h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 300; line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
h2 { margin-bottom: 16px; font-size: 16px; font-weight: 600; line-height: 20px; color: var(--accent); /* the landing page's .eyebrow */ }

.card { padding: clamp(20px, 5vw, 28px); border: 1px solid rgb(28 32 51 / .035); border-radius: 28px; background: #fff; box-shadow: var(--shadow-card); }
.panel { border: 1px solid rgb(255 255 255 / .75); background: rgb(255 255 255 / .6); box-shadow: var(--shadow-panel); }

/* Layout: one column */

main { max-width: 736px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 48px) clamp(64px, 8vw, 96px); }
section { margin-top: clamp(56px, 7vw, 88px); }

/* Intro */

/* Optional headshot (hovik.jpg), above the name */
.headshot { width: 96px; height: 96px; margin-bottom: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgb(28 32 51 / .06), 0 16px 36px -20px rgb(40 50 120 / .2); }
.lead { margin-top: 28px; font-size: 20px; line-height: 32px; color: var(--ink-2); }

/* Profile links: the landing page's small glass buttons */
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.links a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border: 1px solid rgb(255 255 255 / .95); border-radius: 999px; background: rgb(255 255 255 / .72); box-shadow: var(--shadow-small); font-size: 16px; font-weight: 600; transition: background .2s; }
.links a:hover { background: #fff; }
.links svg { flex: none; fill: currentColor; }
.links .logo-only { width: 40px; padding: 0; justify-content: center; /* X: a label would only repeat the logo */ }
.now { margin-top: 32px; padding: 18px clamp(20px, 5vw, 24px); border-radius: 24px; color: var(--ink-2); }
.now strong { color: var(--accent); }

/* Work */

.jobs { padding-block: 8px; }
.job { padding-block: 20px; }
.job + .job { border-top: 1px solid var(--tint); }
.job h3 { font-size: 18px; font-weight: 400; line-height: 28px; color: var(--ink-2); text-wrap: wrap; /* plain wrapping keeps the role whole; years go to the next line */ }
.job h3 strong { color: var(--ink); }
.job p { margin-top: 6px; }
.job p, .also p { line-height: 29px; color: var(--muted); }
.also p + p { margin-top: 16px; }
