@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable.woff2') format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #fff;
  color: #000;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  padding: 72px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

a {
  color: #000;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

h1 {
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  line-height: 1.15;
}

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

.subtext {
  font-weight: 400;
  font-size: 1rem;
  color: #555;
  max-width: 440px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  text-align: center;
}

.box {
  border: 1px solid #000;
  padding: 24px;
}

.box p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}

.box p + p {
  margin-top: 16px;
}

.quiz-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-viewport {
  overflow: hidden;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
}

.quiz-progress {
  flex: 0 0 auto;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  min-height: 1.2em;
  padding: 16px 24px 0;
}

.quiz-track {
  flex: 1 1 auto;
  display: flex;
  transition: transform 0.35s ease;
}

.slide {
  flex: 0 0 100%;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.slide-text {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

.slide label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.slide input[type='radio'] {
  margin-top: 3px;
}

.slide input[type='text'] {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 12px;
  border: 1px solid #000;
  width: 100%;
}

.slide .note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eaeaea;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}

#slide-result {
  align-items: center;
  text-align: center;
}

.result-score {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.result-text {
  color: #555;
  margin-bottom: 20px;
}

#retake {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  cursor: pointer;
  border: 1px solid #000;
}

.quiz-nav {
  display: flex;
  gap: 12px;
}

.quiz-nav button {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px;
  cursor: pointer;
  border: 1px solid #000;
}

#next, #retake {
  background: #000;
  color: #fff;
}

#next:hover, #retake:hover {
  background: #fff;
  color: #000;
}

#back {
  background: #fff;
  color: #000;
}

#back:hover {
  background: #000;
  color: #fff;
}

#back:disabled {
  opacity: 0.3;
  cursor: default;
}

#back:disabled:hover {
  background: #fff;
  color: #000;
}

.site-footer {
  width: 100%;
  border-top: 1px solid #eaeaea;
  padding: 20px 24px;
}

.footer-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-left p {
  font-size: 0.85rem;
  color: #555;
}

.copyright {
  color: #999;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: #555;
  font-size: 0.85rem;
}
