@font-face {
  font-family: Kanit;
  src: url("assets/kanit-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Kanit;
  src: url("assets/kanit-thai-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("assets/noto-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("assets/noto-thai.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  color-scheme: light;
  --paper: #fff8ec;
  --white-paper: #fffcf5;
  --ink: #25182f;
  --muted: #57495d;
  --violet: #592da6;
  --violet-deep: #341960;
  --lavender: #e8d9f9;
  --yellow: #ffc554;
  --rule: 2px solid var(--ink);
  --title-font: Kanit, "Noto Sans Thai", Tahoma, sans-serif;
  --body-font: "Noto Sans Thai", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.75 var(--body-font);
}

h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--title-font);
  font-weight: 600;
  line-height: 1.19;
}

h2 { font-size: clamp(2.15rem, 4.2vw, 3.8rem); }
h3 { font-size: 1.6rem; }

a { color: inherit; }
a, summary { -webkit-tap-highlight-color: #ffc55460; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 5px;
}

img { display: block; max-width: 100%; }
svg { display: block; flex: none; width: 1.2rem; height: 1.2rem; }
section[id] { scroll-margin-top: 1rem; }

.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: min(75rem, 100% - 6rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .6rem 1rem;
  background: var(--yellow);
  border: var(--rule);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.masthead {
  border-bottom: var(--rule);
  background: var(--white-paper);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.6rem;
  padding-block: .75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.55rem;
  height: 2.55rem;
  color: var(--yellow);
  background: var(--violet);
  border: var(--rule);
  border-radius: .28rem;
  box-shadow: 2px 2px var(--ink);
  transform: rotate(-5deg);
}

.brand-icon svg { width: 1.65rem; height: 1.65rem; }
.brand-type { display: grid; line-height: 1.1; }
.brand-type strong { font: 600 1.12rem/1.1 var(--title-font); letter-spacing: .025em; }
.brand-type small { margin-top: .28rem; color: var(--violet); font-size: .59rem; font-weight: 700; letter-spacing: .21em; }

.main-nav { display: flex; gap: clamp(1rem, 3vw, 2.35rem); }
.main-nav a { padding-block: .5rem; font-size: .93rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: .35em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: fit-content;
  min-height: 3.25rem;
  padding: .65rem 1.1rem;
  border: var(--rule);
  background: var(--violet);
  color: white;
  box-shadow: 4px 4px var(--ink);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px var(--ink); background: var(--violet-deep); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px var(--ink); }
.button-small { min-height: 2.75rem; padding: .55rem .85rem; font-size: .9rem; box-shadow: 3px 3px var(--ink); white-space: nowrap; }
.button-small svg { width: 1rem; height: 1rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 4.6vw, 4.6rem);
  padding-block: clamp(3.1rem, 5vw, 5rem) 3.2rem;
}

.hero-copy { padding-bottom: 1.5rem; }

.issue-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem .65rem;
  background: var(--yellow);
  border: var(--rule);
  font-weight: 700;
  font-size: .92rem;
  transform: rotate(-2deg);
}

.issue-label svg { width: .95rem; height: .95rem; }

h1 {
  margin-top: 1.35rem;
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  line-height: 1.13;
}

h1 span {
  display: table;
  color: var(--violet);
  background: linear-gradient(transparent 75%, #ffc55480 75%, #ffc55480 91%, transparent 91%);
}

.hero-description {
  max-width: 29rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.8;
}

.hero-description strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.65rem; margin-top: 1.8rem; }
.button-hero { min-height: 3.5rem; padding-inline: 1.2rem; }

.text-action {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  width: fit-content;
  color: var(--violet);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.text-action:hover { color: var(--violet-deep); text-decoration-thickness: 2px; }

.cover { min-width: 0; }

.cover-art {
  position: relative;
  border: 3px solid var(--ink);
  background: var(--lavender);
  box-shadow: 8px 8px var(--ink);
}

.cover-art img { width: 100%; height: auto; }

.cover-issue {
  position: absolute;
  top: -.92rem;
  right: -.7rem;
  padding: .32rem .68rem;
  color: var(--white-paper);
  background: var(--violet);
  border: var(--rule);
  font: 600 .94rem/1.2 var(--title-font);
  letter-spacing: .07em;
  transform: rotate(6deg);
}

.speech {
  position: absolute;
  top: 14%;
  right: 5.5%;
  padding: .55rem .95rem;
  border: var(--rule);
  border-radius: 42% 46% 44% 44% / 48% 48% 48% 44%;
  background: var(--white-paper);
  box-shadow: 3px 4px var(--ink);
  font: 600 clamp(.84rem, 1.6vw, 1.32rem)/1.28 var(--title-font);
  text-align: center;
  transform: rotate(5deg);
}

.speech::before {
  content: "";
  position: absolute;
  left: -.45rem;
  bottom: -.07rem;
  width: 1.2rem;
  height: .8rem;
  background: var(--white-paper);
  border-bottom: var(--rule);
  border-left: var(--rule);
  transform: skewX(-35deg) rotate(-20deg);
}

.cover-credit {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.05rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.cover-credit-line { flex: 1; height: 1px; background: #82728c; opacity: .6; }
.cover-credit [lang="en"] { font-size: .67rem; letter-spacing: .09em; }

.story-section {
  padding-block: clamp(2.8rem, 5vw, 4.7rem);
  border-block: var(--rule);
  background:
    radial-gradient(circle at 84% 16%, #fff8ecac, transparent 30%),
    radial-gradient(circle, #592da61c 1px, transparent 1.2px) 0 0 / 8px 8px,
    #f0e5fc;
}

.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 1.3rem 2.5rem;
  margin-bottom: 1.85rem;
}

.section-head > p { max-width: 27rem; color: var(--muted); margin-bottom: .2rem; }

.kicker {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .65rem;
  color: var(--violet);
  font-size: .92rem;
  font-weight: 700;
}

.kicker span {
  display: inline-grid;
  min-width: 1.85rem;
  min-height: 1.65rem;
  place-items: center;
  padding: 0 .25rem;
  background: var(--violet);
  color: white;
  font: 600 .85rem/1 var(--title-font);
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.comic-panel {
  min-width: 0;
  border: var(--rule);
  background: var(--white-paper);
  box-shadow: 4px 4px var(--ink);
}

.panel-image {
  position: relative;
  aspect-ratio: 2 / 1;
  border-bottom: var(--rule);
  overflow: hidden;
  background: var(--lavender);
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--crop, 0%);
}

.panel-second { --crop: 50%; }
.panel-third { --crop: 100%; }

.panel-number {
  position: absolute;
  inset: auto auto .55rem .55rem;
  padding: .18rem .5rem;
  border: var(--rule);
  background: var(--yellow);
  color: var(--ink);
  font: 600 .86rem/1.2 var(--title-font);
}

.panel-text { padding: 1.2rem 1.2rem 1.35rem; }
.panel-text h3 { margin-bottom: .6rem; }
.panel-text p { color: var(--muted); font-size: .96rem; }
.panel-text .dialogue { margin-bottom: .65rem; padding-left: .7rem; border-left: 3px solid var(--yellow); color: var(--violet-deep); font-weight: 700; }
.story-note { margin-top: 1.25rem; color: var(--muted); font-size: .82rem; }

.program {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  align-items: center;
  gap: 2.25rem clamp(2rem, 8vw, 7rem);
  padding-block: clamp(3.25rem, 6.5vw, 6rem);
}

.program-main > p:not(.kicker) { max-width: 26rem; margin-top: .9rem; color: var(--muted); }
.program-main .text-action { margin-top: .75rem; }

.program-ticket {
  border: var(--rule);
  background: var(--white-paper);
  box-shadow: 6px 6px var(--ink);
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1.15rem;
  background: var(--yellow);
  border-bottom: 2px dashed var(--ink);
  font: 600 1.05rem/1.2 var(--title-font);
  letter-spacing: .08em;
}

.ticket-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.15rem;
  padding: clamp(1rem, 2.6vw, 2rem);
}

.ticket-duration {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 6rem;
  min-height: 7rem;
  padding: .65rem;
  border: var(--rule);
  color: var(--violet-deep);
  background: var(--lavender);
  font: 600 1.15rem/1.15 var(--title-font);
}

.ticket-duration strong { font-size: clamp(3.2rem, 5.5vw, 5rem); font-weight: 600; line-height: .95; }
.ticket-body h3 { margin-bottom: .4rem; }
.ticket-body p { color: var(--muted); font-size: .95rem; }
.ticket-body p + p { margin-top: .35rem; }

.faq-section {
  padding-block: clamp(2.8rem, 5vw, 4.75rem);
  background: #ffefd0;
  border-block: var(--rule);
}

.faq-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 1.75rem 3.2rem;
}

.faq-list { border-top: var(--rule); }
.faq-list details { border-bottom: var(--rule); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.65rem;
  padding: .85rem .1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  background:
    linear-gradient(var(--ink), var(--ink)) center / .67rem 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px .67rem no-repeat,
    var(--yellow);
  border: var(--rule);
}

.faq-list details[open] summary::after { background-size: .67rem 2px, 0 0, auto; }
.faq-list summary:hover { color: var(--violet); }
.faq-list details p { padding: 0 2.15rem .95rem .1rem; color: var(--muted); overflow-wrap: anywhere; }
.faq-list details a { color: var(--violet); font-weight: 600; text-underline-offset: .2em; }

.apply { padding-block: clamp(2.9rem, 6vw, 5.25rem); }

.apply-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem 3.5rem;
  padding: clamp(1.65rem, 5vw, 3.8rem);
  border: var(--rule);
  color: white;
  background:
    radial-gradient(circle, #fff8ec28 1px, transparent 1.2px) 0 0 / 7px 7px,
    linear-gradient(113deg, #592da6, #341960 67%);
  box-shadow: 7px 7px var(--ink);
}

.apply-heading h2 { font-size: clamp(2.75rem, 6vw, 5rem); }
.next-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .65rem;
  padding: .18rem .65rem;
  background: var(--yellow);
  border: var(--rule);
  color: var(--ink);
  font-weight: 700;
  transform: rotate(-3deg);
}

.next-label svg { width: .95rem; height: .95rem; }
.apply-copy { display: grid; align-items: start; justify-items: start; gap: .75rem; }
.apply-copy p { max-width: 25rem; color: #f7eeff; font-size: 1.06rem; }
.button-yellow { margin-top: .3rem; background: var(--yellow); color: var(--ink); }
.button-yellow:hover { background: #ffdc86; }
.apply-card :focus-visible { outline-color: var(--yellow); }

.footer { border-top: var(--rule); background: var(--white-paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; padding-block: 1.5rem; }
.footer-brand { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; font: 600 1.05rem/1.1 var(--title-font); text-decoration: none; }
.footer-brand svg { color: var(--violet); width: 1.05rem; height: 1.05rem; }
.footer-brand span { color: var(--violet); font-size: .65rem; letter-spacing: .09em; }
.footer p { margin-top: .2rem; color: var(--muted); font-size: .8rem; }
.top-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; white-space: nowrap; font-size: .86rem; text-underline-offset: .22em; }
.top-link svg { width: .95rem; height: .95rem; }

@media (max-width: 64rem) {
  .container { width: min(75rem, 100% - 4rem); }
  .hero { gap: 2rem; }
  .panel-text { padding-inline: .9rem; }
}

@media (max-width: 50rem) {
  .main-nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 2.7rem 2.6rem; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(3.1rem, 8.5vw, 4.6rem); }
  .hero-description { max-width: 33rem; }
  .cover { width: min(100%, 38rem); }
  .speech { font-size: clamp(.88rem, 2.6vw, 1.35rem); }
  .section-head { grid-template-columns: 1fr; gap: .55rem; }
  .comic-grid { gap: .8rem; }
  .program { gap: 1.75rem; }
  .ticket-body { grid-template-columns: 1fr; }
  .ticket-duration { grid-auto-flow: column; align-items: baseline; justify-content: start; gap: .5rem; min-height: auto; }
}

@media (max-width: 38rem) {
  .container { width: calc(100% - 2.35rem); }
  .masthead-inner { gap: .6rem; min-height: 4.3rem; }
  .brand { gap: .48rem; }
  .brand-icon { width: 2.12rem; height: 2.12rem; }
  .brand-icon svg { width: 1.3rem; height: 1.3rem; }
  .brand-type strong { font-size: .91rem; }
  .brand-type small { font-size: .52rem; letter-spacing: .16em; }
  .button-small { padding-inline: .62rem; font-size: .8rem; gap: .35rem; }
  .hero { gap: 1.9rem; }
  h1 { margin-top: 1.1rem; font-size: clamp(2.65rem, 10.3vw, 3.75rem); }
  .hero-description { margin-top: .95rem; }
  .hero-actions { margin-top: 1.25rem; gap: .75rem 1.25rem; }
  .button-hero { min-height: 3.05rem; }
  .cover-art { box-shadow: 5px 5px var(--ink); }
  .cover-issue { right: -.35rem; font-size: .8rem; }
  .speech { top: 11%; right: 4%; padding: .4rem .72rem; }
  .comic-grid, .program, .faq-layout, .apply-card { grid-template-columns: minmax(0, 1fr); }
  .comic-grid { gap: 1.1rem; }
  .panel-text { padding: 1rem; }
  .ticket-body { grid-template-columns: auto 1fr; align-items: start; }
  .ticket-duration { grid-auto-flow: row; align-items: center; justify-content: center; min-width: 4.5rem; }
  .apply-card { gap: 1.15rem; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 22rem) {
  .masthead-inner { gap: .4rem; }
  .brand-type strong { font-size: .8rem; }
  .button-small { padding-inline: .45rem; }
  .ticket-body { grid-template-columns: minmax(0, 1fr); }
  .ticket-duration { grid-auto-flow: column; align-items: baseline; justify-content: start; }
}

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