@font-face {
    font-family: 'Rush';
    src: url('../fonts/PubliFluorNormaleRush.woff') format('woff');
    font-display: swap;
}

:root {
    --bg: #ffffff;
    --fg: #1a1a1a;
    --muted: #666666;
    --link: #1a1a1a;
    --rule: #999999;
    --accent: #c1440e;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --fg: #e8e8e8;
        --muted: #999999;
        --link: #e8e8e8;
        --rule: #555555;
        --accent: #ff7a3d;
    }
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, 'Liberation Mono', monospace;
    font-size: 16px;
    line-height: 1.6;
    max-width: 58rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--accent);
    text-decoration-style: wavy;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin: 1.75rem 0 0.75rem;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }

p {
    margin: 0 0 1rem;
}

article > p, article > ul, article > ol {
    max-width: 42rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 1.5rem 0;
}

figcaption {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
    color: var(--muted);
}

blockquote footer {
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

/* --- header --- */

header {
    margin-bottom: 2rem;
}

.logo-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-lockup img {
    height: 2.75rem;
    width: auto;
}

header .site-title {
    margin: 0;
}

header .site-title a {
    text-decoration: none;
    color: var(--fg);
}

header .tagline {
    color: var(--muted);
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
}

header nav {
    margin-top: 1rem;
    font-size: 0.9rem;
}

header nav a[aria-current='page'] {
    text-decoration: none;
    color: var(--accent);
}

.rule {
    color: var(--rule);
    letter-spacing: 0.1rem;
    overflow: hidden;
    white-space: nowrap;
    margin: 1.5rem 0;
    font-size: 0.85rem;
}

.post-date {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: -0.5rem;
}

.lead-image {
    margin: 1rem 0 1.5rem;
}

/* --- gallery / photo wall --- */

.eyebrow-small {
    font-family: 'Rush', ui-monospace, monospace;
    color: var(--accent);
    font-size: 1.1rem;
    margin: 2rem 0 0;
    line-height: 1;
}

.photo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.4rem;
    margin: 1rem 0 2rem;
}

.photo-wall img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* --- blog listing --- */

.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.post-list-item h3 {
    margin-top: 0.15rem;
}

.post-list-item h3 a {
    text-decoration: none;
}

/* --- home: process steps --- */

.eyebrow {
    font-family: 'Rush', ui-monospace, monospace;
    color: var(--accent);
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.25rem;
    line-height: 1;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0 2.5rem;
}

.process-step {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--fg);
}

.process-step img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(0.15);
}

.process-step:hover img {
    filter: grayscale(0) saturate(1.3);
}

.process-step .step-number {
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Rush', ui-monospace, monospace;
    color: #fff;
    background: var(--accent);
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.2rem 0.55rem 0.3rem;
}

.process-step .step-caption {
    display: block;
    padding: 0.6rem 0 0;
    font-size: 0.9rem;
}

.process-step .step-caption strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.process-steps .process-step:first-child {
    grid-column: 1 / -1;
}

.process-steps .process-step:first-child img {
    aspect-ratio: 21 / 9;
}

@media (max-width: 640px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps .process-step:first-child {
        grid-column: 1 / -1;
    }
}

/* --- highlights (secondary teasers, e.g. library) --- */

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.highlight img {
    margin-bottom: 0.5rem;
}

.highlight h3 {
    margin-top: 0;
}

.highlight h3 a {
    text-decoration: none;
}

/* --- process (tip-card) template --- */

.tip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 2rem;
    margin: 1.5rem 0 2rem;
}

.tip-card img {
    width: 100%;
}

.tip-card h4 {
    margin: 0.75rem 0 0.35rem;
    font-size: 1rem;
}

.tip-card p {
    margin: 0;
}

footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-links a {
    color: var(--muted);
}

@media (min-width: 640px) {
    body {
        padding-top: 3.5rem;
    }
}
