:root {
  color-scheme: light;

  /* Colors */
  --soft-black: #303030;
  --wasdas-grey: #666666;
  --white: #ffffff;
  --wasdas-yellow: #ebf35b;
  --wasdas-blue: #227eef;
  --wasdas-orange: #ff8f27;
  --wasdas-red: #f84a33;
  --wasdas-dark-red: #a84550;
  --wasdas-light-beige: #eef0ea;
  --wasdas-beige: #e2dec4;
  --wasdas-dark-beige: #bfa76f;

  --text-primary: var(--soft-black);
  --text-secondary: var(--wasdas-grey);
  --surface-base: var(--white);
  --surface-muted: var(--wasdas-light-beige);
  --surface-soft: var(--wasdas-beige);
  --surface-accent: var(--wasdas-yellow);
  --surface-info: var(--wasdas-blue);
  --surface-warning: var(--wasdas-orange);
  --surface-danger: var(--wasdas-red);
  --surface-danger-dark: var(--wasdas-dark-red);
  --border-color: var(--soft-black);

  /* Typography */
  --font-family-display: "Archia", "Segoe UI", sans-serif;
  --font-family-body: "Silka", "Inter", "Segoe UI", sans-serif;
  --font-family-alt: "Noto Sans", "Segoe UI", sans-serif;

  --h1-r-size: 3.5rem;
  --h1-r-weight: 500;
  --h1-r-line-height: 1.2;

  --h1-b-size: 3.5rem;
  --h1-b-weight: 700;
  --h1-b-line-height: 1.2;

  --h1-promotion-size: 4.5rem;
  --h1-promotion-weight: 700;
  --h1-promotion-line-height: 1.2;

  --h2-size: 2rem;
  --h2-weight: 500;
  --h2-line-height: 1.2;

  --h3-size: 1.5rem;
  --h3-weight: 500;
  --h3-line-height: 1.3;

  --h4-size: 1.25rem;
  --h4-weight: 500;
  --h4-line-height: 1.2;

  --h5-size: 1rem;
  --h5-weight: 500;
  --h5-line-height: 1.2;

  --h6-size: 1rem;
  --h6-weight: 500;
  --h6-line-height: 1.2;

  --body-large-size: 1.5rem;
  --body-large-weight: 500;
  --body-large-line-height: 1.2;

  --body-medium-size: 1.25rem;
  --body-medium-weight: 400;
  --body-medium-line-height: 1.2;

  --body-medium-sb-size: 1rem;
  --body-medium-sb-weight: 600;
  --body-medium-sb-line-height: 1.5;

  --body-regular-r-size: 1rem;
  --body-regular-r-weight: 400;
  --body-regular-r-line-height: 1.2;

  --body-regular-m-size: 1rem;
  --body-regular-m-weight: 500;
  --body-regular-m-line-height: 1.4;

  --body-small-r-size: 0.875rem;
  --body-small-r-weight: 500;
  --body-small-r-line-height: 1.2;

  --body-small-m-size: 0.875rem;
  --body-small-m-weight: 500;
  --body-small-m-line-height: 1.4;

  --body-small-b-size: 0.875rem;
  --body-small-b-weight: 700;
  --body-small-b-line-height: 1.4;

  --body-tiny-size: 0.75rem;
  --body-tiny-weight: 400;
  --body-tiny-line-height: 1.2;

  --label-tiny-upp-size: 0.75rem;
  --label-tiny-upp-weight: 500;
  --label-tiny-upp-line-height: 2;
  --label-tiny-upp-letter-spacing: 0.16em;

  --label-extra-small-size: 0.75rem;
  --label-extra-small-weight: 400;
  --label-extra-small-line-height: 1.3333;
  --label-extra-small-letter-spacing: 0.02em;

  --quote-size: 2.5rem;
  --quote-weight: 700;
  --quote-line-height: 1.25;

  /* Spacing */
  --space-0: 0;
  --space-2: 0.125rem;
  --space-4: 0.25rem;
  --space-6: 0.375rem;
  --space-8: 0.5rem;
  --space-10: 0.625rem;
  --space-12: 0.75rem;
  --space-14: 0.875rem;
  --space-16: 1rem;
  --space-20: 1.25rem;
  --space-24: 1.5rem;
  --space-28: 1.75rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --space-48: 3rem;
  --space-56: 3.5rem;
  --space-64: 4rem;

  /* Radius + borders + shadows */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-round: 9999px;
  --border-width: 0.125rem;
  --border-width-strong: 0.1875rem;
  --border-default: var(--border-width) solid var(--border-color);
  --border-strong: var(--border-width-strong) solid var(--border-color);
  --shadow-soft: 0 0.375rem 1.125rem rgba(48, 48, 48, 0.12);
  --shadow-card: 0 0.75rem 2rem rgba(48, 48, 48, 0.16);

  /* Layout */
  --widget-max-width: 100%;
  --input-min-height: 2.75rem;
  --button-min-height: 2.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--surface-base);
  font-family: var(--font-family-body);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

.widget {
  width: 100%;
  max-width: var(--widget-max-width);
  color: var(--text-primary);
  font-family: var(--font-family-body);
}

.stack {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.wrap {
  flex-wrap: wrap;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.align-start {
  align-items: flex-start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.card,
.panel {
  width: 100%;
  border-radius: var(--radius-lg);
  border: var(--border-default);
  background: var(--surface-base);
  color: var(--text-primary);
}

.card {
  box-shadow: var(--shadow-card);
}

.panel {
  box-shadow: var(--shadow-soft);
}

.surface-light {
  background: var(--surface-base);
}

.surface-muted {
  background: var(--surface-muted);
}

.surface-beige {
  background: var(--surface-soft);
}

.surface-yellow {
  background: var(--surface-accent);
}

.surface-orange {
  background: var(--surface-warning);
}

.surface-blue {
  background: var(--surface-info);
}

.surface-red {
  background: var(--surface-danger);
}

.surface-dark-red {
  background: var(--surface-danger-dark);
}

.button,
.input,
.textarea,
.icon-button {
  border: var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.button,
.icon-button {
  min-height: var(--button-min-height);
  background: var(--surface-base);
  cursor: pointer;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    opacity 120ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-16);
  font-family: var(--font-family-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-0.0625rem);
}

.button:focus-visible,
.input:focus-visible,
.textarea:focus-visible,
.icon-button:focus-visible {
  outline: 0.1875rem solid rgba(235, 243, 91, 0.65);
  outline-offset: 0.125rem;
}

.button-primary {
  background: var(--soft-black);
  border-color: var(--soft-black);
  color: var(--white);
}

.button-secondary {
  background: var(--surface-base);
  border-color: var(--soft-black);
  color: var(--soft-black);
}

.button-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--button-min-height);
  min-width: var(--button-min-height);
  padding: 0;
  border-radius: var(--radius-round);
}

.input,
.textarea {
  width: 100%;
  background: var(--surface-base);
  padding: var(--space-12) var(--space-14);
  box-shadow: none;
}

.input {
  min-height: var(--input-min-height);
}

.textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-secondary);
}

.feedback {
  color: var(--text-secondary);
}

.divider {
  width: 100%;
  height: 0.0625rem;
  background: rgba(48, 48, 48, 0.18);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.h1-r,
.h1-b,
.h1-promotion,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-family-display);
}

.h1-r {
  font-size: var(--h1-r-size);
  font-weight: var(--h1-r-weight);
  line-height: var(--h1-r-line-height);
}

.h1-b {
  font-size: var(--h1-b-size);
  font-weight: var(--h1-b-weight);
  line-height: var(--h1-b-line-height);
}

.h1-promotion {
  font-size: var(--h1-promotion-size);
  font-weight: var(--h1-promotion-weight);
  line-height: var(--h1-promotion-line-height);
}

.h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line-height);
}

.h3 {
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  line-height: var(--h3-line-height);
}

.h4 {
  font-size: var(--h4-size);
  font-weight: var(--h4-weight);
  line-height: var(--h4-line-height);
}

.h5 {
  font-size: var(--h5-size);
  font-weight: var(--h5-weight);
  line-height: var(--h5-line-height);
}

.h6 {
  font-size: var(--h6-size);
  font-weight: var(--h6-weight);
  line-height: var(--h6-line-height);
}

.body-large,
.body-medium,
.body-medium-sb,
.body-regular-r,
.body-regular-m,
.body-small-r,
.body-small-m,
.body-small-b,
.body-tiny,
.label-tiny-upp,
.label-extra-small,
.quote {
  margin: 0;
  color: inherit;
}

.body-large {
  font-family: var(--font-family-body);
  font-size: var(--body-large-size);
  font-weight: var(--body-large-weight);
  line-height: var(--body-large-line-height);
}

.body-medium {
  font-family: var(--font-family-body);
  font-size: var(--body-medium-size);
  font-weight: var(--body-medium-weight);
  line-height: var(--body-medium-line-height);
}

.body-medium-sb {
  font-family: var(--font-family-alt);
  font-size: var(--body-medium-sb-size);
  font-weight: var(--body-medium-sb-weight);
  line-height: var(--body-medium-sb-line-height);
}

.body-regular-r {
  font-family: var(--font-family-body);
  font-size: var(--body-regular-r-size);
  font-weight: var(--body-regular-r-weight);
  line-height: var(--body-regular-r-line-height);
}

.body-regular-m {
  font-family: var(--font-family-body);
  font-size: var(--body-regular-m-size);
  font-weight: var(--body-regular-m-weight);
  line-height: var(--body-regular-m-line-height);
}

.body-small-r {
  font-family: var(--font-family-body);
  font-size: var(--body-small-r-size);
  font-weight: var(--body-small-r-weight);
  line-height: var(--body-small-r-line-height);
}

.body-small-m {
  font-family: var(--font-family-body);
  font-size: var(--body-small-m-size);
  font-weight: var(--body-small-m-weight);
  line-height: var(--body-small-m-line-height);
}

.body-small-b {
  font-family: var(--font-family-body);
  font-size: var(--body-small-b-size);
  font-weight: var(--body-small-b-weight);
  line-height: var(--body-small-b-line-height);
}

.body-tiny {
  font-family: var(--font-family-body);
  font-size: var(--body-tiny-size);
  font-weight: var(--body-tiny-weight);
  line-height: var(--body-tiny-line-height);
}

.label-tiny-upp {
  font-family: var(--font-family-body);
  font-size: var(--label-tiny-upp-size);
  font-weight: var(--label-tiny-upp-weight);
  line-height: var(--label-tiny-upp-line-height);
  letter-spacing: var(--label-tiny-upp-letter-spacing);
  text-transform: uppercase;
}

.label-extra-small {
  font-family: var(--font-family-alt);
  font-size: var(--label-extra-small-size);
  font-weight: var(--label-extra-small-weight);
  line-height: var(--label-extra-small-line-height);
  letter-spacing: var(--label-extra-small-letter-spacing);
}

.quote {
  font-family: var(--font-family-alt);
  font-size: var(--quote-size);
  font-weight: var(--quote-weight);
  line-height: var(--quote-line-height);
}

.text-soft-black {
  color: var(--soft-black);
}

.text-grey {
  color: var(--wasdas-grey);
}

.text-white {
  color: var(--white);
}

.text-yellow {
  color: var(--wasdas-yellow);
}

.text-orange {
  color: var(--wasdas-orange);
}

.text-blue {
  color: var(--wasdas-blue);
}

.text-red {
  color: var(--wasdas-red);
}

.text-dark-red {
  color: var(--wasdas-dark-red);
}

.is-hidden {
  display: none !important;
}

.is-disabled,
.is-disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.is-active {
  box-shadow: 0 0 0 0.25rem rgba(235, 243, 91, 0.45);
}

.is-selected {
  background: var(--wasdas-yellow);
}

.is-correct {
  border-color: #19b400 !important;
  background: rgba(25, 180, 0, 0.12) !important;
  color: var(--soft-black);
}

.is-wrong {
  border-color: var(--wasdas-red) !important;
  background: rgba(248, 74, 51, 0.12) !important;
  color: var(--soft-black);
}

.is-listening {
  border-color: var(--wasdas-red) !important;
  background: var(--wasdas-red) !important;
  color: var(--white) !important;
  box-shadow: 0 0 0 0.25rem rgba(248, 74, 51, 0.2);
}

.border-none {
  border: 0 !important;
}

.shadow-none {
  box-shadow: none !important;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inline-flex {
  display: inline-flex;
}

.min-h-70vh {
  min-height: 70vh;
}

.button-sm {
  min-height: 2.25rem;
  padding: var(--space-8) var(--space-12);
  font-size: 0.75rem;
}

.button-lg {
  min-height: 2.875rem;
  padding: var(--space-12) var(--space-24);
  font-size: 1.125rem;
}

.input-lg {
  min-height: 5rem;
  padding: var(--space-20) var(--space-24);
  font-size: 1.75rem;
  font-family: var(--font-family-display);
  font-weight: 500;
}

.feedback-box {
  border: 0.0625rem solid rgba(48, 48, 48, 0.12);
  border-radius: var(--radius-lg);
  background: var(--surface-base);
}

.highlight-warning {
  display: inline-flex;
  align-items: center;
  min-height: 1.875rem;
  padding: var(--space-4) var(--space-8);
  border: 0.0625rem solid rgba(255, 143, 39, 0.35);
  border-radius: var(--radius-md);
  background: rgba(235, 243, 91, 0.32);
}

.code-inline {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  background: rgba(48, 48, 48, 0.06);
  font-family: var(--font-family-alt);
  font-size: 0.875rem;
}

.error-text {
  color: var(--wasdas-dark-red);
}

.list-spaced {
  margin: 0;
  padding-left: 1.25rem;
}

.list-spaced > li + li {
  margin-top: var(--space-12);
}

.grow {
  flex: 1 1 auto;
}

.shrink-0 {
  flex-shrink: 0;
}

.w-full {
  width: 100%;
}

.gap-4 { gap: var(--space-4); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-20 { gap: var(--space-20); }
.gap-24 { gap: var(--space-24); }
.gap-32 { gap: var(--space-32); }

.p-8 { padding: var(--space-8); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }
.p-20 { padding: var(--space-20); }
.p-24 { padding: var(--space-24); }
.p-32 { padding: var(--space-32); }

.px-12 {
  padding-left: var(--space-12);
  padding-right: var(--space-12);
}

.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.px-24 {
  padding-left: var(--space-24);
  padding-right: var(--space-24);
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.py-12 {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.py-24 {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mt-32 { margin-top: var(--space-32); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-32 { margin-bottom: var(--space-32); }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 64rem) {
  .h1-promotion {
    font-size: 3.5rem;
  }

  .h1-r,
  .h1-b {
    font-size: 2.75rem;
  }

  .h2 {
    font-size: 1.75rem;
  }

  .h3,
  .body-large {
    font-size: 1.25rem;
  }
}

@media (max-width: 48rem) {
  .row {
    flex-wrap: wrap;
  }

  .h1-promotion {
    font-size: 2.75rem;
  }

  .h1-r,
  .h1-b {
    font-size: 2.25rem;
  }

  .h2 {
    font-size: 1.5rem;
  }

  .h3 {
    font-size: 1.25rem;
  }

  .body-medium {
    font-size: 1.125rem;
  }
}
