/* Home page */

/* ------------------------------------------------------------- Hero */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hero__img {
  position: absolute;
  left: 0; right: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
  will-change: transform;
  /* Brand direction: show the painting bright and true to color */
  filter: saturate(1.08);
}
.hero::before {
  /* gentle scrim so white nav text always passes contrast */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10rem;
  background: linear-gradient(rgba(20, 20, 20, 0.45), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero__band {
  position: relative;
  width: 100%;
  will-change: transform;
}
.hero__band--teal {
  background: var(--band-teal);
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--gutter);
  margin-bottom: clamp(1.5rem, 5vh, 4rem);
}
.hero__band--blue {
  background: var(--band-blue);
  padding: clamp(1.5rem, 3.5vw, 3rem) var(--gutter);
}
.hero__band--red {
  background: var(--band-red);
  padding: clamp(0.7rem, 1.6vw, 1.1rem) var(--gutter);
  margin-top: clamp(1rem, 3vh, 2rem);
}
/* The countdown rides in the red band so the digits always hold against
   solid colour instead of the painting. */
.hero__red-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero__band .container { width: min(100%, var(--max-w)); margin-inline: auto; }
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }

/* Gala title lockup — the two lines sit as one unit, not stretched apart */
.hero__lockup {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: clamp(0.6rem, 1.4vw, 1.15rem);
  width: fit-content;
  max-width: 100%;
}
.hero__gala {
  font-family: var(--font-gala);
  font-weight: 400;
  font-size: clamp(3.25rem, 11vw, 12.5rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  margin: 0;
}
.hero__gala em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.52em;
  letter-spacing: 0;
  vertical-align: 0.12em;
}
.hero__gala-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 36, "wght" 500;
  font-size: clamp(1.05rem, 3vw, 3.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: left;
  margin: 0 0 0.12em;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}
.hero__foot {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) clamp(1.25rem, 3.5vh, 2.5rem);
}

/* --------------------------------------------------------- Invitation */

/* Less white space around the Save the Date panel: the section runs tighter
   top and bottom so the teal box sits higher and the black band follows sooner. */
.section--invite { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem); }
.invite {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 60em) {
  .invite { grid-template-columns: 1.1fr 1fr; gap: 5rem; }
}
.invite__copy > * + * { margin-top: 1.25rem; }
/* The envelope leads the column; give it a generous pause before the copy */
.invite__copy > .invite-opener:first-child { margin-top: 0; }
.invite__copy > .invite-opener:first-child + * { margin-top: clamp(3.25rem, 7vw, 5.75rem); }
.invite__formal {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 28, "wght" 500;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  max-width: 24ch;
}
/* Teal panel per the Black Direction splash mockup */
.invite__panel {
  background: var(--tupa-teal);
  color: #fff;
  padding: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}
.invite__venue { font-style: normal; line-height: 1.7; }
.invite__venue strong { display: block; font-size: 1.125rem; }
.invite__schedule {
  list-style: none;
  margin: 0; padding: 0;
  width: 100%;
  max-width: 22rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}
.invite__schedule li {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding-block: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.invite__note {
  margin: -0.75rem 0 0;
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.85);
}
.invite__note a { color: #fff; }
.invite__panel .date-lockup { margin: -0.5rem 0 0; }
.invite__more {
  margin: -0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.invite__more a {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--tupa-yellow);
  padding-bottom: 0.2em;
}
.invite__more a:hover, .invite__more a:focus-visible { color: var(--tupa-yellow); }
.invite__rsvp-by {
  font-size: var(--type-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tupa-red);
}
.invite__map {
  width: 100%;
  overflow: hidden;
  background: var(--gallery);
}
.invite__map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  filter: grayscale(0.45);
}

/* ------------------------------------------------------ Featured rail */

.featured { overflow: clip; }
.featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.featured__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
  color: var(--ink);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.featured__logo {
  height: 1.75rem;
  width: auto;
}
/* Featured section sits on black; brand line renders white, lot numbers red */
.featured.on-dark .featured__brand { color: inherit; }
.featured .lot-card__number { color: var(--tupa-red); }

/* --------------------------------------------------- Beyond paintings */

.beyond__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 48em) {
  .beyond__grid { grid-template-columns: repeat(3, 1fr); }
}
.beyond-card { text-decoration: none; color: inherit; display: block; }
.beyond-card figure { margin: 0; }
.beyond-card__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid;
}
.beyond-card__frame img {
  width: 100%; height: 100%;
  /* contain, not cover — these are whole works, and the pottery and the
     Picasso were losing their edges to the crop */
  object-fit: contain;
  transition: transform 0.6s var(--ease-out-expo);
}
.beyond-card:hover .beyond-card__frame img { transform: scale(1.03); }
.beyond-card__picasso {
  background: var(--ink);
  color: var(--gallery);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.beyond-card__picasso .display { font-size: clamp(3rem, 6vw, 5rem); }
.beyond-card figcaption { padding-top: 1.25rem; }
.beyond-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  background-image: linear-gradient(var(--tupa-yellow), var(--tupa-yellow));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease-out-expo);
}
.beyond-card:hover h3 { background-size: 100% 3px; }
.beyond-card p { color: #A9A8A2; font-size: 0.9375rem; line-height: 1.55; }

/* ------------------------------------------------------ Artist teaser */

.artist-teaser {
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  color: #fff;
}
.artist-teaser__img {
  position: absolute;
  left: 0; right: 0;
  top: -6%;
  width: 100%;
  height: 112%;
  object-fit: cover;
  /* Face sits below the sticky nav; crown of head stays in frame */
  object-position: center 18%;
  z-index: -2;
  will-change: transform;
  filter: brightness(0.85) contrast(1.06) saturate(1.1);
}
.artist-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 4, 28, 0.38) 0%, transparent 42%, rgba(0, 28, 40, 0.2) 100%),
    radial-gradient(ellipse at 55% 18%, rgba(100, 40, 210, 0.16), transparent 52%);
  pointer-events: none;
  z-index: -1;
}
.artist-teaser__band {
  position: relative;
  width: 100%;
  background: var(--band-teal);
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter);
  z-index: 1;
}
.artist-teaser__band .container > * + * { margin-top: 1rem; }
.artist-teaser__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 36, "wght" 500;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.15;
  max-width: 22ch;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}
.artist-teaser__link {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 2px solid var(--tupa-yellow);
  padding-bottom: 0.2em;
}
.artist-teaser__link:hover { color: var(--tupa-yellow); }

/* ------------------------------------------------------------- Cause */

.cause { text-align: center; }
.cause .lead { max-width: 44rem; margin: 1.5rem auto 3rem; }

/* ---------------------------------------------------------- Amy Grant */

/* Photo beside the copy on wide screens, stacked on phones */
.amy__body { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 60em) { .amy__body { grid-template-columns: 1.1fr 1fr; } }
.amy__photo { margin: 0; }
.amy__photo img { display: block; width: 100%; height: auto; }
.amy__photo .caption { margin-top: 0.6rem; }
.amy__copy > * + * { margin-top: 1.25rem; }
.amy__lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.25;
}
