:root {
    --bg: #f7f3ee;
    --surface: #ffffff;
    --line: #e0d8ce;
    --text: #251f1c;
    --muted: #786d65;
    --accent: #8f3f56;
    --accent-hover: #733044;
    --soft: #fbebef;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(rgba(247, 243, 238, 0.9), rgba(247, 243, 238, 0.9)),
        url("https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.home {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.hero {
    width: min(820px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: clamp(24px, 5vw, 42px);
}

.section-label {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(48px, 10vw, 86px);
    line-height: 1.05;
    letter-spacing: 0;
}

.lead {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 800;
    line-height: 1.35;
}

.search-form {
    display: grid;
    gap: 9px;
    margin-top: 30px;
}

.search-form label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

input {
    min-height: 48px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 11px 13px;
    font-weight: 800;
}

input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(143, 63, 86, 0.16);
}

.search-results {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.primary-link {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 11px 20px;
    font-weight: 900;
    text-decoration: none;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
}

.primary-link:hover { background: var(--accent-hover); }

.result-card {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 14px;
    text-decoration: none;
}

.result-card:hover,
.result-card:focus {
    border-color: var(--accent);
    background: var(--soft);
    outline: none;
}

.result-card strong {
    font-size: 18px;
}

.result-card span,
.empty {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.empty {
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
    text-align: center;
}

.is-hidden { display: none; }

@media (max-width: 640px) {
    .search-box {
        grid-template-columns: 1fr;
    }
}
