@font-face{font-family:Seed;src:url("/fonts/LINESeedSans_W_Rg.woff2") format("woff2");font-display:swap}
@font-face{font-family:Seed;src:url("/fonts/LINESeedSans_W_Bd.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:SeedTH;src:url("/fonts/LINESeedSansTH_W_Rg.woff2") format("woff2");font-display:swap}
@font-face{font-family:SeedTH;src:url("/fonts/LINESeedSansTH_W_Bd.woff2") format("woff2");font-weight:700;font-display:swap}
:root {
  color-scheme: light;
  --paper: #faf8f1;
  --ink: #253329;
  --muted: #536053;
  --rule: #d6d8cb;
  --forest: #284c3e;
  --gold: #b89452;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(1.15rem, 5vw, 6rem);
  font: 100%/1.55 Seed, SeedTH, sans-serif;
}
:root:lang(th) { font-family: SeedTH, Seed, sans-serif; --serif: SeedTH, Seed, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; }
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: #72582f; }
:focus-visible { outline: 3px solid #bf7339; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 5; background: white; padding: .65rem; }
.skip:focus { top: .4rem; }
.bar, .wrap, .hero-inner { max-width: 90rem; margin-inline: auto; padding-inline: var(--gutter); }
.mast { border-bottom: 1px solid var(--rule); }
.mast .bar, .foot { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.mast .bar { min-height: 4.6rem; }
.brand { font: 1.48rem/1.2 Georgia, serif; letter-spacing: -.035em; text-decoration: none; display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; }
.bookmark { position: relative; width: 1.1rem; height: 1.43rem; background: var(--forest); border-radius: 1px 3px 3px 1px; box-shadow: inset 3px 0 #586e58; }
.bookmark::after { content: ""; position: absolute; right: 3px; top: 0; width: 3px; height: 11px; background: #edcf8f; clip-path: polygon(0 0,100% 0,100% 100%,50% 80%,0 100%); }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.7rem); }
.mast nav { margin-left: auto; }
nav a, .language { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; }
nav a:hover, nav a[aria-current], .language:hover { text-decoration: underline; }
.language { padding-left: clamp(.8rem,2vw,2rem); border-left: 1px solid var(--rule); min-height: 1.3rem; font-weight: 700; }
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fffbee; background: #272c24; }
.panorama, .backdrop { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.panorama { inset: 0; z-index: -3; object-position: 50% 54%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #101d1bea 0%, #18261fc9 27%, #21292270 53%, #19201919 79%), linear-gradient(0deg,#16221f6b,transparent 48%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: clamp(32rem,42vw,40rem); padding-block: 2rem; }
.intro { padding-left: clamp(0rem,2vw,2rem); max-width: 36rem; }
.kicker { margin: 0 0 1rem; font-size: .8rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.hero .kicker { color: #f5dfaa; }
h1,h2 { font: 400 3rem/1.08 var(--serif); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.intro h1 { font-size: clamp(4rem,6.6vw,7.2rem); line-height: .99; }
.intro h1 em { display: block; color: #f5db9f; font-weight: 400; }
.lead { max-width: 27rem; margin: 1.3rem 0 1.6rem; font-size: clamp(1.05rem,1.5vw,1.25rem); line-height: 1.55; }
.primary,.secondary { padding: .78rem 1.35rem; border: 1px solid transparent; border-radius: 2rem; font-weight: 700; }
.primary { color: #fff9e8; background: var(--forest); }
.hero .primary { background: #f7edd6; color: #243329; }
.primary:hover,.secondary:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.secondary { background: transparent; border-color: #708173; color: var(--ink); }
.reading { max-width: 24rem; margin: 1.1rem 0 0; padding-left: .9rem; border-left: 2px solid #f5db9f; font: 1.2rem/1.45 var(--serif); }
.reading cite { display: block; font: .875rem/1.5 Seed, SeedTH, sans-serif; }
.device-stage { display: grid; place-items: center; padding-block: .5rem; }
.device { position: relative; border-radius: 2.2rem; width: clamp(12rem,16.8vw,15.4rem); aspect-ratio: 9 / 19.8; padding: .4rem; background: linear-gradient(110deg,#9c9c8b,#393e37 18%,#171c1b 48%,#b0a68d 95%,#51544a); border: 1px solid #b3ab95; box-shadow: .6rem 1.4rem 2rem #13171166, inset 0 0 0 1px #30362e; transform: rotate(3deg); }
.device::after { content: ""; position: absolute; top: .3rem; left: 50%; transform: translate(-50%, .42rem); width: .35rem; height: .35rem; border: 1px solid #4a4840; border-radius: 50%; background: #13171b; pointer-events: none; }
.screen { height: 100%; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 1.82rem; background: #25281f; container-type: inline-size; border: 2px solid #141714; }
.book { position: relative; width: 46%; background: transparent; border: 0; padding: 0; color: #352b20; filter: drop-shadow(0 3px 5px #261b1550); }
.book.opened { width: 92%; }
.book img,.spread { display: block; width: 100%; }
.print { position: absolute; width: 34%; left: 56%; top: 43%; transform: translateY(-50%); display: grid; gap: .3em; font: 400 3.5cqw/1.2 var(--serif); text-align: center; }
.print strong { font-size: .7em; }
.selector { display: flex; gap: clamp(1.4rem,3vw,4rem); align-items: center; padding-block: 1.75rem; border-bottom: 1px solid var(--rule); }
.scene-heading { flex: 1; }
.scene-heading .kicker,.inside-copy .kicker,.article .kicker { color: var(--muted); margin-bottom: .4rem; }
.scene-heading h2 { font-size: clamp(1.45rem,2.5vw,2.1rem); }
.scene-options { display: grid; grid-template-columns: repeat(4,1fr); gap: .55rem; flex: 3; }
.scene-choice { position: relative; display: grid; min-height: 4.4rem; overflow: hidden; isolation: isolate; background: #27392c; color: white; border: 0; border-radius: .35rem; padding: .5rem .7rem; align-items: end; text-align: start; }
.scene-choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.scene-choice::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#101910ed,transparent 145%); z-index: -1; }
.scene-choice span { font-size: .9rem; line-height: 1.25; font-weight: 700; }
.scene-choice[aria-pressed=true] { outline: 2px solid var(--forest); outline-offset: 2px; }
.scene-choice:focus-visible { outline: 3px solid #bd6938; outline-offset: 3px; }
.inside { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2.5rem,7vw,7rem); padding-block: clamp(3rem,6vw,6rem); }
.folio,.art-detail { margin: 0; border-radius: .3rem; text-align: center; background: #e7e4d4; padding: 1.8rem 1.3rem 1rem; }
.folio img,.art-detail img { width: 80%; max-width: 36rem; margin-inline: auto; filter: drop-shadow(1px 5px 4px #393d2933); }
.folio span,.art-detail figcaption { display: block; font-size: .85rem; margin-top: .5rem; color: #44503d; }
.inside h2 { font-size: clamp(2.15rem,3.6vw,4rem); }
.inside p:not(.kicker) { max-width: 34rem; color: var(--muted); }
.text-link { font-weight: 700; color: var(--forest); }
.foot { justify-content: space-between; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.foot .brand { font-size: 1.12rem; }
.article { margin: clamp(2.5rem,6vw,6rem) auto; max-width: 46rem; padding-inline: 1.25rem; min-height: 52vh; }
.article h1 { font-size: clamp(2.65rem,5vw,4.7rem); }
.article h2 { font-size: 1.8rem; margin: 2.4rem 0 .6rem; }
.article p { margin: .7rem 0 1.2rem; }
.article .standfirst { font-size: 1.22rem; margin: 1.3rem 0 2rem; }
.art-detail { margin-block: 2rem; }
.edition { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.5rem; border-top: 1px solid var(--rule); padding: 1.55rem 0; }
.edition:first-of-type { margin-top: 2.4rem; }
.edition b,.edition time { display: block; }
.edition time { font-size: .85rem; color: var(--muted); }
.edition h2,.edition p { margin: 0 0 .5rem; }
.feedback label { font-weight: 700; display: block; margin-bottom: .5rem; }
.feedback textarea { display: block; width: 100%; resize: vertical; border: 1px solid #838c7f; padding: .85rem; border-radius: .4rem; color: var(--ink); background: #fffef8; }
.hint { font-size: .94rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
:lang(th) h1,:lang(th) h2 { letter-spacing: -.025em; line-height: 1.25; }
:lang(th) .intro h1 { font-size: clamp(2.8rem,4.1vw,5rem); }
:lang(th) .intro em { font-style: normal; }
:lang(th) .kicker { letter-spacing: normal; }
@media(max-width: 48rem) {
  .mast .bar { justify-content: space-between; flex-wrap: wrap; gap: 0 1rem; padding-top: .55rem; }
  .mast nav { order: 3; width: 100%; gap: 1.65rem; margin: 0; }
  .language { margin-left: auto; padding: .55rem 0 .55rem 1rem; border: 0; }
  .hero-inner { min-height: 0; grid-template-columns: 1.2fr 1fr; gap: 1rem; padding-block: 2.2rem; }
  .intro { padding: 0; }
  .intro h1 { font-size: clamp(2.85rem,7vw,4rem); }
  .device { width: clamp(8.4rem,26vw,12.5rem); border-radius: 1.6rem; padding: .28rem; }
  .screen { border-radius: 1.35rem; }
  .lead { margin: 1rem 0; }
  .selector { display: block; }
  .scene-heading { margin-bottom: 1rem; }
  .inside { gap: 1.75rem; }
}
@media(max-width: 35rem) {
  .hero-inner { padding-block: 1.75rem 1.5rem; grid-template-columns: 1fr; gap: .8rem; }
  .hero::before { background: linear-gradient(145deg,#101d1bea,#17241fd6 18%,#1a282082 44%,#19231d18 68%,#19231d44); }
  .intro h1,.intro h1 em { display: inline; }
  .intro h1 { font-size: clamp(2.6rem,11vw,3.7rem); }
  .intro { max-width: 30rem; }
  .intro .kicker { margin-bottom: .45rem; }
  .lead { margin: .6rem 0 .8rem; max-width: 25rem; font-size: 1rem; }
  .hero .primary { padding: .55rem 1rem; min-height: 44px; }
  .device-stage { padding-block: .35rem; }
  .device { width: clamp(8.4rem,36vw,10.5rem); }
  .scene-options { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .scene-choice { min-height: 3.75rem; }
  .inside { grid-template-columns: 1fr; }
  .inside-copy { grid-row: 1; }
  .edition { grid-template-columns: 1fr; gap: .6rem; }
  .edition div:first-child { display: flex; align-items: center; gap: .8rem; }
  .foot { gap: .3rem; }
  .foot nav { flex-wrap: wrap; gap: .8rem; }
  :lang(th) .intro h1 { font-size: clamp(2.1rem,8vw,3rem); }
}

.perf { padding-block: 3rem; max-width: 73rem; }
.perf h1 { font-size: clamp(2.4rem,6vw,5rem); }
.perf h2 { font-size: clamp(1.7rem,3vw,2.8rem); }
.perf h3,.perf summary { font-size: 1.12rem; margin: 1.5rem 0 .5rem; }
.perf p { color: var(--muted); max-width: 55rem; }
.run-list { margin: 1.4rem 0 2rem; flex-wrap: wrap; gap: .6rem; }
.run-list a { border: 1px solid var(--rule); border-radius: 2rem; padding: .2rem 1rem; }
.run-list a[aria-current] { background: var(--forest); color: white; }
.perf-meta,.perf-device { border-top: 1px solid var(--rule); padding-block: 1.8rem; }
.perf-row { display: grid; grid-template-columns: minmax(7.2rem,1fr) 3fr 5.4rem; align-items: center; gap: .75rem; margin: .85rem 0; }
.perf-row strong { font-variant-numeric: tabular-nums; text-align: end; }
.perf-rail { position: relative; background: #e0e3d8; height: .6rem; }
.perf-rail i { display: block; background: #396651; height: 100%; }
.perf-rail b { position: absolute; top: -.25rem; height: 1.1rem; border-left: 2px solid #865d1a; }
.perf-scroll { overflow-x: auto; }
.perf table { border-collapse: collapse; font-variant-numeric: tabular-nums; width: 100%; }
.perf td,.perf th { padding: .55rem .7rem; text-align: start; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.perf-stages { display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.perf-stages dd { font: 1.75rem var(--serif); margin: .25rem 0; }
.perf summary { cursor: pointer; }
.perf li code { overflow-wrap: anywhere; }
@media(max-width: 35rem) {
  .perf-row { grid-template-columns: 6.8rem 1fr 4.4rem; gap: .4rem; }
}
.perf-path { border-inline-start: 3px solid var(--gold); padding: .55rem .85rem; overflow-wrap: anywhere; background: #eeede4; }
.perf-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); border-block: 1px solid var(--rule); gap: 1rem; padding: 1rem 0; }
.perf-facts div,.perf-facts strong { display: block; }
.perf-facts span { display: block; color: var(--muted); }
.perf-facts strong { color: var(--forest); font: 2.25rem var(--serif); margin-block: .25rem; }
.perf-history-bar { display: grid; grid-template-columns: 5rem 1fr 5.4rem; align-items: center; gap: .75rem; margin-block: .45rem; text-decoration: none; }
.perf-history-bar b { text-align: end; }
.perf-history-bar:hover span:first-child { text-decoration: underline; }
