/* Gerrit Lane — travel poster style
   The landscape (backdrop.svg) is printed on cream paper; plum caption bands carry links and the footer. */

:root {
  --paper: #F3E6D3;
  --plum: #3B2A48;
  --cream: #FFF1DC;
  --sand: #F6D7B6;
  --ink: #3B2A48;
  --ink-soft: #6A5A6E;
  --dusk: #2B2850;
  --edge: clamp(10px, 1.8vw, 22px);
  --font: "Josefin Sans", "Futura", "Century Gothic", "Avenir Next", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  /* keeps the footer at the bottom of short pages */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; width: 100%; }

a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }

/* ---------- The poster: the first screen of the home page ---------- */
.poster {
  margin: var(--edge);
  min-height: calc(100svh - 2 * var(--edge));
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 6px;
  overflow: hidden;
  background: url("backdrop.svg") 38% 30% / cover no-repeat, var(--dusk);
  box-shadow: 0 0 0 2px var(--plum), 0 18px 50px -20px rgba(59, 42, 72, 0.5);
}

.poster header { text-align: center; padding: clamp(1.6rem, 7vh, 4rem) 16px 0; }

.wordmark {
  margin: 0;
  padding-left: 0.16em; /* balances the trailing letter-spacing so the name sits centered */
  font-weight: 700;
  font-size: clamp(2.4rem, 8.5vw, 6.6rem);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(59, 42, 72, 0.35);
}

.tagline {
  margin: 0.9rem 0 0;
  padding-left: 0.32em;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand);
}

.band { display: flex; justify-content: center; padding: 1rem; background: var(--plum); }

.band a {
  color: var(--paper);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.2rem 0.4rem 0.1rem;
  border-bottom: 1.5px solid rgba(243, 230, 211, 0.5);
}
.band a:hover { border-bottom-color: var(--paper); }

/* ---------- The collection: each card is a small poster cut from the same landscape ---------- */
.collection {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(16px, 4vw, 40px) 1rem;
}

.section-title {
  margin: 0 0 1.8rem;
  padding-left: 0.32em;
  text-align: center;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.cards {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 340px));
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  background: var(--plum);
  color: var(--cream);
  box-shadow: 0 0 0 2px var(--plum);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--plum), 0 14px 28px -14px rgba(59, 42, 72, 0.6); }
.card:focus-visible { outline: 3px solid var(--plum); outline-offset: 4px; }

/* A placeholder tile: not a link, so no lift, and the art is muted */
.card--soon:hover { transform: none; box-shadow: 0 0 0 2px var(--plum); }
.card--soon .art { filter: saturate(0.55) brightness(0.85); }
.card--soon .desc { font-style: italic; }

/* Card art: --zoom, --x and --y choose which part of the landscape the card shows */
.art {
  display: block;
  aspect-ratio: 4 / 3;
  background: url("backdrop.svg") var(--x) var(--y) / var(--zoom) auto no-repeat, var(--dusk);
}

.caption { display: grid; gap: 0.35rem; padding: 0.95rem 1rem 1.05rem; flex: 1; align-content: start; }
.title { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.25; }
.desc { font-size: 0.95rem; line-height: 1.45; color: rgba(255, 241, 220, 0.82); }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- Inner pages (privacy, terms, not found): a short poster strip over a paper sheet ---------- */
.strip {
  margin: var(--edge);
  border-radius: 6px;
  overflow: hidden;
  background: url("backdrop.svg") 38% 16% / cover no-repeat, var(--dusk);
  box-shadow: 0 0 0 2px var(--plum);
}

.strip a {
  display: block;
  padding: clamp(2.2rem, 7vw, 3.6rem) 16px clamp(3rem, 10vw, 5.5rem);
  text-align: center;
  text-decoration: none;
}

.strip .wordmark { font-size: clamp(1.9rem, 5.5vw, 3.4rem); }

.sheet {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(16px, 4vw, 24px) 0;
}

.sheet h1 {
  margin: 0 0 0.3rem;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet h3 {
  margin: 2.1rem 0 0.4rem;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sheet p, .sheet ul { margin: 0 0 0.95rem; }
.sheet a { color: var(--plum); text-underline-offset: 3px; text-decoration-color: rgba(59, 42, 72, 0.45); }
.sheet a:hover { text-decoration-color: currentColor; }
.effective { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.6rem; }
.back { margin-top: 2.2rem; }

.notfound { text-align: center; }
.notfound p { color: var(--ink-soft); }

/* ---------- Footer: a plum caption band closing every page ---------- */
.site-footer {
  margin: clamp(2.5rem, 6vw, 4rem) var(--edge) var(--edge);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2.2rem);
  background: var(--plum);
  color: var(--paper);
  font-size: 0.95rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.site-footer a { color: inherit; text-underline-offset: 4px; text-decoration-color: rgba(243, 230, 211, 0.45); }
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer a[aria-current="page"] { text-decoration-color: currentColor; }
.site-footer small { font-size: 0.875rem; opacity: 0.85; }

@media (max-width: 560px) {
  .poster { background-position: 30% 100%; }
  .strip { background-size: 300% auto; background-position: 82% 25%; }
  .site-footer { justify-content: center; text-align: center; }
}
