* {
    box-sizing: border-box;
    font-weight: normal;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 0;
}

/* COLORS */

/* variables set in snippet */

.wrapper.intro { 
    background-color: var(--introColor); 
}

.intro article strong { 
    font-family: 'Fragment', 'courier', monospace; 
    background-image: linear-gradient(to right, var(--directingColor) 33%,  var(--writingColor) 33% 66%, var(--copywritingColor) 66%);
}

.intro article a:nth-child(1) { color: var(--directingColor); }
.intro article a:nth-child(2) { color: var(--writingColor); }
.intro article a:nth-child(3) { color: var(--copywritingColor); }

#nav { background-color: var(--navColor); }

ul.directing, i.directing { color: var(--directingColor); }
ul.writing, i.writing { color: var(--writingColor); }
ul.copywriting, i.copywriting { color: var(--copywritingColor); }

.wrapper.directing, span.directing, ul.directing b { background-color: var(--directingColor); }
.wrapper.writing, span.writing, ul.writing b { background-color: var(--writingColor); }
.wrapper.copywriting, span.copywriting, ul.copywriting b { background-color: var(--copywritingColor); }

.wrapper.directing, span.directing, ul.directing b { color: black; }
.wrapper.writing, span.writing, ul.writing b { color: black; }
.wrapper.copywriting, span.copywriting, ul.copywriting b { color: black; }

/* TYPOGRAPHY */

@font-face {
    font-family: Nimbus;
    src: url(../woff/nimbus.woff2);
}

@font-face {
    font-family: Fragment;
    src: url(../woff/fragment.woff2);
}

header, footer, nav { 
    font-family: 'Fragment', 'courier', monospace; 
}

body { 
    font-family: 'Nimbus', 'Helvetica', 'Arial', sans-serif;
}

h1, h2, p, ul {
    width: 100%;
}

h1, q {
    font-size: 28px;
    text-align: center;
}

p {
    font-size: 21px;
}

ul { 
    font-size: 14px;
}

em, strong { font-style: normal; }

/* BASICS */

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    line-height: 28px;
}

.container {
    max-width: 800px;
    padding: 28px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

header, footer {
    display: flex;
    flex-flow: row-reverse;
    justify-content: space-between;
}

footer {
    padding: 21px 0px 14px 0px;
    opacity: 0.4;
}

header a {
    opacity: 0.4;
}

article {
    width: 100%;
    padding-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 42px;
}

article ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 4ch;
}

/* NAV */

ul.lvl-2:has(li a:hover) li.lvl-2-label {
    font-size: 28px;
}

ul.lvl-1:has(li a:hover) li.lvl-1-label {
    font-size: 28px;
}

li.lvl-1-label { opacity: 0.4; }
li.lvl-2-label { opacity: 0.6; }
ul.lvl-2 > ul  { opacity: 1; }

ul {
    list-style-type: none;
}

ul > ul {
    padding-left: 4ch;
}

li a, header a, footer a {
    display: list-item;
    list-style-type: none;
}

li a:link, header a:link, footer a:link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

li a:visited, header a:visited, footer a:visited {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

li a:hover, header a:hover, footer a:hover {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font-size: 28px;
}

li a:active, header a:active, footer a:active {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font-size: 28px;
}

/* INTRO */

.intro .container {
    font-family: 'Fragment', 'courier', monospace; 
    min-height: 100vh;
    justify-content: center;
}

.intro header {
    flex: 0 1 28px;
}

.intro article {
    flex: 1 1 auto;
    justify-content: center;
}

/* FIG, IMAGE, VIDEO */

figure {
    display: flex;
    flex-direction: column;
    padding: 0 42px;
}

figcaption {
    display: block;
    font-size: 14px;
    line-height: 21px;
    text-align: center;
    padding-top: 7px;
}

img, video {
    display: block;
    width: 100%;
    font-size: 0;
}

.gallery {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 42px;
    align-items: flex-start;
    padding: 0 42px;
}

.gallery figure {
    padding: 0;
}

/* LINKS */

article a:link {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid currentcolor;
    cursor: pointer;
}

article a:visited {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid currentcolor;
    cursor: pointer;
}

article a:hover {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

article a:active {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
