:root {
  --paper: #fff;
  --white: #fff;
  --ink: #242422;
  --muted: #696963;
  --line: #d7d7d1;
  --green: #30322f;
  --gold: #72433e;
  --red: #9b362f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.6 var(--sans);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #72433e;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -1.8px;
}
h2 {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 24px;
  line-height: 1.4;
}
header {
  max-width: 1180px;
  margin: 0 auto;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}
.brand {
  font: 34px/1 var(--serif);
  letter-spacing: -1.5px;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 30px;
}
.nav-link {
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: 12px;
}
.nav-link:hover {
  border-bottom: 1px solid currentColor;
}
main {
  max-width: 1180px;
  min-height: calc(100vh - 175px);
  margin: 0 auto;
  padding: 50px 0 65px;
}
footer {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  color: var(--muted);
  font-size: 11px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 92px;
  align-items: start;
}
.intro {
  padding-right: 8px;
}
.intro h1 {
  margin-bottom: 20px;
}
.lead {
  font-size: 14px;
  color: #5a5a55;
  line-height: 1.8;
}
.study-figure {
  margin: 32px 0 0;
  max-width: 450px;
}
.study-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.study-figure figcaption {
  font: italic 12px/1.6 var(--serif);
  color: var(--muted);
  margin-top: 10px;
}
.upload-card {
  padding: 2px 0 0 0;
  border: 0;
  background: transparent;
}
.card-head {
  margin-bottom: 31px;
}
.card-head h2 {
  font-size: 30px;
}
.card-head .tiny {
  margin-top: 8px !important;
}
.tiny {
  font-size: 11px;
  color: var(--muted);
}
.number-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}
.drop {
  position: relative;
  min-height: 142px;
  border: 1px solid #a8aba2;
  background: #f7f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  transition: border-color 0.15s;
}
.drop:hover,
.drop.drag {
  border-color: var(--ink);
  background: #f0f0eb;
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.drop:focus-within {
  outline: 2px solid #72433e;
  outline-offset: 3px;
}
.drop strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
}
.drop p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.drop small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.4px;
}
.upload-icon {
  display: block;
  font-size: 23px;
  line-height: 1;
  margin-bottom: 10px;
}
.setup-step {
  margin-top: 27px;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.toggle-label {
  font-size: 12px;
  font-weight: 400;
  display: block;
}
.switch {
  width: 34px;
  height: 19px;
  display: inline-flex;
  position: relative;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch span {
  width: 100%;
  background: #d5d7d0;
  pointer-events: none;
  border: 1px solid #b8bcb2;
  border-radius: 2px;
}
.switch span:after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.15s;
}
.switch input:checked + span {
  background: #363c35;
  border-color: #363c35;
}
.switch input:checked + span:after {
  transform: translateX(15px);
}
.switch input:focus-visible + span {
  outline: 2px solid #72433e;
  outline-offset: 4px;
}
.key-options {
  padding-top: 12px;
}
.key-options label {
  font-size: 11px;
}
.small-input {
  width: 58px !important;
  padding: 4px 8px !important;
  margin: 0 6px !important;
}
.key-file {
  display: block;
  font-size: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  margin: 10px 0;
  background: white;
}
.segmented {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.segmented button {
  flex: 1;
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--muted);
  font-size: 11px;
}
.segmented button.active {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.timer-settings {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
}
.timer-duration {
  margin-top: 12px;
}
.timer-duration p {
  margin-top: 8px;
}
.timer-display {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 6px 10px;
  font: 12px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
}
.timer-display.urgent {
  border-color: #a15749;
  color: #8b3f34;
}
.btn {
  border: 1px solid #2d302b;
  background: #2d302b;
  color: #fff;
  min-height: 44px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  border-radius: 0;
}
.btn:hover {
  background: #50534d;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #aaa;
}
.btn.secondary:hover {
  background: #f3f3ef;
}
.btn.small {
  min-height: 33px;
  padding: 7px 12px;
  font-size: 11px;
}
.full {
  width: 100%;
  margin-top: 27px;
  justify-content: space-between;
}
.privacy {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 11px;
}
.demo-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  align-items: center;
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted);
}
.text-btn {
  background: none;
  border: 0;
  padding: 2px 0;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-btn:hover {
  color: #72433e;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.eyebrow {
  font: 12px var(--sans);
  color: var(--muted);
}
.resume {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 35px;
  font-size: 12px;
}
.notice {
  border-left: 2px solid #9b8c6a;
  background: #f6f5f0;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.7;
  margin: 16px 0;
}
.notice.error {
  border-color: #a74b3f;
  background: #fcf3ef;
  color: #7c3328;
}
.notice.success {
  border-color: #6c815a;
  background: #f2f5ee;
}
.loading {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--muted);
}
.loading:before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.workspace {
  max-width: 900px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 32px;
}
.page-heading h1 {
  font-size: 40px;
  margin: 0 0 10px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
}
.card {
  background: #fff;
  padding: 27px 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.field {
  display: block;
  font-size: 12px;
}
.field input,
.field textarea,
.field select {
  display: block;
}
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  border: 1px solid #bcbeb6;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  padding: 10px 12px;
  line-height: 1.5;
  margin-top: 7px;
  border-radius: 0;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input[type="checkbox"] {
  accent-color: #323a30;
}
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.editor-head strong {
  font-weight: 400;
  font-size: 14px;
}
.delete {
  color: #8a3930;
  border: 0;
  background: none;
  font-size: 11px;
}
.source {
  font-size: 10px;
  color: var(--muted);
}
.editor-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 16px;
}
.blank-answers {
  display: grid;
  gap: 10px;
}
.workspace > .timer-settings {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 18px 0;
}
.sticky-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--ink);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  z-index: 2;
}
.sticky-bar p {
  font-size: 11px;
}
.wide-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 20px;
}
.empty {
  padding: 35px 0;
  text-align: center;
}
.muted {
  color: var(--muted);
}
.quiz-shell {
  max-width: 830px;
  margin: auto;
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.quiz-top h2 {
  font-size: 27px;
  margin-top: 0 !important;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.4px;
}
.progress-track {
  height: 2px;
  background: #e1e2dc;
  margin: 11px 0 30px;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #484e42;
  transition: width 0.15s;
}
.question {
  padding: 25px 0 32px;
}
.q-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.question h3 {
  font-size: 29px;
  line-height: 1.45;
  margin-bottom: 28px;
  white-space: pre-wrap;
}
.choices {
  display: grid;
  gap: 9px;
}
.choice {
  position: relative;
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #c8cbc2;
  padding: 13px 15px;
  font-size: 14px;
  cursor: pointer;
}
.choice:hover {
  border-color: #454e3d;
}
.choice.selected {
  border-color: #424c3a;
  background: #f3f4ef;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice:focus-within {
  outline: 2px solid #72433e;
  outline-offset: 3px;
}
.letter {
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  width: 28px;
  height: 28px;
  border: 1px solid #c3c7bc;
  flex-shrink: 0;
}
.selected .letter {
  background: #343b2f;
  border-color: #343b2f;
  color: #fff;
}
.feedback {
  border-left: 2px solid #929482;
  background: #f4f4ed;
  margin-top: 22px;
  padding: 15px 18px;
  font-size: 12px;
}
.feedback.right {
  border-color: #6b805d;
  background: #f2f5ee;
}
.feedback.wrong {
  border-color: #b17857;
  background: #faf3ed;
}
.feedback strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.feedback .actions {
  margin-top: 13px;
}
.explanation {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
  white-space: pre-wrap;
}
.question-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 22px 0;
}
.question-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.q-dot {
  border: 1px solid #c3c7bc;
  background: white;
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.q-dot.done {
  background: #e8ecdf;
}
.q-dot.current {
  color: white;
  background: #343b2f;
}
.all-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 32px 0 0;
}
.all-title h3 {
  font-size: 24px;
}
.results {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 40px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 32px 0;
  margin: 10px 0 32px;
}
.score {
  font: 76px/1.1 var(--serif);
  letter-spacing: -3px;
}
.score small {
  font-size: 34px;
  letter-spacing: 0;
}
.score-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 11px;
  letter-spacing: 0.8px;
}
.results h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
.results p {
  font-size: 12px;
  color: var(--muted);
}
.result-details {
  display: flex;
  gap: 18px;
  margin: 18px 0 0;
  font-size: 11px;
}
.review-item {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}
.review-item:first-child {
  border: 0;
  padding-top: 0;
}
.review-item h3 {
  font-size: 22px;
  margin: 10px 0;
}
.answer-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 18px 0;
  font-size: 13px;
}
.answer-comparison small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.review-badge {
  font-size: 10px;
  color: #45603b;
  padding: 2px 0;
}
.review-badge.wrong {
  color: #944c39;
}
.review-badge.ungraded {
  color: var(--muted);
}
.creator-page {
  max-width: 850px;
  margin: auto;
}
.creator-card {
  margin: 40px 0 0;
  padding: 0 0 45px;
  min-height: 370px;
}
.creator-photo {
  float: left;
  width: 180px;
  height: 215px;
  margin: 0 42px 25px 0;
  overflow: hidden;
}
.creator-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.creator-card h1 {
  font-size: 38px;
  margin: 0 0 20px;
  padding-top: 10px;
}
.creator-name {
  font-weight: 600;
  font-size: 13px;
}
.creator-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.creator-card blockquote {
  font: 22px/1.6 var(--serif);
  margin: 26px 0 22px;
}
.creator-signature {
  font: italic 18px/1.6 var(--serif);
}
dialog {
  max-width: 570px;
  width: calc(100% - 35px);
  border: 1px solid #777b71;
  padding: 30px;
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
dialog::backdrop {
  background: #26292480;
}
dialog h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 22px;
}
.instructions {
  padding-left: 19px;
  font-size: 13px;
  line-height: 1.9;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: #30352b;
  color: white;
  max-width: 90vw;
  padding: 12px 20px;
  opacity: 0;
  font-size: 12px;
  text-align: center;
  z-index: 15;
  transition: 0.15s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}
.confetti i {
  position: absolute;
  top: -25px;
  width: 9px;
  height: 15px;
  animation: fall 3s ease-in forwards;
}
.confetti i:nth-child(3n) {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
@keyframes fall {
  to {
    transform: translate3d(50px, 110vh, 0) rotate(700deg);
    opacity: 0.3;
  }
}
@media (max-width: 1260px) {
  header,
  main,
  footer {
    margin-left: 40px;
    margin-right: 40px;
  }
  .hero {
    gap: 65px;
  }
}
@media (max-width: 960px) {
  .hero {
    gap: 40px;
    grid-template-columns: 0.9fr 1fr;
  }
  h1 {
    font-size: 46px;
  }
  .brand {
    font-size: 30px;
  }
  header {
    height: 85px;
  }
  .study-figure {
    margin-top: 30px;
  }
  .upload-card {
    padding: 0;
  }
  .card-head {
    margin-bottom: 26px;
  }
  .card-head h2 {
    font-size: 28px;
  }
  main {
    padding-top: 38px;
  }
}
@media (max-width: 700px) {
  header,
  main,
  footer {
    margin-left: 22px;
    margin-right: 22px;
  }
  header {
    height: 75px;
  }
  .brand {
    font-size: 27px;
  }
  nav {
    gap: 16px;
  }
  .nav-link {
    font-size: 11px;
  }
  #new-link {
    display: none;
  }
  main {
    padding: 30px 0 45px;
    min-height: calc(100vh - 145px);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro {
    display: grid;
    grid-template-columns: 1fr 116px;
    gap: 12px 22px;
    padding: 0;
  }
  .intro h1 {
    font-size: 35px;
    letter-spacing: -1px;
    margin: 0;
  }
  .lead {
    font-size: 12px;
    grid-column: 1;
    grid-row: 2;
    line-height: 1.6;
  }
  .study-figure {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    align-self: start;
  }
  .study-figure figcaption {
    display: none;
  }
  .upload-card {
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }
  .card-head h2 {
    font-size: 27px;
  }
  .drop {
    min-height: 135px;
  }
  .page-heading {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .fields,
  .editor-bottom {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .card {
    padding-top: 20px;
  }
  .question h3 {
    font-size: 25px;
  }
  .quiz-top {
    align-items: start;
    flex-wrap: wrap;
    gap: 14px;
  }
  .quiz-top h2 {
    font-size: 24px;
  }
  .quiz-nav {
    flex-wrap: wrap;
  }
  .question-footer {
    flex-wrap: wrap;
  }
  .question-footer > .tiny {
    font-size: 10px;
  }
  .sticky-bar {
    gap: 12px;
  }
  .sticky-bar p {
    font-size: 10px;
    max-width: 125px;
  }
  .btn {
    padding: 10px 15px;
  }
  .btn.small {
    padding: 6px 10px;
  }
  .results {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 25px 0;
  }
  .score {
    font-size: 65px;
  }
  .results h2 {
    font-size: 26px;
  }
  .answer-comparison {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .all-title {
    align-items: start;
  }
  .all-title h3 {
    font-size: 21px;
  }
  .creator-card {
    margin-top: 25px;
    min-height: 0;
  }
  .creator-photo {
    float: none;
    width: 150px;
    height: 175px;
    margin: 0 0 25px;
  }
  .creator-card h1 {
    font-size: 32px;
    padding: 0;
    margin-bottom: 17px;
  }
  .creator-card blockquote {
    font-size: 21px;
  }
  .resume {
    align-items: start;
    font-size: 11px;
  }
  footer {
    font-size: 10px;
    padding: 20px 0;
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition: none !important;
  }
  .confetti {
    display: none;
  }
}
