/* ==================================================
   HOME PAGE HERO
================================================== */

.hero {
  position: relative;

  width: 100%;
  min-height: 720px;

  padding: 28px 3vw 0;

  overflow: hidden;

  border-bottom: 1px solid #393939;
  background: var(--black);
}


/* Small information above the Sydney heading */

.small-details {
  position: relative;
  z-index: 5;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  margin-bottom: 18px;

  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.small-details > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.small-details > div:nth-child(2) {
  text-align: center;
}

.small-details > div:nth-child(3) {
  text-align: right;
}

.detail-label {
  color: var(--grey);

  font-size: 0.63rem;
  letter-spacing: 0.12em;
}


/* ==================================================
   GIANT SYDNEY HEADING
================================================== */

.title-wrap {
  position: relative;
  z-index: 1;

  width: 100%;

  text-align: center;
}

.title-wrap h1 {
  width: 100%;
  margin: 0;

  color: var(--white);

  font-family:
    "Archivo Black",
    Impact,
    sans-serif;

  font-size: clamp(5rem, 16vw, 16rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.075em;

  white-space: nowrap;
}


/* Green cursive Towle */

.surname {
  position: absolute;

  top: 58%;
  left: 55%;

  z-index: 4;

  margin: 0;

  color: var(--green);

  font-family:
    "Pacifico",
    "Brush Script MT",
    cursive;

  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: 1;

  text-shadow:
    4px 5px 0 var(--black);

  transform:
    translate(-50%, -50%)
    rotate(-5deg);
}


/* ==================================================
   SYDNEY CUT-OUT PHOTO
================================================== */

.sydney-cutout {
  position: absolute;

  left: 6vw;
  bottom: -35px;

  z-index: 3;

  width: clamp(330px, 42vw, 610px);
  height: auto;

  object-fit: contain;

  filter:
    drop-shadow(14px 15px 18px rgba(0, 0, 0, 0.3));
}


/* ==================================================
   HERO DECORATIONS
================================================== */

.hero-decoration {
  position: absolute;

  right: 5vw;
  bottom: 140px;

  z-index: 5;

  display: flex;
  align-items: center;
  gap: 30px;
}

.circle-decoration {
  width: 68px;
  height: 68px;

  display: grid;
  place-items: center;

  border: 2px solid var(--white);
  border-radius: 50%;

  color: var(--green);

  font-size: 1.8rem;
}

.green-squares {
  display: flex;
  gap: 7px;
}

.green-squares span {
  width: 34px;
  height: 34px;

  border-radius:
    4px 9px 5px 8px;

  background: var(--green);
}

.green-squares span:nth-child(2) {
  border-radius:
    9px 3px 8px 5px;
}

.green-squares span:nth-child(3) {
  border-radius:
    5px 10px 4px 7px;
}

.green-squares span:nth-child(4) {
  border-radius:
    8px 5px 10px 3px;
}

.green-squares span:nth-child(5) {
  border-radius:
    3px 8px 6px 10px;
}


/* ==================================================
   HOMEPAGE CONTENT GRID
================================================== */

.memorial-content {
  width: 100%;

  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(260px, 0.75fr);

  gap: 14px;

  padding: 14px;

  background: var(--black);
}

.intro-panel,
.cancer-panel,
.memory-image {
  min-height: 330px;

  border: 1px solid #454545;

  border-radius:
    25px 17px 27px 19px /
    18px 28px 20px 25px;

  overflow: hidden;
}


/* ==================================================
   ABOUT SYDNEY HOMEPAGE PANEL
================================================== */

.intro-panel {
  padding: clamp(28px, 5vw, 70px);

  background: var(--soft-white);
  color: var(--black);
}

.section-label {
  margin: 0 0 20px;

  color: var(--dark-green);

  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.intro-panel h2,
.cancer-panel h2 {
  margin: 0 0 24px;

  font-family:
    "Archivo Black",
    Arial,
    sans-serif;

  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.intro-panel > p:not(.section-label),
.cancer-panel > p:not(.section-label) {
  max-width: 720px;
  margin: 0 0 18px;

  font-size: 1rem;
  line-height: 1.7;
}


/* ==================================================
   CHOLANGIOCARCINOMA HOMEPAGE PANEL
================================================== */

.cancer-panel {
  padding: clamp(28px, 5vw, 60px);

  background: var(--green);
  color: var(--black);
}

.cancer-panel .section-label {
  color: var(--black);
}


/* ==================================================
   HOMEPAGE PANEL LINKS
================================================== */

.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  min-width: min(100%, 320px);

  margin-top: 15px;
  padding: 13px 18px;

  border: 2px solid var(--black);

  border-radius:
    24px 15px 22px 18px /
    17px 26px 16px 24px;

  color: var(--black);

  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.more-link:hover,
.more-link:focus-visible {
  background: var(--black);
  color: var(--white);

  transform: translateY(-3px);
}


/* ==================================================
   HOMEPAGE IMAGE PANELS
================================================== */

.memory-image {
  position: relative;

  margin: 0;
  padding: 0;

  background: var(--panel-black);
}

.memory-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 400ms ease;
}

.memory-image:hover img {
  transform: scale(1.03);
}

.memory-image figcaption {
  position: absolute;

  right: 15px;
  bottom: 15px;

  padding: 9px 14px;

  border: 1px solid rgba(255, 255, 255, 0.75);

  border-radius:
    17px 10px 19px 13px /
    11px 20px 10px 18px;

  background: rgba(16, 16, 16, 0.78);
  color: var(--white);

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  backdrop-filter: blur(5px);
}

.bracelet-image {
  min-height: 420px;
}

.turtle-image {
  min-height: 420px;
}


/* ==================================================
   SOCIAL LINKS STRIP
================================================== */

.social-strip {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 38px 4vw;

  border-top: 1px solid #3d3d3d;
  border-bottom: 1px solid #3d3d3d;

  background: var(--blue);
  color: var(--black);
}

.social-strip > p {
  margin: 0;

  font-family:
    "Archivo Black",
    Arial,
    sans-serif;

  font-size: clamp(1.6rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.social-links a {
  padding: 12px 18px;

  border: 2px solid var(--black);

  color: var(--black);

  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}


/* Each social link gets a different shape */

.social-links a:nth-child(1) {
  border-radius:
    48% 52% 38% 62% /
    57% 39% 61% 43%;

  transform: rotate(-1deg);
}

.social-links a:nth-child(2) {
  border-radius:
    61% 39% 57% 43% /
    41% 62% 38% 59%;

  transform: rotate(2deg);
}

.social-links a:nth-child(3) {
  border-radius:
    39% 61% 46% 54% /
    63% 42% 58% 37%;

  transform: rotate(-2deg);
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--black);
  color: var(--white);

  transform: translateY(-4px) rotate(0deg);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {

  .hero {
    min-height: 650px;
  }

  .title-wrap h1 {
    font-size: 17vw;
  }

  .surname {
    top: 70%;
    left: 60%;
  }

  .sydney-cutout {
    left: 0;

    width: clamp(300px, 58vw, 510px);
  }

  .hero-decoration {
    right: 4vw;
    bottom: 90px;
  }

  .green-squares span {
    width: 25px;
    height: 25px;
  }

  .memorial-content {
    grid-template-columns: 1fr;
  }

  .bracelet-image,
  .turtle-image {
    min-height: 520px;
  }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 620px) {

  .hero {
    min-height: 610px;

    padding: 22px 14px 0;
  }

  .small-details {
    grid-template-columns: 1fr 1fr;

    font-size: 0.6rem;
  }

  .small-details > div:nth-child(2) {
    text-align: right;
  }

  .small-details > div:nth-child(3) {
    display: none;
  }

  .title-wrap {
    margin-top: 24px;
  }

  .title-wrap h1 {
    font-size: 19vw;
    letter-spacing: -0.085em;
  }

  .surname {
    top: 115%;
    left: 62%;

    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .sydney-cutout {
    right: auto;
    bottom: -10px;
    left: 50%;

    width: min(115vw, 500px);

    transform: translateX(-50%);
  }

  .hero-decoration {
    top: 245px;
    right: 16px;
    bottom: auto;

    flex-direction: column;
    gap: 14px;
  }

  .circle-decoration {
    width: 46px;
    height: 46px;

    font-size: 1.2rem;
  }

  .green-squares {
    display: none;
  }

  .memorial-content {
    padding: 9px;
    gap: 9px;
  }

  .intro-panel,
  .cancer-panel {
    padding: 35px 25px;
  }

  .intro-panel h2,
  .cancer-panel h2 {
    font-size: 2.65rem;
  }

  .bracelet-image,
  .turtle-image {
    min-height: 360px;
  }

  .social-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-links {
    justify-content: flex-start;
  }
}