:root {
  --bg: #191d21;
  --ink: #dad6cb;
  --muted: #a59f92;
  --serif: "Rockwell", "Rockwell Nova", "Roboto Slab", "Bitstream Charter", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--ink); }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Header bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2.4vw, 30px) clamp(18px, 3.6vw, 60px);
  background: var(--bg);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.6rem + 1.1vw, 1.7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.wordmark .br { font-weight: 300; margin: 0 0.12em; opacity: 0.85; }
.wordmark:hover, .wordmark:focus-visible { color: var(--ink); }
.wordmark:focus-visible { outline: 2px solid var(--muted); outline-offset: 4px; }

/* Hero: wide screens cover the viewport */
.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Soft fade so the tagline stays readable on any crop */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26%;
  background: linear-gradient(to top, rgba(25, 29, 33, 0.9), rgba(25, 29, 33, 0));
  pointer-events: none;
}

.tagline {
  position: absolute;
  z-index: 1;
  left: 0; right: 0;
  bottom: clamp(24px, 8vh, 110px);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
  font-size: clamp(1rem, 0.7rem + 0.9vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}

/* Portrait and narrow screens: show the whole artwork, feathered into the page */
@media (max-aspect-ratio: 5/4) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 6vh;
  }
  .art {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 70vh;
    object-fit: cover;
    object-position: 50% 50%;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-composite: intersect;
  }
  .hero::after { display: none; }
  .tagline {
    position: static;
    margin: 1.5rem auto 0;
    max-width: 24ch;
    font-size: clamp(1.05rem, 4.4vw, 1.4rem);
  }
}
