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

@font-face {
    font-family: 'Figtree';
    src: url('./fonts/figtree-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('./fonts/figtree-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('./fonts/bricolage-grotesque-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('./fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #14242c;
    --ink-soft: #3a505c;
    --muted: #617580;
    --paper: #f2f6f4;
    --accent: #0f6a5f;
    --accent-deep: #0a4a43;
    --line: rgba(20, 36, 44, 0.1);
    --font-display: 'Bricolage Grotesque', Georgia, serif;
    --font-body: 'Figtree', system-ui, sans-serif;
    --page-pad: clamp(1.15rem, 4.5vw, 1.5rem);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 50% -12%, rgba(15, 106, 95, 0.14), transparent 58%),
        radial-gradient(700px 420px at 100% 100%, rgba(20, 36, 44, 0.06), transparent 55%),
        linear-gradient(180deg, #eaf1ee 0%, var(--paper) 42%, #e7efea 100%);
}

.wrap {
    position: relative;
    z-index: 1;
    width: min(34rem, 100%);
    margin: 0 auto;
    padding:
        calc(3.5rem + env(safe-area-inset-top, 0px))
        calc(var(--page-pad) + env(safe-area-inset-right, 0px))
        calc(4.5rem + env(safe-area-inset-bottom, 0px))
        calc(var(--page-pad) + env(safe-area-inset-left, 0px));
}

.intro {
    text-align: center;
    margin-bottom: 2.75rem;
    animation: rise 0.65s ease both;
}

.portrait {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    margin: 0 auto 1.35rem;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 4px rgba(15, 106, 95, 0.22);
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 8.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 0.85rem;
    overflow-wrap: anywhere;
}

.lede {
    max-width: 22rem;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: clamp(0.98rem, 3.6vw, 1.05rem);
    line-height: 1.55;
    text-wrap: pretty;
}

.group + .group {
    margin-top: 2.15rem;
}

.group {
    animation: rise 0.65s ease both;
}

.group:nth-of-type(1) {
    animation-delay: 0.06s;
}

.group:nth-of-type(2) {
    animation-delay: 0.12s;
}

.group:nth-of-type(3) {
    animation-delay: 0.18s;
}

.group h2 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.55rem;
}

.links {
    list-style: none;
    border-top: 1px solid var(--line);
}

.links a {
    display: grid;
    align-content: center;
    gap: 0.15rem;
    min-height: 3.25rem;
    padding: 0.95rem 0.35rem;
    margin: 0 -0.35rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(15, 106, 95, 0.12);
    touch-action: manipulation;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.links a:hover,
.links a:focus-visible {
    color: var(--accent-deep);
    background-color: rgba(15, 106, 95, 0.06);
    outline: none;
}

.links a:active {
    background-color: rgba(15, 106, 95, 0.1);
}

.link__title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 4.2vw, 1.22rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.link__meta {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.links a:hover .link__meta,
.links a:focus-visible .link__meta {
    color: rgba(10, 74, 67, 0.72);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .wrap {
        padding-top: calc(2.75rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    }

    .intro {
        margin-bottom: 2.25rem;
    }

    .portrait {
        width: 4.75rem;
        height: 4.75rem;
        margin-bottom: 1.1rem;
    }

    .group + .group {
        margin-top: 1.85rem;
    }

    .links a {
        min-height: 3.5rem;
        padding: 1.05rem 0.45rem;
        margin: 0 -0.45rem;
    }
}

@media (max-width: 360px) {
    .lede {
        max-width: 18.5rem;
        font-size: 0.95rem;
    }

    .link__meta {
        font-size: 0.85rem;
    }
}

@media (hover: none) {
    .links a:hover {
        color: inherit;
        background-color: transparent;
    }

    .links a:hover .link__meta {
        color: var(--muted);
    }

    .links a:active {
        color: var(--accent-deep);
        background-color: rgba(15, 106, 95, 0.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro,
    .group {
        animation: none;
    }

    .links a {
        transition: none;
    }
}
