/* ── Home page ──
 *
 * Page-specific layout for index.html. The home page keeps its own
 * --home-* token island (Helvetica Neue + warmer paper) for a distinct
 * portal aesthetic; aligning it with the platform tokens is a future
 * decision, not part of this refactor.
 */


:root {
    --home-paper: #F6F1EB;
    --home-panel: #FAFAF8;
    --home-panel-warm: #f1ede7;
    --home-ink: #000;
    --home-ink-soft: #1b1b1b;
    --home-ink-tertiary: #3A3934;
    --home-ink-mute: #6b6660;
    --home-line: #e5e0d8;
    --home-font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --home-font-title: 'Futura', 'Century Gothic', 'Avenir', -apple-system, sans-serif;
}

body {
    font-family: var(--home-font-body);
    background-color: var(--home-paper);
    color: var(--home-ink);
}

.home-wrapper {
    min-height: calc(100vh - 56px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px 120px;
}

.home-section + .home-section {
    margin-top: 72px;
}

.home-section-eyebrow {
    font-family: var(--home-font-title);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--home-ink-tertiary);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.home-section-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background-color: var(--home-ink);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.config-grid--single {
    grid-template-columns: 1fr;
    max-width: 560px;
}

/* Portal cards */
.config-card {
    background: var(--home-panel);
    border: 1px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.config-card:hover {
    border-color: var(--home-ink);
    background: #fff;
}

.config-card-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--home-line);
}

.config-card-label {
    font-family: var(--home-font-title);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--home-ink-tertiary);
    opacity: 0.7;
    margin-bottom: 8px;
}

.config-card-title {
    font-family: var(--home-font-title);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.15;
    color: var(--home-ink);
    letter-spacing: -0.01em;
}

.config-card-body {
    display: flex;
    flex-direction: column;
}

.config-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 32px;
    text-decoration: none;
    color: var(--home-ink);
    transition: background-color 0.2s ease, padding 0.2s ease;
}

.config-link + .config-link {
    border-top: 1px solid var(--home-line);
}

.config-link:hover {
    background: var(--home-panel-warm);
}

.config-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--home-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: var(--home-ink);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.config-link:hover .config-link-icon {
    background: var(--home-ink);
    color: var(--home-panel);
}

.config-link-text {
    flex: 1;
    min-width: 0;
}

.config-link-label {
    font-family: var(--home-font-body);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--home-ink);
    display: block;
}

.config-link-desc {
    font-family: var(--home-font-body);
    font-size: 0.85rem;
    color: var(--home-ink-mute);
    line-height: 1.4;
    display: block;
    margin-top: 2px;
}

.config-link-arrow {
    font-family: var(--home-font-title);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--home-ink);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.config-link:hover .config-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Internal / mocks section, demoted */
.home-section--internal .home-section-eyebrow {
    color: var(--home-ink-mute);
    opacity: 0.7;
}

.home-section--internal .home-section-eyebrow::before {
    background-color: var(--home-ink-mute);
    opacity: 0.5;
}

.internal-card {
    background: transparent;
    border: 1px dashed var(--home-line);
    border-radius: 15px;
    opacity: 0.85;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.internal-card:hover {
    opacity: 1;
    border-color: var(--home-ink-tertiary);
}

.internal-card .config-card-header {
    border-bottom-color: var(--home-line);
}

.internal-card .config-card-title {
    font-size: 1.1rem;
    color: var(--home-ink-soft);
}

@media (max-width: 720px) {
    .home-wrapper {
        padding: 48px 16px 80px;
    }

    .home-section + .home-section {
        margin-top: 56px;
    }

    .config-card-header,
    .config-link {
        padding-left: 24px;
        padding-right: 24px;
    }
}
