/* ── whatareyoubuilding.com — industrial ─────────────────────────────── */

:root {
    --bg:           #0d0d0d;
    --surface:      #141414;
    --text:         #d4d4d4;
    --text-dim:     #808080;
    --text-faint:   #4a4a4a;
    --border:       #252525;
    --accent:       #f0a030;
    --accent-dim:   #c08020;
    --max-width:    900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", monospace;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    -webkit-font-smoothing: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────────────────────── */

header {
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--border);
}

header h1 a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
}

header h1 .blink {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

header .tagline {
    color: var(--text-dim);
    font-size: 0.72rem;
    margin-top: 6px;
}

/* ── Toolbar ─────────────────────────────────────────────────────────── */

.toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 0 14px;
}

.search-form {
    flex: 1;
}

.toolbar input {
    width: 100%;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-family: inherit;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    outline: none;
}

.toolbar input::placeholder { color: var(--text-faint); }
.toolbar input:focus { border-color: var(--accent); }

/* ── Table ───────────────────────────────────────────────────────────── */

.table-header {
    display: flex;
    gap: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.62rem;
}

.project-row {
    display: flex;
    gap: 12px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(37, 37, 37, 0.6);
    align-items: baseline;
    transition: background 0.1s ease;
}

.project-row:hover { background: var(--surface); }

.project-row.sponsored {
    border-left: 3px solid #d4a020;
    padding-left: 7px;
}

.sponsor-tag {
    font-size: 0.58rem;
    color: #d4a020;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 6px;
}

.col-domain {
    width: 170px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-domain a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
}

.col-domain a:hover { color: var(--text); }

.col-desc {
    flex: 1;
    min-width: 0;
    color: var(--text-dim);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-sub {
    width: 130px;
    flex-shrink: 0;
    color: var(--text-faint);
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-date {
    width: 72px;
    flex-shrink: 0;
    color: var(--text-faint);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
}

.col-src {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-link {
    color: var(--text-faint);
    text-decoration: none;
    font-size: 0.68rem;
}

.source-link:hover { color: var(--accent); }

.sponsor-form {
    display: inline;
}

.sponsor-btn {
    background: none;
    border: 1px solid var(--text-faint);
    color: var(--text-faint);
    font-family: inherit;
    font-size: 0.62rem;
    cursor: pointer;
    padding: 1px 5px;
    line-height: 1.4;
}

.sponsor-btn:hover {
    border-color: #d4a020;
    color: #d4a020;
}

/* ── No Results / Empty ──────────────────────────────────────────────── */

.no-results {
    text-align: center;
    padding: 40px 0;
    color: var(--text-faint);
    font-size: 0.8rem;
}

.empty-state {
    text-align: center;
    padding: 64px 0;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ── Pagination ──────────────────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 32px 0 16px;
    font-size: 0.75rem;
}

.pagination a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--border);
}

.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.pagination .current { color: var(--text-faint); }

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
    padding: 20px 0 32px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.68rem;
}

.footer-nav a {
    color: var(--text-faint);
    text-decoration: none;
}

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

/* ── Legal Pages ──────────────────────────────────────────────────────── */

.legal {
    max-width: 620px;
    padding: 20px 0 48px;
}

.legal h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.legal h3 {
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 24px;
    margin-bottom: 6px;
    color: var(--text);
}

.legal p {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 12px;
}

.legal a {
    color: var(--accent);
    text-decoration: none;
}

.legal a:hover { text-decoration: underline; }

/* ── Focus ───────────────────────────────────────────────────────────── */

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .table-header { display: none; }
    .project-row { flex-wrap: wrap; gap: 4px 12px; padding: 10px 8px; }
    .col-domain { width: 100%; }
    .col-desc { width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .col-sub { width: auto; }
    .col-date { width: auto; }
    .col-src { margin-left: auto; }
    .container { padding: 0 14px; }
    header { padding: 28px 0 24px; }
}
