@font-face { font-family: AXEditorial; src: url('assets/editorial.otf') format('opentype'); font-display: swap; }
@font-face { font-family: AXSans; src: url('assets/sans.otf') format('opentype'); font-display: swap; }
@font-face { font-family: AXThai; src: url('assets/thai.ttf') format('truetype'); font-display: swap; unicode-range: U+0E00-0E7F; }

:root {
  --ink: #102e46;
  --blue: #22669b;
  --body: #547089;
  --paper: #f4f8fc;
  --line: #c0d3e3;
  --gutter: 20px;
  --serif: AXEditorial, Georgia, serif;
  --sans: AXSans, AXThai, Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: #e8eff5; font: 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #2b79ad; outline-offset: 5px; }
::selection { background: #c8e2f4; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 16px; left: 16px; padding: 12px 18px; background: white; z-index: 20; opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }
.site-shell { width: 100%; max-width: 1280px; margin: auto; overflow: clip; background: radial-gradient(ellipse at 70% 7%, #e6eef6, transparent 40%), var(--paper); }
.site-header, .hero, .brands-section, .company-section { position: relative; }
.site-header::after, .hero::after, .brands-section::after, .company-section::after { content: ''; position: absolute; bottom: 0; left: calc(var(--gutter) / 2); right: calc(var(--gutter) / 2); height: 1px; background: var(--line); }
.site-header { z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px var(--gutter); }
.brand { display: inline-flex; flex-shrink: 0; line-height: 1; }
.brand-wordmark { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font: 600 26px/1.05 var(--sans); letter-spacing: .04em; white-space: nowrap; }
.brand-name > span { color: var(--blue); font-size: 30px; font-weight: 400; }
.brand-caption { font-size: 13px; line-height: 1.3; color: var(--body); letter-spacing: .045em; }
.header-controls { display: flex; align-items: center; gap: 4px; }
.language { display: flex; align-items: center; gap: 2px; }
.language button { min-width: 44px; min-height: 44px; padding: 6px; border: 0; background: transparent; color: var(--body); font-size: 16px; cursor: pointer; }
.language button[aria-pressed=true] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.js .menu-toggle { display: grid; place-items: center; }
.menu-icon { display: flex; flex-direction: column; gap: 6px; width: 22px; }
.menu-icon i { height: 1.5px; background: var(--ink); transition: transform .2s ease; }
.menu-toggle[aria-expanded=true] .menu-icon i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded=true] .menu-icon i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.navigation { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px var(--gutter) 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px #15344b10; }
.js .navigation { display: none; }
.js .navigation.is-open { display: flex; }
.navigation a { min-height: 44px; padding: 10px 0; font-size: 17px; }
.nav-contact { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 9px 18px; border: 1px solid #94afc4; border-radius: 28px; font-size: 16px; line-height: 1.4; transition: background .2s, color .2s; }
.navigation .nav-contact { justify-content: space-between; padding: 10px 18px; }
.nav-contact > span:last-child { font-size: 23px; }
.nav-contact:hover { background: #e8f0f7; color: var(--blue); }

.hero { display: grid; gap: 22px; padding: 30px var(--gutter) 24px; }
.eyebrow { color: var(--blue); font-size: 16px; line-height: 1.5; letter-spacing: .07em; }
.hero .eyebrow { margin-bottom: 20px; font-size: 16px; letter-spacing: 0; }
.hero h1 { font: 400 clamp(36px, 9.3vw, 44px)/1.08 var(--serif); letter-spacing: -.035em; }
.hero h1 > span { display: block; }
.hero-description { max-width: 440px; margin-top: 23px; color: var(--body); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 52px; padding: 12px 22px; border-radius: 28px; font-size: 16px; line-height: 1.4; transition: background .2s, box-shadow .2s; }
.button-primary { color: white; background: linear-gradient(100deg, #144464, #246da0); box-shadow: 0 5px 15px #205a7c14; }
.button-primary:hover { background: linear-gradient(100deg, #103b58, #1c5e8c); box-shadow: 0 7px 19px #205a7c25; }
.button > span:last-child { font-size: 23px; }
.button-secondary { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; border-bottom: 1px solid #789db8; font-size: 16px; }
.button-secondary:hover, .text-link:hover { color: var(--blue); }

/* The approved artwork stays intact. These windows expose its photographic regions, while page text remains HTML. */
.reference-crop { --crop-w: 324; --crop-h: 329; position: relative; overflow: hidden; aspect-ratio: var(--crop-w) / var(--crop-h); }
.reference-crop > img { position: absolute; max-width: none; width: calc(1122 / var(--crop-w) * 100%); height: auto; left: calc(var(--crop-x) / var(--crop-w) * -100%); top: calc(var(--crop-y) / var(--crop-h) * -100%); }
/* Chrome blocks external SVG masks in local file previews, so the edge mask is self-contained. */
.hero-art { --crop-x: 448; --crop-y: 94; --crop-w: 674; --crop-h: 480; width: 100%; max-width: 760px; justify-self: center; mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NzQiIGhlaWdodD0iNDgwIiB2aWV3Qm94PSIwIDAgNjc0IDQ4MCI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InVwcGVyIj4KICAgICAgPHN0b3Agb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gICA8c3RvcCBvZmZzZXQ9Ii42NiIgc3RvcC1jb2xvcj0id2hpdGUiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bWFzayBpZD0ibG93ZXItcmVnaW9uIj48cmVjdCB3aWR0aD0iNjc0IiBoZWlnaHQ9IjQ4MCIgZmlsbD0idXJsKCN0cmFuc2l0aW9uKSIvPjwvbWFzaz4KICA8L2RlZnM+CiAgPGcgbWFzaz0idXJsKCNlZGdlcykiPgogICAgPHJlY3Qgd2lkdGg9IjY3NCIgaGVpZ2h0PSI0ODAiIGZpbGw9InVybCgjdXBwZXIpIi8+CiAgICA8cmVjdCB3aWR0aD0iNjc0IiBoZWlnaHQ9IjQ4MCIgZmlsbD0idXJsKCNsb3dlcikiIG1hc2s9InVybCgjbG93ZXItcmVnaW9uKSIvPgogIDwvZz4KPC9zdmc+Cg=='); mask-size: 100% 100%; mask-repeat: no-repeat; mask-mode: luminance; }
.stage-media { --crop-x: 53; --crop-y: 699; }
.stage-astrology { --crop-x: 400; --crop-y: 699; }
.stage-publishing { --crop-x: 746; --crop-y: 699; }
.brands-section { padding: 30px var(--gutter) 32px; }
.section-heading { margin-bottom: 24px; }
h2 { font: 400 clamp(32px, 8vw, 44px)/1.18 var(--serif); letter-spacing: -.025em; }
.section-heading h2 { margin-top: 10px; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.brand-card { min-width: 0; }
.card-image-link { display: block; border-radius: 8px; }
.product-stage { width: 100%; border-radius: 8px; transition: transform .3s ease, box-shadow .3s ease; }
.brand-card:hover .product-stage, .brand-card:focus-within .product-stage { transform: translateY(-3px); box-shadow: 0 10px 20px #24495e12; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
h3 { font: 400 28px/1.25 var(--serif); letter-spacing: -.02em; }
.card-arrow { flex-shrink: 0; font-size: 24px; }
.card-category { margin-top: 4px; color: var(--body); font-size: 18px; }
.card-status { display: inline-block; min-height: 44px; margin-top: 7px; padding: 8px 0 5px; color: var(--blue); font-size: 16px; line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; margin-top: 7px; padding: 8px 0 5px; border-bottom: 1px solid #83a4bc; font-size: 16px; line-height: 1.5; }
.text-link > span:last-child { font-size: 20px; }
.company-section { display: grid; gap: 23px; padding: 30px var(--gutter); }
.company-heading h2 { margin-top: 10px; font-size: 31px; line-height: 1.25; }
.company-lead { margin-top: 11px; font: 23px/1.5 var(--serif); color: var(--body); }
.company-copy { color: var(--body); font-size: 17px; line-height: 1.65; }
.company-rule { display: block; width: 37px; height: 2px; margin-bottom: 11px; background: #b1ccdf; }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px var(--gutter); }
.footer-company { display: flex; flex-direction: column; gap: 2px; color: var(--body); font-size: 16px; line-height: 1.7; }
.footer-company > a:first-child { color: var(--ink); }
.footer-company a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-actions .language { padding-left: 14px; border-left: 1px solid var(--line); }

.book-details { width: min(850px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 60px #15344b40; }
.book-details::backdrop { background: #102e4680; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.dialog-header h2 { font-size: 30px; }
.dialog-header form { margin: -8px -8px 0 0; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 28px; cursor: pointer; }
.dialog-close:hover { background: #e5eef6; }
.book-detail-content { display: grid; gap: 24px; }
.book-detail-content > img { width: 160px; justify-self: center; }
.book-detail-content h3 { font-family: var(--sans); font-size: 25px; line-height: 1.5; }
.book-detail-content p { color: var(--body); font-size: 18px; }
.book-english-title { margin: 7px 0 18px; }
.book-detail-content p.book-format { margin-top: 18px; font-size: 16px; }

html[lang=th] h2 { font-family: var(--sans); font-size: 31px; line-height: 1.4; letter-spacing: 0; }
html[lang=th] .company-heading h2 { font-size: 29px; }
html[lang=th] .company-lead { font-family: var(--sans); font-size: 21px; line-height: 1.7; }
html[lang=th] .dialog-header h2 { font-size: 26px; }

@media (min-width: 600px) {
  :root { --gutter: 34px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .brand-name { font-size: 28px; }
  .brand-name > span { font-size: 33px; }
  .hero { gap: 18px; padding-top: 32px; padding-bottom: 25px; }
  .hero h1 { font-size: 52px; }
  .hero-art { max-width: 650px; }
  .brands-section { padding-top: 32px; padding-bottom: 32px; }
  .brand-card { width: 100%; max-width: 440px; justify-self: center; }
  .company-heading h2 { font-size: 35px; }
  .company-lead { font-size: 24px; }
  .site-footer { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
  .footer-company { justify-self: end; }
  .footer-actions { grid-column: 1 / -1; }
  .book-detail-content { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
  .book-detail-content > img { width: 180px; }
}
@media (min-width: 900px) {
  :root { --gutter: clamp(43px, 4.8vw, 62px); }
  .site-header { padding-top: 19px; padding-bottom: 20px; }
  .brand-name { font-size: 28px; }
  .brand-caption { font-size: 13px; }
  .header-controls { gap: 22px; }
  .navigation, .js .navigation { position: static; display: flex; flex-direction: row; align-items: center; gap: 25px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .navigation a { font-size: 16px; white-space: nowrap; }
  .navigation a:hover { color: var(--blue); }
  .navigation .nav-contact { padding: 10px 20px; }
  .js .menu-toggle { display: none; }
  .header-controls > .language { padding-left: 20px; border-left: 1px solid var(--line); }
  .hero { grid-template-columns: 42% 58%; gap: 0; align-items: center; min-height: clamp(455px, 43.3vw, 554px); padding: 0 var(--gutter); }
  .hero-copy { position: relative; z-index: 1; padding: 25px 0 31px; }
  .hero h1 { font-size: clamp(52px, 5.65vw, 70px); line-height: 1.04; }
  .hero .eyebrow { margin-bottom: 22px; font-size: 16px; }
  .hero-description { margin-top: 28px; font-size: 19px; line-height: 1.6; }
  .hero-actions { margin-top: 26px; gap: 23px; }
  .button { padding: 13px 25px; font-size: 17px; }
  .button-secondary { font-size: 17px; }
  .hero-art { width: calc(100% + 1.6 * var(--gutter)); max-width: none; margin-right: calc(-1.6 * var(--gutter)); left: calc(-.6 * var(--gutter)); }
  .brands-section { padding-top: 27px; padding-bottom: 32px; }
  .section-heading { margin-bottom: 23px; }
  h2 { font-size: 48px; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .brand-card { max-width: none; }
  h3 { font-size: 29px; }
  .card-category { font-size: 18px; }
  .text-link, .card-status { font-size: 17px; }
  .company-section { grid-template-columns: 2fr 1fr; gap: 44px; align-items: center; padding-top: 28px; padding-bottom: 30px; }
  .company-heading h2 { font-size: clamp(29px, 3vw, 36px); }
  .company-lead { font-size: 22px; }
  .company-copy { font-size: 16px; line-height: 1.6; }
  .site-footer { grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; padding-top: 23px; padding-bottom: 25px; }
  .footer-company { justify-self: center; }
  .footer-actions { grid-column: auto; justify-content: flex-end; gap: 22px; }
  .footer-actions .language { padding-left: 18px; }
  html[lang=th] h2 { font-size: 37px; }
  html[lang=th] .company-heading h2 { font-size: 30px; }
}
@media (max-width: 359px) {
  :root { --gutter: 18px; }
  .site-header { gap: 5px; }
  .header-controls { gap: 0; }
  .brand-name { font-size: 24px; }
  .brand-name > span { font-size: 28px; }
  .brand-caption { font-size: 12px; }
  .hero h1 { font-size: 34px; }
  .hero-description { font-size: 17px; }
  .hero-actions { gap: 10px 17px; }
  .button { padding-right: 19px; padding-left: 19px; }
  .footer-actions { gap: 9px; }
  .footer-actions .language { padding-left: 6px; }
  .footer-actions .nav-contact { padding-right: 14px; padding-left: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .brand-card:hover .product-stage, .brand-card:focus-within .product-stage { transform: none; }
}
