/* The existing world and reading scene remain in scene.css. This file only
   joins that scene to the site shell, navigation, and continuing stories. */
body.home-surreal-page {
  --paper: #f3f1e9;
  --ink: #173135;
  --red: #d44c39;
  background: var(--paper);
  color: var(--ink);
}
body.home-surreal-page .wrap { width: 100%; max-width: none; }
body.home-surreal-page .wrap > main { width: 100%; }
/* The legacy article .reading rule must not constrain the home scene. */
body.home-surreal-page #reading {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow-wrap: normal;
}
body.home-surreal-page .skip { z-index: 40; }
body.home-surreal-page .masthead {
  height: auto;
  min-height: 0;
  border: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
body.home-surreal-page .masthead .wordmark { margin-right: auto; }
body.home-surreal-page .masthead .language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 10px;
  gap: 7px;
}
body.home-surreal-page .masthead .language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
html[lang|="vi"] .surreal-ko,
html[lang|="ko"] .surreal-vi { display: none; }
.world-quick-links { display: inline-flex; flex-wrap: wrap; gap: 5px 16px; margin-left: 20px; vertical-align: middle; text-shadow: 0 1px 10px #082829a0; }
.world-quick-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.world-quick-links a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) { .world-quick-links { display: flex; gap: 2px 14px; margin: 10px 0 0; } .world-quick-links a { font-size: 12px; } }

#surreal-navigation {
  position: relative;
  z-index: 25;
  flex: 0 0 auto;
  color: #fff;
  font-size: 12px;
  text-shadow: none;
  pointer-events: auto;
}
#surreal-navigation summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #ffffff70;
  border-radius: 99px;
  background: #183839d9;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  list-style: none;
  white-space: nowrap;
}
#surreal-navigation summary::-webkit-details-marker { display: none; }
#surreal-navigation summary:hover,
#surreal-navigation[open] summary { background: #173135; }
#surreal-navigation summary:focus-visible,
#surreal-navigation a:focus-visible { outline: 3px solid #ffb58c; outline-offset: 3px; }
.surreal-menu-arrow { display: inline-block; font-size: 15px; line-height: 1; transform: translateY(-2px); }
#surreal-navigation[open] .surreal-menu-arrow { transform: rotate(180deg) translateY(2px); }
#surreal-navigation .surreal-navigation-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  width: min(440px, calc(100vw - 60px));
  max-height: calc(100dvh - 88px);
  overflow: auto;
  padding: 23px;
  border: 1px solid #a9c1b7;
  border-radius: 12px;
  background: #173135;
  box-shadow: 0 16px 40px #0925265c;
  color: #fff;
}
#surreal-navigation:not([open]) .surreal-navigation-panel { display: none; }
.surreal-navigation-group { display: flex; flex-direction: column; align-items: stretch; gap: 1px; min-width: 0; }
.surreal-navigation-group > p { margin: 0 0 11px; color: #b4d4c8; font-size: 11px; font-weight: 700; }
#surreal-navigation .surreal-navigation-panel a {
  display: block;
  min-height: 37px;
  padding: 8px 2px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  word-break: keep-all;
}
#surreal-navigation .surreal-navigation-panel a:hover { color: #ffb58c; text-decoration: underline; text-underline-offset: 4px; }
#surreal-account-slot:empty { display: none; }

#surreal-explore {
  position: relative;
  width: 100%;
  padding: clamp(62px, 8vw, 124px) 0 clamp(72px, 9vw, 130px);
  background: var(--paper);
  color: var(--ink);
}
.surreal-explore-inner { width: min(1280px, calc(100% - 84px)); margin: 0 auto; }
.surreal-explore-opening { max-width: 790px; margin-bottom: clamp(38px, 5vw, 75px); }
#surreal-explore-title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.1;
  letter-spacing: -.055em;
  font-weight: 800;
  word-break: keep-all;
  text-wrap: balance;
}
.surreal-explore-intro { max-width: 50ch; margin: 20px 0 0; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.55; font-weight: 600; word-break: keep-all; }
.surreal-image-note { max-width: 70ch; margin: 27px 0 0; padding-left: 13px; border-left: 3px solid var(--red); color: #4f6865; font-size: 12px; line-height: 1.5; word-break: keep-all; }
.surreal-stories { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(45px, 6vw, 84px) clamp(24px, 3vw, 50px); }
.surreal-story { grid-column: span 6; min-width: 0; border-top: 1px solid #b8c7bd; padding-top: 13px; }
.surreal-story:first-child,
.surreal-story--lead { grid-column: span 7; }
.surreal-story:nth-child(2) { grid-column: span 5; }
.surreal-story:nth-child(3) { grid-column: span 12; }
.surreal-story-link { display: block; color: inherit; text-decoration: none; }
.surreal-story-link:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.surreal-story figure { width: 100%; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #dbe2d9; }
.surreal-story figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.surreal-story figure.surreal-story-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.surreal-story figure.surreal-story-pair img { min-width: 0; object-position: 50% 50%; }
.surreal-story:first-child figure img,
.surreal-story--lead figure img { object-position: 50% 39%; }
.surreal-story:nth-child(2) figure { aspect-ratio: 3 / 2; }
.surreal-story:first-child figure { aspect-ratio: 3 / 2; }
.surreal-story:nth-child(3) .surreal-story-link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(24px, 4vw, 60px); }
.surreal-story:nth-child(3) figure { aspect-ratio: 16 / 9; }
.surreal-story:nth-child(3) figure img { object-position: 50% 50%; }
.surreal-story:nth-child(3) .surreal-story-copy { padding-bottom: 7px; }
.surreal-story-copy { padding-top: 18px; }
.surreal-story-topic { margin: 0 0 10px; color: #4f6865; font-size: 12px; font-weight: 700; line-height: 1.4; }
.surreal-story-copy h3 { max-width: 23ch; margin: 0; font-size: clamp(22px, 2.35vw, 34px); line-height: 1.22; letter-spacing: -.035em; font-weight: 800; word-break: keep-all; }
.surreal-story:first-child h3,
.surreal-story--lead h3 { font-size: clamp(27px, 2.8vw, 40px); }
.surreal-story-summary { max-width: 49ch; margin: 12px 0 0; color: #48605d; font-size: 15px; line-height: 1.6; word-break: keep-all; }
.surreal-story-link:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.surreal-explore-ending { max-width: 100%; margin-top: clamp(60px, 8vw, 105px); border-top: 2px solid var(--ink); font-size: clamp(17px, 1.7vw, 23px); font-weight: 800; }
.surreal-explore-ending a { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 70px; text-decoration: none; }
.surreal-explore-ending a::after { content: "↗"; color: var(--red); font-size: 29px; font-weight: 400; }
.surreal-explore-ending a:hover { color: #ad382b; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
body.home-surreal-page .wrap > footer { width: min(1280px, calc(100% - 84px)); margin: 0 auto; }

@media (max-width: 760px) {
  body.home-surreal-page .masthead { gap: 6px; padding: 17px 18px; }
  body.home-surreal-page .masthead .wordmark { font-size: 22px; }
  body.home-surreal-page .masthead .language-switch { padding: 0 7px; gap: 6px; }
  #surreal-navigation summary { padding: 0 10px; gap: 5px; }
  .surreal-explore-inner,
  body.home-surreal-page .wrap > footer { width: calc(100% - 40px); }
  .surreal-stories { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .surreal-story,
  .surreal-story:first-child,
  .surreal-story--lead,
  .surreal-story:nth-child(2),
  .surreal-story:nth-child(3) { grid-column: 1; }
  .surreal-story:nth-child(3) .surreal-story-link { display: block; }
  .surreal-story figure { aspect-ratio: 4 / 3; }
  .surreal-story:first-child figure,
  .surreal-story--lead figure { aspect-ratio: 3 / 2; }
  .surreal-story:nth-child(3) figure { aspect-ratio: 16 / 9; }
  .surreal-story:nth-child(3) .surreal-story-copy { padding-bottom: 0; }
  .surreal-story-copy { padding-top: 14px; }
  .surreal-story-summary { font-size: 14px; }
}
@media (max-width: 390px) {
  body.home-surreal-page .masthead { flex-wrap: nowrap; }
  body.home-surreal-page .masthead .wordmark { font-size: 19px; }
  body.home-surreal-page .masthead .language-switch { font-size: 10px; }
  #surreal-navigation summary { font-size: 10px; }
  #surreal-navigation .surreal-navigation-panel { grid-template-columns: 1fr; gap: 20px; padding: 17px 18px; }
  #surreal-explore { padding-top: 59px; }
  #surreal-explore-title { font-size: clamp(29px, 8.5vw, 35px); }
  .surreal-explore-intro { margin-top: 14px; font-size: 15px; }
  .surreal-image-note { margin-top: 20px; }
}
@media (max-width: 340px) {
  body.home-surreal-page .masthead { gap: 4px; padding: 14px 12px; }
  body.home-surreal-page .masthead .wordmark { flex: 0 0 auto; font-size: 17px; white-space: nowrap; }
  body.home-surreal-page .masthead .language-switch { gap: 2px; padding: 0 4px; }
  body.home-surreal-page .masthead .language-switch a { justify-content: center; min-width: 28px; padding: 0 3px; border: 0; border-radius: 0; background: transparent; }
  #surreal-navigation summary { gap: 4px; padding: 0 8px; }
}
