/* blazek.dev - one stylesheet for the page and the 404. The font is served
   from here (the vhost's CSP allows nothing from elsewhere). Design: canvas
   "blazek.dev", direction F (Modrá půlka). */

/* Archivo (SIL OFL 1.1, fonts/OFL.txt), variable: weight 400-800, width 100-125 % */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin.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;
}

:root {
  --blue: #2556a3;
  --ink: #14171a;
  --muted: #4b5058;
  --line: #c9ced6;
  --paper: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

/* The blue half: name */
.panel {
  flex: 1 1 24rem;
  min-width: 0;
  background: var(--blue);
  color: #ffffff;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}

.panel a { color: #ffffff; }
.panel a:focus-visible { outline-color: #ffffff; }

.meta { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.meta.role { opacity: 0.85; }

h1 {
  margin: 0;
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(56px, 8.5vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

/* The white half: what I do, stack, e-mail */
.content {
  flex: 1.3 1 30rem;
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}

.lead {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  font-weight: 500;
}

.text {
  margin: 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.stack {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.contact .label { font-size: 13px; color: var(--muted); }

.contact a {
  color: var(--blue);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.contact a:hover { color: var(--ink); }
