/* kevinomidvaran.com — one small stylesheet, no framework. */

:root {
  --navy: #14213D;
  --bg: #EEF1F8;
  --card: #FFFFFF;
  --text: #131B2E;
  --muted: #4A5470;
  --link: #1F3FB0;
  --accent: #F5B941;
  --on-navy: #D5DCEE;
  --line: #D9DFEC;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
  --container: 1040px;
  --gutter: 24px;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible { outline-color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--accent); color: var(--navy); font-weight: 700;
  padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Navy bands (header + footer) ---------- */

.band { background: var(--navy); color: var(--on-navy); }
.band h1, .band h2 { color: #fff; }
.band a { color: #fff; }

.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 800; font-size: 1.125rem; text-decoration: none;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -12px; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--on-navy); font-weight: 600; text-decoration: none; border-radius: 8px;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center;
  gap: 40px 56px; padding-top: 48px; padding-bottom: 120px;
}
.hero--simple { display: block; padding-bottom: 72px; }
.label {
  margin: 0 0 16px; font-family: var(--mono); font-weight: 500; font-size: .875rem;
  letter-spacing: .02em; color: var(--accent);
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; max-width: 20ch; }
.hero p { font-size: 1.125rem; max-width: 52ch; }

.portrait {
  width: 100%; max-width: 300px; aspect-ratio: 4 / 5; margin: 0; justify-self: end;
  border-radius: 20px; overflow: hidden; background: #24345A;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none;
}
.band .btn--accent, .btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: #F8C964; text-decoration: none; }
.band .btn--outline, .btn--outline { border-color: rgba(213, 220, 238, .55); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Sections & cards ---------- */

main section { padding: 56px 0; }
.lede { color: var(--muted); margin-top: -.25em; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* Work: overlaps the navy band */
.work { padding-top: 0; margin-top: -72px; }
.stats { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.stat { flex: 1 1 200px; padding: 22px 22px 20px; }
.stat-number {
  display: block; margin-bottom: 6px;
  font-family: var(--mono); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  line-height: 1.1; color: var(--navy); white-space: nowrap;
}
.stat-label { color: var(--muted); font-size: 1rem; line-height: 1.45; }
.stat-label strong { display: block; color: var(--text); font-weight: 700; }
.also { color: var(--muted); max-width: 70ch; }

/* About */
.prose { max-width: 68ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; padding: 0; list-style: none; }
.tags li {
  padding: 6px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-weight: 600; font-size: .9375rem;
}

/* Projects */
.project-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px; margin: 24px 0 28px; padding: 0; list-style: none;
}
.project { display: flex; flex-direction: column; overflow: hidden; }
.project-media { margin: 0; overflow: hidden; background: #DCE2EF; }
.project-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 22px; }
.project-body p { color: var(--muted); }
.project-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}
.tech { font-family: var(--mono); font-weight: 500; font-size: .875rem; color: var(--muted); }
.source { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
a.source:not([href]) { color: var(--muted); text-decoration: none; }  /* placeholder until URL is added */

.more-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1.0625rem;
}

/* Beyond work */
.beyond-card { padding: 28px; max-width: 760px; }
.beyond-card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { padding: 64px 0 32px; }
.site-footer h2 { margin-bottom: .4em; }
.site-footer p { max-width: 56ch; }
.copyright {
  max-width: none; margin: 48px 0 0; padding-top: 20px; border-top: 1px solid rgba(213, 220, 238, .18);
  font-size: .9375rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 104px; }
  .portrait { max-width: 220px; justify-self: start; grid-row: 1; }
  main section { padding: 44px 0; }
  .work { margin-top: -64px; }
  .beyond-card { padding: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav-links a { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
