@import url('buttons.css');
@import url('forms.css');
@import url('footer.css');
@import url('nav.css');
@import url('typography.css');

:root {
    font-size: 16px; 
    --fs-base: 1rem;       /* 16px */
    --fs-sm: 0.75rem;      /* 12px */

    --clr-background: rgb(1, 22, 39);
    --clr-text: rgb(192, 199, 209);
    --clr-text-muted: rgb(112, 141, 166);
    --clr-text-inverted: rgb(1, 22, 39);
    --clr-text-alt: rgb(110, 156, 241);
    --clr-nav-btn-bg: rgb(10, 37, 52);
    --clr-nav-btn-text: rgb(117, 209, 196);
    --clr-nav-btn-bg-hover: rgb(170, 232, 123);
    --clr-nav-btn-text-hover: rgb(1, 22, 39);
    --clr-btn-text: rgb(117, 209, 196);
    --clr-btn-border: rgb(117, 209, 196);
    --clr-border: rgb(112, 141, 166);
    --clr-tag: rgb(147, 114, 201);
    --clr-highlight: rgb(170, 232, 123);
    --clr-highlight-text: rgb(1, 22, 39);
    --clr-svg-fill: rgb(110, 156, 241);

    --max-width: 1728px;
}

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

html {
    font-size: var(--fs-base);
    background-color: var(--clr-background);
    color: var(--clr-text);
    font-family: sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 0 0.75rem;
}

section {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

ul {
    padding-left: 1rem;
    list-style: disc;
}

li {
    padding-block: 0.25rem;
}

svg.icon {
    fill: var(--clr-svg-fill);
}

section:is(:first-of-type) {
    margin-top: 4rem;
    padding: 2rem 0;
}

section:is(:not(:first-of-type)) {
    padding: 2rem 0;
    border-top: 1px solid var(--clr-border);
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-facts {
    flex: 1;
}

.long-form-container {
    flex: 2;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 2rem;
}

.tag-container {
    display: flex;
    flex-direction: column;
}

.tag-container ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding-left: 0;
}

.tag {
    color: var(--clr-tag);
    padding: 0.25rem 0.5rem;
    border: 1px dotted var(--clr-tag);
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-item {
    padding: 0 1rem;
}

.grid-item:not(:first-of-type) {
    border-left: 1px dotted var(--clr-border);
}

.grid-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.grid-item-image {
    margin-bottom: 1rem;
}

.grid-item-image img {
    max-width: 100%;
}

.grid-item-context {
    margin-top: 1rem;
}

.resume-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.resume-item-header {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.resume-item-subheader {
    margin-bottom: 0.5rem;
    color: var(--clr-text-muted);
}

.resume-item-name {
    text-align: left;
    font-weight: bold;
}

.resume-item-date {
    font-style: italic;
    font-size: var(--fs-sm);
    color: var(--clr-text-alt);
}

.resume-item-content {
    padding-left: 1rem;
}

.social-links svg:hover {
    fill: var(--clr-btn-text);
}

.social-links a:hover {
    background-color: transparent;
    color: var(--clr-text);
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid-item {
        padding: 1rem 0;
    }

    .grid-item:is(:first-of-type) {
        padding-top: 0;
    }

    .grid-item:is(:last-of-type) {
        padding-bottom: 0;
    }

    .grid-item:not(:first-of-type) {
        border-left: none;
        border-top: 1px dotted var(--clr-border);
    }
}