:root {
    --text: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --soft: #f6f8fb;
    --accent: #0b6bcb;
    --accent-dark: #084e95;
    --danger-soft: #fff7ed;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 48px);
}

.site-mark {
    display: inline-grid;
    gap: 0;
    text-decoration: none;
}

.site-mark-main {
    font-weight: 800;
    letter-spacing: 0;
}

.site-mark-sub {
    color: var(--muted);
    font-size: 0.78rem;
}

.member-nav,
.site-footer nav,
.home-links,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.member-nav {
    justify-content: flex-end;
    font-size: 0.92rem;
}

.member-nav a,
.site-footer a,
.home-links a,
.detail-actions a {
    text-decoration: none;
}

.member-nav a:hover,
.site-footer a:hover,
.home-links a:hover,
.detail-actions a:hover {
    color: var(--accent);
}

.site-main {
    min-height: calc(100vh - 150px);
}

.home-search {
    min-height: calc(100vh - 150px);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 28px;
    padding: 32px clamp(18px, 5vw, 64px) 72px;
}

.home-brand {
    text-align: center;
}

.home-brand h1 {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    line-height: 1;
    letter-spacing: 0;
}

.home-brand p {
    margin: 12px 0 0;
    color: var(--muted);
}

.search-box {
    width: min(760px, 100%);
    display: grid;
    gap: 12px;
}

.search-box input,
.inline-search input {
    width: 100%;
    min-height: 56px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 0 24px;
    font: inherit;
    box-shadow: 0 10px 32px rgba(16, 24, 40, 0.08);
}

.search-box input:focus,
.inline-search input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(11, 107, 203, 0.12);
}

.search-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.search-help {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.92rem;
}

.search-actions button,
.search-actions a,
.inline-search button,
.empty-state a,
.primary-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 18px;
    background: var(--soft);
    color: var(--text);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.search-actions button,
.primary-action {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.search-actions button:hover,
.primary-action:hover {
    background: var(--accent-dark);
}

.home-links {
    max-width: 860px;
    justify-content: center;
    color: var(--muted);
}

.content-wrap,
.page-wrap {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 40px 0 72px;
}

.archive-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.archive-head h1,
.page-wrap h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0;
}

.inline-search {
    display: flex;
    gap: 10px;
    width: min(520px, 100%);
}

.inline-search input {
    min-height: 44px;
    box-shadow: none;
    border-radius: 8px;
}

.inline-search button {
    min-width: 72px;
}

.drop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.drop-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.drop-card-media {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: var(--soft);
    text-decoration: none;
    overflow: hidden;
}

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

.drop-card-media span,
.drop-placeholder {
    color: #98a2b3;
    font-weight: 800;
    font-size: 2rem;
}

.drop-card-body {
    padding: 14px;
}

.drop-card-body p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.88rem;
}

.drop-card h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: 0;
}

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

.drop-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.86rem;
}

.drop-card-meta span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
}

.drop-detail {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 38px 0 76px;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.drop-media {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--soft);
}

.drop-media img {
    width: 100%;
    height: auto;
    display: block;
}

.drop-placeholder {
    min-height: 360px;
    display: grid;
    place-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
}

.drop-info h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.6vw, 4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.drop-meta-list {
    display: grid;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.drop-copy {
    margin-top: 24px;
}

.note {
    border-radius: 8px;
    padding: 12px 14px;
}

.note.positive {
    background: #ecfdf3;
    color: #067647;
}

.note.warning {
    background: var(--danger-soft);
    color: #9a3412;
}

.detail-actions {
    margin-top: 22px;
    align-items: center;
}

.detail-actions a:not(.primary-action) {
    color: var(--muted);
}

.page-wrap {
    max-width: 880px;
}

.page-content {
    margin-top: 24px;
}

.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: var(--soft);
}

.empty-state a + a {
    margin-left: 8px;
}

.site-footer {
    padding: 28px clamp(18px, 4vw, 48px);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer nav {
    justify-content: center;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

    .member-nav {
        justify-content: flex-start;
    }

    .home-search {
        align-content: start;
        padding-top: 48px;
    }

    .search-actions,
    .inline-search,
    .archive-head {
        flex-direction: column;
        align-items: stretch;
    }

    .drop-detail {
        grid-template-columns: 1fr;
    }
}
