*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  font-family: "Anuphan", "Leelawadee UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  background: #7733ff;
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

p,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #24124a;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 16px 6px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 10px 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: #5b22e8;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: inherit;
  font-size: 0.98rem;
  line-height: 1.35;
  text-decoration: none;
}

.nav-links a[aria-current] {
  background: rgba(255, 255, 255, 0.24);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav-links a:focus-visible,
.brand:focus-visible,
.footer a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.footer {
  padding: 72px 20px 40px;
  background: #3d12c4;
  color: #fff;
  text-align: center;
}

.footer-mark {
  margin: 0 0 12px;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 500;
  line-height: 1.3;
}

.footer-legal {
  margin: 0;
  font-size: 1.05rem;
}

.footer p {
  margin: 0.25em 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 18px;
}

.footer-links a {
  color: #fff;
}

body.home ::selection {
  background: #fff;
  color: #3d12c4;
}

@media (max-width: 980px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
    padding: 10px 12px 12px;
  }

  .nav-links {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.92rem;
    white-space: nowrap;
  }
}
