/*
 * Hand-written, dependency-free stylesheet -- no build step, no CDN.
 * Kept intentionally small for this slice; replace with the Vite/Tailwind
 * pipeline later if the app grows a design system worth compiling.
 */

:root {
    --ink: #1b2430;
    --ink-soft: #4a5568;
    --paper: #fbfaf7;
    --card: #ffffff;
    --line: #e2e0d8;
    --accent: #1f6f4a;
    --accent-soft: #e7f2ec;
    --badge: #b5651d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
}

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

a:hover {
    text-decoration: underline;
}

header.site {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

header.site .bar {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header.site .brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
}

header.site form.search {
    flex: 1;
    display: flex;
    max-width: 420px;
}

header.site form.search input {
    flex: 1;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
}

header.site form.search button {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 4rem;
}

h1 {
    font-size: 1.6rem;
    margin: 0 0 0.35rem;
}

h2 {
    font-size: 1.2rem;
    margin: 1.75rem 0 0.75rem;
}

p.lead {
    color: var(--ink-soft);
    margin-top: 0;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.card .meta {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.variant-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.variant-card .photo {
    aspect-ratio: 1 / 1;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.variant-card .body {
    padding: 0.75rem;
}

.variant-card .body .name {
    font-weight: 600;
    font-size: 0.95rem;
}

.variant-card .body .meta {
    color: var(--ink-soft);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge.tier-tour-only,
.badge.tier-prototype {
    background: #fbeaea;
    color: #a3312a;
}

.badge.tier-gallery,
.badge.tier-course-exclusive {
    background: #eee6f7;
    color: #5a3a94;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.tabs a {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.85rem;
}

.tabs a.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.filters select,
.filters input {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 4px;
}

table.fields {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

table.fields th,
table.fields td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

table.fields th {
    width: 220px;
    color: var(--ink-soft);
    font-weight: 600;
}

table.variants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

table.variants-table th,
table.variants-table td {
    text-align: left;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}

table.variants-table th {
    color: var(--ink-soft);
    font-weight: 600;
    border-bottom: 2px solid var(--line);
}

.photo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.photo-strip figure {
    margin: 0;
    width: 160px;
}

.photo-strip img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.photo-strip figcaption {
    font-size: 0.75rem;
    color: var(--ink-soft);
    margin-top: 0.25rem;
}

.empty {
    color: var(--ink-soft);
    padding: 2rem 0;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
}

footer.site {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    color: var(--ink-soft);
    font-size: 0.8rem;
}
