@charset "UTF-8";
@font-face {
  font-family: "CaperVF";
  src: url("/assets/fonts/CaperVF.woff2");
}
@font-face {
  font-family: "IBMPlexMono";
  src: url("/assets/fonts/IBMPlexMono-Text.woff2");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-variation-settings: "wght" var(--wght), "wdth" var(--wdth);
}

/*------------------
BASICS
-------------------*/
:root {
  --maincolor: rgb(17 29 72);
  --secondcolor: rgb(250 90 75);
  --thirdcolor: rgb(60 100 245);
  --code-bgcolor: rgb(255 255 215);
  --grey: rgb(251 251 255);
  --dark-grey: rgb(180 180 180);
  --wght: 400;
  --wdth: 20;
  --menuheight: 40px;
  --footerheight: 80px;
  --base: 1.2rem;
  --ss03: 1;
  --maxwidth: 80%;
  --margin: calc( ( 100vw - var(--maxwidth) )*0.5 );
  --pad-large: 4rem;
  --pad: 2.5rem;
  --pad-medium: 1rem;
  --pad-small: 0.5rem;
}

body {
  font-family: "Caper";
  line-height: 1.5;
  font-size: var(--base);
  color: var(--maincolor);
  background: var(--grey);
}

a {
  color: var(--thirdcolor);
  text-decoration: none;
}

a:hover {
  --ss03: 0;
  color: var(--secondcolor);
}

.meta {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  --wght: 800;
  --wght: 440;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

/*------------------
TYPOGRAPHY
-------------------*/
body {
  font-family: "CaperVF";
  font-size: var(--base);
  --wght: 400;
  --wdth: 70;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

h1 {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  --wght: 800;
  --wght: 900;
  letter-spacing: 0;
  font-size: 2em;
  line-height: 1;
  margin-top: 1em;
  margin-bottom: 0.25em;
  color: var(--secondcolor);
  padding-top: 0.5em;
}

h1:first-child {
  margin-top: 0;
}

h2 {
  color: var(--secondcolor);
  --wght: 700;
  font-size: var(--base);
  line-height: 1.2;
}

h3 {
  --wght: 700;
  font-size: var(--base);
}

h2, h3, h4 {
  margin-top: var(--pad-medium);
}

h4, h5 {
  --wght: 440;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

article li {
  --wght: 440;
  letter-spacing: 0.03em;
  font-size: 1rem;
}
article ul, article ol, article p {
  margin-top: var(--pad-medium);
}
article ul, article ol {
  margin-left: var(--pad);
}
article pre {
  margin: var(--pad-medium) 0;
}

h2, h3, h4, p, ul, ol, pre, table {
  max-width: 800px;
}

p a::after, li a::after {
  content: "→";
}

img {
  width: 100%;
  max-width: 600px;
}

.note {
  margin-top: var(--pad);
  --wght: 440;
  letter-spacing: 0.03em;
  font-size: 1rem;
  background: var(--code-bgcolor);
}

/*------------------
LISTS
-------------------*/
ul {
  list-style-type: none;
}

ul li {
  list-style-type: none;
}
ul li::before {
  content: "— ";
}

.anchor {
  position: relative;
  top: -100px;
}

strong {
  font-weight: normal;
  --wght: 700;
  white-space: nowrap;
}

em {
  font-style: normal;
  --wght: 700;
}

blockquote {
  font-size: 2rem;
  line-height: 1.2;
  --wght: 400;
  --wdth: 10;
  color: var(--secondcolor);
  max-width: 30em;
  text-indent: -0.4em;
  color: var(--secondcolor);
}

pre {
  background: var(--code-bgcolor);
  color: var(--maincolor);
  padding: 8px;
  white-space: pre-wrap;
  font-size: 0.8em;
  --wght: 500;
}

p code {
  font-size: 0.8em;
}

code {
  letter-spacing: 0;
  font-family: "IBMPlexMono", monospace;
  font-size: 0.9em;
  font-style: normal;
  background: var(--code-bgcolor);
}
code .token {
  color: var(--thirdcolor);
}
code .rule, code .selector, code .keyword {
  color: #555555;
}
code .property, code .tag, code .function {
  color: var(--secondcolor);
}
code .string, code .attr-value {
  color: var(--maincolor);
}
code .attr-name {
  color: #afa050;
}

/*------------------
HEADER and NAV
-------------------*/
nav .home {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  --wght: 800;
}
nav .top-nav {
  padding-top: var(--pad-medium);
  display: flex;
}
nav .top-nav a {
  line-height: 1;
  margin-right: var(--pad);
}
nav .nav-links {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 30vw;
  height: 100vh;
  background: var(--secondcolor);
  z-index: 200;
  padding: var(--pad-medium) var(--pad);
  color: white;
}
nav .nav-links a {
  display: block;
  color: white;
}
nav .nav-links a:hover {
  --ss03: 1;
}
nav .nav-links .meta {
  --wght: 450;
}
nav.open .nav-links {
  display: block;
}
nav.open #menu-icon {
  color: white;
}

a[target=_blank] {
  position: relative;
}

a[target=_blank]::after {
  content: "↗ ";
}

#menu-icon {
  position: fixed;
  right: var(--pad-small);
  top: 0;
  z-index: 250;
  width: 60px;
  padding: var(--pad-medium);
  font-size: 30px;
}
#menu-icon:hover {
  cursor: pointer;
  color: var(--thirdcolor);
}
#menu-icon .menu-line {
  height: 3px;
  background: var(--maincolor);
  margin: 3px;
}

/*------------------
STRUCTURES
-------------------*/
.container {
  max-width: var(--maxwidth);
  margin: auto;
}

header {
  height: var(--menuheight);
}

footer {
  height: var(--footerheight);
}

main {
  padding: var(--pad-large) 0 var(--pad-large);
  min-height: calc(100vh - var(--footerheight) - var(--menuheight));
}

section {
  margin: var(--pad) 0 var(--pad-large);
}

.grid, .row, .dropdown-title {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--pad-small);
}

/*------------------
HOMEPAGE INDEX
-------------------*/
.index dt {
  border-bottom: 0;
  display: block;
}
.index dt .unit, .index dt .phase {
  display: none;
}
.index dd {
  display: block;
}
.index h2 {
  font-size: 4.8rem;
  letter-spacing: 0;
  text-transform: none;
  --wght: 120;
  text-indent: -0.1em;
  --wght: 800;
  max-width: none;
  line-height: 0.9;
  margin-bottom: 15px;
}
.index .row, .index h4 {
  font-size: var(--base);
  --wght: 400;
  --wdth: 70;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.index time {
  display: inline-block;
}
.index ul {
  margin-bottom: 0;
  padding-left: 0;
}
.index ul li {
  text-indent: 0;
  padding-left: 0;
}
.index ul li::before {
  content: "";
}

.reading {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--pad-small);
  padding: var(--pad-small) 0;
  border-bottom: 1px solid var(--maincolor);
}
.reading:last-child {
  border-bottom: 0;
}
.reading .title {
  grid-column: 2/6;
}
.reading .author {
  grid-column: 6/-1;
}
.reading::after {
  position: absolute;
  right: 0;
  top: var(--pad-small);
}
.reading:hover {
  color: var(--secondcolor);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
}

.students .link-button {
  width: calc(33% - 1em);
}
@media screen and (min-width: 1000px) {
  .students .link-button {
    width: calc(20% - 1em);
  }
}

/*------------------
SCHEDULE
-------------------*/
.in-person {
  color: var(--secondcolor);
}

.remote {
  color: var(--thirdcolor);
}

time {
  color: var(--secondcolor);
}

.accordion {
  text-indent: 0;
  padding-left: 0;
}
.accordion:before, .accordion li::before {
  content: none;
}

dt {
  --wght: 650;
}

.dropdown-content h3, .dropdown-content h4 {
  margin-top: 0;
}

.dropdown-title {
  margin: 2em 0 0;
  border-bottom: 1px solid;
}
.dropdown-title:hover {
  cursor: pointer;
}
.dropdown-title h2 {
  margin-top: 0;
}

.unit {
  grid-column: 2/4;
  --wdth: 10;
}

.phase {
  grid-column: 4/-1;
  --wdth: 10;
}

.dropdown-content {
  display: none;
}

.accordion.open .dropdown-content {
  display: block;
}

.row {
  padding: var(--pad-small) 0;
  border-bottom: 1px solid var(--maincolor);
  --wght: 440;
  letter-spacing: 0.03em;
  font-size: 1rem;
}
.row:last-child {
  border-bottom: 0;
}
.row p {
  margin-bottom: 0;
}

.day {
  grid-column: auto/span 2;
}

.schedule .index-list li:nth-child(14) .week-title::after {
  content: "*";
}
.schedule .index-list li:nth-child(14) .day {
  grid-column: auto/span 1;
}

.item {
  grid-column: 2/-1;
}

#week-14 .row .day {
  grid-column: auto/span 1;
}

/*------------------
SYLLABUS
-------------------*/
dl {
  display: grid;
  grid-template-columns: 150px auto;
  padding-left: var(--pad);
  --wght: 440;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

table {
  margin-top: var(--pad);
  width: 100%;
  border-collapse: collapse;
}

th {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  --wght: 800;
  --wght: 440;
  text-align: left;
}

th, td {
  --wght: 440;
  letter-spacing: 0.03em;
  font-size: 1rem;
  padding: var(--pad-small) var(--pad-small) 0 0;
  box-sizing: border-box;
  vertical-align: top;
}

#syllabus td:first-child, #syllabus th:first-child {
  width: 28%;
}
#syllabus td:last-child, #syllabus th:last-child {
  width: 30px;
  text-align: right;
}

th {
  border-bottom: 1px solid var(--maincolor);
}

.content td ul {
  padding-left: 0;
  margin-bottom: 0;
}

#tag-label {
  display: none;
  position: absolute;
  --wght: 800;
  box-shadow: inset 2px 2px 4px var(--thirdcolor);
  padding: 8px 8px 0px;
  line-height: 1;
  z-index: 100;
  color: var(--thirdcolor);
  font-size: 2rem;
}

.box {
  border: 1px solid var(--secondcolor);
}

/*------------------
PROJECTS
-------------------*/
.projects a {
  --ss03: 0;
}

h2.project {
  font-size: 4.8rem;
  letter-spacing: 0;
  text-transform: none;
  --wght: 120;
  text-indent: -0.1em;
}

figcaption {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/*------------------
Exercises
-------------------*/
.layouts {
  display: flex;
}
.layouts .mockup {
  width: 240px;
  position: relative;
  padding-top: 50px;
  margin: 50px;
}
.layouts .mockup figcaption {
  position: absolute;
  top: 0;
}

.block {
  border: 1px solid;
  padding: 5px;
}

.image-block {
  width: 80px;
  height: 80px;
  margin-right: 10px;
}

.text-block {
  width: 100px;
}

.layout1 .text-block {
  margin: auto;
  height: auto;
}

.layout2 {
  display: flex;
}
.layout2 .text-block {
  margin-right: 10px;
}

.layout3 {
  display: flex;
  height: 200px;
}
.layout3 .text-block {
  height: 150px;
  overflow: scroll;
}

/*------------------
RESOURCES
-------------------*/
.resources {
  position: relative;
}
.resources article {
  width: calc(100% - 250px - 4em);
}
.resources aside {
  position: absolute;
  top: 6em;
  right: 0;
  width: 250px;
  border-left: 1px solid var(--thirdcolor);
  padding-left: var(--pad);
  margin-left: var(--pad);
}
.resources aside .notes a {
  display: block;
  margin-bottom: 0.5em;
}

.link-button {
  --ss03: 0;
  width: 250px;
  height: 120px;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid;
  margin: 0 1em 1em 0;
  line-height: 1.2;
  font-size: 0.9em;
}
.link-button:hover {
  border-style: dashed;
}

.notecards {
  display: flex;
  flex-wrap: wrap;
}

/*------------------
GLOSSARY
-------------------*/
#glossary p {
  margin-top: var(--pad-medium);
  text-indent: 0;
}
#glossary h2 + p {
  margin-top: 0;
}

/*------------------
FOOTER
-------------------*/
footer {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  --wght: 800;
  --wght: 600;
  font-size: 0.85rem;
  border-top: 1px solid;
  padding-top: 0.5rem;
  height: var(--footerheight);
}
footer ul {
  max-width: none;
}
footer li {
  list-style-type: none;
  display: inline-block;
}
footer li:after {
  content: " * ";
}
footer li:last-child:after {
  content: "";
}

#dark-mode {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--maincolor);
  position: fixed;
  right: 20px;
  top: 26px;
}
#dark-mode:hover {
  background: var(--maincolor);
  cursor: pointer;
}

body.dark {
  --maincolor: rgb(250 201 201);
  background: #1e1e28;
}
body.dark header {
  background: #1e1e28;
}
body.dark .element {
  background: #1e1e28;
}

/*------------------
DIAGRAMS
-------------------*/
p + pre {
  margin-top: var(--pad-medium);
}

.diagram {
  border: 1px solid var(--secondcolor);
  padding: 1rem;
  margin: var(--pad);
  position: relative;
}
.diagram h1, .diagram p, .diagram em {
  font-size: 16px;
  text-transform: none;
  font-family: serif;
  color: var(--maincolor);
  text-indent: 0;
}
.diagram h1 {
  font-weight: bold;
  margin-bottom: 1rem;
}
.diagram p {
  margin-bottom: 1rem;
}
.diagram em {
  font-style: italic;
}

.line {
  height: 1.5em;
  background: var(--dark-grey);
  margin-bottom: 0.5em;
}

.square {
  width: 80px;
  height: 80px;
  background: var(--dark-grey);
}

.flex {
  display: flex;
  justify-content: space-between;
}

.inline {
  width: 32%;
  height: 1.5em;
  margin-bottom: 0.5em;
}

.solid {
  background: transparent;
  border: 1px solid var(--thirdcolor);
}

.marked {
  background: var(--thirdcolor);
}

@keyframes vf {
  0% {
    font-variation-settings: "wght" 20, "wdth" 100, "slnt" 0;
  }
  100% {
    font-variation-settings: "wght" 140, "wdth" 100, "slnt" 0;
  }
}
@keyframes changecolor {
  0% {
    background-color: blue;
  }
  50% {
    background-color: yellow;
    color: rgba(200, 155, 20, 0.8);
  }
  100% {
    background-color: green;
  }
}
/*------------------
MEDIA QUERIES
-------------------*/
@media only screen and (max-width: 1200px) {
  .container {
    max-width: 90%;
  }
}
@media only screen and (max-width: 1000px) {
  :root {
    font-size: 15px;
  }

  .open .nav-links {
    width: 50vw;
  }

  .top-nav a:not(.home) {
    display: none;
  }
}
@media only screen and (max-width: 800px) {
  :root {
    font-size: 14px;
  }

  .container {
    max-width: 92%;
  }

  nav {
    font-size: 2rem;
    line-height: 1.2;
    --wght: 400;
    --wdth: 10;
    color: var(--secondcolor);
    max-width: 30em;
    margin-bottom: var(--pad);
  }

  .open .nav-links {
    width: 100vw;
  }

  th, td {
    font-size: 0.9em;
    --wght: 500;
  }

  h3, h4, h5, h6, .content ul {
    padding-left: 0;
  }

  article p, article h4, article ul, article ol {
    margin-left: 0;
  }

  .link-button {
    height: 100px;
  }

  .index h2 {
    font-size: 3rem;
  }

  .unit {
    grid-column: 2/-1;
  }

  .phase {
    display: none;
  }

  .row {
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
  }
  .row h4 {
    grid-column: 1/-1;
    --wght: 440;
    letter-spacing: 0.03em;
    font-size: 1rem;
  }
  .row .item {
    grid-column-start: 1;
  }

  .readings .year {
    display: none;
  }
  .readings .title {
    grid-column: 1/6;
  }
  .readings .author {
    grid-column-start: 6;
  }

  .resources aside {
    margin-top: var(--pad-large);
    margin-left: 0;
    position: static;
    width: 100%;
    border: 0;
    border-top: 2px solid;
    padding: var(--pad) 0;
  }
  .resources article {
    width: 100%;
  }
}
.print {
  display: none;
}

@media print {
  .print {
    display: block;
  }

  :root {
    --pad: 1.5rem;
    --pad-small: 0.3rem;
    --pad-medium: 1rem;
    --pad-large: 2rem;
    font-size: 15px;
  }

  header {
    display: none;
  }

  body {
    font-size: 15px;
    color: black;
  }

  .container {
    max-width: 100%;
  }

  main {
    margin-left: 20vw;
  }

  h1, h2, h3, h4, p, ol, ul, dt, dd, time, a {
    color: black;
    font-size: 1rem;
  }

  blockquote p {
    display: none;
  }

  td {
    font-size: 0.85rem;
    padding-bottom: 0;
  }

  dt h2, dt div {
    font-size: 0.85rem;
  }

  .row p, .row h4, .row ul, .row time, .row a {
    font-size: 0.85rem;
  }

  h1 {
    page-break-before: always;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  time {
    --wght: 650;
    --wdth: 10;
  }

  article {
    padding: 0;
  }
  article ul {
    max-width: 85%;
  }
  article li {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  aside {
    display: none;
  }
}