/* After Hours: visual theme only. Layout and content remain in the templates. */
body.after-hours {
    --night: #131d27;
    --surface: #f7f6ef;
    --raised: #dce5e7;
    --chalk: #131d27;
    --muted: #4f6069;
    --accent: #315e73;
    --edge: #84949a;
    --terminal: Menlo, Consolas, "Liberation Mono", monospace;
    background: #e7ebdf;
    color: var(--chalk);
    color-scheme: light;
}
body.after-hours::selection,
body.after-hours *::selection { background: #b9dce8; color: var(--night); }
.after-hours h1,
.after-hours h2,
.after-hours header nav,
.after-hours header > div > a,
.after-hours .project-tag {
    font-family: var(--terminal);
    letter-spacing: -0.035em;
}
.after-hours header > div > a { letter-spacing: -0.055em; }
.after-hours header > div > a > .fa-terminal {
    font-size: 0;
    width: 0.55em;
    min-width: 10px;
    height: 1.05em;
    min-height: 20px;
    background: var(--accent);
    order: 1;
}
.after-hours .bg-white,
.after-hours .bg-neutral-50 { background-color: var(--surface); }
.after-hours .bg-neutral-100,
.after-hours .bg-neutral-200 { background-color: var(--raised); }
.after-hours .bg-neutral-950 { background-color: #dce5e7; }
.after-hours header.bg-white\/85 { background-color: rgb(19 29 39 / 96%); }
.after-hours .text-white,
.after-hours .text-neutral-900,
.after-hours .text-neutral-800,
.after-hours .text-neutral-700 { color: var(--chalk); }
.after-hours .text-neutral-600,
.after-hours .text-neutral-500,
.after-hours .text-neutral-400,
.after-hours .text-neutral-300 { color: var(--muted); }
.after-hours .border-neutral-100,
.after-hours .border-neutral-200,
.after-hours .border-neutral-300,
.after-hours .border-neutral-700,
.after-hours .border-neutral-800 { border-color: var(--edge); }
.after-hours .text-orange-400,
.after-hours .text-orange-500,
.after-hours .text-orange-700,
.after-hours .text-orange-900,
.after-hours .project-cta i { color: var(--accent); }
.after-hours .bg-orange-500 { background-color: #b9dce8; color: var(--night); }
.after-hours .hover\:bg-orange-600:hover { background-color: #d5edf4; }
.after-hours .hover\:text-neutral-900:hover,
.after-hours .hover\:text-neutral-600:hover,
.after-hours .hover\:text-orange-300:hover,
.after-hours .hover\:text-orange-400:hover,
.after-hours .hover\:text-orange-800:hover,
.after-hours .group:hover .group-hover\:text-orange-700,
.after-hours .group:hover .group-hover\:text-orange-400 { color: var(--accent); }
.after-hours .decoration-orange-400\/40 { text-decoration-color: #7397af; }
.after-hours .hover\:decoration-orange-300:hover { text-decoration-color: var(--accent); }
.after-hours .hover\:border-orange-500:hover { border-color: var(--accent); }
.after-hours .rounded-lg,
.after-hours .rounded-xl,
.after-hours .rounded-2xl { border-radius: 3px; }
.after-hours .portrait { border-radius: 3px; border-color: #7397af; }
.after-hours .project-card {
    --card-tint: var(--surface);
    --card-border: var(--edge);
    --card-accent: var(--accent);
    --card-shadow: rgb(19 29 39 / 45%);
    --card-hover-shadow: rgb(19 29 39 / 45%);
    border-radius: 3px;
    box-shadow: 5px 6px 1px var(--card-shadow);
}
.after-hours .project-preview { background: #eef1ed; border-radius: 1px; }
.after-hours .project-tag { background: var(--surface); color: var(--accent); border-radius: 2px; }
.after-hours .project-cta { color: var(--chalk); }
.after-hours .builds-secondary > *,
.after-hours #blog-posts .group { background: var(--surface); }
.after-hours .builds-secondary > *:hover { background: var(--raised); }
.after-hours .builds-secondary [class*="bg-sky-"],
.after-hours .builds-secondary [class*="bg-fuchsia-"] { background: var(--raised); }
.after-hours .builds-secondary [class*="text-sky-"],
.after-hours .builds-secondary [class*="text-fuchsia-"] { color: var(--accent); }
.after-hours .builds-secondary [class*="border-sky-"],
.after-hours .builds-secondary [class*="border-fuchsia-"] { border-color: var(--edge); }
.after-hours .text-indigo-700 { color: var(--accent); }
.after-hours .hover\:text-indigo-900:hover { color: var(--chalk); }
.after-hours .step-active { color: var(--chalk); text-shadow: none; }
.after-hours .step-inactive { color: var(--muted); }
.after-hours .text-gradient {
    background: none;
    color: var(--accent);
    -webkit-text-fill-color: currentColor;
}
.after-hours :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.after-hours #sb-type { background: var(--raised); color: var(--accent); border-color: var(--edge); }

/* The dark masthead frames the light, tactile content below it. */
.after-hours > header,
.after-hours > header + section {
    --surface: #192733;
    --raised: #20323f;
    --chalk: #e7ebdf;
    --muted: #b3c3cd;
    --accent: #b9dce8;
    --edge: #476170;
    color: var(--chalk);
    color-scheme: dark;
}
.after-hours > header + section.bg-neutral-950 { background: #131d27; }
.after-hours .project-card:hover {
    box-shadow: 7px 8px 1px var(--card-hover-shadow);
}
.after-hours .builds-secondary > *,
.after-hours #blog-posts > a {
    border: 1px solid #131d27;
    box-shadow: 4px 4px 1px rgb(19 29 39 / 45%);
}
.after-hours .builds-secondary > a:hover,
.after-hours #blog-posts > a:hover {
    box-shadow: 6px 6px 1px rgb(19 29 39 / 45%);
}
/* Lightly softened offset shadows retain their chunky silhouette. */
.after-hours a.bg-orange-500 {
    --button-shadow: rgb(19 29 39 / 45%);
    box-shadow: 4px 4px 1px var(--button-shadow);
}
.after-hours header a.bg-orange-500 { --button-shadow: rgb(115 151 175 / 50%); }
.after-hours a.bg-orange-500:hover {
    box-shadow: 6px 6px 1px var(--button-shadow);
}
