:root {
  --ink: #171717;
  --paper: #f7f7f4;
  --white: #ffffff;
  --mist: #d9dde6;
  --teal: #1f8f89;
  --coral: #ed6a5a;
  --yellow: #f2c14e;
  --line: #d9d9d4;
  color-scheme: light;
  font-family: system-ui, "Noto Sans Thai", Tahoma, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4vw;
  color: var(--white);
}

.wordmark {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding-block: 5px;
}

.site-nav a:hover {
  border-bottom-color: var(--white);
}

.hero {
  position: relative;
  min-height: 86svh;
  max-height: 900px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
}

.hero-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms ease;
}

.hero-shot--fuki {
  object-position: 50% 36%;
}

.hero-shot--futo {
  object-position: 50% 34%;
}

.hero:hover .hero-shot:first-child {
  transform: scale(1.015);
}

.hero:hover .hero-shot:last-child {
  transform: scale(1.01);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(12, 12, 12, 0.42);
}

.hero-copy {
  width: min(92vw, 1240px);
  margin-inline: auto;
  padding-top: 29vh;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--teal);
}

.hero h1 {
  max-width: 8ch;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-thai {
  margin: 28px 0 0;
  font-size: 26px;
  font-weight: 750;
  line-height: 1.35;
}

.hero-en {
  max-width: 520px;
  margin: 10px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.primary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 18px;
  border: 2px solid var(--white);
  border-radius: 4px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease;
}

.primary-link:hover {
  background: var(--yellow);
  color: var(--ink);
}

.world-band {
  padding: 88px 4vw 104px;
  background: var(--paper);
}

.section-heading {
  width: min(100%, 1240px);
  margin: 0 auto 42px;
}

.section-heading h2,
.story-copy h2,
.legal h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.18;
  letter-spacing: 0;
}

.character-grid {
  width: min(100%, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.character-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.character-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--mist);
}

.character-card--fuki img,
.character-card--futo img {
  object-position: center 42%;
}

.character-card--world img {
  object-position: 45% 46%;
}

.character-copy {
  min-height: 210px;
  padding: 24px;
}

.character-index {
  margin: 0 0 20px;
  color: var(--coral);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.character-copy h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.character-copy p:last-child {
  margin: 0;
  color: #555552;
  font-size: 15px;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 620px;
  background: var(--white);
}

.story-visual {
  min-height: 620px;
  overflow: hidden;
  background: var(--mist);
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 34%;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 8vw 72px 6vw;
}

.story-copy p:not(.eyebrow) {
  max-width: 460px;
  margin: 24px 0 36px;
  color: #555552;
  font-size: 18px;
}

.story-mark {
  color: var(--yellow);
  font-size: 18px;
  word-spacing: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 56px 4vw;
  background: var(--ink);
  color: var(--white);
}

.wordmark--footer {
  font-size: 34px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  grid-column: 2;
  justify-self: end;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.subpage .site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.subpage .site-nav a:hover {
  border-bottom-color: var(--ink);
}

.legal {
  width: min(92vw, 840px);
  min-height: 62vh;
  margin-inline: auto;
  padding: 88px 0 112px;
}

.legal h1 {
  margin-bottom: 40px;
}

.legal h2 {
  margin: 38px 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.legal p,
.legal li {
  color: #4d4d49;
}

.legal a {
  color: var(--teal);
  text-decoration: underline;
}

.legal-meta {
  margin-top: 54px;
  font-size: 13px;
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 10px;
  font-size: 72px;
  line-height: 1;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    padding: 20px 22px;
  }

  .site-nav {
    gap: 14px;
    font-size: 12px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-media {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-shot--fuki {
    object-position: 48% 36%;
  }

  .hero-shot--futo {
    object-position: 48% 34%;
  }

  .hero-copy {
    width: auto;
    margin: 0;
    padding: 31vh 22px 54px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-thai {
    font-size: 21px;
  }

  .world-band {
    padding: 70px 22px 78px;
  }

  .section-heading h2,
  .story-copy h2,
  .legal h1 {
    font-size: 34px;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    display: grid;
    grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.1fr);
  }

  .character-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .character-copy {
    min-height: 260px;
    padding: 22px;
  }

  .story-band {
    grid-template-columns: 1fr;
  }

  .story-visual {
    min-height: 520px;
  }

  .story-copy {
    padding: 64px 22px 74px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 46px 22px;
  }

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

  .copyright {
    grid-column: 1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-nav a:nth-child(2) {
    display: none;
  }

  .hero-media {
    grid-template-columns: 1fr;
  }

  .hero-shot--fuki {
    display: none;
  }

  .hero-shot--futo {
    object-position: 48% 35%;
  }

  .hero-shade {
    background: rgba(12, 12, 12, 0.35);
  }

  .character-card {
    display: block;
  }

  .character-card img {
    aspect-ratio: 4 / 5;
  }

  .character-copy {
    min-height: 200px;
  }

  .story-visual {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-shot,
  .primary-link {
    transition: none;
  }
}
