/* Alfred — cubist poster placeholder.
   Palette lifted from the illustration: paper cream, charcoal ink, and the
   terracotta / ochre / slate accents of the artwork. Type is one geometric
   family (League Spartan) for a unified modernist-poster voice. */

:root {
  --paper: #ece0c4;
  --ink: #1c1a17;
  --terracotta: #9c4128; /* deepened from the art's #a8492f to clear 4.5:1 as text */
  --ochre: #ca9b46;
  --slate: #3f5a6b;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --z-content: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: "League Spartan", "Arial Narrow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint printed-paper tooth */
  background-image:
    radial-gradient(oklch(0 0 0 / 0.02) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ---- Poster shell ----------------------------------------------------- */

.poster {
  position: relative;
  z-index: var(--z-content);
  min-height: 100svh;
  width: min(92vw, 60rem);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 5vh, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2.2vh, 1.5rem);
}

/* ---- Meta row --------------------------------------------------------- */

/* top rule above the wordmark (the corner mark was removed) */
.meta {
  padding-bottom: clamp(0.6rem, 1.6vh, 1rem);
  border-bottom: 2px solid var(--ink);
}

/* ---- Wordmark --------------------------------------------------------- */

.wordmark {
  font-weight: 900;
  font-size: clamp(3.2rem, 15vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---- Artwork ---------------------------------------------------------- */

.art {
  margin-block: clamp(0.3rem, 1vh, 0.8rem);
}

.art .hero-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--ink);
  /* hard-edged screenprint offset, no blur */
  box-shadow: clamp(8px, 1.4vw, 16px) clamp(8px, 1.4vw, 16px) 0 var(--ink);
}

/* ---- Caption ---------------------------------------------------------- */

.tagline {
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  line-height: 1.3;
  max-width: 34ch;
  text-wrap: pretty;
  margin-top: clamp(0.4rem, 1.4vh, 1rem);
}

.contact {
  align-self: flex-start;
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.22em;
  border-bottom: 2px solid var(--terracotta);
  transition: color 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo);
}

.contact:hover,
.contact:focus-visible {
  color: var(--terracotta);
}

.contact:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ---- Load choreography ------------------------------------------------ */

.meta,
.wordmark,
.art,
.tagline,
.contact {
  animation: rise 0.9s var(--ease-out-expo) backwards;
}
.wordmark { animation-delay: 0.08s; }
.art { animation-delay: 0.18s; }
.tagline { animation-delay: 0.32s; }
.contact { animation-delay: 0.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .meta, .wordmark, .art, .tagline, .contact { animation: none; }
}

/* ---- Wide screens: give the poster room, cap the height --------------- */

@media (min-width: 48rem) {
  .poster { justify-content: center; }
  .art .hero-art { max-height: 60vh; width: auto; margin-inline: auto; }
}
