.atlas-page {
  color: #36392d;
  background:
    radial-gradient(ellipse at 22% 14%, #f7f3e8 10%, transparent 52%),
    radial-gradient(ellipse at 82% 57%, #eae9da99, transparent 44%),
    #f2efe4;
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
}

.atlas-wrap { width: min(calc(100% - 88px), 1200px); margin-inline: auto; }

.atlas-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f0e5;
}
.atlas-header .corner-tools { position: absolute; }
.atlas-masthead {
  min-height: 76px;
  margin-left: max(24px, env(safe-area-inset-left));
  margin-right: max(24px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: inset 0 -1px #b9b5a066;
}

.atlas-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.atlas-brand-text {
  color: #453629;
  font: 400 clamp(23px, 2.9vw, 38px)/1.1 "Map WenKai", "Kaiti SC", KaiTi, serif;
  letter-spacing: .06em;
}
.atlas-brand-text:not(:lang(zh)) { letter-spacing: 0; }
.atlas-seal { width: clamp(20px, 2.45vw, 30px); height: auto; }

.atlas-home {
  width: calc(100% - clamp(16px, 2.5vw, 42px));
  margin-inline: auto;
  padding-block: clamp(9px, 1.4vw, 22px);
}
.atlas-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.atlas-empty { color: #596251; text-align: center; margin: 32px 0; }
.atlas-maps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(4px, .5vw, 8px); }
.atlas-map {
  display: block;
  position: relative;
  aspect-ratio: 1440 / 320;
  max-height: 380px;
  padding: 2px clamp(5px, .8vw, 12px);
  overflow: hidden;
  background: #eae4d5;
}
.atlas-picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.atlas-inscription {
  position: absolute;
  top: clamp(7px, 9%, 34px);
  left: var(--title-x, 10%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3px, .6vw, 9px);
  color: #303b31;
  pointer-events: none;
}
.atlas-inscription strong {
  writing-mode: vertical-rl;
  font: 400 clamp(15px, 2.8vw, 42px)/1 "Map WenKai", "Kaiti SC", KaiTi, serif;
  letter-spacing: .045em;
  white-space: nowrap;
  text-shadow: 0 0 .3em #f6efdbb3;
}
.atlas-place-seal {
  display: grid;
  place-items: center;
  width: var(--seal-width, 1.25em);
  height: var(--seal-height, 1.27em);
  border: 1px solid var(--place-ink, #9c3d2f);
  border-radius: var(--place-corners, 15% 11% 13% 9%);
  color: var(--seal-letter, #fff4e0);
  background: var(--seal-fill, var(--place-ink, #9c3d2f));
  font: 400 clamp(11px, 1.45vw, 21px)/1 "Map WenKai", "Kaiti SC", KaiTi, serif;
  transform: rotate(var(--seal-turn, -3deg));
}
[data-place="2"] { --title-x: 55%; --seal-width: 1.03em; --seal-height: 1.52em; --place-corners: 8% 15% 8% 15%; --seal-turn: 3deg; }
[data-place="3"] { --title-x: 86%; --seal-fill: transparent; --seal-letter: #923924; --seal-turn: 4deg; }
[data-place="4"] { --title-x: 12%; --place-ink: #954337; --seal-height: 1.45em; --seal-turn: 1deg; }
[data-place="5"] { --title-x: 85%; --place-corners: 47% 43% 49% 44%; --seal-turn: -5deg; }
[data-place="6"] { --title-x: 9%; --seal-fill: transparent; --seal-letter: #923924; --seal-width: 1.44em; --seal-turn: -2deg; }
[data-place="7"] { --title-x: 13%; --place-ink: #a24a36; --seal-width: 1.43em; --seal-height: 1.11em; }
[data-place="8"] { --title-x: 12%; --place-corners: 36% 29% 32% 37%; --seal-turn: 6deg; }
[data-place="9"] { --title-x: 11%; --seal-width: 1.01em; --seal-height: 1.33em; --seal-turn: 4deg; }
[data-place="10"] { --title-x: 84%; --seal-fill: transparent; --seal-letter: #923924; --place-corners: 24% 19% 25% 20%; --seal-turn: 2deg; }
[data-place="11"] { --title-x: 13%; --place-ink: #a64431; --seal-height: 1.39em; --seal-turn: -6deg; }
.atlas-page:is(:lang(en), :lang(ko)) .atlas-inscription {
  left: clamp(12px, 5%, 64px);
  align-items: flex-start;
  max-width: 53%;
}
.atlas-page:is(:lang(en), :lang(ko)) .atlas-inscription strong {
  writing-mode: horizontal-tb;
  white-space: normal;
  line-height: 1.05;
}
.atlas-page:lang(en) .atlas-inscription strong { font-family: Georgia, serif; font-style: italic; }
.atlas-page:lang(ko) .atlas-inscription strong { font-family: "Nanum Brush Script", "AppleMyungjo", serif; }

.atlas-map:hover .atlas-picture, .atlas-map:focus-visible .atlas-picture { filter: brightness(.96); }

.atlas-primary {
  color: #fff8e9;
  background: radial-gradient(ellipse at 25% 22%, #b34f3c, #9d3c2d 63%, #913426);
  border-radius: 5px 4px 6px 4px / 5px 6px 4px 6px;
  letter-spacing: .09em;
  padding: 0 17px;
  font-size: 17px;
}
.atlas-primary:hover { background: #903829; }
.atlas-page :focus { outline: none; }
.atlas-page :is(button, select, summary):focus-visible {
  text-decoration: underline;
  text-underline-offset: .26em;
}

@media (max-width: 850px) {
  .atlas-wrap { width: calc(100% - 44px); }
}
@media (max-width: 720px), (pointer: coarse) and (max-height: 600px) {
  .atlas-masthead {
    min-height: calc(60px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    margin-left: max(9px, env(safe-area-inset-left));
    margin-right: max(9px, env(safe-area-inset-right));
  }
}
@media (max-width: 630px) {
  .atlas-wrap { width: calc(100% - 32px); }
  .atlas-brand-text { font-size: clamp(16px, 5vw, 26px); }
  .atlas-inscription strong { font-size: clamp(10px, 3.2vw, 19px); }
  .atlas-page:lang(ja) .atlas-inscription { left: 5%; align-items: flex-start; }
  .atlas-page:lang(ja) .atlas-inscription strong { writing-mode: horizontal-tb; }
}

.feedback-page { max-width: 580px; padding-block: 50px; }
.feedback-page a { color: #56634d; }
.feedback-page form { display: grid; gap: 12px; }
.feedback-page textarea, .feedback-page input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #b9b5a0;
  border-radius: 4px;
  font: inherit;
  color: inherit;
  background: #fbf8ee;
}
.feedback-page button { border: 0; margin-top: 8px; justify-self: start; cursor: pointer; }
.feedback-page :is(textarea, input):focus-visible { border-bottom-color: #9e4836; }
