:root {
  --bg-top: #f2efe5;
  --bg-bottom: #d8e2dc;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #43515c;
  --accent: #0f4c5c;
  --accent-press: #0b3b47;
  --ring: #ffbf69;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Verdana", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: linear-gradient(170deg, var(--bg-top), var(--bg-bottom));
  display: grid;
  place-items: center;
  padding: 1rem;
}

.app {
  width: min(40rem, 100%);
  background: var(--panel);
  border: 3px solid #bcc9c4;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 0.5rem 1.2rem rgba(31, 41, 51, 0.16);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.15;
}

.tagline,
.hint,
.status {
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  line-height: 1.45;
}

.tagline,
.hint {
  color: var(--muted);
}

.language-row {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.language-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.language-select {
  width: 100%;
  border: 2px solid #b6c6c1;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font-size: clamp(1.05rem, 3.8vw, 1.3rem);
  background: #ffffff;
  color: var(--text);
}

.language-select:focus-visible {
  outline: 4px solid var(--ring);
  outline-offset: 3px;
}

.listen-button {
  width: 100%;
  margin: 1rem 0;
  padding: 1.25rem;
  border: 0;
  border-radius: 1rem;
  font-size: clamp(1.35rem, 4.4vw, 1.8rem);
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}

.listen-button:hover,
.listen-button:focus-visible {
  background: var(--accent-press);
}

.listen-button:active {
  transform: translateY(1px) scale(0.995);
}

.listen-button:focus-visible {
  outline: 4px solid var(--ring);
  outline-offset: 4px;
}

.status {
  margin: 0.5rem 0 0;
  padding: 0.9rem;
  border-radius: 0.8rem;
  border: 2px solid #c6d3cf;
  background: #f8fbfa;
}

@media (max-width: 520px) {
  .app {
    border-radius: 1rem;
    padding: 1rem;
  }
}
