/* Biangulum: site styles. No build step, no framework. */

/* IBM Plex Sans, self-hosted (SIL Open Font License 1.1, see fonts/OFL.txt).
   Two subsets per weight: latin, and latin-ext for č ć đ š ž. */
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Brand tokens (see BiangulumLogo/README.md). Teal is the only accent. */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --ink: #16161D;
  --muted: #5B5E69;
  --rule: #E3E5E8;
  --accent: #0F6E59;         /* Teal */
  --accent-ink: #FFFFFF;
  --accent-hover: #0B5847;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161D;           /* Ink */
    --ink: #EDEDF0;          /* Paper */
    --muted: #A3A6B0;
    --rule: #2C2E37;
    --accent: #6FD9B8;       /* Teal light */
    --accent-ink: #16161D;
    --accent-hover: #9BE6CE;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--accent); color: var(--accent-ink); padding: 0.5rem 0.75rem;
}
.skip:focus { top: 1rem; }

/* One narrow column for the whole page */
.wrap {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 40rem) { .wrap { padding-inline: 2rem; } }

/* Header */
.site-header .wrap { padding-block: 2rem; }
/* Brand: the app icon from BiangulumLogo/web plus the name in Plex Sans Medium */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand img { display: block; width: 2rem; height: 2rem; }

/* Intro */
.intro { padding-block: 4rem 4.5rem; }
@media (min-width: 40rem) { .intro { padding-block: 6.5rem 6rem; } }

.intro h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.intro .lead {
  margin-top: 1.5rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.5;
}
.intro p + p { margin-top: 1rem; }
.intro .note { color: var(--muted); max-width: 36rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
}
.button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); }

/* Sections */
.block { padding-block: 3.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 40rem) { .block { padding-block: 4.5rem; } }

.block h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2rem;
}
.block h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }

/* What I do: four short items */
.services { display: grid; gap: 1.75rem; }
@media (min-width: 40rem) { .services { grid-template-columns: 1fr 1fr; gap: 2.25rem 3rem; } }
.services p { margin-top: 0.35rem; color: var(--muted); }

/* Experience: a sequence, so years lead each row */
.jobs { display: grid; gap: 3rem; }
@media (min-width: 40rem) {
  .jobs > li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; }
}
.jobs .years { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jobs h3 { font-size: 1.1875rem; line-height: 1.35; }
.jobs .role { color: var(--muted); }
.jobs .what { margin-top: 0.4rem; }
.jobs .projects { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.jobs .projects strong { font-weight: 600; }
.jobs .projects .by { color: var(--muted); }

/* Contact */
.contact .email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Footer: legal details required for a Croatian obrt (Zakon o elektroničkoj trgovini, čl. 6) */
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }
.site-footer .wrap { padding-block: 2rem 3rem; }
.site-footer address { font-style: normal; }
.site-footer a { color: inherit; }
.footer-links { margin-top: 1rem; }

/* Text pages (privacy) */
.doc { padding-block: 3.5rem 4.5rem; }
@media (min-width: 40rem) { .doc { padding-block: 5rem 6rem; } }
.doc h1 {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.doc .updated { margin-top: 0.5rem; color: var(--muted); font-size: 0.9375rem; }
.doc h2 { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.doc p { max-width: 40rem; }
.doc .updated + p { margin-top: 2rem; }
.doc h2 + p { margin-top: 0.75rem; }
.doc p + p { margin-top: 1rem; }
