:root {
  color-scheme: light;
  --ink: #382b35;
  --muted: #675965;
  --pink-50: #fff8fa;
  --pink-100: #fff0f4;
  --pink-200: #f8dce6;
  --pink-400: #d96f92;
  --pink-600: #9e2d5a;
  --cream: #fffdf8;
  --pool: #dff5f5;
  --line: #ebd5de;
  --focus: #145aa3;
  --shadow: 0 20px 55px rgba(91, 42, 62, 0.1);
  --radius-large: 30px;
  --radius-medium: 20px;
  --content: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 10% 8%, rgba(255, 255, 255, 0.94), transparent 28rem),
    radial-gradient(ellipse at 95% 30%, rgba(220, 247, 245, 0.68), transparent 25rem),
    linear-gradient(180deg, #fff0f4 0%, #fff9fa 35rem, #fffdf8 100%);
  color: var(--ink);
  font-family: system-ui, "Noto Sans Thai", "Leelawadee UI", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

a {
  color: var(--pink-600);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #772344;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

code {
  border-radius: 0.35rem;
  background: var(--pink-100);
  padding: 0.08rem 0.32rem;
  font-size: 0.94em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

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

.site-shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2rem) 0 calc(3.5rem + env(safe-area-inset-bottom));
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(158, 45, 90, 0.14);
}

.page-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
}

.page-nav a[aria-current="page"] {
  border-color: var(--pink-400);
  background: var(--pink-200);
}

.home-hero,
.page-intro,
.info-panel,
.support-strip,
.document {
  border: 1px solid rgba(235, 213, 222, 0.92);
  border-radius: var(--radius-large);
  background: rgba(255, 253, 248, 0.93);
  box-shadow: var(--shadow);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  min-height: 400px;
  overflow: hidden;
  padding: clamp(1.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse at 80% 100%, rgba(191, 235, 238, 0.72), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 241, 246, 0.95));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--pink-600);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.7rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 1.7rem 0 0.5rem;
  font-size: 1.18rem;
}

p,
ul {
  margin-block: 0 1rem;
}

li + li {
  margin-top: 0.45rem;
}

li::marker {
  color: var(--pink-600);
}

.lede {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.1rem;
  margin-top: 1.5rem;
}

.button-link,
.support-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9537b, #93294f);
  box-shadow: 0 8px 18px rgba(147, 41, 79, 0.17);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button-link:hover,
.support-link:hover {
  background: #772344;
  color: #fff;
}

.text-link {
  display: inline-block;
  padding: 0.55rem 0;
  font-weight: 750;
}

.thai-tagline {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-art {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 270px;
  place-items: center;
}

.art-halo {
  position: absolute;
  width: min(100%, 310px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 43%, rgba(244, 201, 215, 0.58) 65%, rgba(215, 244, 242, 0.4) 100%);
  box-shadow: 0 20px 50px rgba(96, 140, 144, 0.16);
}

.hero-art img {
  position: relative;
  width: min(100%, 320px);
  border-radius: 30px;
  filter: drop-shadow(0 18px 24px rgba(83, 52, 65, 0.16));
}

.art-caption {
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.info-panel {
  margin-top: 1.25rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 1.3rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.15rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: linear-gradient(155deg, #fff 0%, var(--pink-50) 100%);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(91, 42, 62, 0.1);
}

.card-kicker {
  color: var(--pink-600);
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-card h3 {
  margin: 0.55rem 0 0.45rem;
  font-size: 1.3rem;
}

.info-card p {
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  color: var(--pink-600);
  font-weight: 800;
}

.support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  background: linear-gradient(120deg, rgba(223, 245, 245, 0.8), rgba(255, 253, 248, 0.96));
}

.support-strip h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.support-strip p:last-child {
  margin: 0;
  color: var(--muted);
}

.support-strip > div:first-child {
  flex: 1 1 20rem;
  min-width: 0;
}

.support-actions {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

.play-store-link {
  display: inline-flex;
  flex: 0 0 auto;
  width: 180px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  line-height: 0;
}

.play-store-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.play-store-link[href] {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.play-store-link[href]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(62, 36, 49, 0.16);
}

.page-intro {
  padding: clamp(1.35rem, 5vw, 2.8rem);
}

.page-intro h1 {
  max-width: 18ch;
  font-size: clamp(2.15rem, 6vw, 3.5rem);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.meta-line a {
  overflow-wrap: anywhere;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.1rem 0;
}

.quick-links a {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 760;
  text-decoration: none;
}

.document {
  margin-top: 1.1rem;
  padding: clamp(1.35rem, 5vw, 2.65rem);
}

.document-header {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.document-header h2 {
  margin-bottom: 0.5rem;
}

.document-header p:last-child {
  margin-bottom: 0;
}

.document section:first-of-type h3 {
  margin-top: 1.35rem;
}

.document ul {
  padding-left: 1.35rem;
}

.document p:last-child,
.document li:last-child {
  overflow-wrap: anywhere;
}

.availability-note {
  margin: 1.3rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 5px solid #c97836;
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: #fff4e6;
  color: #513720;
}

.deletion-document .document-header .button-link {
  margin-block: 0.25rem;
}

.small-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-top: 2rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.site-footer nav {
  justify-content: center;
  gap: 0.4rem 1rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    min-height: 230px;
  }

  .hero-art img {
    width: min(70vw, 260px);
  }

  .art-halo {
    width: min(72vw, 260px);
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 1rem);
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-nav {
    width: 100%;
  }

  .page-nav a {
    flex: 1 1 auto;
  }

  .info-grid,
  .quick-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero,
  .page-intro,
  .info-panel,
  .support-strip,
  .document {
    border-radius: 22px;
  }

  .home-hero {
    gap: 0.5rem;
    padding: 1.25rem;
  }

  .support-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-link {
    width: 100%;
  }

  .support-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button-link {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: white;
  }

  .skip-link,
  .page-nav,
  .quick-links,
  .hero-actions,
  .support-link,
  .play-store-link {
    display: none;
  }

  .home-hero,
  .page-intro,
  .info-panel,
  .support-strip,
  .document {
    border: 0;
    box-shadow: none;
  }
}
