/* Shared theme and base styles for virengujariya.com (resume and Vireo pages).
   Change colours, the type scale, and common components here only. */

:root {
  color-scheme: light;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --fg: #161a1d;
  --muted: #5b6670;
  --line: #e3e6e2;
  --accent: #2f6690;
  --link: #2f6690;
  --accent-ink: #ffffff;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", -apple-system, system-ui, sans-serif;
  /* Type scale: every font size on the sites comes from these tokens. */
  --fs-h1: clamp(2rem, 6vw, 2.75rem);
  --fs-h2: 1.25rem;
  --fs-h3: 1rem;
  --fs-lede: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1215; --surface: #161b1f; --fg: #e9ecef; --muted: #9aa4ad;
    --line: #272e35; --accent: #8fc2e6; --link: #8fc2e6; --accent-ink: #0f1215;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1215; --surface: #161b1f; --fg: #e9ecef; --muted: #9aa4ad;
  --line: #272e35; --accent: #8fc2e6; --link: #8fc2e6; --accent-ink: #0f1215;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 40px 56px;
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); color: var(--accent); letter-spacing: -0.01em; margin-bottom: 14px; }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
a { color: var(--link); text-decoration: none; font-weight: 500; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--fg); font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.store { display: inline-flex; align-items: center; justify-content: center; width: 174px; height: 58px; border-radius: 8px; }
.store img { display: block; height: 58px; width: auto; max-width: 100%; }

.topbar { display: flex; justify-content: flex-end; }
.topbar a { font-size: var(--fs-small); min-height: 44px; display: inline-flex; align-items: center; }
.home-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--fg); text-decoration: none;
}
.home-link:hover { color: var(--accent); text-decoration: none; }
.home-link svg { width: 22px; height: 22px; }
