/* markzoiku.com */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #ffffff;
  --ink: #000000;
  --grey: #6b6b6b; /* 5.3:1 on white */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --size: 15px;
  --pad: 32px;
  --gap: 32px;
  --stack: 96px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--size);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ul { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
ul { list-style: none; }

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--stack);
  padding: var(--pad);
}

.cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.b { font-weight: 600; }
.k { font-weight: 600; margin-bottom: 9px; }
.g { color: var(--grey); }
.intro { max-width: 30ch; }
li { margin-bottom: 4px; }
li a, .foot a { display: inline-block; padding: 3px 0; }
li:not(:has(a)) { padding: 3px 0; }

.clock, .end { text-align: right; }

/* Arrows are decorative: the "/ """ part hides them from screen readers. */
.ext::after { content: " \2197"; content: " \2197" / ""; color: var(--grey); }
.dl::after { content: " \2193"; content: " \2193" / ""; color: var(--grey); }

/* Tablet and phone */
@media (max-width: 900px) {
  :root { --pad: 28px 24px 32px; --stack: 56px; }

  /* Let content set the height so tall tablet screens do not open large gaps */
  .page { min-height: 0; }

  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }

  /* Tablet: the sentence on the left, the lists stacked on the right */
  main.cols {
    grid-template-areas: "intro live" "intro exp" "intro proj";
    align-items: start;
  }
  .intro { grid-area: intro; }
  .s-live { grid-area: live; }
  .s-exp { grid-area: exp; }
  .s-proj { grid-area: proj; }

  .cols.head,
  .cols.foot {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 0;
  }
  .head p, .foot p { text-align: left; }
  .head .b, .head .role, .foot .mail { flex-basis: 100%; }

  /* Larger tap targets, same rhythm */
  li { margin-bottom: 0; }
  li a, .foot a { display: inline-block; padding: 6px 0; }
  li:not(:has(a)) { padding: 6px 0; }
  .k { margin-bottom: 6px; }
}

@media (max-width: 520px) {
  .cols { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  main.cols { grid-template-areas: "intro" "live" "exp" "proj"; }
}

@media print {
  .page { min-height: 0; gap: 32px; }
  .ext::after, .dl::after { content: ""; }
  .clock { display: none; }
}
