* {
    box-sizing: border-box;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--body-font);
    font-size: var(--body-size);
    line-height: 1.6;
    margin: 0;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 5rem;
}

a {
    color: var(--accent);
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
}

details {
    border: 1px solid var(--border);
    margin: 1rem 0;
    padding: 1rem;
}

summary {
    cursor: pointer;
    color: var(--accent);
}

.word {
    font-weight: bold;
}

.pronunciation strong {
    font-size: 1.15em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
}

/* Shared button styling */

.audio-button,
.speech-button,
.reveal-button,
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--accent);
    cursor: pointer;
    font: inherit;
}

.audio-button:hover,
.speech-button:hover,
.reveal-button:hover,
.theme-toggle:hover {
    background: var(--accent);
    color: var(--background);
}

/* Recorded and Speak buttons */

.audio-button,
.speech-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 8rem;
    height: 2.5rem;

    margin-left: 0.5rem;
    padding: 0 1rem;

    border: 1px solid var(--border);
    border-radius: 0;

    background: transparent;
    color: var(--accent);

    font: inherit;
    line-height: 1;
    white-space: nowrap;
}

/* Practice test audio button */

.practice-word .audio-button {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    margin-left: 0;
    padding: 0;

    border: 1px solid var(--border);
}

/* Reveal Word button */

.reveal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 2.5rem;
    margin-left: 0;
    padding: 0;
    border-radius: 0;
    line-height: 1;
    white-space: nowrap;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.75rem;
    background: var(--background);
}

.site-footer a {
    color: var(--muted);
    line-height: 0;
}

.site-footer a:hover {
    color: var(--accent);
}

.github-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.theme-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.theme-toggle {
    padding: 0.25rem 0.5rem;
}

.practice-test {
    max-width: 700px;
    margin: 0 auto;
}

.instructions {
    margin-bottom: 2rem;
}

.practice-words {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.practice-word {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3rem;
}

.word-number {
    width: 2rem;
    text-align: right;
}

.hidden-word {
    display: none;
}

.hidden-word.revealed {
    display: inline;
    font-weight: bold;
}

.back-link {
    margin-top: 2rem;
}