/* Wallpaper landing pages. Same tokens as index.html; SF Pro only, sentence-case headings. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #C9A84C;
    --bg: #0A0A0A;
    --bg-card: #111111;
    --border: #252525;
    --text-primary: #F5F5F5;
    --text-secondary: #9A9A9A;
    --text-tertiary: #6A6A6A;
    --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.logo-mark { height: 19px; width: auto; aspect-ratio: 43 / 26; fill: var(--gold); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.1rem;
    background: var(--text-primary);
    color: var(--bg);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { opacity: 0.88; }
.btn-large { padding: 0.9rem 1.5rem; font-size: 1rem; margin-top: 1.5rem; }

main { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.intro { padding: 2.5rem 0 2rem; max-width: 760px; }

.crumbs { font-size: 0.8125rem; color: var(--text-tertiary); margin-bottom: 1rem; }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--text-primary); }

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.lede { font-size: 1.0625rem; color: var(--text-secondary); }

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

.card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1290 / 2796;
    object-fit: cover;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.card figcaption { padding: 0.9rem 0.15rem 0; }
.card h3 { font-size: 1rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.25rem; }
.card .meta { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.45; }
.card .note { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.5rem; line-height: 1.5; }

.dl { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.dl a {
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-primary);
}
.dl a:hover { border-color: var(--gold); color: var(--gold); }

.band { border-top: 1px solid var(--border); padding: 3rem 0; max-width: 760px; }
.band h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 1rem; }
.band p { color: var(--text-secondary); }
.daily h2 { color: var(--text-primary); }

details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--gold); }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.6rem; }

.related { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.related a {
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9375rem;
}
.related a:hover { border-color: var(--gold); color: var(--gold); }

footer {
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 2rem 1rem 3rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--text-primary); }
footer .fine { margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-tertiary); }

@media (max-width: 520px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.75rem; }
    .card .note { display: none; }
    .btn span { display: none; }
    nav .btn { padding: 0.6rem; }
}

/* Famous paintings guide: whole paintings in a reading column, not wallpaper crops. */
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.toc a {
    display: inline-block;
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.toc a:hover { border-color: var(--gold); color: var(--gold); }

.era { border-top: 1px solid var(--border); padding: 3rem 0 1rem; max-width: 900px; scroll-margin-top: 1rem; }
.era h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.era-intro { color: var(--text-secondary); margin: 0.5rem 0 2rem; max-width: 640px; }

.work {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    align-items: start;
    padding: 1.75rem 0;
    scroll-margin-top: 1rem;
}
.work + .work { border-top: 1px solid var(--border); }
.work img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    object-position: left top;
    border-radius: 6px;
}
.work h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 0.4rem; }
.work .num { color: var(--gold); font-weight: 600; }
.work .meta { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }
.work .note { margin-top: 0.75rem; line-height: 1.6; }
.dl a.more { border-color: transparent; color: var(--gold); padding-left: 0.4rem; }
.dl a.more:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .work { grid-template-columns: 1fr; gap: 1rem; }
    .work img { max-height: 420px; }
}

/* Art movements guide */
.timeline { padding-bottom: 1rem; max-width: 900px; }
.table-wrap { overflow-x: auto; }
.timeline table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.timeline th, .timeline td { text-align: left; padding: 0.55rem 1rem 0.55rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.timeline thead th { font-size: 0.8125rem; font-weight: 600; color: var(--text-tertiary); }
.timeline tbody th { font-weight: 600; }
.timeline tbody th a { text-decoration: none; }
.timeline tbody th a:hover { color: var(--gold); }
.timeline td { color: var(--text-secondary); }
.timeline td:nth-child(2) { white-space: nowrap; }

.movement { border-top: 1px solid var(--border); padding: 2.75rem 0; max-width: 900px; scroll-margin-top: 1rem; }
.movement h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.movement > .meta { color: var(--gold); font-size: 0.9375rem; margin: 0.25rem 0 1rem; }
.movement > p { max-width: 680px; margin-bottom: 0.75rem; }
.movement > p strong { font-weight: 600; }
.movement .no-ex { color: var(--text-tertiary); font-size: 0.875rem; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; align-items: end; }
.examples img { display: block; width: 100%; height: 200px; object-fit: contain; object-position: left bottom; }
.examples figcaption { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.45; margin-top: 0.6rem; }
.examples figcaption strong { color: var(--text-primary); font-weight: 600; }
.examples figcaption a { text-decoration: none; }
.examples figcaption a:hover { color: var(--gold); }
.band p a { color: var(--text-primary); }

@media (max-width: 640px) {
    .examples { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .examples img { height: 150px; }
    .timeline td:nth-child(3) { display: none; }
    .timeline thead th:nth-child(3) { display: none; }
}

/* Artist pages and museum guides */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem 1.5rem; margin-top: 1.75rem; }
.facts dt { font-size: 0.8125rem; color: var(--text-tertiary); }
.facts dd { font-size: 0.9375rem; color: var(--text-primary); line-height: 1.45; }
.facts a, .band p a, .museum a { color: var(--text-primary); }
.facts a:hover, .museum a:hover { color: var(--gold); }

.band > p + p { margin-top: 0.75rem; }
.small { font-size: 0.875rem; }

.artist-works { border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.artist-works h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem 1.5rem; margin-top: 1.75rem; align-items: start; }
.wcard img { display: block; width: 100%; height: 260px; object-fit: contain; object-position: left bottom; }
.wcard figcaption { margin-top: 0.75rem; }
.wcard h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.25rem; }
.wcard .meta { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.45; }
.wcard .meta a { color: var(--text-secondary); }
.wcard .meta a:hover { color: var(--gold); }
.wcard .note { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.45rem; line-height: 1.5; }
.wcard .dl { margin-top: 0.6rem; }

.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem 1.5rem; margin-top: 1.5rem; }
.acard { display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; }
.acard img { display: block; width: 100%; height: 220px; object-fit: contain; object-position: left bottom; margin-bottom: 0.6rem; }
.acard .aname { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.acard .meta { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.45; }
.acard:hover .aname { color: var(--gold); }

.museums { max-width: 820px; }
.museum { border-top: 1px solid var(--border); padding: 2.25rem 0; scroll-margin-top: 1rem; }
.museum h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.museum h2 .num { color: var(--gold); font-weight: 600; }
.museum > .meta { color: var(--gold); font-size: 0.9375rem; margin: 0.3rem 0 0.9rem; }
.museum > p { color: var(--text-secondary); }
.museum .see-label { margin-top: 0.9rem; color: var(--text-primary); font-weight: 600; font-size: 0.9375rem; }
.museum .see { margin: 0.35rem 0 0 1.1rem; color: var(--text-secondary); font-size: 0.9375rem; }
.museum .see li { margin: 0.2rem 0; }
.museum .dl { margin-top: 1rem; }

@media (max-width: 760px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
    .wcard img { height: 190px; }
}
@media (max-width: 520px) {
    .wcard .note { display: block; }
    .acard img { height: 200px; }
}
