:root {
    --bg: #f6f7f2;
    --surface: #ffffff;
    --ink: #14202b;
    --muted: #637082;
    --line: #dce2e0;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --warm: #e2a84b;
    --night: #0b1220;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

a:hover {
    color: var(--accent);
}

.site-header,
.site-footer {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
    padding: 18px 24px;
}

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.brand-mark {
    align-items: center;
    background: var(--night);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    width: 52px;
}

.brand small {
    color: var(--muted);
    display: block;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-end;
}

main {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px 56px;
}

.hero,
.profile-hero {
    background: var(--night);
    border-radius: 8px;
    color: #fff;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 320px;
    margin-top: 16px;
    padding: 56px;
}

.hero h1,
.page-head h1,
.profile-hero h1,
.detail-layout h1,
.text-detail h1 {
    font-size: clamp(2rem, 4vw, 4.5rem);
    line-height: 1;
    margin: 0;
}

.hero p,
.profile-hero p {
    color: #d7dee6;
    font-size: 1.08rem;
    max-width: 720px;
}

.eyebrow {
    color: var(--accent);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.hero .eyebrow,
.profile-hero .eyebrow {
    color: var(--warm);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button,
button {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    padding: 12px 18px;
}

.primary {
    background: var(--accent);
    color: #fff;
}

.primary:hover {
    background: var(--accent-dark);
    color: #fff;
}

.secondary {
    background: #e8eceb;
    color: var(--ink);
}

.hero-panel,
.link-panel,
.card,
.row-card,
.media-frame {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero-panel {
    color: var(--ink);
    padding: 24px;
}

.hero-panel h2,
.link-panel h2 {
    margin-top: 0;
}

.section,
.page-head,
.detail-layout,
.text-detail {
    margin-top: 48px;
}

.section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-heading h2,
.section h2,
.row-card h2,
.card h2 {
    margin: 0;
}

.grid {
    display: grid;
    gap: 18px;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    min-height: 210px;
    padding: 22px;
}

.creator-card img,
.avatar {
    border-radius: 8px;
    height: 64px;
    margin-bottom: 18px;
    object-fit: cover;
    width: 64px;
}

.avatar {
    align-items: center;
    background: var(--night);
    color: #fff;
    display: flex;
    font-size: 1.8rem;
    font-weight: 700;
    justify-content: center;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.chips span {
    background: #e8eceb;
    border-radius: 999px;
    color: var(--ink);
    font-size: .82rem;
    padding: 5px 10px;
}

.split {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
}

.stack {
    display: grid;
    gap: 12px;
}

.row-card {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 18px;
}

.row-card p {
    color: var(--muted);
    margin: 4px 0 0;
}

.empty,
.muted {
    color: var(--muted);
}

.filters {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    margin: 24px 0;
    padding: 14px;
}

input,
select {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.profile-hero {
    background-position: center;
    background-size: cover;
    min-height: 340px;
}

.link-panel {
    align-self: start;
    display: grid;
    gap: 10px;
    padding: 22px;
}

.body-copy,
.lead {
    color: var(--muted);
    font-size: 1.04rem;
}

.detail-layout {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
}

.media-frame {
    align-items: center;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.media-frame img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.media-frame span {
    color: var(--muted);
    font-weight: 700;
}

.text-detail {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 36px;
}

.notice {
    background: #fff7df;
    border: 1px solid #efd48c;
    border-radius: 8px;
    padding: 14px;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .92rem;
}

@media (max-width: 820px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .profile-hero,
    .split,
    .detail-layout,
    .filters {
        grid-template-columns: 1fr;
    }

    .hero,
    .profile-hero {
        padding: 32px 24px;
    }

    .row-card {
        align-items: flex-start;
        flex-direction: column;
    }
}
