@font-face {
  font-family: "Atlas Grotesk";
  src: url("assets/Atlas%20Grotesk/AtlasGrotesk-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atlas Grotesk";
  src: url("assets/Atlas%20Grotesk/AtlasGrotesk-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atlas Grotesk";
  src: url("assets/Atlas%20Grotesk/AtlasGrotesk-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: "Atlas Grotesk", Helvetica, Arial, sans-serif;
  color: #000;
  background: #fff;
  --orange: #ff8200;
  --green: #23c268;
  --yellow: #f2ee52;
  --pink: #f7c3ce;
  --blue: #56bcf9;
  --grey: #e4e4e5;
  --light-grey: #efefef;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 62px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(255 255 255 / 94%);
}

.course-logo {
  display: flex;
  align-items: center;
  font-size: clamp(1.7rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.course-logo:hover {
  color: #9d9d9d;
}

.logo-shape {
  position: relative;
  width: 0.6em;
  height: 0.6em;
  margin: 0 0.34em;
  flex: 0 0 auto;
}

.shape {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: logo-shape-cycle 6s infinite;
}

.shape.triangle {
  background: var(--orange);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.shape.circle {
  border-radius: 50%;
  background: var(--green);
  animation-delay: 2s;
}

.shape.square {
  background: #f062a6;
  animation-delay: 4s;
}

.logo-shape-b .triangle {
  animation-delay: -2s;
}

.logo-shape-b .circle {
  animation-delay: 0s;
}

.logo-shape-b .square {
  animation-delay: 2s;
}

@keyframes logo-shape-cycle {
  0%,
  33.33% {
    opacity: 1;
  }

  33.34%,
  100% {
    opacity: 0;
  }
}

main {
  width: min(100% - 48px, 62rem);
  margin: 0 auto;
  padding: 118px 0 96px;
}

.day-tabs {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  margin-bottom: -2px;
}

.day-tab {
  --tab-color: var(--grey);
  min-width: 240px;
  padding: 10px 14px 8px;
  border: 2px solid #000;
  border-radius: 14px 14px 0 0;
  color: #000;
  background: var(--tab-color);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    padding 160ms ease;
}

.day-tab span {
  float: right;
  font-weight: 400;
}

.day-tab:first-child {
  --tab-color: white;
}

.day-tab:last-child {
  --tab-color: white;
}

.day-tab:hover:not(.is-active) {
  color: #fff;
  background: #000;
}

.day-tab.is-active {
  z-index: 2;
  padding-top: 12px;
  border-bottom-color: #fff;
  color: #000;
  background: #fff;
  /* box-shadow: inset 0 7px 0 var(--tab-color); */
}

.day-tab:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.tab-stage {
  position: relative;
  container-type: inline-size;
  padding: 1.25rem;
  overflow: clip;
  border: 2px solid #000;
  border-radius: 0 0px 0px;
  background: #fff;
}

.tab-panel {
  position: absolute;
  inset: 1.25rem;
  z-index: 0;
  width: calc(100% - 2.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 0s linear 220ms;
}

.tab-panel.is-active {
  position: relative;
  inset: auto;
  z-index: 2;
  width: 100%;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.intro {
  padding: 0 0 2rem;
}

.step {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
}

.intro-columns {
  columns: 2;
  column-gap: 2.5rem;
}

.instructions {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
  break-inside: avoid;
}

.instructions + .instructions {
  margin-top: 0;
}

.upload-panel {
  padding: 1.5rem 0 4rem;
  border-top: 2px solid #000;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

h2 {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.supporting-copy {
  margin: 0.65rem 0 0;
  font-size: 15px;
  line-height: 22px;
}

.step-marker {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}

.step-marker-one {
  background: var(--orange);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  padding-top: 12px;
}

.step-marker-two {
  border-radius: 50%;
  background: var(--green);
}

.folder-picker {
  min-height: 150px;
  margin: 1.5rem 0 0 0rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-radius: 0px;
  background: var(--grey);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.folder-picker:hover,
.folder-picker:focus-within,
.folder-picker.is-dragging {
  background: var(--yellow);
  transform: translateY(-2px);
}

.folder-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.picker-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #000;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.folder-picker strong,
.folder-picker small {
  display: block;
}

.folder-picker strong {
  font-size: 19px;
  font-weight: 700;
}

.folder-picker small {
  margin-top: 3px;
  color: inherit;
  font-size: 13px;
}

.sheet-section {
  padding-top: 1.5rem;
  border-top: 2px solid #000;
}

.sheet-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.sheet-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.row-control {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.row-control select {
  min-width: 76px;
  height: 46px;
  padding: 0 30px 0 14px;
  border: 2px solid #000;
  border-radius: 70px;
  color: #000;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

#print-button {
  min-width: 220px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid #000;
  border-radius: 70px;
  color: #000;
  background: var(--grey);
  font-weight: 700;
  cursor: pointer;
}

#print-button:hover {
  color: var(--grey);
  background: #000;
}

.print-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
}

.print-note {
  margin: 1.5rem 0 2rem 4.25rem;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--light-grey);
  font-size: 13px;
}

.print-note span {
  margin-right: 18px;
  font-size: 11px;
  font-weight: 700;
}

.pages {
  --preview-width: 100cqw;
  --preview-scale: calc(var(--preview-width) / 11in);
  --columns: 4;
  --rows: 6;
  --thumb-size: 2.5in;
  --sheet-gap: 0.166in;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 0;
  background: transparent;
}

.page-wrap {
  width: 100%;
}

.page-label {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

/* .page-wrap:nth-child(5n + 1) .page-label {
  color: var(--orange);
}

.page-wrap:nth-child(5n + 2) .page-label {
  color: var(--green);
}

.page-wrap:nth-child(5n + 3) .page-label {
  color: #d4ca00;
}

.page-wrap:nth-child(5n + 4) .page-label {
  color: #e26292;
}

.page-wrap:nth-child(5n) .page-label {
  color: #168ed1;
} */

.page {
  width: 11in;
  height: 17in;
  padding: 0.25in;
  display: grid;
  grid-template-columns: repeat(var(--columns), var(--thumb-size));
  grid-template-rows: repeat(var(--rows), var(--thumb-size));
  gap: var(--sheet-gap);
  align-content: center;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 18px rgb(0 0 0 / 12%);
  transform: scale(var(--preview-scale));
  transform-origin: top left;
}

.page-wrap {
  height: calc(17in * var(--preview-scale) + 24px);
}

.thumbnail {
  width: var(--thumb-size);
  height: var(--thumb-size);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.empty-message {
  padding: 40px 0;
  color: #000;
}

.matrix-directions {
  padding-top: 1.5rem;
  border-top: 2px solid #000;
}

.matrix-marker {
  border-radius: 0;
  background: var(--blue);
}

.matrix-downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem;
}

.download-link {
  min-height: 88px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 2px solid #000;
  border-radius: 14px;
  background: var(--grey);
  transition:
    color 160ms ease,
    background 160ms ease;
}

.download-link:hover {
  color: #fff;
  background: #000;
}

.download-link svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: currentColor;
}

.download-link strong,
.download-link small {
  display: block;
}

.download-link strong {
  font-size: 17px;
}

.download-link small {
  margin-top: 2px;
  font-size: 12px;
  line-height: 18px;
}

.matrix-steps {
  margin: 1.5rem;
  padding: 1.5rem 1.5rem 1.5rem 3.25rem;
  border-radius: 0px;
  background: var(--grey);
}

.matrix-steps li {
  padding-left: 0.35rem;
}

.matrix-steps li + li {
  margin-top: 0.45rem;
}

@media (max-width: 700px) {
  .site-header {
    height: 56px;
    padding: 0 0.75rem;
  }

  .course-logo {
    font-size: 1.5rem;
  }

  main {
    width: calc(100% - 1.5rem);
    padding-top: 92px;
  }

  .day-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem;
    margin-bottom: -2px;
  }

  .day-tab {
    min-width: 0;
    padding-inline: 10px;
  }

  .day-tab span {
    display: none;
  }

  .tab-stage {
    padding: 0.75rem;
    border-radius: 0 14px 14px;
  }

  .tab-panel {
    inset: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .intro {
    padding: 0 0 2.5rem;
  }

  .intro-columns {
    columns: 1;
  }

  .instructions + .instructions {
    margin-top: 1rem;
  }

  .upload-panel {
    padding: 1.25rem 0 3rem;
  }

  .folder-picker {
    min-height: 140px;
    margin-left: 0;
    padding: 1.25rem;
  }

  .picker-icon {
    width: 44px;
    height: 44px;
  }

  .sheet-section {
    padding-top: 1.25rem;
  }

  .sheet-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sheet-actions {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  #print-button {
    width: 100%;
  }

  .print-note {
    margin-left: 0;
    border-radius: 14px;
  }

  .print-note span {
    display: block;
  }

  .matrix-steps {
    margin-left: 0;
  }

  .matrix-downloads {
    grid-template-columns: 1fr;
    margin-inline: 0;
  }

  .page-wrap {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none;
  }

  .shape.triangle {
    opacity: 1;
  }

  .logo-shape-b .triangle {
    opacity: 0;
  }

  .logo-shape-b .circle {
    opacity: 1;
  }
}

@page {
  size: tabloid portrait;
  margin: 0;
}

@media print {
  :root,
  body {
    background: white;
  }

  main {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .intro,
  .upload-panel,
  .sheet-toolbar,
  .print-note,
  .page-label,
  .site-header,
  .day-tabs,
  .matrix-panel {
    display: none;
  }

  .tab-stage {
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .sheet-section {
    padding: 0;
    border: 0;
  }

  .pages {
    display: block;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .page-wrap {
    width: 11in;
    height: 17in;
    break-after: page;
    page-break-after: always;
  }

  .page-wrap:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .page {
    box-shadow: none;
    transform: none;
  }
}
