:root {
  --atlas-ink: #211e1a;
  --atlas-paper: #f4efe7;
  --atlas-paper-deep: #e9e1d5;
  --atlas-river: #465d62;
  --atlas-rose: #95535b;
  --atlas-muted: #756e65;
  --atlas-line: rgba(33, 30, 26, 0.16);
  --atlas-serif: Georgia, "Times New Roman", serif;
  --atlas-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.atlas-page {
  min-width: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 36rem),
    var(--atlas-paper);
  color: var(--atlas-ink);
  font-family: var(--atlas-sans);
}

.atlas-page a:focus-visible {
  outline: 2px solid var(--atlas-rose);
  outline-offset: 5px;
}

.atlas-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--atlas-line);
}

.atlas-home {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.atlas-home span {
  font: 500 30px/1 var(--atlas-serif);
  letter-spacing: 0.08em;
}

.atlas-home small,
.atlas-nav a,
.atlas-languages a,
.atlas-signature,
.atlas-kicker,
.atlas-story-meta,
.atlas-story-number,
.atlas-watch-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.atlas-nav-wrap,
.atlas-nav,
.atlas-languages {
  display: flex;
  align-items: center;
}

.atlas-nav-wrap { gap: clamp(18px, 3vw, 42px); }
.atlas-nav { gap: clamp(18px, 2.6vw, 36px); }

.atlas-nav a {
  padding: 9px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.atlas-nav a:hover { border-bottom-color: currentColor; }

.atlas-languages {
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--atlas-line);
  border-radius: 999px;
}

.atlas-languages a {
  min-width: 38px;
  padding: 8px 9px;
  border-radius: 999px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: none;
}

.atlas-languages a:hover,
.atlas-languages a[aria-current="page"] {
  background: var(--atlas-ink);
  color: var(--atlas-paper);
}

.atlas-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: clamp(48px, 8vw, 144px);
  align-items: end;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: clamp(84px, 12vw, 178px) 0 clamp(72px, 9vw, 126px);
}

.atlas-signature {
  margin: 0 0 24px;
  color: var(--atlas-rose);
}

.atlas-masthead h1 {
  max-width: 980px;
  margin: 0;
  font: 400 clamp(74px, 10.8vw, 166px)/0.82 var(--atlas-serif);
  letter-spacing: -0.072em;
  text-wrap: balance;
}

.atlas-lede {
  max-width: 760px;
  margin: clamp(34px, 5vw, 68px) 0 0;
  color: #4d4740;
  font: 400 clamp(20px, 2.25vw, 34px)/1.38 var(--atlas-serif);
  text-wrap: balance;
}

.atlas-scope {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--atlas-line);
}

.atlas-scope > div {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--atlas-line);
}

.atlas-scope span {
  display: block;
  margin-bottom: 10px;
  color: var(--atlas-rose);
  font: 600 11px/1.2 var(--atlas-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.atlas-scope p {
  margin: 0;
  color: #554f47;
  font-size: 14px;
  line-height: 1.65;
}

.atlas-scope a {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-underline-offset: 5px;
}

.atlas-collection {
  padding: clamp(72px, 9vw, 132px) max(24px, calc((100vw - 1440px) / 2));
  background: #1e1d1a;
  color: #f7f2e9;
}

.atlas-collection-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 94px);
}

.atlas-kicker {
  margin: 0;
  color: #dca7ae;
}

.atlas-collection-heading h2 {
  max-width: 820px;
  margin: 0;
  font: 400 clamp(46px, 6.6vw, 96px)/0.98 var(--atlas-serif);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.atlas-stories {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.atlas-story {
  min-width: 0;
  border-top: 1px solid rgba(247, 242, 233, 0.24);
  padding-top: 18px;
}

.atlas-story-feature { grid-column: 1 / -1; }
.atlas-story-secondary { grid-column: 1 / span 8; }
.atlas-story-watch { grid-column: 9 / -1; }

.atlas-story-feature article {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.68fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: end;
}

.atlas-story-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #34322e;
  color: white;
}

.atlas-story-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms ease, opacity 500ms ease;
}

.atlas-story-image:hover img { transform: scale(1.018); }

.atlas-story-number {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background: rgba(24, 23, 21, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.atlas-watch-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 11px;
  background: rgba(24, 23, 21, 0.72);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.08em;
}

.atlas-story-watch .atlas-story-image img {
  filter: grayscale(0.78) saturate(0.55);
  opacity: 0.74;
}

.atlas-story-copy { padding: 26px 0 8px; }
.atlas-story-feature .atlas-story-copy { padding-bottom: 20px; }

.atlas-story-meta {
  margin: 0 0 16px;
  color: #dca7ae;
}

.atlas-story h3 {
  margin: 0;
  font: 400 clamp(34px, 4vw, 62px)/1.02 var(--atlas-serif);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.atlas-story-feature h3 { font-size: clamp(44px, 5.2vw, 78px); }
.atlas-story-watch h3 { font-size: clamp(28px, 2.8vw, 40px); }

.atlas-story h3 a {
  color: inherit;
  text-decoration: none;
}

.atlas-story h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }

.atlas-story-copy > p:not(.atlas-story-meta) {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(247, 242, 233, 0.68);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
}

.atlas-story-watch .atlas-story-copy > p:not(.atlas-story-meta) {
  font-size: 14px;
  line-height: 1.65;
}

.atlas-story-read {
  display: inline-block;
  margin-top: 24px;
  color: #f7f2e9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration-color: rgba(247, 242, 233, 0.44);
  text-underline-offset: 6px;
}

.atlas-story-read:hover { text-decoration-color: currentColor; }

.atlas-footer {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr auto;
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: clamp(62px, 8vw, 110px) 0;
}

.atlas-footer strong {
  display: block;
  font: 500 44px/1 var(--atlas-serif);
  letter-spacing: 0.08em;
}

.atlas-footer small,
.atlas-footer p,
.atlas-footer a {
  color: var(--atlas-muted);
  font-size: 12px;
  line-height: 1.7;
}

.atlas-footer small { display: block; margin-top: 10px; }
.atlas-footer p { max-width: 570px; margin: 0; }
.atlas-footer a { font-weight: 700; text-underline-offset: 5px; }

html[lang="th"] .atlas-page,
html[lang="th"] .atlas-home span,
html[lang="th"] .atlas-masthead h1,
html[lang="th"] .atlas-lede,
html[lang="th"] .atlas-collection-heading h2,
html[lang="th"] .atlas-story h3,
html[lang="th"] .atlas-footer strong {
  --atlas-serif: "Noto Serif Thai", "Leelawadee UI", Tahoma, serif;
  --atlas-sans: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}

html[lang="zh-Hans"] .atlas-page,
html[lang="zh-Hans"] .atlas-home span,
html[lang="zh-Hans"] .atlas-masthead h1,
html[lang="zh-Hans"] .atlas-lede,
html[lang="zh-Hans"] .atlas-collection-heading h2,
html[lang="zh-Hans"] .atlas-story h3,
html[lang="zh-Hans"] .atlas-footer strong {
  --atlas-serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --atlas-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

html[lang="zh-Hant"] .atlas-page,
html[lang="zh-Hant"] .atlas-home span,
html[lang="zh-Hant"] .atlas-masthead h1,
html[lang="zh-Hant"] .atlas-lede,
html[lang="zh-Hant"] .atlas-collection-heading h2,
html[lang="zh-Hant"] .atlas-story h3,
html[lang="zh-Hant"] .atlas-footer strong {
  --atlas-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --atlas-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

html[lang="th"] .atlas-masthead h1,
html[lang="zh-Hans"] .atlas-masthead h1,
html[lang="zh-Hant"] .atlas-masthead h1 {
  font-size: clamp(64px, 9vw, 136px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

html[lang="th"] .atlas-home small,
html[lang="th"] .atlas-nav a,
html[lang="th"] .atlas-signature,
html[lang="th"] .atlas-kicker,
html[lang="th"] .atlas-story-meta,
html[lang="zh-Hans"] .atlas-home small,
html[lang="zh-Hans"] .atlas-nav a,
html[lang="zh-Hans"] .atlas-signature,
html[lang="zh-Hans"] .atlas-kicker,
html[lang="zh-Hans"] .atlas-story-meta,
html[lang="zh-Hant"] .atlas-home small,
html[lang="zh-Hant"] .atlas-nav a,
html[lang="zh-Hant"] .atlas-signature,
html[lang="zh-Hant"] .atlas-kicker,
html[lang="zh-Hant"] .atlas-story-meta {
  letter-spacing: 0.04em;
  text-transform: none;
}

@media (max-width: 980px) {
  .atlas-nav { display: none; }
  .atlas-masthead { grid-template-columns: 1fr; }
  .atlas-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-scope > div { padding-right: 24px; }
  .atlas-scope > div + div { padding-left: 24px; border-left: 1px solid var(--atlas-line); }
  .atlas-collection-heading { grid-template-columns: 1fr; }
  .atlas-story-feature article { grid-template-columns: 1fr; }
  .atlas-story-secondary { grid-column: 1 / span 7; }
  .atlas-story-watch { grid-column: 8 / -1; }
  .atlas-footer { grid-template-columns: 0.6fr 1.4fr; }
  .atlas-footer > a { grid-column: 2; }
}

@media (max-width: 680px) {
  .atlas-topbar,
  .atlas-masthead,
  .atlas-footer { width: min(100% - 32px, 1440px); }
  .atlas-topbar { gap: 14px; padding: 18px 0; }
  .atlas-home small { display: none; }
  .atlas-home span { font-size: 26px; }
  .atlas-languages a { min-width: 34px; padding: 7px 6px; font-size: 10px; }
  .atlas-masthead { padding: 72px 0 64px; }
  .atlas-masthead h1,
  html[lang="th"] .atlas-masthead h1,
  html[lang="zh-Hans"] .atlas-masthead h1,
  html[lang="zh-Hant"] .atlas-masthead h1 { font-size: clamp(54px, 19vw, 86px); }
  .atlas-lede { font-size: 20px; }
  .atlas-scope { grid-template-columns: 1fr; }
  .atlas-scope > div { padding-right: 0; }
  .atlas-scope > div + div { padding-left: 0; border-left: 0; }
  .atlas-collection { padding-right: 16px; padding-left: 16px; }
  .atlas-collection-heading h2 { font-size: clamp(42px, 14vw, 66px); }
  .atlas-stories { display: block; }
  .atlas-story + .atlas-story { margin-top: 58px; }
  .atlas-story h3,
  .atlas-story-feature h3,
  .atlas-story-watch h3 { font-size: clamp(34px, 10vw, 52px); }
  .atlas-story-watch .atlas-story-image { max-width: 82%; }
  .atlas-footer { grid-template-columns: 1fr; }
  .atlas-footer > a { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-story-image img { transition: none; }
  .atlas-story-image:hover img { transform: none; }
}
