/* WordMage Chronicles — site styles.
   Palette and type follow the game's "mage's study" UI kit. */

@font-face { font-family: "Alegreya SC"; src: url("assets/fonts/AlegreyaSC-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("assets/fonts/AlegreyaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("assets/fonts/AlegreyaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("assets/fonts/AlegreyaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #1b111e;      /* boot splash plum */
  --dusk: #2a1a30;       /* panels */
  --dusk-2: #3a2442;     /* raised panels, borders */
  --parchment: #f1e3c4;  /* book pages */
  --ink: #3b2530;        /* text on parchment */
  --gold: #e8b75c;       /* lantern light */
  --gold-deep: #b9852f;
  --amethyst: #b48ae8;   /* gems, focus */
  --text: #f0e4d4;
  --muted: #bba8b8;
  --fire: #d9583a;
  --ice: #6fb3e8;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 62ch;
  --display: "Alegreya SC", "Palatino Linotype", Georgia, serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(17px, 0.35vw + 15.6px, 19px);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #f6d28c; }
:focus-visible { outline: 3px solid var(--amethyst); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(30px, 2.6vw + 18px, 50px); color: var(--parchment); }
h3 { font-size: clamp(21px, 0.8vw + 17px, 26px); color: var(--parchment); }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--parchment); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- buttons made from the game's plates ---------- */
.plate {
  --plate: url("assets/ui/plate_primary.webp");
  --plate-hover: url("assets/ui/plate_primary_hover.webp");
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 76px; padding: 0 8px;
  border-style: solid; border-color: transparent; border-width: 38px 44px;
  border-image: var(--plate) 50% 88 fill / 38px 44px / 0 stretch;
  background: none; color: var(--parchment);
  font-family: var(--display); font-size: 23px; line-height: 1; text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0,0,0,.45);
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.plate:hover { border-image-source: var(--plate-hover); color: #fff4dc; }
.plate:active { transform: translateY(1px); }
.plate[aria-disabled="true"] { filter: saturate(.35) brightness(.8); cursor: default; }
.plate-small { --plate: url("assets/ui/plate_small.webp"); --plate-hover: url("assets/ui/plate_small_hover.webp"); border-image-slice: 50% 70 fill; border-image-width: 26px 35px; border-width: 26px 35px; height: 52px; padding: 0 6px; font-size: 18px; }
.plate img { width: 24px; height: 24px; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--parchment); text-decoration: none; font-family: var(--display); font-size: 19px; }
.topbar .brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.topbar nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.topbar nav a { color: var(--text); text-decoration: none; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.topbar nav a:hover { color: var(--gold); }
@media (max-width: 720px) { .topbar nav a.optional { display: none; } .topbar .brand span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: grid; isolation: isolate; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 12% 60%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(34% 38% at 50% 44%, rgba(27,17,30,.62), transparent 75%),
    radial-gradient(60% 45% at 52% 26%, rgba(27,17,30,.45), transparent 70%),
    linear-gradient(to bottom, transparent 62%, var(--night) 100%); }
.hero-inner { align-self: start; justify-self: center; text-align: center; padding: clamp(84px, 11vh, 130px) var(--gutter) 40px; max-width: 760px; }
.hero h1 { margin: 0 auto; width: min(560px, 86vw); }
.hero h1 img { width: 100%; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.hero .tagline { font-family: var(--display); font-size: clamp(20px, 1vw + 15px, 27px); color: var(--parchment); margin: 18px 0 8px; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.hero .lede { margin: 0 auto 28px; max-width: 40ch; text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; }
.store-note { font-size: 15px; color: var(--muted); margin-top: 14px; }
.hero .store-note { color: var(--parchment); text-shadow: 0 1px 3px #000, 0 0 10px rgba(0,0,0,.9); }
@media (max-width: 720px) {
  .hero picture img { object-position: 60% 50%; }
  .hero::after { background: linear-gradient(to bottom, rgba(27,17,30,.55) 0%, rgba(27,17,30,.2) 45%, transparent 60%, var(--night) 100%); }
}

/* ---------- section scaffolding ---------- */
section { padding: clamp(52px, 6vw, 88px) 0; }
.section-head { max-width: var(--measure); margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05em; }

/* ---------- try a spell ---------- */
.try { background:
  radial-gradient(80% 60% at 70% 40%, rgba(232,183,92,.08), transparent 60%),
  linear-gradient(var(--night), #22152a 30%, #22152a 70%, var(--night)); }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 880px) { .try-grid { grid-template-columns: 1fr; } }

.spell-stage { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 36px); align-items: center; justify-items: center; }
@media (max-width: 520px) { .spell-stage { grid-template-columns: 1fr; } }

.card {
  --element: var(--fire);
  width: 210px; aspect-ratio: 5 / 7.1; position: relative;
  border-radius: 14px; padding: 16px 14px 14px;
  background: radial-gradient(120% 80% at 50% 30%, #5a2526, #3a1a22 70%);
  border: 3px solid color-mix(in srgb, var(--element) 75%, #f6d28c);
  box-shadow: 0 0 0 2px #2a1418, 0 0 26px color-mix(in srgb, var(--element) 45%, transparent), 0 18px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: box-shadow .4s ease, border-color .4s ease;
}
.card[data-element="ice"] { --element: var(--ice); background: radial-gradient(120% 80% at 50% 30%, #234a72, #172a45 70%); box-shadow: 0 0 0 2px #0f1a2a, 0 0 26px rgba(111,179,232,.45), 0 18px 40px rgba(0,0,0,.5); }
.card[data-element="light"] { --element: var(--gold); background: radial-gradient(120% 80% at 50% 30%, #4a3b1c, #2a2414 70%); box-shadow: 0 0 0 2px #1f190c, 0 0 26px rgba(232,183,92,.45), 0 18px 40px rgba(0,0,0,.5); }
.card .cost { position: absolute; left: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: radial-gradient(circle at 35% 30%, #6aa7ff, #2554b8); border: 2px solid #cfe0ff; color: #fff; }
.card .cost.light { background: radial-gradient(circle at 35% 30%, #ffe69a, #b9852f); border-color: #fff1c8; color: #3a2a08; }
.card .art { width: 128px; height: 128px; margin-top: 6px; }
.card .verb { font-family: var(--display); font-size: 40px; color: #fff4dc; margin-top: -18px; text-shadow: 0 2px 0 #000, 0 0 14px rgba(0,0,0,.8); letter-spacing: .02em; }
.card .forms { margin-top: auto; font-family: var(--display); font-size: 19px; color: #f3dfb8; min-height: 1.4em; }
.card .forms .q { opacity: .65; }
.card .rule { width: 76%; height: 2px; margin: 8px 0 6px; background: linear-gradient(90deg, transparent, #d9a64c, transparent); }
.card .name { font-family: var(--display); font-size: 16px; color: #e9d5b0; }

.lantern { position: relative; width: min(320px, 80vw); aspect-ratio: 646 / 588; }
.lantern-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; filter: drop-shadow(0 14px 24px rgba(0,0,0,.45)); }
/* Panes behave like the game's LanternPane shader: dark glass that fills with gold from the bottom. */
.lantern .pane { position: absolute; z-index: 1; border-radius: 50%; overflow: hidden; background: #29241c; }
.lantern .pane-fill { position: absolute; inset: 0; background: radial-gradient(circle at 45% 40%, #fff3c4, #ffd866 45%, #f0b43c 100%); transform: translateY(100%); transition: transform .9s cubic-bezier(.3,.7,.3,1); }
.lantern .pane[data-state="half"] .pane-fill { transform: translateY(50%); }
.lantern .pane[data-state="full"] .pane-fill { transform: translateY(0); }
.lantern .core { position: absolute; z-index: 1; left: 41.98%; top: 37.08%; width: 22.3%; height: 24.5%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #1e3a38, #0f201f); display: grid; place-items: center; }
.lantern .core span { font-weight: 700; font-size: clamp(18px, 2vw, 22px); color: #d8f3ee; }
.lantern .pane-label { position: absolute; z-index: 3; transform: translate(-50%, -50%); font-family: var(--display); font-size: clamp(12px, 1.1vw, 14px); color: #fbf0d6; text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 6px rgba(0,0,0,.8); pointer-events: none; transition: color .4s ease; }
.lantern .pane-label[data-state="current"] { color: #e4c9ff; }
.lantern .pane-label[data-state="full"] { color: #ffd866; }

.answers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; width: 100%; min-height: 76px; }
.answer {
  --tex: url("assets/ui/quiz_gold.webp"); --tex-hover: url("assets/ui/quiz_gold_hover.webp");
  min-width: 150px; height: 66px; padding: 0 10px;
  border: solid transparent; border-width: 33px 34px; border-image: var(--tex) 50% 68 fill / 33px 34px / 0 stretch;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: #fff2d6; font-family: var(--display); font-size: 22px; line-height: 1; cursor: pointer;
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
  transition: opacity .25s ease, filter .25s ease, transform .15s ease;
}
.answer:nth-child(2) { --tex: url("assets/ui/quiz_violet.webp"); --tex-hover: url("assets/ui/quiz_violet_hover.webp"); }
.answer:nth-child(3) { --tex: url("assets/ui/quiz_green.webp"); --tex-hover: url("assets/ui/quiz_green_hover.webp"); }
.answer:hover:not(:disabled) { border-image-source: var(--tex-hover); filter: drop-shadow(0 0 10px rgba(232,183,92,.35)); }
.answer:active:not(:disabled) { transform: translateY(1px); }
.answer:disabled { cursor: default; }
.answer.is-dim { opacity: .3; }
.answer.is-right { filter: drop-shadow(0 0 12px rgba(120,230,150,.7)); }
.answer.is-wrong { filter: grayscale(.8) brightness(.7); }

.spell-stage .status { grid-column: 1 / -1; text-align: center; max-width: 44ch; min-height: 3.2em; margin: 4px 0 0; font-size: 1.05em; color: var(--parchment); }
.spell-stage .status strong { color: var(--gold); font-weight: 700; }
.try-copy .rules { color: var(--muted); font-size: .95em; }
.try-copy .rules b { color: var(--text); font-weight: 500; }
.try-actions { grid-column: 1 / -1; display: flex; justify-content: center; gap: 12px; }
.try-actions[hidden] { display: none; }

/* ---------- gallery ---------- */
.gallery-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--dusk-2), 0 30px 60px rgba(0,0,0,.45); }
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { margin-top: 14px; color: var(--muted); min-height: 1.6em; }
.gallery-caption b { color: var(--parchment); font-weight: 500; }
.thumbs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .6; transition: opacity .2s ease, border-color .2s ease; }
.thumbs button:hover { opacity: .9; }
.thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--gold); }
.thumbs img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (max-width: 720px) { .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gallery-nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; padding: 0 10px; }
.gallery-nav button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #c9974a; background: rgba(27,17,30,.75); color: var(--parchment); font-size: 22px; cursor: pointer; }

/* ---------- how it plays ---------- */
.plays { display: grid; gap: clamp(40px, 6vw, 80px); }
.play-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.play-row:nth-child(even) .play-media { order: 2; }
.play-row p { color: var(--muted); max-width: 52ch; }
.play-row h3 { margin-bottom: 12px; }
.play-media img { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--dusk-2), 0 20px 44px rgba(0,0,0,.4); }
@media (max-width: 820px) { .play-row { grid-template-columns: 1fr; } .play-row:nth-child(even) .play-media { order: 0; } }

/* ---------- the journey ---------- */
.journey { background: linear-gradient(var(--night), #160d19); }
.road { list-style: none; margin: 0; padding: 0 0 18px; padding-inline: max(var(--gutter), calc((100% - 1180px) / 2)); scroll-padding-inline: max(var(--gutter), calc((100% - 1180px) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--dusk-2) transparent; }
.road li { scroll-snap-align: start; counter-increment: place; }
.road figure { margin: 0; }
.road img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 1px var(--dusk-2); }
.road figcaption { margin-top: 12px; }
.road .place { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-size: 21px; color: var(--parchment); }
.road .place::before { content: counter(place); color: var(--gold); font-size: 16px; min-width: 1.2em; }
.road .what { display: block; color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.road li.bonus .place::before { content: "★"; }
.road-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.road-hint { color: var(--muted); font-size: 15px; margin: 0; }
.road-nav { display: flex; gap: 10px; }
.road-nav button, .gallery-nav button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #c9974a; background: rgba(27,17,30,.75); color: var(--parchment); font-size: 22px; line-height: 1; cursor: pointer; }
.road-nav button:hover, .gallery-nav button:hover { background: var(--dusk-2); }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--dusk-2); }
.fact { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--dusk-2); }
.fact:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--dusk-2); }
.fact h3 { font-size: 22px; margin-bottom: 8px; }
.fact p { color: var(--muted); margin: 0; font-size: 16.5px; }
@media (max-width: 880px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
}
.langs { color: var(--muted); font-size: 16px; margin-top: 26px; }

/* ---------- get the game ---------- */
.get { text-align: center; background:
  radial-gradient(50% 70% at 50% 100%, rgba(232,183,92,.14), transparent 70%), var(--night); }
.get .section-head { margin-inline: auto; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
.store-label { display: block; font-family: var(--body); font-size: 13px; opacity: .8; margin-bottom: 3px; letter-spacing: .02em; }
.plate .store-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.05; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--dusk-2); padding: 36px 0 48px; color: var(--muted); font-size: 15.5px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a:hover { color: var(--gold); }

/* ---------- document pages (privacy, support, press) ---------- */
.doc-top { position: static; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--dusk-2); }
.doc { padding: clamp(40px, 6vw, 80px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 3vw + 20px, 52px); color: var(--parchment); margin-bottom: 10px; }
.doc .updated { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; color: var(--gold); }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .45em; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }
@media (max-width: 560px) { .doc dl { grid-template-columns: 1fr; gap: 2px; } .doc dd { margin-bottom: 10px; } }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.press-grid a { display: block; text-decoration: none; color: var(--muted); font-size: 14.5px; }
.press-grid img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; box-shadow: 0 0 0 1px var(--dusk-2); }
.press-grid .square img { aspect-ratio: 1; object-fit: contain; background: var(--dusk); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.doc h3 { font-size: 21px; margin: 28px 0 8px; }
.doc .updated a { color: var(--gold); }

/* ---------- language switch ---------- */
.topbar-right { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid rgba(232,183,92,.5); border-radius: 999px;
  background: rgba(27,17,30,.55); color: var(--text); font-weight: 500; font-size: 16px; white-space: nowrap;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ""; width: 7px; height: 7px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.lang-switch[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  min-width: 210px; max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--dusk); border: 1px solid var(--dusk-2); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.lang-switch li a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.lang-switch li a:hover { background: var(--dusk-2); color: var(--gold); }
.lang-switch li a[aria-current="true"] { color: var(--gold); }
@media (max-width: 720px) { .lang-switch summary { font-size: 15px; padding: 5px 10px; } }

/* ---------- scripts without Alegreya glyphs ---------- */
:lang(zh-CN) { --display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(ja) { --display: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
:lang(ko) { --display: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; --body: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
/* Latin words (verbs, brand) inside CJK pages keep the game's typefaces. */
:lang(zh-CN) [lang="en"], :lang(ja) [lang="en"], :lang(ko) [lang="en"],
:lang(zh-CN) .brand, :lang(ja) .brand, :lang(ko) .brand { font-family: "Alegreya SC", "Alegreya Sans", serif; }
:lang(zh-CN) body, :lang(ja) body, :lang(ko) body { line-height: 1.75; }
:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { letter-spacing: 0.02em; line-height: 1.3; }
h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }
