@font-face {
  font-family: Bounded;
  src: url("brand/bounded.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("brand/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #0d131d;
  --paper: #f1f3ef;
  --white: #fff;
  --mint: #44bd92;
  --lime: #b0f37d;
  --lilac-paper: #f1e6ff;
  --orange: #ee5f37;
  --blue: #283a96;
  --muted: #4e5753;
  --line: #d8dfd9;
  --outline: #78877e;
  --radius: 1.5rem;
  --space: clamp(1rem, 3vw, 2rem);
  font: 1rem/1.55 Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--mint);
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: var(--mint); border-bottom: 1px solid rgb(13 19 29 / 22%); }
.bar, main { width: min(100% - 2 * var(--space), 74rem); margin: auto; }
.bar { min-height: 4.75rem; display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
.identity { display: flex; align-items: center; gap: clamp(.55rem, 2vw, 1.2rem); }
.brand-mark { display: block; width: clamp(3rem, 8vw, 4.625rem); height: auto; }
.wordmark { color: var(--white); border-left: 1px solid rgb(13 19 29 / 35%); padding-left: clamp(.55rem, 2vw, 1.2rem); font: 750 clamp(.72rem, 2.6vw, 1rem)/1 Bounded, system-ui, sans-serif; }
main { padding-block: clamp(1.4rem, 4vw, 3.25rem) 4rem; }
.skip-link { position: fixed; z-index: 2; top: .6rem; left: .6rem; padding: .6rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3, .cover-title { font-family: Bounded, system-ui, sans-serif; line-height: 1.16; font-weight: 750; overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(1.45rem, 4vw, 3.1rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.03rem, 2.3vw, 1.35rem); }
h3 { margin: 0; font-size: clamp(1rem, 2.2vw, 1.2rem); }
p { margin: .75rem 0; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-underline-offset: .2em; }

.login-bento, .dashboard-bento, .streams-grid { display: grid; gap: .75rem; align-items: stretch; }
.login-bento { grid-template-columns: 1.15fr 1fr; }
.login-cover { position: relative; display: flex; align-items: flex-end; min-height: clamp(24rem, 42vw, 32rem); padding: clamp(1.25rem, 4.1vw, 3.2rem); isolation: isolate; }
.login-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  border-radius: var(--radius);
  clip-path: shape(from 0 24px, curve to 24px 0 with 0 0 / 0 0,
    line to calc(100% - 146px) 0, curve to calc(100% - 122px) 24px with calc(100% - 122px) 0 / calc(100% - 122px) 0,
    vline to 59px, curve to calc(100% - 98px) 83px with calc(100% - 122px) 83px / calc(100% - 122px) 83px,
    hline to calc(100% - 24px), curve to 100% 107px with 100% 83px / 100% 83px,
    line to 100% calc(100% - 24px), curve to calc(100% - 24px) 100% with 100% 100% / 100% 100%,
    hline to 24px, curve to 0 calc(100% - 24px) with 0 100% / 0 100%, close);
}
.cover-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 7rem;
  height: 4.55rem;
  display: grid;
  place-items: center;
}
.cover-mark img { width: 4.65rem; height: auto; display: block; }
.cover-content { min-width: 0; }
.cover-label { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; min-height: 2rem; padding: .25rem .75rem; border: 1px solid currentColor; border-radius: 2rem; color: inherit; font-size: .875rem; font-weight: 800; }
.cover-title { margin: 1rem 0 0; font-size: clamp(2.3rem, 6.2vw, 5.1rem); line-height: .98; letter-spacing: -.055em; text-transform: uppercase; }
.cover-context { margin-top: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }
.card { min-width: 0; padding: var(--space); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .85rem; }
.card.login { margin: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.2rem, 4vw, 3.2rem); }
.login h1 { margin-bottom: 1.5rem; font-size: clamp(1.35rem, 3.2vw, 2.25rem); }
.login button { width: 100%; }
.login .stack p { font-size: .92rem; }

.dashboard-bento { grid-template-columns: minmax(0, 1fr) clamp(10rem, 24vw, 17.5rem); margin-bottom: 1.65rem; }
.dashboard-cover { background: var(--white); padding: var(--space); border-radius: var(--radius); min-width: 0; }
.dashboard-bento .dashboard-cover { border-bottom-right-radius: 3.25rem; }
.dashboard-cover h1 { margin-top: .7rem; }
.standalone-cover { margin-bottom: .85rem; border-top-right-radius: 4rem; }
.score-tile { display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; align-items: flex-start; padding: var(--space); font-weight: 800; background: var(--white); border-radius: var(--radius); border-top-left-radius: 3.25rem; }
.score-tile strong { font: 800 clamp(2rem, 5vw, 3.6rem)/1 Bounded, system-ui, sans-serif; overflow-wrap: anywhere; max-width: 100%; background: var(--lime); padding: .22em .34em; border-radius: .35em; }
.streams-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stream-link { display: block; color: var(--ink); border-top: 1px solid var(--line); padding-block: .8rem; font-weight: 800; overflow-wrap: anywhere; }
.stream-link:hover { color: var(--blue); }
.task-card { border-left: .35rem solid var(--mint); }
.task-card:has(.graded) { border-left-color: var(--lime); }
.task-card:has(.pending) { border-left-color: var(--orange); }
.task-card > .row:first-child { align-items: center; }

.muted { color: var(--muted); }
.stack { display: grid; gap: .85rem; justify-items: start; width: 100%; }
.stack > label { width: 100%; }
.stack p { margin: 0; }
.row, .actions { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.actions { align-items: center; margin: 0 0 .85rem; }
.actions a:not(.button) { color: var(--ink); padding: .58rem .85rem; min-height: 2.75rem; font-weight: 800; background: var(--white); border-radius: 2rem; }
.grow { flex: 1 1 16rem; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 800; font-size: .94rem; }
input, textarea { width: 100%; min-width: 0; min-height: 2.75rem; font: inherit; font-size: 1rem; color: inherit; background: var(--white); border: 1px solid var(--outline); border-radius: .7rem; padding: .55rem .75rem; }
input[type=number] { width: 8.25rem; }
textarea { min-height: 6rem; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; max-width: 100%; font: inherit; font-weight: 800; border: 1px solid transparent; border-radius: 2rem; padding: .55rem 1.05rem; color: var(--white); background: var(--ink); cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--blue); }
.secondary { color: var(--ink); background: var(--white); border-color: var(--outline); }
.secondary:hover { color: var(--ink); background: var(--paper); }
.danger { color: #892711; background: var(--white); border-color: #b45239; }
.danger:hover { color: #892711; background: #ffede8; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.entry { border-top: 1px solid var(--line); padding: .65rem 0; }
.entry:last-child { padding-bottom: 0; }
details[open] > summary { margin-bottom: .65rem; }
summary { cursor: pointer; font-weight: 800; min-height: 2.75rem; padding: .55rem .2rem; overflow-wrap: anywhere; }
summary::marker { color: var(--blue); }
summary:hover { color: var(--blue); }
.spaced { margin-top: .75rem; }
.status, .notice { background: var(--lilac-paper); padding: .35rem .75rem; border-radius: 2rem; font-size: .875rem; font-weight: 800; }
.status.graded { background: var(--lime); }
.status.pending { background: #ffd9ce; box-shadow: inset 0 0 0 1px var(--orange); }
.notice { padding: .7rem 1rem; margin: 0 0 1rem; border-radius: .75rem; font-size: 1rem; }
.notice.error { color: #752312; background: #ffe4dc; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 76ch; }
.url { overflow-wrap: anywhere; }
.codes { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.check { display: flex; align-items: center; min-height: 2.75rem; }
.check input { width: 1.1rem; min-height: auto; height: 1.1rem; accent-color: var(--blue); }
#copy-status:empty { display: none; }

@media (max-width: 48rem) {
  .login-bento, .streams-grid { grid-template-columns: minmax(0, 1fr); }
  .login-cover { min-height: 15rem; padding-top: 5.8rem; }
  .cover-title { font-size: clamp(1.9rem, 7.15vw, 3.7rem); }
}
@media (max-width: 32rem) {
  .bar { min-height: 4rem; }
  .bar .secondary { padding-inline: .7rem; }
  .dashboard-bento { grid-template-columns: minmax(0, 1fr); }
  .dashboard-bento .dashboard-cover { border-bottom-right-radius: var(--radius); }
  .score-tile { border-top-left-radius: var(--radius); flex-direction: row; align-items: center; }
  .task-card .row > button { width: 100%; }
}
