/* The simple view: /projects and /projects/<slug>. Loaded after theme.css. */

.simple {
    max-width: 68rem; margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem) 3rem;
}

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 10;
    padding: 0.6em 1em; font-weight: 700;
    color: var(--accent-ink); background: var(--ink); border-radius: var(--radius-small);
}
.skip-link:focus { top: 1rem; }

.site-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
    padding: 1.25rem 0;
}
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.site-header nav a:not(.button) { font-weight: 700; color: var(--ink); text-decoration: none; padding: 0.5em 0; }
.site-header nav a:not(.button):hover { text-decoration: underline; }

.hero { padding: clamp(2rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); margin-top: 0.3rem; }
.hero .lead { max-width: 40rem; margin-top: 1rem; font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--ink-soft); }
.hero .tags, .hero .links { margin-top: 1.25rem; }

.notice-bar {
    margin-top: 0.5rem; padding: 0.8rem 1rem;
    background: var(--accent-soft); border-radius: var(--radius-small); font-weight: 600;
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head h2, .prose-section h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.count { color: var(--ink-soft); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 1rem 0 1.5rem; }
.filters .tag { padding: 0.45em 1em; font-size: 0.92rem; }

.cards {
    display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.card {
    position: relative; overflow: hidden;
    background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow); }
.card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--zone-color, var(--accent)); }
.card-image-empty { display: grid; place-items: center; }
.card-image-empty span { font-size: 4rem; font-weight: 800; color: rgb(255 255 255 / 0.92); }
.card-body { display: grid; gap: 0.6rem; padding: 1.1rem 1.2rem 1.3rem; }
.card h3 { font-size: 1.35rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.card h3 a:hover { text-decoration: underline; }
.card .meta { font-size: 0.9rem; color: var(--ink-soft); }
.empty { padding: 2rem 0; color: var(--ink-soft); }

.prose-section { max-width: 44rem; margin-top: clamp(3rem, 8vw, 5rem); }
.prose-section .prose { margin-top: 1rem; font-size: 1.08rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }

/* One project */
.breadcrumb { padding-top: 0.5rem; }
.breadcrumb a { font-weight: 700; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.project .hero { border-top: 8px solid var(--zone-color, var(--accent)); margin-top: 1rem; padding-top: 2rem; }
.facts {
    display: grid; gap: 1rem 2rem; margin: 0 0 2rem; padding: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
}
.facts dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0.3rem 0 0; font-weight: 600; }
.gallery { display: grid; gap: 1rem; margin-bottom: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius); border: 2px solid var(--line); }
.gallery figcaption { margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.project > .prose { max-width: 44rem; font-size: 1.08rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.pager a { font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager a span { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.pager a[rel="next"] { text-align: right; }

.site-footer {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
    margin-top: clamp(3rem, 8vw, 5rem); padding-top: 1.5rem;
    border-top: 2px solid var(--line); color: var(--ink-soft); font-size: 0.95rem;
}
