* {
  box-sizing: border-box;
}

:root {
  --blue: #0a4b98;
  --text: #646468;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  background: #fbf7ef;
  color: var(--text);
}

.landing {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #fbf7ef;
}

.background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/tanstick-background-v7.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.content {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 45.5%;
  width: min(64vw, 930px);
  transform: translate(-50%, -50%);
  text-align: center;
}

.logo {
  display: block;
  width: clamp(305px, 32.5vw, 532px);
  max-width: 82%;
  height: auto;
  margin: 0 auto clamp(22px, 2.8vh, 34px);
}

h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(16px, 1.48vw, 26px);
  font-weight: 400;
  letter-spacing: clamp(4.5px, .48vw, 8px);
  line-height: 1.3;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(255,255,255,.28);
}

.status {
  margin: clamp(16px, 2.1vh, 27px) 0 0;
  color: #67676b;
  font-size: clamp(16px, 1.34vw, 23px);
  font-weight: 350;
  text-shadow: 0 1px 10px rgba(255,255,255,.4);
}

.contact-block {
  margin-top: clamp(30px, 4vh, 48px);
}

.contact-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 1.8vw, 26px);
  color: #69696d;
}

.contact-caption span {
  width: clamp(60px, 7vw, 108px);
  height: 1px;
  background: rgba(77,77,80,.30);
}

.contact-caption p {
  margin: 0;
  font-size: clamp(14px, 1.04vw, 18px);
  font-weight: 400;
}

.email {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 8px;
  color: var(--blue);
  text-decoration: none;
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 400;
  transition: opacity .18s ease, transform .18s ease;
}

.email:hover {
  opacity: .82;
  transform: translateY(-1px);
}

.email svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(30px, 4.7vh, 58px);
  width: 72%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(86,86,90,.73);
  font-size: clamp(11px, .76vw, 13px);
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(255,255,255,.52);
}

footer p {
  margin: 0;
}

/* Typical laptop: keep everything in one 100% viewport */
@media (max-width: 1440px) and (min-width: 761px) {
  .content {
    top: 44.8%;
    width: min(70vw, 860px);
  }

  .logo {
    width: clamp(300px, 31vw, 470px);
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(15px, 1.42vw, 21px);
    letter-spacing: clamp(4px, .42vw, 6px);
  }

  .status {
    margin-top: 14px;
    font-size: clamp(15px, 1.28vw, 19px);
  }

  .contact-block {
    margin-top: 25px;
  }

  footer {
    bottom: 20px;
  }
}

/* Short desktop/laptop screens such as 1366×768 */
@media (max-height: 800px) and (min-width: 761px) {
  .content {
    top: 43.5%;
  }

  .logo {
    width: clamp(285px, 29vw, 440px);
    margin-bottom: 15px;
  }

  h1 {
    font-size: clamp(14px, 1.32vw, 20px);
  }

  .status {
    margin-top: 11px;
    font-size: clamp(14px, 1.18vw, 18px);
  }

  .contact-block {
    margin-top: 20px;
  }

  .contact-caption p {
    font-size: clamp(13px, .98vw, 16px);
  }

  .email {
    font-size: clamp(17px, 1.4vw, 22px);
  }

  .email svg {
    width: 27px;
    height: 27px;
  }

  footer {
    bottom: 14px;
    font-size: 11px;
  }
}

/* Tablet portrait / compact width */
@media (max-width: 900px) and (min-width: 761px) {
  .background {
    background-position: 57% center;
  }

  .content {
    width: 82vw;
  }

  h1 {
    white-space: normal;
  }
}

/* Phone portrait: dedicated 9:16 artwork */
@media (max-width: 760px) {
  .landing {
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
    padding: 20px 18px 96px;
    background: #fbf7ef;
  }

  .background {
    background-image: url("assets/tanstick-background-mobile-v12.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
  }

  .background::before,
  .background::after {
    display: none;
  }

  .content {
    position: relative;
    z-index: 2;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 520px;
    transform: none;
    margin: 9.0vh auto 0;
    text-align: center;
  }

  .logo {
    width: min(68vw, 315px);
    max-width: 100%;
    margin: 0 auto 24px;
  }

  h1 {
    white-space: normal;
    font-size: clamp(13.5px, 3.8vw, 18px);
    letter-spacing: clamp(2px, .85vw, 3.8px);
    line-height: 1.48;
  }

  .status {
    margin-top: 16px;
    font-size: clamp(14px, 3.9vw, 16px);
    line-height: 1.45;
  }

  .contact-block {
    margin-top: 28px;
  }

  .contact-caption {
    gap: 10px;
  }

  .contact-caption span {
    width: 42px;
  }

  .contact-caption p {
    font-size: 13px;
  }

  .email {
    font-size: clamp(17px, 4.8vw, 21px);
    gap: 9px;
    margin-top: 7px;
  }

  .email svg {
    width: 25px;
    height: 25px;
  }

  footer {
    width: calc(100% - 36px);
    bottom: 17.0vh;
    font-size: 10.5px;
    line-height: 1.5;
  }
}

/* Narrow phones */
@media (max-width: 430px) {
  .content {
    margin-top: 3.5vh;
  }

  .logo {
    width: min(66vw, 285px);
    margin-bottom: 21px;
  }

  h1 {
    font-size: 13.5px;
    letter-spacing: 2px;
  }

  .status {
    font-size: 14px;
  }

  .contact-block {
    margin-top: 25px;
  }

  .contact-caption span {
    width: 31px;
  }

  .email {
    font-size: 17px;
  }
}

/* Landscape phone: favor fit over decorative spacing */
@media (max-height: 500px) and (orientation: landscape) {
  .landing {
    min-height: 100svh;
    padding: 12px 24px 70px;
  }

  .background {
    background-image: url("assets/tanstick-background-v7.webp");
    background-size: cover;
    background-position: center 44%;
  }

  .background::before,
  .background::after {
    display: none;
  }

  .content {
    margin-top: 1vh;
  }

  .logo {
    width: min(38vw, 300px);
    margin-bottom: 10px;
  }

  h1 {
    font-size: 13px;
    letter-spacing: 3px;
    white-space: nowrap;
  }

  .status {
    margin-top: 8px;
    font-size: 13px;
  }

  .contact-block {
    margin-top: 12px;
  }

  .contact-caption p {
    font-size: 12px;
  }

  .email {
    font-size: 15px;
    margin-top: 4px;
  }

  .email svg {
    width: 22px;
    height: 22px;
  }

  footer {
    bottom: 8px;
    font-size: 9px;
  }
}
