
/***************** IMPORTS *****************/
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:ital,wght@0,200..800;1,200..800&family=Momo+Trust+Display&display=swap');


/*************** VARIABLES ***************/
:root {
    --color-background: #ABFFCC;
    --color-text: #59402A;
    --color-accent: #59402A;
}


/*************** BASE ***************/
* {
    box-sizing: border-box;
}

body {
    font-family: "Atkinson Hyperlegible Next", sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

/*************** TYPOGRAPHY ***************/
h1, h2, h3, a {
    font-family: "Momo Trust Display", sans-serif;
}

h1 {
    font-size: clamp(2rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(1rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
}

p {
    font-size: clamp(1rem, 1vw, 1.125rem);
    line-height: 1.6;
}

a {
    text-decoration: underline;
    text-decoration-thickness: 0.125rem;
    text-underline-offset: 0.3125rem;
    line-height: 1.6;
    color: var(--color-text);
}


/*************** LAYOUT ***************/
header {
    display: flex;
    flex-direction: column;
    width: min(95%, 80rem);
    margin: 2rem auto;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: var(--color-accent) solid 5px;
}

.about-me-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: min(100%, 60rem);
    margin: 2rem auto;
    padding: 0 1.5rem;
}

section {
    width: min(95%, 80rem);
    margin: 2rem auto;
    text-align: center;
    border-bottom: var(--color-accent) solid 5px;
}

section p {
    text-align: left;
}

article {
    display: flex;
    justify-content: space-around;
    border: solid 0.3125rem;
    border-color: var(--color-accent);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(95%, 80rem);
    margin: 2rem auto;
}


/*************** NAVIGATION ***************/
nav ul {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--color-background);
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: 0.25rem solid transparent;
    background-color: var(--color-accent);
}

a.active-link {
    border-style: solid;
    border-width: 0rem 0.3125rem;
    border-radius: 0.3125rem;
}


/*************** CARDS ***************/
.card {
    display: flex;
    flex-direction: column;
    flex: 0.0625rem 0.0625rem 12.5rem;
    max-width: 12.5rem; 
    padding: 0.625rem;
}

.deck {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.875rem;
    padding: 1.875rem;
}

/*************** ABOUT PAGE ***************/
.about-me-header {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    margin: 5%;
}

.about-me-header > div:first-child {
    flex: 0 0 min(40%, 300px);
    overflow: hidden;
}

.about-me-header > div:last-child {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid var(--color-accent);
    border-radius: 3px;
    display: block;
}

/*************** DEBUG ***************/

/*LAYOUT DEBUG TOOL STYLES START*/
#debug-toggle:checked ~ #layout-debug section {
    outline: 0.25rem dashed #000000;
} /*we are making #debug-toggle in the checked state a sibling of #layout-debug using a combinator*/

#debug-toggle:checked ~ #layout-debug div {
    outline: 0.25rem dotted #a40303;
}

#debug-toggle:checked ~ #layout-debug nav,
#debug-toggle:checked ~ #layout-debug header,
#debug-toggle:checked ~ #layout-debug article {
    outline: 0.25rem dotted #0b6a00;
}

#debug-toggle:checked ~ #layout-debug a {
    outline: 0.25rem dotted blue;
}
