/* Lucas Descroix — personal website */

@font-face {
  font-family: "Ferro Mono";
  src: url("fonts/FerroMono-RegularI.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ferro Mono";
  src: url("fonts/FerroMono-ItalicI.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Basically Sans";
  src: url("fonts/FerroMono-RegularI.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Basically Sans";
  src: url("fonts/FerroMono-ItalicI.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: black;
  --foreground: white;
  --muted: white;
  --rule: #fff;
  --red: #ff0000;
  --green: rgb(0,255,0);
  --blue: #5555ff;
  --serif: "Ferro Mono", monospace;
  --sans: "Ferro Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .13em;
  transition: opacity 140ms ease;
}
a:hover { opacity: .68; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.page {
  width: min(1160px, calc(100% - 64px));
  margin: 0;
  padding: 27px 0 30px 32px;
}
.topline {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 18px;
  font-family: var(--sans);
  font-size: 16px;
}
.name-link { color: var(--foreground); text-decoration: none; }
.section {
  padding: 42px 0 46px;
}
.large-copy {
  max-width: 975px;
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.025em;
}
.section-type .large-copy:last-of-type { margin-bottom: 0; }
.section-index {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
}
.link-red { color: var(--red); }
.link-green { color: var(--green); }
.link-blue { color: var(--blue); font-style: italic;}
.client-name { color: var(--foreground); }
.archive {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.archive li {
  display: block;
  font-family: var(--sans);
}
.archive-year, .archive-description, .archive-separator { color: var(--muted); }
.archive li a { font-family: var(--serif); font-size: 16px; text-decoration: none; }
.archive-more { margin: 25px 0 0; font-size: 16px; }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px 24px;
  padding-top: 22px;
  font-family: var(--sans);
  font-size: 16px;
}
.footer-link { text-decoration: none; }
.copyright { margin-left: auto; color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 700px) {
  .page { width: 100%; padding: 18px 18px 24px; }
  .section { padding: 32px 0 36px; }
  .large-copy { font-size: clamp(27px, 7.2vw, 38px); }
  .archive { gap: 8px; }
  .archive li, .archive li a { font-size: 16px; }
  .copyright { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}

#hover-image {
  position: fixed;
  inset: 0;
  width: 80vw;
  height: 80vh;
  margin: 0 auto;
  object-fit:cover;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#hover-image[hidden] {
  display: none;
}