/* AnnaBay Club: the awards page. A red hero with the photo, a band of passing medals, one block per rum with both its medals,
   the two competitions, a red close. No spinning rays, nothing that moves except the band. */

/* ---------- 1. Hero ---------- */
.ahero {
  --ink: var(--white);
  position: relative;
  background: var(--red);
  color: var(--white);
}

.ahero__bg {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.ahero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.ahero__copy {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-block: 36px 64px;
}

.ahero .kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.ahero .big {
  font-size: clamp(60px, 19vw, 130px);
}

.ahero__text {
  max-width: 34ch;
  font-size: 18px;
}

@media (min-width: 900px) {
  .ahero {
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--header-h, 64px));
  }
  .ahero__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    aspect-ratio: auto;
  }
  .ahero__bg img {
    position: absolute;
    inset: 0;
    object-position: 50% 45%;
  }
  .ahero__copy {
    width: calc(50% - 40px);
    margin-left: max(var(--gutter), calc((100vw - 1200px) / 2));
    padding-block: 72px;
  }
  .ahero__copy.container {
    max-width: none;
    padding-inline: 0;
  }
  .ahero .big {
    font-size: clamp(90px, 9.6vw, 160px);
  }
  .ahero__text {
    font-size: 21px;
  }
}

/* ---------- The hub: three awards ---------- */
.stages {
  --ink: var(--red);
  background: var(--sand);
  color: var(--black);
}

.stages .kicker,
.finalist .kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.stages .big {
  margin-top: 10px;
  font-size: clamp(52px, 13vw, 120px);
}

.stages__lead {
  margin-top: 18px;
  font-size: 18px;
}

.stages__list {
  display: grid;
  gap: 40px;
  margin-top: 48px;
}

.stage {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 24px 30px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--black);
}

.stage__medals {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 96px;
  margin-bottom: 8px;
}

.stage__medals span {
  display: block;
  height: 100%;
}

.stage__medals img {
  display: block;
  width: auto;
  height: 100%;
  filter: drop-shadow(3px 4px 0 rgba(62, 43, 46, 0.22));
}

.stage__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.stage__tags span {
  padding: 5px 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage__tags span:first-child {
  background: var(--gold-bright);
  color: var(--black);
}

.stage__meta {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.stage h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 0.95;
  text-transform: uppercase;
}

.stage__tally {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

.stage__rum {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage__text {
  font-size: 17px;
}

.stage .btn {
  justify-self: start;
  margin-top: 10px;
}

@media (min-width: 1000px) {
  .stages__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
  }
  .stage__medals {
    height: 120px;
  }
}

/* ---------- The result pages ---------- */
.crumb--light {
  display: flex;
  gap: 10px;
}

.crumb--light a,
.crumb--light span {
  color: var(--white);
}

.results {
  --ink: var(--red);
  background: var(--sand);
  color: var(--black);
}

.results .big {
  font-size: clamp(52px, 13vw, 112px);
}

.results__lead {
  max-width: 48ch;
  margin-top: 18px;
  font-size: 18px;
}

.res {
  display: grid;
  gap: 64px 28px;
  margin-top: 56px;
}

@media (min-width: 760px) {
  .res {
    grid-template-columns: repeat(3, 1fr);
  }
}

.res__card {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.res__link {
  position: relative;
  display: block;
  width: min(100%, 300px);
  height: 300px;
  text-decoration: none;
}

.res__bottle {
  position: absolute;
  left: 6%;
  bottom: 0;
  height: 300px;
  width: auto;
  filter: drop-shadow(5px 6px 0 rgba(62, 43, 46, 0.22));
}

.res__medal {
  position: absolute;
  right: 0;
  top: 18px;
  width: 52%;
  filter: drop-shadow(5px 7px 0 rgba(62, 43, 46, 0.3));
  transform: rotate(8deg);
  transition: transform 300ms var(--ease-out);
}

.res__medal img {
  display: block;
  width: 100%;
  height: auto;
}

.res__link:hover .res__medal {
  transform: rotate(-4deg) scale(1.06);
}

.res__card h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.res__big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 84px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--red);
}

.res__small {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.res__ribbon {
  margin-top: 10px;
  padding: 6px 14px;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--black);
}

/* Why it matters: three facts on red */
.why {
  --ink: var(--white);
  padding-block: 84px 90px;
  background: var(--red);
  color: var(--white);
}

.why .big {
  font-size: clamp(52px, 13vw, 112px);
}

.why__lead {
  max-width: 50ch;
  margin-top: 20px;
  font-size: 19px;
}

.why__stats {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.why__stats li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 18px;
  border-top: 4px solid var(--gold-bright);
}

.why__stats strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 14vw, 104px);
  line-height: 0.9;
  color: var(--gold-bright);
}

.why__stats span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.why__stats p {
  max-width: 28ch;
  font-size: 17px;
}

.why__quote {
  max-width: 24ch;
  margin-top: 56px;
  font-family: var(--serif, "Kameron", Georgia, serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.15;
}

@media (min-width: 900px) {
  .why__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

/* The finalist */
.finalist {
  --ink: var(--red);
  background: var(--sand);
  color: var(--black);
}

.finalist__inner {
  display: grid;
  gap: 14px;
}

.finalist .big {
  font-size: clamp(56px, 14vw, 120px);
}

.finalist__text {
  max-width: 46ch;
  font-size: 19px;
}

/* ---------- 5. Close ---------- */
.aclose {
  --ink: var(--white);
  position: relative;
  padding-block: 84px 90px;
  background: var(--red);
  color: var(--white);
  text-align: center;
}

.aclose__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.aclose .big {
  justify-items: center;
  font-size: clamp(56px, 14vw, 120px);
}

.aclose__text {
  max-width: 42ch;
  font-size: 18px;
}

.aclose__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

/* The title stays on the red panel: "Winning" and "rum" on their own lines */
@media (min-width: 900px) {
  .ahero .big {
    font-size: clamp(80px, 8.2vw, 136px);
  }
}


.aclose__more {
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aclose__more a {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ---------- Hero: three bottles on red, each with its medals ---------- */
.ahero {
  overflow: hidden;
  padding: 56px 0 0;
}

.ahero__inner {
  display: grid;
  gap: 24px;
  align-items: end;
}

.ahero__copy {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-bottom: 8px;
}

.ahero__bg {
  display: none;
}

.stage3 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(46px, 13vw, 84px);
  padding: 20px 28px 0;
}

.bt {
  position: relative;
  flex: none;
}

.bt__bottle {
  display: block;
  width: auto;
  height: clamp(250px, 70vw, 330px);
  filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.22));
}

.bt--aged .bt__bottle {
  height: clamp(280px, 78vw, 370px);
}

.bt__m {
  position: absolute;
  bottom: 6%;
  width: 68%;
  filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, 0.28));
}

.bt__m img {
  display: block;
  width: 100%;
  height: auto;
}

.bt__m--a {
  left: -46%;
  transform: rotate(-9deg);
}

.bt__m--b {
  right: -46%;
  bottom: 0;
  transform: rotate(8deg);
}

.bt--single .bt__m--a,
.bt--single .bt__m--b {
  left: 50%;
  right: auto;
  width: 74%;
  bottom: 12%;
  transform: translateX(-50%) rotate(-6deg);
}

@media (min-width: 900px) {
  .ahero {
    padding: 0;
    min-height: calc(100svh - var(--header-h, 64px));
    display: flex;
    align-items: stretch;
  }
  .ahero__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
  }
  .ahero__copy {
    padding-block: 72px;
  }
  .stage3 {
    align-self: end;
    gap: clamp(60px, 6.4vw, 100px);
    padding: 40px 0 0;
  }
  .bt__bottle {
    height: clamp(380px, 47vh, 480px);
  }
  .bt--aged .bt__bottle {
    height: clamp(430px, 54vh, 560px);
  }
}

/* Hero, tidier: smaller medals hung at the foot of each bottle, one each side, nothing cut off */
.stage3 {
  gap: clamp(58px, 16vw, 100px);
  padding: 20px 36px 0;
}

.bt__m {
  width: 46%;
  bottom: 4%;
}

.bt__m--a {
  left: -30%;
  transform: rotate(-8deg);
}

.bt__m--b {
  right: -30%;
  bottom: 0;
  transform: rotate(7deg);
}

.bt--single .bt__m--a,
.bt--single .bt__m--b {
  width: 62%;
  left: 50%;
  right: auto;
  bottom: 8%;
  transform: translateX(-50%) rotate(-5deg);
}

@media (min-width: 900px) {
  .ahero__inner {
    grid-template-columns: 1fr 1.15fr;
  }
  .ahero .big {
    font-size: clamp(70px, 7.4vw, 120px);
  }
  .stage3 {
    gap: clamp(70px, 6.4vw, 110px);
    padding: 40px 40px 0 20px;
  }
  .bt__m {
    width: 50%;
  }
}


/* The result pages: a longer title, so a wider copy column and a smaller title */
@media (min-width: 900px) {
  .ahero--result .ahero__inner {
    grid-template-columns: 1.25fr 1fr;
  }
  .ahero--result .big {
    font-size: clamp(60px, 6vw, 96px);
  }
  .ahero--result .ahero__text {
    max-width: 38ch;
    font-size: 19px;
  }
  .ahero--result .bt__bottle {
    height: clamp(320px, 42vh, 420px);
  }
  .ahero--result .bt--aged .bt__bottle {
    height: clamp(360px, 48vh, 480px);
  }
}

@media (max-width: 899px) {
  .ahero--result .big {
    font-size: clamp(48px, 13vw, 80px);
  }
}

@media (min-width: 900px) {
  .ahero--result .big {
    display: block;
    line-height: 0.9;
  }
  .ahero--result .big span {
    display: inline;
  }
}

/* The copy fills its own column (the older rules gave it half of the column) */
@media (min-width: 900px) {
  .ahero .ahero__copy {
    width: auto;
    margin-left: 0;
  }
}


/* ---------- Hub hero: the photo of the three rums with the words on it ---------- */
.ahero--photo {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  background: var(--red);
}

.ahero--photo .ahero__photo {
  display: block;
  aspect-ratio: 4 / 5;
}

.ahero--photo .ahero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.ahero--photo .ahero__copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  z-index: 1;
  width: auto;
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0, 40, 50, 0.6), 0 2px 18px rgba(0, 40, 50, 0.45);
}

.ahero--photo .big {
  font-size: clamp(54px, 15vw, 96px);
  filter: drop-shadow(0 2px 12px rgba(0, 40, 50, 0.45));
  text-shadow: none;
}

.ahero--photo .kicker {
  color: var(--white);
}

@media (min-width: 768px) {
  .ahero--photo .ahero__photo {
    aspect-ratio: auto;
    height: calc(100svh - var(--header-h, 64px));
    min-height: 560px;
  }
  .ahero--photo .ahero__copy {
    top: 56px;
  }
}

@media (min-width: 900px) {
  .ahero--photo .big {
    font-size: clamp(80px, 8.6vw, 140px);
  }
  .ahero--photo .ahero__copy.container {
    max-width: calc(var(--max) + 2 * var(--gutter));
  }
}


/* The words lie in red on the white ledge at the foot of the photo, under the bottles */
.ahero--photo {
  --ink: var(--red);
}

.ahero--photo .ahero__photo {
  aspect-ratio: 4 / 5;
}

.ahero--photo .ahero__copy {
  top: auto;
  bottom: 0;
  padding-bottom: 22px;
  text-shadow: none;
}

.ahero--photo .big {
  display: block;
  font-size: clamp(40px, 11.4vw, 64px);
  line-height: 0.9;
  color: var(--red);
  filter: none;
}

.ahero--photo .big span {
  display: inline;
}

@media (min-width: 768px) {
  .ahero--photo .ahero__photo {
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: 0;
  }
  .ahero--photo .ahero__copy {
    padding-bottom: 28px;
  }
}

@media (min-width: 900px) {
  .ahero--photo .big {
    font-size: clamp(64px, 7.4vw, 124px);
  }
  .ahero--photo .ahero__copy {
    padding-bottom: 34px;
  }
}

/* The ledge in the photo is pure white: the hero is white, and on a phone the words lie on a white strip under the bottles */
.ahero--photo {
  background: #fefefe;
}

@media (max-width: 767px) {
  .ahero--photo .ahero__copy {
    position: static;
    padding: 0 var(--gutter) 26px;
    margin-top: -6px;
  }
  .ahero--photo .big {
    font-size: clamp(44px, 12.4vw, 70px);
  }
}

@media (min-width: 768px) {
  .ahero--photo .ahero__photo {
    aspect-ratio: 16 / 9;
  }
  .ahero--photo .ahero__photo img {
    object-position: 50% 30%;
  }
  .ahero--photo .ahero__copy {
    left: 3vw;
    right: auto;
    width: auto;
    margin: 0;
    padding: 0 0 26px;
  }
  .ahero--photo .ahero__copy.container {
    max-width: none;
    padding-inline: 0;
  }
  .ahero--photo .big {
    display: grid;
    font-size: clamp(46px, 4.5vw, 78px);
    line-height: 0.9;
  }
  .ahero--photo .big span {
    display: block;
  }
}


/* The breadcrumb of a result page, top left on the photo */
.ahero__crumb {
  position: absolute;
  left: var(--gutter);
  top: 20px;
  z-index: 2;
  max-width: calc(100% - 2 * var(--gutter));
  text-shadow: 0 1px 4px rgba(0, 40, 50, 0.7), 0 2px 14px rgba(0, 40, 50, 0.5);
}

@media (min-width: 768px) {
  .ahero__crumb {
    left: 3vw;
    top: 40px;
  }
}

/* Hub hero: "Awards & recognition" in white, top left on the photo */
.ahero--photo .ahero__copy {
  top: 28px;
  bottom: auto;
  left: 0;
  right: 0;
  padding: 0 var(--gutter);
  margin: 0 auto;
  position: absolute;
  text-shadow: 0 1px 4px rgba(0, 50, 60, 0.55), 0 2px 18px rgba(0, 50, 60, 0.4);
}

.ahero--photo .big,
.ahero--photo .big span,
.ahero--photo .big .hollow {
  color: var(--white);
}

.ahero--photo .big .hollow {
  -webkit-text-stroke: 0;
}

.ahero--photo .big {
  filter: drop-shadow(0 2px 10px rgba(0, 50, 60, 0.45));
  font-size: clamp(46px, 12.5vw, 76px);
}

@media (max-width: 767px) {
  .ahero--photo .ahero__copy {
    position: absolute;
  }
}

@media (min-width: 768px) {
  .ahero--photo .ahero__copy {
    top: 44px;
    left: 3vw;
    right: auto;
    margin: 0;
    padding: 0;
  }
  .ahero--photo .big {
    font-size: clamp(60px, 6.4vw, 108px);
  }
}


/* Room under the three cards, so the last card does not run into the red section */
.stages {
  padding-bottom: 110px;
}

/* The three medals of a card keep their size and shape; the row may shrink all of them equally, never squeeze one */
.stage__medals span {
  flex: 0 1 auto;
  min-width: 0;
}

.stage__medals img {
  max-width: 100%;
  object-fit: contain;
}


/* ---------- Best Aged Rum: a photo and more information ---------- */
.stage__photo {
  display: block;
  margin: -4px -4px 8px;
}

.stage__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 4px;
}

.finalist__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.finalist__photo {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
}

.finalist__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--red), 12px 12px 0 4px var(--black);
}

.finalist__copy {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.finalist__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 520px;
  padding-block: 18px;
  border-block: 3px solid var(--red);
}

.finalist__facts li {
  display: grid;
  gap: 4px;
  align-content: start;
}

.finalist__facts strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 10vw, 68px);
  line-height: 0.9;
  color: var(--red);
}

.finalist__facts span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .finalist__inner {
    grid-template-columns: 0.8fr 1fr;
    gap: 96px;
  }
}
