/* mclabs.llc
   Same bones as mac.clemmens.com: dark, one page, no framework and no web
   fonts, so it renders in a single round trip. No hero photo yet, so the hero
   is typographic with a soft glow instead. */

:root {
    --bg: #0a0d12;
    --panel: #11161e;
    --line: #232c38;
    --text: #e8ecf2;
    --muted: #97a3b4;
    --accent: #8b7cff;
    --accent-soft: #b3a8ff;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 1.35rem;
}

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

/* Visible focus everywhere; keyboard users are not an afterthought. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.7rem 1rem;
    background: var(--accent);
    color: #04070c;
    font-weight: 600;
    z-index: 10;
}

.skip:focus {
    left: 0.5rem;
    top: 0.5rem;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(5.5rem, 16vh, 9rem) 0 4rem;
    border-bottom: 1px solid var(--line);
}

/* The glow stands in for a photograph: one warm spot up and to the right of
   the headline, dissolving into the page the way the photo does on the
   personal site. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(38rem 26rem at 78% 8%, rgba(139, 124, 255, 0.22), transparent 65%),
        radial-gradient(30rem 22rem at 12% 95%, rgba(90, 169, 255, 0.10), transparent 70%);
}

.hero-body {
    animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(1.25rem); }
    to   { opacity: 1; transform: none; }
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.hero h1 {
    margin: 0;
    max-width: 15ch;
    font-size: clamp(2.4rem, 9vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.lede {
    margin: 1.35rem 0 0;
    max-width: 34rem;
    color: var(--muted);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.9rem 0 0;
}

.button {
    display: inline-block;
    padding: 0.72rem 1.25rem;
    border-radius: 999px;
    background: var(--accent);
    color: #04070c;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--accent);
}

.button:hover { background: var(--accent-soft); color: #04070c; }

.button.ghost {
    background: transparent;
    color: var(--text);
    border-color: #3b4757;
}

.button.ghost:hover { background: rgba(139, 124, 255, 0.12); color: var(--text); }

/* ---------- sections ---------- */

main { padding: 7rem 1.35rem 1rem; }

section + section { margin-top: 3.5rem; }

h2 {
    margin: 0 0 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

h3 {
    margin: 0.35rem 0 0.6rem;
    font-size: 1.4rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

h3 a {
    color: var(--text);
    text-decoration: none;
}

h3 a:hover {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

p { margin: 0 0 0.9rem; }

/* ---------- entries ---------- */

/* Where a card leads somewhere, the whole card is the click target but only
   the title is a link: its ::after is stretched over the card. One link per
   article, not three stops to the same URL for anyone tabbing through. */
.entry {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.entry:hover,
.entry:focus-within {
    background: #131922;
    border-color: rgba(139, 124, 255, 0.45);
}

.entry + .entry { margin-top: 1.5rem; }

.entry-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.entry:hover .entry-link {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

.entry-body { padding: 1.4rem 1.4rem 1.5rem; }

.kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.entry-body p,
.entry-body li { color: var(--muted); }
.entry-body p:last-child { margin-bottom: 0; }
.entry-body strong { color: var(--text); font-weight: 600; }

.entry-body ul {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
}

.entry-body li + li { margin-top: 0.5rem; }

/* Reads as the thing to click, without being a second link to the same page. */
.action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.15rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-soft);
}

.entry-body p.action { color: var(--accent-soft); }

.action::after {
    content: "\2192";
    transition: transform 0.2s ease;
}

.entry:hover .action::after { transform: translateX(0.2rem); }

#studio p { color: var(--muted); }
#studio .address { color: var(--text); }

/* ---------- footer ---------- */

footer {
    margin-top: 4rem;
    padding-top: 1.75rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--line);
}

.fine {
    margin: 0;
    font-size: 0.85rem;
    color: #6d798a;
}

.fine a { color: #97a3b4; }

@media (min-width: 46rem) {
    .entry-body { padding: 1.75rem 1.9rem 1.9rem; }
    main { padding-top: 9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-body { animation: none; }
    .entry,
    .action::after { transition: none; }
}
