:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background: Canvas;
  color: CanvasText;
}

main {
  width: min(46rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

section {
  margin-block: 1.5rem;
  padding-block: 0.25rem;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

.mode-name,
#module-progress,
#phase-status,
.status {
  font-weight: 700;
}

.actions {
  display: grid;
  gap: 0.75rem;
}

#resume-button {
  font-size: 1.1rem;
  font-weight: 700;
  border: 0.15rem solid CanvasText;
}

details {
  margin-block: 1rem;
}

summary {
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.75rem;
  cursor: pointer;
  font-weight: 700;
}

summary:focus-visible {
  outline: 0.2rem solid Highlight;
  outline-offset: 0.2rem;
}

button,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

button:focus-visible,
textarea:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 0.2rem solid Highlight;
  outline-offset: 0.2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 42rem) {
  .actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
