@font-face {
  font-family: "Geist Pixel";
  src: url("assets/fonts/GeistPixel.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --line: 1.2em; /* one blank line, as in the design */
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist Pixel", ui-monospace, Menlo, monospace;
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(255, 238, 0, 0.3);
  color: inherit;
}

/* ---------- Text ---------- */

h1 {
  margin: 0;
  font: inherit;
  text-transform: uppercase;
}

p,
ol {
  margin: 0 0 var(--line);
}

/* "Currently I am:" sits directly on top of its list */
.col > div { margin-bottom: var(--line); }
.col > div > * { margin-bottom: 0; }

.col > :last-child { margin-bottom: 0; }

.col-about,
.col-more {
  text-align: justify;
  overflow-wrap: break-word;
}

ol {
  padding: 0;
  text-align: left;
}

ol li { margin-left: 24px; }

a,
.u {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Email is drawn by CSS so it isn't in the HTML for scrapers or search engines,
   and pieced together so it doesn't match an email pattern in this file either. */
.email::after {
  content: "ali" ".tohme" " [" "at" "] " "outlook" "." "de";
}

.email {
  -webkit-user-select: none;
  user-select: none;
}

/* ---------- Layout ---------- */

/* Phone: one column, 20px margins */
.page {
  padding: 20px;
}

.col + .col { margin-top: var(--line); }

/* Tablet: name on top, the two text columns side by side */
@media (min-width: 800px) {
  .page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 400px));
    padding: 0;
  }

  .col {
    padding: 20px;
  }

  .col + .col { margin-top: 0; }

  .col-name {
    grid-column: 1 / -1;
  }
}

/* Desktop (Figma frame): name on the left, the two 400px columns on the right */
@media (min-width: 1240px) {
  .page {
    /* 400 name · flexible gap · 400 · 2 · 400, then 20px to the edge: 690 / 1092 at 1512 wide, as in Figma */
    grid-template-columns: 400px 1fr 400px 2px 400px;
    padding-right: 20px;
  }

  .col-name { grid-column: 1; }
  .col-about { grid-column: 3; }
  .col-more { grid-column: 5; }
}
