/* kevinmekic.com
   Layout: product-page minimalism. Centered statement, one wide image, a 2x2 grid of soft tiles
   where each project gets one measured number; numbered footnotes at the bottom carry the evidence.
   No external requests: Inter is self-hosted and only loads where the system font is not used. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --tile: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0066cc;
  --btn: #1d1d1f;
  --btn-ink: #ffffff;
  --nav: rgba(255, 255, 255, .78);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --tile: #161617; --fg: #f5f5f7; --muted: #a1a1a6; --line: #333336;
    --accent: #2997ff; --btn: #f5f5f7; --btn-ink: #000000; --nav: rgba(0, 0, 0, .72);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --tile: #161617; --fg: #f5f5f7; --muted: #a1a1a6; --line: #333336;
  --accent: #2997ff; --btn: #f5f5f7; --btn-ink: #000000; --nav: rgba(0, 0, 0, .72);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 17px/1.47 var(--font);
  margin: 0; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--btn); color: var(--btn-ink); padding: .5rem .8rem; border-radius: 8px; }

.wrap {
  max-width: 980px; margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--nav); }
nav.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
nav.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 48px; gap: 1rem; }
.brand { font-weight: 600; font-size: 15px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 1.4rem; font-size: 13px; align-items: center; }
.links a { color: var(--fg); opacity: .8; }
.links a:hover { opacity: 1; text-decoration: none; }
.theme { font: inherit; font-size: 13px; color: var(--fg); opacity: .8; background: none; border: 0; padding: 0; cursor: pointer; }
.theme:hover { opacity: 1; }

/* hero */
.hero { text-align: center; padding-block: 5.5rem 3.2rem; }
.eyebrow { font-size: 19px; font-weight: 600; color: var(--muted); margin: 0 0 .4rem; }
h1 { font-size: clamp(48px, 10vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.sub { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.35; color: var(--muted); max-width: 34rem; margin: 1.2rem auto 0; text-wrap: balance; font-weight: 500; }
.ctas { display: flex; justify-content: center; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 2rem; font-size: 17px; }
.pill { background: var(--btn); color: var(--btn-ink); padding: .72rem 1.4rem; border-radius: 980px; font-weight: 500; }
.pill:hover { text-decoration: none; opacity: .88; }
.chev::after { content: " \203A"; }

.shot { margin: 0 auto; border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 1; background: var(--tile); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; display: block; }

section { padding-block: 6rem 0; }
.section-head { text-align: center; margin-bottom: 2.6rem; }
h2 { font-size: clamp(36px, 6vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 19px; margin: .8rem auto 0; max-width: 32rem; font-weight: 500; }

/* project tiles */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--tile); border-radius: 28px; padding: 2.4rem 2.2rem 2.2rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.cat { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile h3 { font-size: 28px; line-height: 1.14; letter-spacing: -0.025em; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.tile p { margin: 0; color: var(--muted); }
.figure { margin-top: auto; padding-top: 2rem; }
.big { font-size: clamp(48px, 7vw, 72px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: .42em; letter-spacing: -0.02em; color: var(--muted); font-weight: 600; margin-left: .15em; }
.cap { font-size: 15px; color: var(--muted); margin-top: .5rem; max-width: 22rem; }
.tile .more { font-size: 15px; margin-top: 1rem; }
sup a { font-size: .62em; font-weight: 600; margin-left: 1px; }

/* also building */
.tile.wide { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.wide-text { display: flex; flex-direction: column; gap: .5rem; max-width: 34rem; min-width: 0; }
.tile .trans { font-size: 15px; margin-top: -.2rem; }
.status { display: inline-flex; align-items: center; gap: .55rem; font-size: 14px; font-weight: 600; color: var(--fg); background: var(--bg); border-radius: 980px; padding: .55rem 1rem; white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #f5a623; box-shadow: 0 0 0 4px color-mix(in srgb, #f5a623 22%, transparent); }

/* approach */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.4rem; max-width: 820px; margin: 0 auto; }
.principles h3 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 .35rem; font-weight: 700; }
.principles p { margin: 0; color: var(--muted); }

/* now */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fact { background: var(--tile); border-radius: 22px; padding: 1.6rem 1.5rem; min-width: 0; }
.fact span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.fact strong { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.now-text { max-width: 40rem; margin: 0 auto 2.4rem; text-align: center; font-size: 21px; line-height: 1.4; font-weight: 500; text-wrap: balance; }
.motto { color: var(--muted); }

/* contact */
.mail-row { display: flex; justify-content: center; align-items: center; gap: .8rem; flex-wrap: wrap; }
.mail { font-size: clamp(24px, 4.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; color: var(--fg); overflow-wrap: anywhere; text-align: center; }
.mail:hover { text-decoration: none; color: var(--accent); }
.copy { font: inherit; font-size: 14px; color: var(--fg); background: var(--tile); border: 0; border-radius: 980px; padding: .45rem .95rem; cursor: pointer; }
.copy:hover { color: var(--accent); }

/* footnotes and footer */
.notes { margin-top: 7rem; border-top: 1px solid var(--line); padding-top: 1.6rem; font-size: 12px; line-height: 1.5; color: var(--muted); }
.notes ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.notes li { overflow-wrap: anywhere; }
.notes li:target { color: var(--fg); }
.notes a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); }
footer.site { padding-block: 1.6rem 3rem; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: .6rem 1.4rem; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--fg); }

/* text pages (legal notice, privacy, 404) */
.doc { max-width: 44rem; margin: 0 auto; padding-block: 4rem 2rem; }
.doc h1 { font-size: clamp(36px, 7vw, 56px); letter-spacing: -0.035em; text-align: left; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 2.4rem 0 .6rem; }
.doc h3 { font-size: 17px; margin: 1.6rem 0 .4rem; }
.doc p, .doc li { color: var(--fg); }
.doc .lead { color: var(--muted); font-size: 19px; margin-top: 1rem; }
.doc address { font-style: normal; }
.doc .todo { background: #ffe36e; color: #1d1d1f; padding: 0 .25rem; border-radius: 3px; }

@media (max-width: 734px) {
  .grid, .principles { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .shot { aspect-ratio: 4 / 3; border-radius: 22px; }
  .shot img { object-position: 20% 50%; }
  .tile { padding: 2rem 1.6rem 1.8rem; }
  .hero { padding-block: 4rem 2.6rem; }
  section { padding-block: 4.5rem 0; }
  .links .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
