:root {
  color-scheme: dark;
  --ivory: #fffaf0;
  --gold: #f5bd65;
  --gold-light: #ffd997;
  --shadow: rgba(15, 0, 2, 0.82);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #210307;
}

body {
  color: var(--ivory);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero__picture,
.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__picture {
  z-index: -2;
}

.hero__image {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 1, 3, 0.55) 0%, rgba(17, 1, 3, 0.16) 49%, transparent 70%);
  pointer-events: none;
}

.content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(49rem, 55vw);
  min-height: 100vh;
  min-height: 100svh;
  padding: max(2rem, env(safe-area-inset-top)) max(2rem, env(safe-area-inset-right)) max(1.7rem, env(safe-area-inset-bottom)) max(2.5rem, env(safe-area-inset-left));
  text-shadow: 0 2px 18px var(--shadow), 0 1px 3px var(--shadow);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.brand__thai {
  color: var(--ivory);
}

.brand__yinda {
  color: var(--gold-light);
}

.brand__domain {
  color: rgba(255, 250, 240, 0.86);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.message {
  align-self: center;
  max-width: 40rem;
  animation: enter 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--gold-light);
  font-size: clamp(0.76rem, 0.95vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.5vw, 5.1rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.statement {
  max-width: 39rem;
  margin: clamp(1.3rem, 2.5vw, 2rem) 0 0;
  color: rgba(255, 250, 240, 0.98);
  font-size: clamp(0.98rem, 1.25vw, 1.24rem);
  font-weight: 600;
  line-height: 1.55;
  text-shadow:
    0 2px 5px rgba(10, 0, 0, 0.92),
    0 5px 22px rgba(10, 0, 0, 0.72);
  text-wrap: pretty;
}

.mobile-break {
  display: none;
}

.attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  color: rgba(255, 250, 240, 0.68);
  font-size: clamp(0.7rem, 0.78vw, 0.82rem);
  letter-spacing: 0.035em;
}

.attribution a {
  color: var(--gold-light);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.attribution a:hover {
  color: #ffe9bf;
}

.attribution a:focus-visible {
  border-radius: 0.18rem;
  outline: 2px solid var(--ivory);
  outline-offset: 0.25rem;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  .hero__image {
    object-position: 50% 50%;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(16, 1, 3, 0.62) 0%, rgba(16, 1, 3, 0.12) 30%, transparent 53%),
      linear-gradient(0deg, rgba(16, 1, 3, 0.68) 0%, transparent 28%);
  }

  .content {
    width: 100%;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.15rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  }

  .brand {
    font-size: clamp(2rem, 10.2vw, 2.8rem);
  }

  .message {
    align-self: start;
    max-width: min(21rem, 88vw);
    margin-top: clamp(1.7rem, 5svh, 3.4rem);
  }

  .eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2rem, 9.1vw, 2.75rem);
  }

  .statement {
    max-width: 20rem;
    margin-top: 0.85rem;
    font-size: clamp(0.84rem, 3.6vw, 0.96rem);
    line-height: 1.42;
  }

  .mobile-break {
    display: block;
  }

  .attribution {
    display: grid;
    gap: 0.22rem;
    max-width: 19rem;
    color: rgba(255, 250, 240, 0.94);
    font-size: clamp(0.65rem, 2.7vw, 0.76rem);
    font-weight: 500;
    line-height: 1.35;
    text-shadow:
      0 1px 4px rgba(10, 0, 0, 0.95),
      0 4px 16px rgba(10, 0, 0, 0.8);
  }
}

@media (max-height: 640px) {
  .content {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .message {
    margin-top: 0.5rem;
  }

  .statement {
    margin-top: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .message {
    animation: none;
  }
}
