:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-muted: #666666;
    --border-color: #000000;
    --accent-color: #000000;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    padding: calc(var(--spacing-unit) * 4);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body {
        padding: calc(var(--spacing-unit) * 2);
    }
}

h1,
h2,
h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    line-height: 1;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    margin-bottom: calc(var(--spacing-unit) * 1);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.15rem;
    margin-top: calc(var(--spacing-unit) * 2);
}

h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

p,
li {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    max-width: 70ch;
}

a {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: opacity 0.2s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

a:hover::after {
    transform: scaleX(0);
    transform-origin: right;
}

section {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: calc(var(--spacing-unit) * 1.5);
}

.col-12 {
    grid-column: span 12;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

@media (max-width: 900px) {

    .col-6,
    .col-4 {
        grid-column: span 12;
    }
}

/* Components */
.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* Context for absolute positioning of image */
}

.profile-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Blends nicely with white background for a print-like feel */
    filter: grayscale(100%) contrast(1.2);
    /* Enhance the monochrome aesthetic */
}

@media (max-width: 600px) {
    .profile-img {
        position: relative;
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }
}

.hero p.tagline {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    max-width: 40ch;
    font-weight: 400;
}

.pillar {
    padding: calc(var(--spacing-unit) * 2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background 0.3s ease, color 0.3s ease;
}

.pillar:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.experience-item {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.experience-item header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.date {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.articles-list {
    list-style: none;
}

.articles-list li {
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    font-size: 1.5rem;
}

.contact-list li {
    margin-bottom: 1rem;
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}