/* Imports */
@import url("reset.css");
@import url("fonts.css");
@import url("colors.css");
@import url("syntax_highlighting.css");

* {
    border-color: var(--dusk-haze);
}

html {
    width: 100%;
    background-color: var(--coastal-mist);
}

body {
    font-family: 'Lilex';
    color: var(--abyssal-ink);
    background-color: var(--pale-shore);
    width: 100%;
    max-width: 1000px;
    margin: 10px auto;
}

pre, code {
    font-family: 'Azeret-Mono';
}

header.primary {
    text-align: center;
    background-color: var(--coastal-mist);
}

header.primary h1 {
    font-family: 'Sixtyfour_Convergence';
    font-palette: --eldritch-dusk;
    color: #fb5bb6; /* fallback if the font fails to load */
    padding: 0 0 20px 0;
    font-size: 48px;
}

header.primary a {
    text-decoration: none;
}

/* The title renders at ~1ch per 48px, so "zacharyparmley.com" needs ~870px
   and "zacharyparmley" ~675px. Wrap progressively as the viewport narrows:
   one line -> ".com" drops to its own line -> "parmley" drops too. */
@media (max-width: 920px) {
    header.primary h1 .site-name-tld { display: block; }
}

@media (max-width: 720px) {
    header.primary h1 .site-name-last { display: block; }
}

header.primary nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

header.primary nav ul a {
    color: var(--vesper-violet);
}

main {
    padding: 10px 10px;
}

footer {
    text-align: right;
}

/* Content */
article {
    margin-left: auto;
    margin-right: auto;
}

/* Index styles */
.index-content h2 {
    margin: 20px;
    text-align: center;
}

.index-content div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.index-content div img {
    max-width: 300px;
    max-height: 300px;
    border: 10px;
}

/* Resume styles */

article.resume header {
    text-align: center;
}

article.resume .top-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

article.resume h2 {
    text-align: center;
}

article.resume .top-content {
    text-align: center;
}

article.resume .top-left-content, article.resume .top-right-content {
    /* max-width: 45%; */
}

@media (min-width: 1024px) {
    article.resume .top-left-content, article.resume .top-right-content {
        max-width: 45%;
    }
}

article.resume .top-content .top-left-content p {
    text-align: left;
}

article.resume .top-right-content{
    text-align: center;
}

article.resume .top-right-content table {
    border-collapse: separate;
    border-spacing: 0px;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
}

article.resume .top-right-content table td {
    border: 1px solid var(--dusk-haze);
    padding: 0px 8px;
}
