/* bilal.lol: one column of text on white, set in Host Grotesk (self-hosted, OFL). */

@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/fonts/HostGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("/assets/fonts/HostGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --quiet: #66676b;
  --rule: #e6e6e8;
  --link: #2340b8;
  --link-hover: #142a85;
  --mark: #dfe5fb;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--link);
  font-family: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--mark); color: var(--ink); }

.page {
  max-width: 36rem;
  margin: 0 0 0 clamp(1.25rem, 13vw, 11rem);
  padding: clamp(3rem, 12vh, 7.5rem) 1.25rem 5rem 0;
}

@media (max-width: 40rem) {
  .page { margin: 0; padding: 2.75rem 1.25rem 3.5rem; }
}

h1 {
  margin: 0 0 1.75rem;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

p { margin: 0 0 1.15rem; text-wrap: pretty; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 120ms ease-out, text-decoration-color 120ms ease-out;
}
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 3px;
}


/* ---- contact ------------------------------------------------------- */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
