:root {
    --background: #f5f3ee;
    --surface: #ffffff;
    --text: #202b27;
    --muted: #58665e;
    --green: #244b3c;
    --border: #d9ddd4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--green);
    text-underline-offset: 4px;
}

.site-header,
.site-footer {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    min-height: 70vh;
}

.intro {
    padding: 24px 0;
}

.eyebrow {
    color: var(--green);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: Georgia, serif;
    font-weight: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

h1 {
    margin: 16px 0;
    font-size: clamp(36px, 5vw, 56px);
}

h2 {
    font-size: 28px;
}

p {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.search-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 32px;
}

.field {
    flex: 1 1 220px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: bold;
}

input,
select,
button {
    font: inherit;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

input,
select {
    width: 100%;
    background: var(--surface);
    color: var(--text);
}

button {
    background: var(--green);
    color: white;
    border-color: var(--green);
    cursor: pointer;
}

button:hover {
    background: #17392c;
}

.clear-link {
    padding: 12px 0;
}

.creator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.creator-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e2e8dd;
    color: var(--green);
    font: 36px Georgia, serif;
}

.creator-card h2 a {
    text-decoration: none;
}

.creator-card h2 a:hover {
    text-decoration: underline;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 10px;
    border-radius: 4px;
    background: #edf0e8;
    color: var(--green);
    font-size: 13px;
}

.profile-link {
    margin-top: auto;
    padding-top: 16px;
    font-weight: bold;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 32px;
    border: 1px dashed var(--border);
    border-radius: 8px;
}

.profile {
    max-width: 760px;
    margin: 16px auto;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
}

.bio {
    margin-top: 32px;
}

.site-footer {
    border-top: 1px solid var(--border);
    font-size: 14px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #897124;
    outline-offset: 3px;
}

@media (max-width: 850px) {
    .creator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .creator-grid {
        grid-template-columns: 1fr;
    }

    .profile {
        padding: 24px;
    }
}
.creator-photo,
.profile-photo {
    display: block;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: #e2e8dd;
}

.creator-photo {
    width: 100%;
}

.profile-photo {
    width: 100%;
    max-width: 400px;
}
.creator-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.creator-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.creator-links li {
    max-width: 100%;
}

.creator-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--green);
    border-radius: 6px;
    background: var(--green);
    color: white;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.creator-links a:hover {
    background: #17392c;
    border-color: #17392c;
    text-decoration: underline;
}

@media (max-width: 560px) {
    .creator-links li,
    .creator-links a {
        width: 100%;
    }
}