:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.88);
  --panel: rgba(15, 18, 27, 0.08);
  --input-bg: rgba(255, 255, 255, 0.97);
  --input-text: #817d79;
  --button-bg: #a7a39f;
  --button-hover: #a7a39f;
  --message-success: #effff3;
  --message-error: #ffe1e1;
  --hero-content-width: 28rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #d5dde5;
}

body {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: var(--text);
  background: #d5dde5;
}

button,
input {
  font: inherit;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    url("/banner-optimized.jpg") center -74px / cover no-repeat;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(225, 232, 242, 0.025), rgba(27, 32, 41, 0.015)),
    rgba(15, 18, 27, 0.01);
}

.hero__content,
.hero__footer {
  position: relative;
  z-index: 1;
}

.hero__content {
  width: min(100%, 980px);
  padding: 48px 24px 64px;
  display: flex;
  justify-content: center;
  text-align: center;
  animation: fade-up 900ms ease-out both;
}

.hero__panel {
  width: min(100%, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 218px;
  height: 82.05px;
  margin: 0 0 18px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.1));
}

h1 {
  margin: 0;
  font-size: 76px;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 5px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.subtitle {
  margin: 20px 0 22px;
  width: min(100%, var(--hero-content-width));
  font-size: 24px;
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--muted);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.subscribe-form {
  width: min(100%, var(--hero-content-width));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: stretch;
}

.subscribe-form input {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 0;
  outline: none;
  padding: 0 22px;
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 20px;
  font-weight: 400;
}

.subscribe-form input::placeholder {
  color: rgba(129, 125, 121, 0.72);
}

.subscribe-form button {
  height: 52px;
  border: 0;
  border-radius: 0;
  background: var(--button-bg);
  color: var(--text);
  font-size: 20px;
  font-weight: 200;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.subscribe-form button:hover {
  background: var(--button-hover);
}

.subscribe-form button:disabled {
  cursor: wait;
}

.form-message {
  min-height: 1.5rem;
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.form-message.is-success {
  color: var(--message-success);
}

.form-message.is-error {
  color: var(--message-error);
}

.hero__footer {
  position: absolute;
  inset: auto 0 0;
  padding: 0 5vw 5.5vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  animation: fade-up 1100ms ease-out both;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-block:first-child {
  align-items: center;
  text-align: center;
}

.footer-block--right {
  align-items: center;
  text-align: center;
}

.footer-label,
.footer-kicker {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  color: var(--muted);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.footer-label {
  font-weight: 200;
  letter-spacing: 1px;
}

.footer-kicker {
  font-weight: 200;
  letter-spacing: 1px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.socials a:hover,
.shop-row:hover {
  transform: translateY(-2px);
}

.socials img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease;
}

.asos-logo {
  width: auto;
  height: 34px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  html,
  body {
    min-height: 100%;
    background: #d5dde5;
  }

  .hero {
    isolation: isolate;
    padding: 16px;
    min-height: 100dvh;
    min-height: 100svh;
    background: #d5dde5;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("/banner-optimized.jpg") center center / cover no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  .hero__content {
    width: 100%;
    min-height: 100%;
    padding: 28px 12px 180px;
    justify-content: center;
    align-items: center;
  }

  .hero__backdrop {
    background: transparent;
  }

  .hero__panel {
    width: min(100%, 34rem);
    transform: none;
    justify-content: center;
  }

  .brand-logo {
    width: min(180px, 30vw);
    height: auto;
    margin: 0 0 14px;
  }

  h1 {
    font-size: clamp(3.2rem, 9vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: 1.5px;
    font-size: 56px;
    padding-top: 35px;
  }

  .subtitle {
    width: min(100%, 32rem);
    font-size: clamp(1rem, 2.8vw, 1.5rem);
    line-height: 1.2;
    white-space: normal;
  }

  .subscribe-form {
    width: min(100%, 480px);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero__footer {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    padding: 0 16px max(24px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer-block,
  .footer-block--right,
  .shop-row {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 16px 32px;
    background: #d5dde5;
  }

  .hero__backdrop {
    background: transparent;
  }

  .hero__content {
    width: 100%;
    min-height: 0;
    padding: 72px 0 40px;
  }

  .hero__panel {
    position: relative;
    width: 100%;
    max-width: 24rem;
    justify-content: center;
    transform: none;
  }

  .brand-logo {
    width: min(172px, 46vw);
    height: auto;
    margin: 0 0 12px;
  }

  h1 {
    font-size: clamp(1.8rem, 9.8vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: 1px;
    padding-top: 0;
  }

  .subtitle {
    margin: 10px 0 16px;
    width: 100%;
    max-width: 20rem;
    font-size: clamp(0.82rem, 3.9vw, 1rem);
    font-weight: 300;
    line-height: 1.18;
    white-space: normal;
  }

  .subscribe-form input,
  .subscribe-form button {
    height: 46px;
    font-size: 0.95rem;
  }

  .footer-label,
  .footer-kicker {
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .footer-block,
  .shop-row {
    gap: 10px;
  }

  .hero__footer {
    position: relative;
    inset: auto;
    margin-top: auto;
    padding: 12px 0 max(8px, env(safe-area-inset-bottom));
    gap: 18px;
  }

  .socials img {
    width: 28px;
    height: 28px;
  }

  .asos-logo {
    width: auto;
    height: 28px;
  }
}
