@font-face {
    font-family: "Legitima";
    src: url("fonts/legitima.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Legitima";
    src: url("fonts/legitima-ita.otf") format("opentype");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #fefdf4;
    --red: #9e1b1b;
    --ink: #1c1a17;
    --gold: #b99a48;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: "Legitima", Georgia, "Times New Roman", serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* width: fit-content makes this block exactly as wide as the title,
       so the definition beneath it wraps to the title's width */
.hero {
    width: fit-content;
    max-width: min(90vw, 720px);
}

.title {
    font-family: "Legitima", Georgia, serif;
    color: var(--red);
    font-size: clamp(3.5rem, 14vw, 9rem);
    line-height: 0.95;
    font-weight: normal;
    letter-spacing: 0.01em;
}

.definition {
    font-family: "Legitima", Georgia, serif;
    margin-top: 1.1rem;
    font-size: clamp(1.3rem, 2.2vw, 1.15rem);
    line-height: 1.5;
    color: var(--ink);
}

.definition .term {
    font-style: italic;
    color: var(--red);
}

.actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* unused buttons */
.btn {
    font-family: "Legitima", Georgia, serif;
    font-size: 1.3rem;
    padding: 0.7rem 1.6rem;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid var(--red);
    transition: background-color 0.15s ease, color 0.15s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--red);
    color: var(--bg);
}

.btn-primary:hover {
    background-color: #841616;
}

.btn-secondary {
    background-color: transparent;
    color: var(--red);
}

.btn-secondary:hover {
    background-color: var(--red);
    color: var(--bg);
}

footer {
    text-align: center;
    padding: 1.1rem 1rem;
    font-size: 1.1rem;
    color: #6b6455;
    border-top: 1px solid rgba(185, 154, 72, 0.35);
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}