@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');
 
:root {
    --sky: #e3eff2;
    --card: #ffffff;
    --ink: #1d3538;
    --muted: #5b7377;
    --line: #cddde1;
    --accent: #2f7d79;
    --accent-dark: #25635f;
    --sun: #f2b84b;
}
 
* {
    box-sizing: border-box;
}
 
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Zen Maru Gothic", Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--sky);
}
 
/* ---------- Header / form ---------- */
 
header {
    padding: 2.5rem 1.5rem;
    background: var(--card);
    border-bottom: 4px solid var(--sun);
    text-align: center;
}
 
.vehicle-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
 
.vehicle-form label {
    font-weight: 700;
}
 
select,
input[type="submit"] {
    font: inherit;
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
}
 
select {
    min-width: 14rem;
    max-width: 100%;
    color: var(--ink);
    background: var(--sky);
    border: 2px solid var(--line);
    cursor: pointer;
}
 
input[type="submit"] {
    font-weight: 700;
    color: #ffffff;
    background: var(--accent);
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
 
input[type="submit"]:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}
 
select:focus-visible,
input[type="submit"]:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
}
 
/* ---------- Vehicle card ---------- */
 
.vehicle {
    max-width: 42rem;
    margin: 2.5rem auto;
    padding: 2rem 2.25rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: 0 6px 24px rgba(29, 53, 56, 0.08);
}
 
/* Hide the empty card before a vehicle is chosen */
.vehicle:empty {
    display: none;
}
 
.vehicle h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.15;
}
 
.vehicle p {
    margin: 0 0 0.75rem;
    overflow-wrap: anywhere; /* long pilot URLs won't break the layout */
}
 
.vehicle strong {
    color: var(--accent);
}
 
.vehicle h2 {
    margin: 1.75rem 0 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 1.15rem;
}
 
/* ---------- Films list ---------- */
 
.films-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
 
.films-list li {
    padding: 0.3rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--sky);
    border: 1px solid var(--line);
    border-radius: 999px;
}
 
/* ---------- Small screens ---------- */
 
@media (max-width: 480px) {
    .vehicle {
        margin: 1.25rem 1rem;
        padding: 1.5rem 1.25rem;
    }
 
    select {
        width: 100%;
    }
}