:root {
    color-scheme: dark;
    --bg: #000a05;
    --surface: rgba(4, 18, 10, 0.9);
    --text: #f2ffe3;
    --muted: #a9bd98;
    --accent: #9acd32;
    --inactive: #5a781d;
    --border: rgba(90, 120, 29, 0.75);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(154, 205, 50, 0.18), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(90, 120, 29, 0.22), transparent 30rem),
        linear-gradient(135deg, #00170b 0%, var(--bg) 58%, #020f08 100%);
    display: grid;
    place-items: center;
    padding: 24px;
}

main {
    width: min(720px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 56px 40px;
    backdrop-filter: blur(10px);
}

.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 18px;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow a {
    color: var(--accent);
    text-decoration-color: var(--inactive);
    text-underline-offset: 0.18em;
}

.eyebrow a:hover,
.eyebrow a:focus-visible {
    color: #b5eb45;
}

.eyebrow a:visited {
    color: var(--accent);
}

/* h1 { */
/* margin: 0; */
/* font-size: clamp(2.7rem, 8vw, 5.2rem); */
/* line-height: 0.95; */
/* letter-spacing: -0.05em; */
/* } */

p {
    margin: 22px 0 0;
    max-width: 38rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted);
}

.looking-for {
    color: var(--text);
    font-weight: 700;
}

.profile,
.projects {
    margin-top: 40px;
}

.profile h2,
.projects h2 {
    margin: 0 0 10px;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.profile p {
    margin-top: 12px;
}

.project-list {
    border-top: 1px solid var(--border);
}

.project {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.project h3 {
    margin: 0;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 1rem;
    color: var(--text);
}

.project p {
    margin-top: 8px;
    font-size: 0.98rem;
}

.project a {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    text-decoration-color: var(--inactive);
    overflow-wrap: anywhere;
}

.project a:hover {
    color: #b5eb45;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button,
.link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        color 160ms ease;
}

.button {
    background: var(--accent);
    color: #000a05;
}

.button:hover {
    background: #b5eb45;
    transform: translateY(-1px);
}

.link {
    color: var(--text);
    border: 1px solid var(--inactive);
    background: rgba(90, 120, 29, 0.2);
}

.link:hover {
    transform: translateY(-1px);
    color: #000a05;
    background: var(--accent);
}

.cv-window {
    width: min(1100px, calc(100vw - 32px));
    height: min(820px, calc(100vh - 32px));
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cv-window::backdrop {
    background: rgba(0, 10, 5, 0.72);
}

.cv-window__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    font-family: "Trebuchet MS", Verdana, sans-serif;
    background: #04120a;
}

.cv-window__button,
.cv-window__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--inactive);
    border-radius: 999px;
    color: var(--text);
    background: rgba(90, 120, 29, 0.2);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.cv-window__button:hover,
.cv-window__close:hover {
    color: #000a05;
    background: var(--accent);
}

.cv-window__frame {
    display: block;
    width: 100%;
    height: calc(100% - 52px);
    border: 0;
    background: #ffffff;
}

.footer {
    margin-top: 44px;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer a {
    margin-left: 12px;
    color: var(--accent);
    text-decoration-color: var(--inactive);
}

.footer a:hover {
    color: #b5eb45;
}

@media (max-width: 640px) {
    main {
        padding: 40px 24px;
        border-radius: 22px;
    }

    p {
        font-size: 1rem;
    }

    .actions {
        flex-direction: column;
    }

    .button,
    .link {
        width: 100%;
    }

    .cv-window {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
}
