@font-face {
  font-family: Cinzel;
  src: url("/assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: ThaiSerif;
  src: url("/assets/fonts/noto-serif-thai.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0E01-0E7F;
}
@font-face {
  font-family: ThaiSans;
  src: url("/assets/fonts/noto-sans-thai.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0E01-0E7F;
}
:root {
  --emerald: #092e26;
  --deep: #092b23;
  --forest: #154d3c;
  --gold: #ddb56b;
  --brass: #8a591a;
  --cream: #fff6e3;
  --ink: #1c3227;
  --muted: #5b6357;
  --line: #d2b781;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 100%;
  background: #fbf3e3;
}
html:lang(th) {
  --serif: ThaiSerif, Georgia, serif;
  --sans: ThaiSans, system-ui, sans-serif;
}
html:lang(zh-Hans) {
  --serif: "Songti SC", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
}
html:lang(ja) {
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
html:lang(ko) {
  --serif: "AppleMyungjo", "Batang", "Noto Serif CJK KR", serif;
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button:active,
a:active {
  filter: brightness(0.93);
}
:focus-visible {
  outline: 3px solid #a94704;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.btn,
.brand,
.desktop-nav,
.portal-label,
summary {
  font-family: var(--serif);
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.12;
}
p {
  text-wrap: pretty;
}
button {
  background: none;
  border: 0;
}
.icon {
  width: 1.32em;
  height: 1.32em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.skip {
  position: fixed;
  top: -150px;
  left: 1rem;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  width: min(1160px, 88%);
  margin-inline: auto;
}
.mast,
footer {
  color: var(--cream);
  background-color: var(--deep);
  background-image:
    linear-gradient(110deg, #06251be8, #0c3628e0 45%, #071f1bdf),
    url("/assets/pattern.svg");
}
.mast {
  position: relative;
  z-index: 2;
  border-bottom: 3px double #e2bd70;
  box-shadow: 0 3px 13px #53360c35;
}
.mast-inner {
  max-width: 1540px;
  margin: auto;
  min-height: clamp(70px, 5.7vw, 88px);
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.3rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font:
    500 clamp(1.85rem, 2.6vw, 2.65rem)/1 Georgia,
    serif;
  letter-spacing: -0.055em;
  text-decoration: none;
  position: relative;
  color: #fff2cc;
  white-space: nowrap;
}
.brand img {
  width: 1.04em;
  height: 1.04em;
}
.brand span {
  position: relative;
  padding-bottom: 4px;
}
.brand span:after {
  content: "";
  position: absolute;
  height: 9px;
  width: 65%;
  border-bottom: 1.6px solid #e7b65c;
  border-radius: 0 0 82% 50%;
  bottom: -1px;
  right: 1px;
  transform: rotate(-3deg);
}
.mast-rule {
  width: 1px;
  height: 29px;
  background: #d5aa5f77;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 4rem);
  margin-inline: auto;
  font-size: clamp(1.12rem, 1.45vw, 1.45rem);
}
.desktop-nav a,
footer nav a {
  text-decoration: none;
  padding: 10px 0;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current],
footer nav a:hover {
  color: #f4cd81;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.locale-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}
.locale-button {
  font: 600 0.94rem var(--sans);
  gap: 0.55rem;
  color: #f7e2ad;
}
.locale-button .icon:last-child {
  width: 0.85rem;
}
.locale-button:hover,
.icon-button:hover {
  color: #ffc867;
}
.corner {
  position: absolute;
  width: clamp(26px, 4.2vw, 65px);
  height: auto;
  bottom: -1px;
  left: 0;
  color: #d3a652;
  pointer-events: none;
}
.corner:last-child {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}
#menu-trigger {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  text-align: center;
  background: #f3cfad;
  min-height: clamp(485px, 39vw, 670px);
  overflow: hidden;
}
.hero picture,
.hero picture img,
.hero-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero picture img {
  object-fit: cover;
  object-position: 50% 53%;
}
.hero-light {
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 59% 41%, #ffedbf50, transparent 38%);
  animation: light 8s ease-in-out alternate infinite;
  animation-play-state: paused;
}
.hero.running .hero-light {
  animation-play-state: running;
}
@keyframes light {
  from {
    opacity: 0.2;
    transform: translateX(-0.4%);
  }
  to {
    opacity: 0.9;
    transform: translateX(0.4%);
  }
}
.hero-inner {
  align-self: start;
  margin: clamp(30px, 3.05vw, 60px) auto 70px;
  width: 66%;
  margin-left: 23%;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #272b12;
}
.hero h1 {
  font-size: clamp(3.4rem, 5.25vw, 6.55rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 4px #fff3d9af;
}
:lang(en) .hero h1 {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(3.75rem, 6.5vw, 7.65rem);
  font-variant: normal;
  font-weight: 500;
  letter-spacing: -0.048em;
}

.hero-copy {
  width: 100%;
}
.ornament {
  color: #a36b18;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  margin: 0.65rem auto 0.7rem;
  max-width: 400px;
  width: 53%;
}
.ornament i {
  height: 1px;
  flex: 1;
  position: relative;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament i:last-child {
  transform: rotate(180deg);
}
.ornament i:after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  background: currentColor;
  transform: rotate(45deg);
  width: 5px;
  height: 5px;
}
.ornament .icon {
  width: 25px;
  height: 25px;
}
.hero-copy > p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  color: #352816;
  text-shadow: 0 1px 3px #fff1d4;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: clamp(12px, 1.15vw, 20px);
  margin-top: clamp(18px, 1.8vw, 34px);
}
.btn {
  border-radius: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.8em;
  text-decoration: none;
  font-weight: 600;
  min-height: 46px;
  padding: 0.52em 1.35em;
  font-size: 1.12rem;
  line-height: 1.3;
  transition:
    filter 0.2s,
    box-shadow 0.2s;
  text-align: center;
}
.btn .icon:last-child {
  height: 0.83em;
  width: 0.83em;
  stroke-width: 2.5;
}
.btn:hover {
  filter: brightness(1.09);
}
.btn.primary {
  color: #fff3d5;
  border: 3px double #ffe19b;
  background: linear-gradient(170deg, #256147 0%, #104330 42%, #082b21 85%);
  outline: 1px solid #9e671e;
  box-shadow:
    inset 0 0 0 2px #ab7b3b80,
    0 4px 9px #49381c40;
}
.btn.primary:focus-visible {
  outline: 3px solid #98400b;
}
.btn.secondary {
  background: linear-gradient(#fffaf0, #f1dab3);
  border: 1px solid #a7782c;
  box-shadow:
    inset 0 0 0 2px #fff6dfb0,
    0 3px 8px #593c1835;
  color: #193426;
}
.hero .primary {
  position: relative;
  font-size: clamp(1.35rem, 2.05vw, 2.15rem);
  min-width: clamp(255px, 26.3vw, 455px);
  padding: 0.4em 1.08em;
  gap: 0.65em;
}
.gild {
  color: #e5b460;
}
.hero .primary .gild {
  width: 0.95em;
  height: 0.95em;
}
.hero .secondary {
  font-size: clamp(1.06rem, 1.45vw, 1.6rem);
  min-width: clamp(190px, 19vw, 320px);
}
.motion {
  position: absolute;
  right: 1.1rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border: 1px solid #e7c78d9c;
  border-radius: 50%;
  background: #103a2dbb;
  color: #fff3d9;
  z-index: 1;
}
.motion .icon {
  width: 15px;
}
.motion .icon:last-child,
.motion[data-paused="true"] .icon:first-child {
  display: none;
}
.motion[data-paused="true"] .icon:last-child {
  display: inline-block;
}
.motion[hidden] {
  display: none;
}
.portal-band {
  background:
    radial-gradient(ellipse at center, #fff9ed 20%, #f7e8cfe0),
    url("/assets/pattern.svg"), #f8ecd4;
  position: relative;
  border-top: 2px solid #ead0a1;
  border-bottom: 1px solid #ddc9a4;
  padding: clamp(20px, 2.15vw, 38px) 0 12px;
}
.portal-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr 1fr;
  gap: clamp(16px, 1.6vw, 26px);
  width: min(1280px, 87%);
  margin: auto;
  align-items: start;
}
.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  text-decoration: none;
  min-width: 0;
}
.portal-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid #bb8738;
  box-shadow:
    0 3px 0 #cda25e70,
    0 5px 12px #603b1127,
    inset 0 0 0 1px white;
  border-radius: clamp(15px, 1.6vw, 24px);
  background: linear-gradient(135deg, #fff9e9, #f1d8af);
  padding: 3px;
  display: block;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.portal:hover .portal-frame {
  transform: translateY(-3px);
  box-shadow: 0 6px 17px #69441438;
}
.portal-frame > img {
  width: 100%;
  aspect-ratio: 2.15;
  object-fit: cover;
  border-radius: clamp(12px, 1.4vw, 21px) clamp(12px, 1.4vw, 21px) 3px 3px;
}
.portal.loy .portal-frame {
  background: linear-gradient(
    120deg,
    #bd8930,
    #fff2c4 26%,
    #af6d11 52%,
    #ffdc81 88%,
    #ae771f
  );
  border-color: #a16c20;
  box-shadow:
    0 0 0 2px #efc469,
    0 5px 12px #69441445;
}
.portal.loy .portal-frame:before {
  content: "✥";
  line-height: 1;
  display: grid;
  place-content: center;
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%) rotate(45deg);
  width: 21px;
  height: 21px;
  color: #a2680a;
  background: #ffdfa0;
  border: 1px solid #bc852f;
  box-shadow: inset 0 0 0 2px #ffedc5;
  z-index: 1;
}
.portal-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.05vw, 17px);
  color: #183a2a;
  line-height: 1.22;
  padding: clamp(14px, 1.25vw, 22px) 0.35rem;
  font-size: clamp(1.25rem, 2.05vw, 2.1rem);
  min-height: 64px;
  border-radius: 2px 2px clamp(12px, 1.4vw, 21px) clamp(12px, 1.4vw, 21px);
}
.portal-label strong {
  font-weight: 600;
}
.portal-label > .icon {
  color: #986511;
  width: 1.13em;
  height: 1.13em;
}
.portal-label > .icon:last-child {
  width: 0.66em;
  height: 0.66em;
  stroke-width: 2.7;
}
.loy .portal-label {
  background: linear-gradient(140deg, #1a4c38, #082d24);
  color: #fff1d0;
}
.loy .portal-label > .icon {
  color: #f0c675;
}
.portal-note {
  color: #66573f;
  font-size: 0.9rem;
  margin: 9px 4px 0;
  line-height: 1.4;
}
.portal-band > .ornament {
  width: 48%;
  max-width: 660px;
  margin: 12px auto 0;
}
.portal-band > .ornament .icon {
  width: 18px;
  height: 18px;
}
.feature,
.future-inner,
.subhero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
}
.feature {
  padding-block: clamp(60px, 6vw, 105px);
}
.feature > img,
.future-inner > img,
.subhero-grid > img {
  width: 100%;
  aspect-ratio: 1.72;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 5px 25px #5c41251c;
}
h2 {
  font-size: clamp(1.75rem, 3.1vw, 3rem);
}
.overline {
  font: 650 0.85rem/1.6 var(--sans);
  color: #806024;
  margin-bottom: 0.65rem;
}
.section-copy > p:last-child,
.feature div > p:not(.overline),
.future-inner div > p:not(.overline),
.article-body > p,
.reading p,
.subhero-grid p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 1rem 0;
}
.status,
.future-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 0.87rem var(--sans);
}
.status {
  color: #28543d;
}
.status:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: #487c50;
}
.btn.text-link {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #a37836;
  padding: 0.15em 0;
  min-height: 44px;
  color: #194633;
  font-size: 1.05rem;
  background: transparent;
  box-shadow: none;
}
.feature .text-link {
  display: flex;
  width: fit-content;
  margin-top: 0.4rem;
}
.future,
.about-strip {
  background: #11392c;
  color: #fff2d7;
}
.future-inner {
  padding-block: clamp(38px, 5vw, 76px);
  grid-template-columns: 0.85fr 1.15fr;
}
.future-inner > img {
  aspect-ratio: 2.1;
}
.future-inner div > p:not(.overline),
.about-strip .section-copy > p:last-child {
  color: #ece3c9;
}
.future .overline,
.about-strip .overline,
.future-status {
  color: #ebc784;
}
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  padding-block: clamp(48px, 6vw, 96px);
}
.editorial article + article {
  border-left: 1px solid var(--line);
  padding-left: 5vw;
}
.editorial article > .icon {
  color: var(--brass);
  width: 32px;
  height: 32px;
  margin-bottom: 1.2rem;
}
.about-strip {
  padding: 45px 0;
  text-align: center;
  background-color: #204936;
}
.about-strip .wrap {
  max-width: 720px;
}
.about-strip .btn {
  color: #fff1d0;
}
.faq {
  padding-block: 65px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5vw;
}
.faq details {
  border-bottom: 1px solid #cfbb93;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.18rem;
  padding: 17px 0;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  width: 16px;
  color: var(--brass);
}
.faq details[open] .icon {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 1.5rem 18px 0;
  color: var(--muted);
}
footer {
  border-top: 2px solid #c3974e;
}
.footer-inner {
  width: min(1340px, 90%);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 4vw;
  padding-block: 1.8rem;
}
.footer-inner .brand {
  font-size: 1.85rem;
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-family: var(--serif);
}
.footer-inner small {
  margin-inline-start: auto;
  color: #e2cc9f;
}
.subhero {
  background:
    linear-gradient(90deg, #f6e5c9f2, #fff1d8ed), url("/assets/pattern.svg");
  border-bottom: 1px solid #ddc69c;
  padding: 18px 0 clamp(32px, 4.5vw, 66px);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #6a5334;
}
.crumb .icon {
  width: 11px;
}
.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.subhero-grid {
  margin-top: 18px;
  grid-template-columns: 1.04fr 1fr;
}
.subhero-grid h1,
.error-page h1 {
  font-size: clamp(2.55rem, 4.3vw, 5.4rem);
}
.subhero-grid .ornament {
  width: 130px;
  margin: 0 0 1rem;
}
.reading,
.article-body {
  max-width: 760px;
  padding-block: 45px 70px;
}
.reading article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.reading h2,
.article-body h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
}
.article-body .status {
  margin-bottom: 1rem;
}
.error-page {
  padding-block: 70px 120px;
  text-align: center;
}
.error-page p {
  margin: 16px auto;
  max-width: 650px;
}
dialog {
  padding: 22px;
  border: 1px solid #b79251;
  background: #fff9ec;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 18px 65px #061d2866;
  width: min(400px, calc(100% - 26px));
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #081c1c73;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #d9c59a;
  padding-bottom: 10px;
}
.dialog-heading h2 {
  font-size: 1.55rem;
}
.dialog-close {
  border-radius: 50%;
}
.dialog-close:hover {
  background: #f0dfbf;
  color: #173b2d;
}
.language-list,
.drawer-links {
  display: grid;
  gap: 3px;
  padding-top: 10px;
}
.language-list {
  grid-template-columns: 1fr 1fr;
}
.language-list a,
.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 7px;
  padding: 8px 10px;
}
.language-list a:hover,
.drawer-links a:hover,
.language-list [aria-current] {
  background: #f2e5c9;
}
.language-list .icon {
  width: 15px;
  color: #306546;
}
#language-dialog {
  margin: 0;
  left: auto;
  right: max(3vw, calc((100vw - 1450px) / 2));
  top: clamp(68px, 5.7vw, 88px);
}
#launch-dialog p {
  margin: 18px 0;
}
@media (min-width: 701px) and (max-width: 950px) {
  .hero {
    min-height: clamp(345px, 45vw, 390px);
  }
  .hero picture img {
    object-position: 36% center;
  }
  .hero-inner {
    margin: 22px 0 32px 22%;
    width: 73%;
  }
  .hero h1 {
    font-size: 3.6rem;
  }
  .portal-grid {
    width: 94%;
    gap: 13px;
  }
  .portal-label {
    font-size: 1.35rem;
  }
  .mast-inner {
    width: 88%;
  }
  .portal-note {
    font-size: 0.83rem;
  }
}
@media (max-width: 700px) {
  .mast-inner {
    width: 92%;
    gap: 0.6rem;
    min-height: 63px;
  }
  .brand {
    font-size: 1.85rem;
  }
  .mast-rule,
  .desktop-nav,
  .mast .corner {
    display: none;
  }
  #menu-trigger {
    display: inline-flex;
  }
  .tools {
    gap: 0.1rem;
  }
  .locale-button {
    gap: 0.28rem;
  }
  .locale-button > .icon:first-child {
    width: 17px;
  }
  .tools > .icon-button .icon {
    width: 23px;
  }
  .hero {
    min-height: clamp(490px, 125vw, 655px);
    display: flex;
  }
  .hero picture img {
    object-position: 50% 60%;
  }
  .hero-inner {
    width: 100%;
    margin: 0;
    padding: clamp(18px, 6vw, 36px) 12px clamp(28px, 6vw, 40px);
    align-self: stretch;
    justify-content: space-between;
    gap: clamp(100px, 23vw, 135px);
  }
  .hero h1 {
    font-size: clamp(2.25rem, 9.8vw, 3.8rem);
    line-height: 1.13;
    max-width: 96%;
    margin: auto;
  }
  :lang(en) .hero h1 {
    max-width: 6.5em;
    font-size: clamp(2.65rem, 12vw, 4.4rem);
    line-height: 1.04;
  }
  .hero-copy .ornament {
    width: 51%;
    margin: 0.55rem auto 0.45rem;
  }
  .hero-copy .ornament .icon {
    width: 19px;
    height: 19px;
  }
  .hero-copy > p {
    font-size: clamp(1.08rem, 4.4vw, 1.55rem);
    line-height: 1.32;
    max-width: 19em;
    margin: auto;
    padding: 0 0.4rem;
  }
  .hero-actions {
    gap: 9px;
    margin: 0;
  }
  .hero .primary {
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    font-size: clamp(1.2rem, 5.1vw, 1.65rem);
    padding: 0.45em 1em;
  }
  .hero .secondary {
    font-size: 1.05rem;
    min-height: 44px;
    padding: 0.45em 1.2em;
  }
  .motion {
    right: 4px;
    bottom: 4px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    display: grid;
    place-items: center;
  }
  .motion .icon {
    background: #203e30da;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    padding: 7px;
  }
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(87%, 440px);
  }
  .portal-band {
    padding: 24px 0 14px;
  }
  .portal-label {
    font-size: 1.55rem;
    gap: 0.55em;
    min-height: 58px;
    padding: 10px 6px;
  }
  .portal-frame > img {
    aspect-ratio: 2.23;
  }
  .portal-note {
    margin-top: 7px;
  }
  .portal-band > .ornament {
    margin-top: 18px;
    width: 72%;
  }
  .wrap {
    width: 88%;
  }
  .feature,
  .future-inner,
  .subhero-grid,
  .editorial,
  .faq {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .feature {
    padding-block: 42px;
  }
  .feature > img,
  .subhero-grid > img {
    aspect-ratio: 1.9;
  }
  .editorial article + article {
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .faq {
    padding-block: 42px;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 14px 22px;
  }
  .footer-inner nav {
    width: 100%;
    gap: 1rem;
  }
  .footer-inner small {
    margin: 0;
  }
  .subhero {
    padding-top: 8px;
  }
  .subhero-grid {
    margin-top: 8px;
  }
  .subhero-grid h1 {
    font-size: 2.45rem;
  }
  .subhero-grid p {
    margin-bottom: 0;
  }
  .reading,
  .article-body {
    padding-block: 26px 45px;
  }
  #language-dialog,
  #menu-dialog {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
  .language-list {
    grid-template-columns: 1fr 1fr;
  }
}
:lang(th) h1,
:lang(th) h2,
:lang(th) h3 {
  line-height: 1.46;
  letter-spacing: normal;
}
:lang(th) .hero-copy > p,
:lang(zh-Hans) .hero-copy > p,
:lang(ja) .hero-copy > p,
:lang(ko) .hero-copy > p {
  font-style: normal;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-light {
    animation: none !important;
  }
  .motion {
    display: none !important;
  }
}

/* Relative breakpoints also give enlarged browser text the compact navigation. */
@media (max-width: 43.75em) {
  .mast-inner {
    width: 92%;
    gap: 8px;
  }
  .mast-rule,
  .desktop-nav,
  .mast .corner {
    display: none;
  }
  #menu-trigger {
    display: inline-flex;
  }
  .mast .brand {
    font-size: min(1.85rem, 8.8vw);
  }
  .tools {
    gap: 2px;
  }
  .locale-button {
    gap: 4px;
  }
  .hero-inner,
  .hero-actions,
  .feature > *,
  .subhero-grid > *,
  .faq > *,
  .future-inner > *,
  .editorial > *,
  .portal-label strong,
  .dialog-heading h2 {
    min-width: 0;
  }
  .hero-actions {
    width: 100%;
  }
  .btn {
    max-width: 100%;
  }
  .btn,
  .portal-label strong,
  .faq summary,
  .wrap h1,
  .wrap h2,
  .dialog-heading h2,
  .drawer-links a {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .portal-label {
    gap: min(0.55em, 2vw);
  }
}
