/* Spango Moletsi Books, Retro Travel Poster design system
   Source: assets/reference-wallpaper.jpg (flat vector coastal poster)
   Rule: flat colour blocks only. No gradients in UI chrome. No glassmorphism. */

:root {
  /* Palette (exact poster colours) */
  --sky-deep:   #2A6B7A;  /* deep teal sky */
  --sky:        #4A9BA8;  /* light cyan sky, horizon */
  --sea:        #6BBAC4;  /* sea */
  --sea-line:   #4A9BA8;  /* sea texture lines */
  --mountain:   #3A7D8A;  /* far mountain highlight */
  --teal-dark:  #1F5260;  /* INK: near mountains, text, dark bands */
  --sun:        #F2A33C;  /* PRIMARY ACCENT: sun, headlines, CTAs */
  --clay:       #E88B3A;  /* buildings */
  --clay-dark:  #C46B2A;  /* building shadows, secondary CTA */
  --cream:      #F7F2E7;  /* warm cream, light bands */
  --white:      #FFFFFF;
  --ink:        var(--teal-dark);
  --ink-soft:   #2F6B7C;

  /* Type: bold condensed caps for display (poster), clean sans for body */
  --font-display: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --font-accent:  "Playfair Display", Georgia, serif;

  /* Shape */
  --radius-block: 0px;
  --radius-ui:    6px;
  --radius-pill:  999px;

  /* Motion: gentle, calm, nostalgic */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-decoration: none; }
a:hover { color: var(--clay-dark); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Typography: poster caps */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  color: var(--white);
  margin: 0;
}
.display--sun   { color: var(--sun); }
.display--white { color: var(--white); }
.display--ink   { color: var(--ink); }

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--sun);
  color: var(--teal-dark);
}
.tag--clay  { background: var(--clay); color: var(--white); }
.tag--teal  { background: var(--teal-dark); color: var(--white); }

/* Prose measure */
.prose { max-width: 38rem; }
.prose--wide { max-width: 44rem; }

/* Layout */
.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--teal  { background: var(--sky-deep); }
.section--sea   { background: var(--sea); }
.section--cream { background: var(--cream); }
.section--ink   { background: var(--teal-dark); }

/* Buttons: flat poster blocks */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 0.95rem 1.7rem;
  border: 3px solid var(--teal-dark);
  border-radius: var(--radius-ui);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--teal-dark); }
.btn--sun:hover { background: var(--white); }
.btn--clay { background: var(--clay-dark); color: var(--white); border-color: var(--teal-dark); }
.btn--clay:hover { background: var(--clay); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--teal-dark); }

/* Card */
.card {
  background: var(--white);
  border: 3px solid var(--teal-dark);
  border-radius: var(--radius-block);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card__body { padding: 1.5rem; flex: 1; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--teal-dark);
  margin-block: 0.75rem 0.5rem;
}
.card__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 2560;
  object-fit: cover;
  border-bottom: 3px solid var(--teal-dark);
  background: var(--sea);
}

/* HERO: the poster scene IS the hero */
.poster {
  position: relative;
  background: var(--sky-deep) url("/img/poster-scene.svg") no-repeat center 30% / cover;
  color: var(--white);
  padding-block: clamp(4.5rem, 11vw, 8rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-cover {
  display: flex;
  justify-content: flex-start;
}
.cover {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 3px solid var(--teal-dark);
  border-radius: var(--radius-block);
  background: var(--white);
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 3.5rem;
  }
  .hero-cover { justify-content: flex-end; }
}

/* Book section: cover + prose split */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .book-grid {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    gap: 3.25rem;
  }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
