@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --color-dark: #071215;
    --color-dark-teal: #0F3438;
    --color-bg: #F4F7F6;
    --color-bg-alt: #e7f0ee;
    --color-text: #17201f;
    --color-text-muted: #5B6B68;
    --color-primary: #13818A;
    --color-primary-light: #4FB9BC;
    --color-accent: #F28A45;
    --color-danger: #D94F41;
    /*Color control pallet for visual design */
}

* {
    box-sizing: border-box;
    padding: 0.1rem;
}
header figure {
    margin: 0;
    padding: 0;
}

header figcaption a {
    color: var(--color-primary-light);
} /* for link contrast for accessibility*/

header img {
    display: block;
    width: 100%;
    height: clamp(170px, 21vw, 310px);
    object-fit: cover;
    object-position: 50% 56%;
    padding: 0;
}

header {
    background-color: var(--color-dark);
    color: var(--color-bg);
}

nav {
    background-color: var(--color-dark);
}

nav a {
    color: inherit;
    text-decoration: none; /*removes default link underlines*/
    display: inline-block;
    /*inline with neighboring links but lets me treat them as a box for tranform*/
    
}

nav a:visited {
    color: inherit; /*visited nav links use same normal color*/
}

.navbar .nav-link:hover {
    color: var(--color-primary-light);
    /*when hovered over link changes color*/
    transform: scale(1.05);
}

nav a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    /*keyboard users tab between links and the current focused link gets an outline*/
}

nav ul {
    padding: 0;
    margin: 0;
    display: flex;
    /*arange the link using flexbox*/
    gap: 1rem;
    /*puts 1 rem space between links/flex item*/
    flex-wrap: wrap;
    /*if there isnt enough room sove the links onto another line*/
    justify-content: flex-start;
    /*left aligns inside the .container so it has same verticle lines with the welcome text*/
}

nav ul li {
    list-style-type: none;
    
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Space Grotesk", sans-serif;
}

h1 {
    font-size: clamp(2rem, 2.5vw, 2.75rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

h2, h3 {
    color: var(--color-dark-teal);
}

.container {
    width: min(90%, 1200px);
    margin-inline: auto;
}

.section-alt {
    background-color: var(--color-bg-alt);
    padding: 2rem 0;
    /*creates alternative color for sections on pag*/
}

.intro-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
    /*puts introduction and text next to each other*/
    
}

.intro-text {
    flex: 1;
}

.intro-layout figure {
    flex: 0 1 40%;
    /*40% desired width, 1 shrink if necessary, 0 dont grow beyond that even if there is room*/
    margin: 0;
}

.intro-layout img {
    width: 100%;
    height: auto;
    border: 1px solid var(--color-primary);
    display: block;
}

.bio {
    font-size: 1.05rem;
}

#footer {
    font-size: 0.85rem;
    font-style: italic;

}

.dmacc-logo {
    width: 300px;
    max-width: 100%;
    background-color: #003DA7;
    padding: 1rem;
}

.coming-soon-btn {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

#backToTop {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    /*50% makes the button in the shape of a circle*/
    background-color: var(--color-primary);
    color: var(--color-bg);
    display:flex;
    justify-content: center;
    align-items: center;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    /*turns cursor into a hand when hovered over the button*/
    transition: background-color 0.2s ease, color 0.2s ease;
    /*background color the thing we are animating, 0.2 duration of animation, ease makes the animation move smoothly. color 0.2s ease transitions the arrow color*/

}

#backToTop:hover{
    background-color: var(--color-dark-teal);
    color: var(--color-accent);
}
/*this id controls what colors the background and the arrow change to*/

main a, aside a {
    color: var(--color-dark-teal);
}
/* selects links in main and aside changes colors to dark teal to improve contrast against light backgrounds*/
