@font-face {
    font-family: Raleway;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/raleway-400.woff2) format("woff2");
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
    font-family: Raleway, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    color: #fff;
    background: #1e2c45 url(../img/a-room-with-seven-doors-to-choose-PLLT27V.jpg) center / cover no-repeat;
}

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

a:hover,
a:focus-visible,
.link:hover,
.link:focus-visible {
    text-decoration: underline;
}

/* Header */

header {
    padding: .75rem 1rem;
}

.brand {
    font-size: 1.25rem;
}

/* Tagline */

main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.tagline {
    display: grid;
    place-items: center;
    width: min(600px, 100%);
    min-height: min(300px, 50vh);
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    background-color: rgba(32, 44, 64, .4);
}

.tagline p {
    font-size: clamp(1.15rem, 4.5vw, 2rem);
    line-height: 1.5;
    letter-spacing: clamp(1px, .5vw, 4px);
    text-align: center;
    animation: pulse 1s both;
}

@keyframes pulse {
    50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .tagline p { animation: none; }
}

/* Footer */

footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3rem;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    font-size: 14px;
}

footer p {
    line-height: 1.8;
}

footer .title {
    font-weight: bold;
}

.link {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

/* Disclaimer dialog */

dialog {
    width: calc(100% - 2rem);
    max-width: 500px;
    margin: auto;
    padding: 1.5rem;
    border: 0;
    border-radius: .3rem;
    color: #212529;
    background: #fff;
    font-family: inherit;
}

dialog::backdrop {
    background: rgba(0, 0, 0, .5);
}

dialog h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 400;
}

dialog p {
    margin-bottom: 1rem;
    font-size: 14px;
    line-height: 1.6;
}

dialog form {
    text-align: right;
}

.btn {
    padding: .5rem 1.25rem;
    font: inherit;
    color: #fff;
    background: #343a40;
    border: 0;
    border-radius: .25rem;
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    background: #23272b;
}
