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

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, ul, li, form, label, table, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

body {
    line-height: 1;
}

ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Generic Styles */

:root {
    --highlight-color: #ff0;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Areal', Arial, sans-serif;
    font-size: 1.2rem;
}

/* Font Styles */

@font-face {
    font-family: 'Areal';
    src: url('fonts/ArealVariable.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

h1, a {
    color: #222;
    font-size: 1.4vw;
    line-height: 1.2;
    font-variation-settings: "DRKM" 0, "MONO" 0, "wght" 400, "slnt" 0;
    font-feature-settings: "calt" 1, "liga" 1, "kern" 1;
    text-decoration: none;
}

a {
    position: relative;
    display: inline-block;
    cursor: alias;
}

a::after {
    content: " ";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background-color: var(--highlight-color);
    transform: scaleX(0);
    mix-blend-mode: multiply;
}

a:hover::after {
    transform: scaleX(1);
}

/* Cursor Lines */

.cursor-lines {
    position: fixed;
    inset: 0;
    z-index: 2;
    color: #222;
    pointer-events: none;
    visibility: hidden;
}

.cursor-lines__horizontal,
.cursor-lines__vertical {
    position: absolute;
    top: 0;
    left: 0;
    background-color: currentColor;
}

.cursor-lines__horizontal {
    width: 100%;
    height: 1px;
    transform: translateY(var(--cursor-y, 0px));
}

.cursor-lines__vertical {
    width: 1px;
    height: 100%;
    transform: translateX(var(--cursor-x, 0px));
}

@media (hover: hover) and (pointer: fine) {
    .cursor-lines--visible {
        visibility: visible;
    }
}

/* CSS Grid */

.information {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 100vh;
    width: 100vw;
    padding: 16px;
}
  
.details--bio {
    display: grid;
    align-content: start;
    gap: 8px;
}

.contact-links {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1;
}
  

/* Media Queries */

@media (max-aspect-ratio: 1/1) {
    .information {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto 1fr;
      gap: 8px;
      padding-bottom: 64px;
    }

    .details--collaborators-heading {
        margin-top: 16px;
    }

    h1, a {
        font-size: clamp(1.8rem, 3vw, 2.8rem);
    }
} 

@media (orientation: landscape) and (max-height: 600px) {
    h1, a {
        font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    }
}

@media (max-width: 600px) {
    h1, a {
        font-size: clamp(1.8rem, 4.5vw, 2.2rem);
    }
}
