/* GeoPosterArt: a quiet gallery. Headings in Raleway Light (lining figures), text in the system font. */
@font-face {
  font-family: "Title Lining";
  src: url("/fonts/TitleLining-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}

:root {
  --ink: #1d1d1b;
  --muted: #6b6a64;
  --line: #e2ded5;
  --paper: #fbfaf7;
  --wall: #f1eee8;
  --accent: #2f5d62;
  --title: "Title Lining", "Raleway", "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 64px; }

h1, h2, h3 { font-family: var(--title); font-weight: 300; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: .01em; }
h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; }
h3 { font-size: 19px; font-family: var(--text); font-weight: 500; margin: .7em 0 .1em; }

/* Header and footer */
header.site {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px var(--gutter);
}
.wordmark {
  font-family: var(--title); font-weight: 300; font-size: 26px; letter-spacing: .22em;
  text-decoration: none;
}
.wordmark.small { font-size: 18px; }
nav.main { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--ink); }
footer.site {
  border-top: 1px solid var(--line); background: var(--wall);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px;
  padding: 32px var(--gutter); font-size: 15px; color: var(--muted);
}
footer.site p { margin: .4em 0; max-width: 46ch; }

.crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 2px; }

/* Home */
.hero { padding: clamp(32px, 7vw, 88px) 0 clamp(24px, 4vw, 48px); max-width: 760px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); }
.hero p { font-size: 19px; color: var(--muted); max-width: 60ch; }

/* Collection and place pages */
.lead { max-width: 760px; margin-bottom: 32px; }
.lead > p { color: var(--muted); font-size: 18px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a {
  text-decoration: none; font-size: 15px; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff;
}
.chips a:hover { border-color: var(--ink); }
.chips span { color: var(--muted); margin-left: 2px; }

/* Poster cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 40px 28px; }
.card { text-decoration: none; display: block; }
.card .frame {
  aspect-ratio: 2 / 3; background: var(--wall); padding: 9%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.card .frame img {
  max-height: 100%; width: auto; object-fit: contain;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.10);
}
.card:hover .frame { background: #e8e4dc; }
.card .frame.photo { padding: 0; }
.card .frame.photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; box-shadow: none; }
.card h3 { font-size: 16px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Poster page */
.poster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.poster-image { background: var(--wall); padding: clamp(20px, 5vw, 56px); }
.poster-image img { margin: 0 auto; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 14px 36px rgba(0,0,0,.14); }
.poster-text h1 { font-size: clamp(30px, 4vw, 44px); }
.poster-text .style { color: var(--muted); font-size: 18px; margin-top: -.3em; }
.poster-text h2 { font-size: 24px; }
.facts { padding-left: 1.1em; margin: 0; }
.facts li { margin: .3em 0; }
.credits { font-size: 14px; color: var(--muted); }
.button {
  display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 20px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500;
  padding: 14px 26px; border-radius: 2px; transition: background .2s;
}
.button:hover { background: var(--accent); }
.button .arrow { transition: transform .2s; }
.button:hover .arrow { transform: translateX(3px); }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.photos figure { margin: 0; }
.photos figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

.prose p, .prose h2 { max-width: 64ch; }
.prose p { color: var(--ink); font-size: 17px; }

@media (max-width: 760px) {
  .poster { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .card .frame { padding: 8%; }
  .wordmark { font-size: 21px; }
}
