/* =========================================================
   STRANGER'S BOOK — สำนักพิมพ์ของคนแปลกหน้า
   Static site stylesheet · no build step required
   Palette taken from the brand mark: amber #FDC936 on ink #231F20
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; }

ul[class] { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* brand */
  --ink:        #231F20;
  --ink-soft:   #332E2F;
  --ink-line:   rgba(35, 31, 32, .16);
  --amber:      #FDC936;
  --amber-deep: #E0A800;
  --paper:      #F4F1EA;
  --paper-warm: #EBE5D9;
  --white:      #FFFFFF;
  --blood:      #A32B22;

  /* on-dark */
  --on-dark:      #F4F1EA;
  --on-dark-mute: rgba(244, 241, 234, .62);
  --dark-line:    rgba(244, 241, 234, .18);

  /* on-light */
  --on-light:      #231F20;
  --on-light-mute: rgba(35, 31, 32, .66);

  /* type */
  --display: 'Anton', 'Kanit', 'Trebuchet MS', sans-serif;
  --thai-display: 'Kanit', 'Anton', sans-serif;
  --body: 'IBM Plex Sans Thai', 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
  --step-0:  clamp(.9375rem, .9rem + .2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  --step-2:  clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
  --step-3:  clamp(1.6875rem, 1.35rem + 1.5vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.6rem + 3vw, 4.25rem);
  --step-5:  clamp(2.375rem, 1.35rem + 4.6vw, 5.5rem);

  /* layout */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 2px;

  --shadow-hard: 10px 10px 0 var(--ink);
  --shadow-hard-amber: 10px 10px 0 var(--amber);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.85;
  color: var(--on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--thai-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--amber); color: var(--ink); }

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

/* ---------- 4. Layout helpers ---------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.wrap--narrow { width: min(100% - var(--gutter) * 2, var(--wrap-narrow)); }

.section { padding-block: var(--section-y); }

.section--ink {
  background: var(--ink);
  color: var(--on-dark);
}

.section--amber {
  background: var(--amber);
  color: var(--ink);
}

.section--warm { background: var(--paper-warm); }

.stack > * + * { margin-top: 1.1em; }

/* ---------- 5. Shared type pieces ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--amber-deep);
}

.section--ink .eyebrow { color: var(--amber); }
.section--amber .eyebrow { color: var(--ink); }

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: currentColor;
}

.title-xl { font-size: var(--step-4); }
.title-lg { font-size: var(--step-3); }
.title-md { font-size: var(--step-2); }

.lede {
  font-size: var(--step-1);
  line-height: 1.8;
  color: var(--on-light-mute);
}

.section--ink .lede { color: var(--on-dark-mute); }

.muted { color: var(--on-light-mute); }
.section--ink .muted { color: var(--on-dark-mute); }

.latin { font-family: var(--display); letter-spacing: .02em; font-weight: 400; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--amber);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  box-shadow: none;
  color: inherit;
}

.btn--ghost:hover {
  transform: none;
  background: var(--ink);
  color: var(--on-dark);
}

.section--ink .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }

.btn--on-dark { border-color: var(--amber); box-shadow: 5px 5px 0 rgba(253, 201, 54, .35); }

.btn--lg { padding: 1.05rem 2rem; font-size: var(--step-1); }

.btn--block { display: flex; justify-content: center; width: 100%; }

.link-underline {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 1px;
  font-weight: 600;
  transition: background-color .16s ease;
}

.link-underline:hover { background: var(--amber); }

/* ---------- 7. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid var(--dark-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand__mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--amber);
}

.brand__tag {
  display: block;
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.4;
  margin-top: .18rem;
  color: var(--on-dark-mute);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav a {
  position: relative;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .02em;
  padding-block: .35rem;
  color: var(--on-dark);
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav a[aria-current="page"] { color: var(--amber); }

.nav__cta {
  padding: .5rem 1.05rem !important;
  border: 2px solid var(--amber);
  color: var(--amber) !important;
}

.nav__cta::after { display: none; }

.nav__cta:hover { background: var(--amber); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--dark-line);
  align-items: center;
  justify-content: center;
  color: var(--amber);
}

.nav-toggle svg { width: 1.4rem; height: 1.4rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    background: var(--ink);
    border-bottom: 2px solid var(--amber);
    transform: translateY(-120%);
    transition: transform .28s ease;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
  }

  .nav[data-open="true"] { transform: translateY(0); }

  .nav a {
    padding: .95rem 0;
    font-size: var(--step-0);
    border-bottom: 1px solid var(--dark-line);
  }

  .nav a::after { display: none; }

  .nav__cta {
    margin-top: 1rem;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid var(--amber) !important;
  }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .26;
  filter: grayscale(1) contrast(1.15);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 20% 30%, transparent, rgba(35, 31, 32, .82) 78%),
    linear-gradient(180deg, rgba(35, 31, 32, .55), rgba(35, 31, 32, .95));
}

.hero__inner {
  padding-block: clamp(5rem, 13vw, 9.5rem);
  max-width: 52rem;
}

.hero h1 {
  font-size: var(--step-5);
  line-height: 1.14;
  margin-top: 1.4rem;
  letter-spacing: -.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
  white-space: nowrap;
}

/* Thai has no spaces, so long headings can break in awkward places.
   .nb keeps a phrase on one line — only use it on phrases short enough to fit. */
.nb { white-space: nowrap; }


.hero__sub {
  margin-top: 1.6rem;
  font-size: var(--step-1);
  color: var(--on-dark-mute);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--dark-line);
}

.hero__meta div { min-width: 7rem; }

.hero__meta dt {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}

.hero__meta dd {
  margin: .3rem 0 0;
  font-family: var(--thai-display);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
}

/* page hero (inner pages) */
.page-hero {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-bottom: 6px solid var(--amber);
}

.page-hero h1 {
  font-size: var(--step-4);
  margin-top: 1.1rem;
}

.page-hero p {
  margin-top: 1.1rem;
  max-width: 44rem;
  color: var(--on-dark-mute);
  font-size: var(--step-1);
}

/* ---------- 9. Section header ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-head__text { max-width: 48rem; }

.section-head h2 { margin-top: 1rem; }

.section-head p { margin-top: .9rem; color: var(--on-light-mute); }

.section--ink .section-head p { color: var(--on-dark-mute); }

/* ---------- 10. Book cards ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--ink);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.book-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--amber);
}

.book-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-warm);
  border-bottom: 2px solid var(--ink);
}

.book-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.book-card:hover .book-card__media img { transform: scale(1.04); }

.book-card__flag {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--amber);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: .3rem .85rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}

.book-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}

.book-card__title {
  font-size: var(--step-1);
  line-height: 1.4;
}

.book-card__en {
  font-family: var(--display);
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--on-light-mute);
  text-transform: uppercase;
}

.book-card__excerpt {
  font-size: var(--step--1);
  color: var(--on-light-mute);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card__foot {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed var(--ink-line);
}

.price {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .02em;
  color: var(--ink);
}

.price small {
  font-family: var(--body);
  font-size: .75rem;
  font-weight: 500;
  color: var(--on-light-mute);
  letter-spacing: 0;
}

.book-card__more {
  font-size: var(--step--1);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.book-card__more svg { width: 1rem; height: 1rem; }

/* ---------- 11. Manifesto / quote ---------- */
.manifesto {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: center;
}

.quote-block {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 2px solid currentColor;
}

.quote-block::before {
  content: "\201C";
  position: absolute;
  top: -.15em;
  left: .3em;
  font-family: var(--display);
  font-size: 5rem;
  line-height: 1;
  color: var(--amber);
}

.quote-block p {
  font-family: var(--thai-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.6;
  position: relative;
}

.quote-block cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}

.pull-quote {
  font-family: var(--thai-display);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  max-width: 38rem;
  margin-inline: auto;
}

.pull-quote span { color: var(--amber); }

/* ---------- 12. Value / feature list ---------- */
.feature-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.feature {
  padding-top: 1.5rem;
  border-top: 3px solid var(--amber);
}

.feature__no {
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--amber);
  display: block;
  margin-bottom: .6rem;
}

.feature h3 { font-size: var(--step-1); margin-bottom: .5rem; }

.feature p { font-size: var(--step--1); line-height: 1.8; color: var(--on-light-mute); }

.section--ink .feature p { color: var(--on-dark-mute); }

/* ---------- 13. Product page ---------- */
.product {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
}

.gallery__main {
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-hard-amber);
  overflow: hidden;
}

.gallery__main img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper-warm);
}

.gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.gallery__thumb {
  flex: 1 1 0;
  min-width: 3rem;
  max-width: 6rem;
  height: 4.25rem;
  border: 2px solid var(--ink-line);
  padding: 0;
  overflow: hidden;
  background: var(--white);
  transition: border-color .16s ease, transform .16s ease;
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumb:hover { transform: translateY(-2px); }

.gallery__thumb[aria-selected="true"] {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--amber);
}

.product__info { position: sticky; top: 6rem; }

@media (max-width: 900px) {
  .product__info { position: static; }
}

.product__title { font-size: var(--step-3); margin-top: .9rem; }

.product__en {
  font-family: var(--display);
  font-size: var(--step-1);
  letter-spacing: .05em;
  color: var(--on-light-mute);
  margin-top: .5rem;
  text-transform: uppercase;
}

.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

.tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border: 1px solid var(--ink-line);
  background: var(--white);
}

.tag--amber { background: var(--amber); border-color: var(--ink); }

.product__price {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1;
  margin-top: 1.75rem;
  color: var(--ink);
}

.product__price small {
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--on-light-mute);
  letter-spacing: 0;
  margin-left: .5rem;
}

/* variant picker */
.variants { margin-top: 1.75rem; }

.variants__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-light-mute);
  display: block;
  margin-bottom: .85rem;
}

.variant {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  width: 100%;
  text-align: left;
  padding: .95rem 1.1rem;
  border: 2px solid var(--ink-line);
  background: var(--white);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.variant + .variant { margin-top: .7rem; }

.variant:hover { border-color: var(--ink); }

.variant[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--amber);
}

.variant__dot {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .45rem;
  position: relative;
}

.variant[aria-pressed="true"] .variant__dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--ink);
  border-radius: 50%;
}

.variant__text { flex: 1; min-width: 0; }

.variant__name { font-weight: 600; line-height: 1.55; font-size: var(--step-0); }

.variant__note {
  display: block;
  font-size: var(--step--1);
  color: var(--on-light-mute);
  margin-top: .2rem;
  line-height: 1.6;
}

.variant__price {
  font-family: var(--display);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: .25rem;
}

.product__actions {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 1.75rem;
}

.product__note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--paper-warm);
  border-left: 4px solid var(--amber);
  font-size: var(--step--1);
  line-height: 1.75;
}

/* long-form product body */
.prose { max-width: 46rem; }

.prose > * + * { margin-top: 1.35em; }

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.5em;
  padding-top: 1.5rem;
  border-top: 3px solid var(--amber);
}

.prose h3 { font-size: var(--step-1); margin-top: 2em; }

.prose p { line-height: 1.95; }

.prose img { border: 2px solid var(--ink); width: 100%; }

.prose figure { margin: 2.5em 0; }

.prose figcaption {
  margin-top: .75rem;
  font-size: var(--step--1);
  color: var(--on-light-mute);
}

.prose blockquote {
  border-left: 4px solid var(--amber);
  padding-left: 1.5rem;
  font-family: var(--thai-display);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.7;
}

.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }

.video-frame {
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow-hard-amber);
}

.video-frame video { width: 100%; height: auto; display: block; }

/* volume cards (Warren) */
.vol-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.vol {
  background: var(--white);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.vol img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}

.vol__body { padding: 1.4rem 1.5rem 1.65rem; }

.vol__no {
  font-family: var(--display);
  font-size: .85rem;
  letter-spacing: .16em;
  color: var(--amber-deep);
}

.vol h3 { font-size: var(--step-1); margin: .4rem 0 .75rem; }

.vol p { font-size: var(--step--1); color: var(--on-light-mute); line-height: 1.8; }

/* ---------- 14. Submit / form ---------- */
.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.field { display: flex; flex-direction: column; gap: .5rem; }

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .04em;
}

.field label span { color: var(--blood); }

.field input,
.field textarea,
.field select {
  padding: .8rem 1rem;
  border: 2px solid var(--ink-line);
  background: var(--white);
  font-size: var(--step-0);
  transition: border-color .16s ease;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--ink); outline-offset: 1px; }

.field textarea { min-height: 9rem; resize: vertical; line-height: 1.8; }

.field__hint { font-size: .78rem; color: var(--on-light-mute); }

/* ---------- 15. Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.step {
  counter-increment: step;
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--ink);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1rem;
  left: 1.35rem;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  background: var(--amber);
  border: 2px solid var(--ink);
  padding: .3rem .6rem;
  color: var(--ink);
}

.step h3 { font-size: var(--step-1); margin-bottom: .5rem; }

.step p { font-size: var(--step--1); color: var(--on-light-mute); line-height: 1.8; }

/* ---------- 16. Contact channels ---------- */
.channel-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.channel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}

.channel:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--amber); }

.channel__icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--amber);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.channel__icon svg { width: 1.4rem; height: 1.4rem; }

.channel h3 { font-size: var(--step-0); margin-bottom: .2rem; }

.channel p { font-size: var(--step--1); color: var(--on-light-mute); line-height: 1.6; }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

.footer-top {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  /* ให้คอลัมน์แบรนด์มีความกว้างขั้นต่ำ ไม่งั้นบนจอ ~1024px
     มันจะถูกคอลัมน์ลิงก์บีบจนเหลือ ~250px แล้วข้อความตัดถี่มาก */
  grid-template-columns: minmax(18rem, 2fr) repeat(auto-fit, minmax(8rem, 1fr));
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--dark-line);
}

/* บนจอแคบ คอลัมน์แบรนด์จะถูกบีบจนข้อความตัดทุก 2 คำ
   จึงให้แบรนด์กินเต็มแถว แล้วปล่อยคอลัมน์ลิงก์ไหลเป็นแถวของตัวเอง */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
    gap: 2.75rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 34rem;
  }

  .footer-brand p { max-width: none; }
}

.footer-brand__name {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--amber);
  letter-spacing: .04em;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 33rem;
  color: var(--on-dark-mute);
  font-size: var(--step--1);
  line-height: 1.85;
}

.footer-col h4 {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
  font-family: var(--body);
  font-weight: 700;
}

/* ul ใน footer ไม่มี class จึงไม่โดน reset `ul[class]` ด้านบน — ต้องเคลียร์เอง */
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  text-decoration: none;
  font-size: var(--step--1);
  color: var(--on-dark-mute);
  transition: color .16s ease;
}

.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: .78rem;
  color: var(--on-dark-mute);
}

.footer-bottom p { margin: 0; }

.social {
  display: flex;
  gap: .6rem;
}

.social a {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--dark-line);
  color: var(--on-dark);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.social a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }

.social svg { width: 1.15rem; height: 1.15rem; }

/* ---------- 18. Misc ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: var(--step--1);
  color: var(--on-dark-mute);
  align-items: center;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span[aria-hidden] { opacity: .5; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: .75rem 1.25rem;
  font-weight: 700;
}

.skip-link:focus { left: 1rem; top: 1rem; }

.divider-rule {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 24px);
  opacity: .28;
}

.ticket {
  background: var(--amber);
  border: 2px solid var(--ink);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-hard);
  text-align: center;
}

.ticket h2 { font-size: var(--step-3); }

.ticket p { margin-top: 1rem; max-width: 38rem; margin-inline: auto; }

.ticket .btn { margin-top: 2rem; background: var(--ink); color: var(--amber); }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* print */
@media print {
  .site-header, .site-footer, .hero__bg, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* price fallback when a variant has no fixed price */
.price-ask {
  font-family: var(--body);
  font-size: .42em;
  font-weight: 600;
  letter-spacing: 0;
}
