:root {
  --bg: #f3ead7;
  --paper: rgba(255, 252, 242, 0.9);
  --ink: #2f2a20;
  --muted: rgba(47, 42, 32, 0.68);
  --line: rgba(150, 118, 60, 0.24);
  --gold: #9d7731;
  --inner-tone: #f8f6f0;
  --realm-tone: #d8eee8;
  --realm-ink: #4a746d;
  --inner-image: url("../images/inner-main/救済.png");
  --lining-image: url("../images/inner_mask_botanical_lining/救済_蓮葉綾織（れんようあやおり）.png");
  --ornament-image: url("../images/inner_mask_botanical_lining/救済_装飾_蓮華金襴（れんげきんらん）.png");
  --shadow: 0 24px 70px rgba(84, 58, 28, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background:
    linear-gradient(90deg, rgba(10, 12, 11, 0.9), rgba(10, 12, 11, 0.8)),
    var(--lining-image),
    linear-gradient(90deg, rgba(10, 12, 11, 0.98), rgba(10, 12, 11, 0.76), rgba(10, 12, 11, 0.98)),
    var(--inner-image),
    var(--bg);
  background-size: cover, 560px 560px, cover, cover;
  background-position: center;
  background-attachment: fixed;
  line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 76%);
}

button {
  font: inherit;
}

.inner-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 9, 0.78);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif JP", "M PLUS Rounded 1c", serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(218, 194, 139, 0.22);
  border-radius: 999px;
  color: rgba(248, 242, 229, 0.78);
  background: rgba(246, 241, 226, 0.06);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a.is-current {
  color: #17140d;
  background: linear-gradient(135deg, var(--gold), #fff1bf);
}

main {
  width: min(1440px, calc(100% - 32px));
  margin: 24px auto 56px;
  max-width: 100%;
}

.intro {
  min-height: min(760px, calc(100vh - 132px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--inner-tone), transparent 78%), transparent 20%),
    linear-gradient(90deg, rgba(10, 12, 11, 0.92), rgba(10, 12, 11, 0.72)),
    var(--lining-image),
    linear-gradient(110deg, rgba(10, 12, 11, 0.94), rgba(10, 12, 11, 0.62), rgba(10, 12, 11, 0.3)),
    var(--inner-image);
  background-size: cover, cover, min(620px, 80vw), cover, cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.intro-copy,
.atlas-layout,
.worldview,
.realm-strip,
.inner-grid {
  min-width: 0;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 44%, color-mix(in srgb, var(--inner-tone), transparent 58%), transparent 30%),
    var(--ornament-image),
    linear-gradient(135deg, color-mix(in srgb, var(--realm-tone), transparent 70%), transparent 46%);
  background-repeat: no-repeat;
  background-position: center, right 26px top 22px, center;
  background-size: auto, min(240px, 34vw), auto;
  opacity: 0.92;
}

.intro-copy {
  max-width: 680px;
}

.intro-copy h2 {
  margin-bottom: 18px;
  color: #fff8e9;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  line-break: strict;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.54);
}

.intro-copy p:last-child {
  max-width: 58ch;
  margin: 0;
  color: rgba(248, 242, 229, 0.76);
  font-size: clamp(15px, 1.7vw, 19px);
  overflow-wrap: anywhere;
  line-break: strict;
}

.intro-specimen {
  width: min(520px, 100%);
  justify-self: center;
  padding: clamp(10px, 1.4vw, 18px);
  border: 1px solid color-mix(in srgb, var(--inner-tone), transparent 46%);
  background:
    linear-gradient(135deg, rgba(255, 252, 240, 0.2), rgba(255, 252, 240, 0.05)),
    rgba(8, 8, 8, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 240, 0.08),
    inset 0 0 0 9px rgba(8, 8, 8, 0.22),
    0 32px 76px rgba(0, 0, 0, 0.38);
  position: relative;
}

.intro-specimen::before,
.intro-specimen::after {
  content: "";
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  pointer-events: none;
  background-image: var(--ornament-image);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.82;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.22));
}

.intro-specimen::before {
  top: -7%;
  left: -8%;
}

.intro-specimen::after {
  right: -8%;
  bottom: -7%;
  transform: rotate(180deg);
}

.intro-specimen img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border: 1px solid rgba(218, 194, 139, 0.28);
  background: rgba(255, 252, 240, 0.78);
  box-shadow: 0 18px 46px rgba(93, 64, 30, 0.14);
  opacity: 0.92;
}

.realm-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.realm-pill {
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(218, 194, 139, 0.18);
  border-radius: 8px;
  color: var(--pill-ink, var(--ink));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pill-tone, var(--gold)), transparent 72%), rgba(246, 241, 226, 0.045)),
    rgba(11, 12, 11, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.realm-pill.is-active {
  border-color: color-mix(in srgb, var(--pill-tone, var(--gold)), white 16%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pill-tone, var(--gold)), transparent 38%), rgba(246, 241, 226, 0.08)),
    rgba(11, 12, 11, 0.84);
}

.realm-pill span,
.realm-pill strong {
  font-weight: 800;
  min-width: 0;
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.inner-detail {
  position: sticky;
  top: 112px;
  min-height: 460px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 11, 10, 0.92), rgba(10, 11, 10, 0.76)),
    var(--lining-image),
    linear-gradient(135deg, rgba(246, 241, 226, 0.1), rgba(246, 241, 226, 0.035)),
    rgba(10, 11, 10, 0.82);
  background-size: cover, 460px 460px, cover, auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  isolation: isolate;
}

.inner-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(10, 11, 10, 0.74)),
    radial-gradient(circle at 70% 14%, color-mix(in srgb, var(--inner-tone), transparent 70%), transparent 26%);
}

.detail-ornament {
  position: absolute;
  z-index: -1;
  width: min(180px, 46%);
  pointer-events: none;
  opacity: 0.76;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}

.detail-ornament-top {
  top: -16px;
  left: -16px;
}

.detail-ornament-bottom {
  right: -16px;
  bottom: -16px;
  transform: rotate(180deg);
}

.inner-detail h2 {
  margin-bottom: 20px;
  color: #fff7e5;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.detail-mask-plate {
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--inner-tone), transparent 54%);
  background:
    linear-gradient(135deg, rgba(255, 252, 240, 0.16), rgba(255, 252, 240, 0.04)),
    rgba(8, 8, 8, 0.34);
}

.detail-mask-plate img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border: 1px solid rgba(218, 194, 139, 0.18);
  background: rgba(255, 252, 240, 0.9);
}

.inner-detail dl {
  display: grid;
  gap: 1px;
  margin: 0 0 20px;
  border: 1px solid rgba(218, 194, 139, 0.14);
  background: rgba(218, 194, 139, 0.14);
}

.inner-detail dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(12, 13, 12, 0.8);
}

.inner-detail dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.inner-detail dd {
  margin: 0;
  color: rgba(248, 242, 229, 0.82);
}

.inner-detail p:last-of-type {
  margin: 0;
  color: rgba(248, 242, 229, 0.76);
}

.inner-original {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(151, 120, 67, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 252, 242, 0.84), rgba(255, 252, 242, 0.62)),
    url("../images/main_mask1.png"),
    var(--lining-image);
  background-size: cover, min(360px, 92%), 520px 520px;
  background-position: center, right -42px top 42px, center;
  background-repeat: no-repeat, no-repeat, repeat;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.inner-original::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 252, 242, 0.82), rgba(255, 252, 242, 0.5)),
    url("../images/main_mask1.png");
  background-repeat: no-repeat;
  background-position: right -54px center;
  background-size: min(390px, 110%);
  opacity: 0.22;
  filter: saturate(0.85) contrast(0.92);
}

.inner-original + .detail-mask-plate {
  margin-top: 18px;
}

.inner-original-kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner-original h3 {
  color: #302719;
  font-size: 26px;
  line-height: 1.25;
}

.inner-catchcopy {
  margin: 10px 0 14px;
  color: rgba(47, 42, 32, 0.82);
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.inner-detail .original-definition {
  margin-bottom: 14px;
}

.inner-detail .original-definition div {
  grid-template-columns: 58px 1fr;
  background: rgba(255, 252, 242, 0.66);
}

.inner-keywords {
  margin: 0 0 12px;
  color: rgba(47, 42, 32, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.inner-original blockquote {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  color: rgba(47, 42, 32, 0.76);
  background: rgba(255, 252, 242, 0.52);
  font-family: "Noto Serif JP", serif;
  line-height: 1.75;
  position: relative;
}

.lining-panel {
  display: grid;
  gap: 1px;
  margin-top: 20px;
  border: 1px solid rgba(218, 194, 139, 0.18);
  background-color: rgba(10, 11, 10, 0.72);
  background-size: cover;
  background-position: center;
}

.lining-panel-text {
  padding: 12px;
  background: rgba(10, 11, 10, 0.42);
}

.lining-panel-text span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lining-panel-text strong {
  display: block;
  margin-top: 3px;
  color: #fff8e9;
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  line-height: 1.35;
}

.inner-swatch {
  width: 100%;
  height: 8px;
  margin-top: 24px;
  border-radius: 999px;
  box-shadow: 0 0 32px color-mix(in srgb, var(--inner-tone), transparent 46%);
}

.inner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.inner-card {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(218, 194, 139, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(246, 241, 226, 0.08), rgba(246, 241, 226, 0.03)),
    rgba(10, 11, 10, 0.78);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  isolation: isolate;
}

.card-lining,
.card-ornament {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.card-lining {
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}

.card-lining::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 10, 0.18), rgba(10, 11, 10, 0.86));
}

.card-ornament {
  inset: auto -8px -8px auto;
  width: 58%;
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  opacity: 0.5;
  transform: rotate(180deg);
}

.inner-card:hover,
.inner-card.is-active {
  border-color: color-mix(in srgb, var(--card-tone), white 12%);
  transform: translateY(-2px);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.3),
    0 0 0 1px color-mix(in srgb, var(--card-tone), transparent 44%);
}

.inner-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(218, 194, 139, 0.18);
  border-radius: 5px;
}

.inner-card .card-realm {
  color: var(--card-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner-card strong {
  color: #fff8e9;
  font-family: "Noto Serif JP", serif;
  font-size: 26px;
  line-height: 1;
}

.inner-card em {
  color: rgba(248, 242, 229, 0.66);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worldview {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 11, 10, 0.76);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.worldview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    var(--ornament-image),
    linear-gradient(135deg, color-mix(in srgb, var(--inner-tone), transparent 86%), transparent 42%);
  background-repeat: no-repeat;
  background-position: right 24px top 18px, center;
  background-size: min(220px, 34vw), auto;
  opacity: 0.5;
}

.worldview h2 {
  color: #fff8e9;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
}

.worldview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(218, 194, 139, 0.16);
}

.world-card {
  min-height: 190px;
  padding: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--world-tone), transparent 78%), rgba(246, 241, 226, 0.035)),
    rgba(13, 14, 13, 0.92);
}

.world-card span {
  color: var(--world-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-card h3 {
  margin: 10px 0;
  color: #fff8e9;
  font-size: 26px;
}

.world-card p {
  margin: 0;
  color: rgba(248, 242, 229, 0.7);
}

/* Bright botanical surface */
body {
  background:
    radial-gradient(circle at 14% 6%, color-mix(in srgb, var(--inner-tone), white 20%), transparent 32%),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--realm-tone), white 18%), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 242, 0.82), rgba(246, 235, 212, 0.9)),
    var(--lining-image),
    linear-gradient(180deg, #fff9ec, #efe1c6);
  background-size: cover, cover, cover, min(900px, 96vw), cover;
  background-position: center, center, center, center top, center;
}

body::before {
  background:
    linear-gradient(rgba(112, 88, 48, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 88, 48, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 84%);
}

.inner-topbar {
  border-bottom-color: rgba(151, 120, 67, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 252, 242, 0.92), rgba(255, 252, 242, 0.72), rgba(246, 235, 212, 0.84)),
    url("../images/main_mask2.png"),
    var(--lining-image);
  background-size: cover, min(520px, 46vw), 520px 520px;
  background-position: center, left clamp(230px, 24vw, 420px) center, center;
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--ink);
}

.site-nav a {
  color: rgba(47, 42, 32, 0.72);
  background: rgba(255, 252, 242, 0.54);
  border-color: rgba(151, 120, 67, 0.26);
}

.site-nav a.is-current {
  color: #211b11;
  background: linear-gradient(135deg, #f0cf79, #fff4bd);
}

.intro {
  border-color: rgba(151, 120, 67, 0.26);
  background:
    linear-gradient(100deg, rgba(255, 252, 242, 0.92), rgba(255, 252, 242, 0.7), rgba(255, 252, 242, 0.42)),
    var(--lining-image),
    linear-gradient(90deg, rgba(255, 252, 242, 0.6), rgba(255, 252, 242, 0.2)),
    var(--inner-image);
  background-size: cover, min(980px, 110vw), cover, cover;
  background-position: center, center, center, center;
  box-shadow: 0 28px 76px rgba(93, 64, 30, 0.2);
}

.intro::before {
  background:
    var(--ornament-image),
    linear-gradient(135deg, color-mix(in srgb, var(--inner-tone), transparent 26%), transparent 58%);
  background-repeat: no-repeat;
  background-position: right 26px top 22px, center;
  background-size: min(280px, 38vw), auto;
  opacity: 0.68;
}

.intro-copy h2 {
  color: #302719;
  text-shadow: 0 10px 28px rgba(255, 250, 232, 0.72);
}

.intro-copy p:last-child {
  color: rgba(47, 42, 32, 0.74);
  font-weight: 600;
}

.intro-specimen {
  background:
    linear-gradient(135deg, rgba(255, 252, 242, 0.6), rgba(255, 252, 242, 0.22)),
    var(--lining-image);
  background-size: cover, 620px 620px;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 240, 0.64),
    inset 0 0 0 9px rgba(255, 252, 240, 0.26),
    0 24px 58px rgba(93, 64, 30, 0.2);
}

.realm-pill {
  color: #2f2a20;
  border-color: rgba(151, 120, 67, 0.24);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pill-tone, var(--gold)), transparent 62%), rgba(255, 252, 242, 0.52)),
    var(--lining-image),
    rgba(255, 252, 242, 0.76);
  background-size: cover, 420px 420px, auto;
  box-shadow: 0 12px 28px rgba(93, 64, 30, 0.12);
}

.realm-pill.is-active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pill-tone, var(--gold)), transparent 42%), rgba(255, 252, 242, 0.64)),
    var(--lining-image),
    rgba(255, 252, 242, 0.9);
}

.inner-detail {
  border-color: rgba(151, 120, 67, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 252, 242, 0.9), rgba(255, 252, 242, 0.64)),
    var(--lining-image),
    rgba(255, 252, 242, 0.72);
  background-size: cover, 620px 620px, auto;
  box-shadow: 0 22px 60px rgba(93, 64, 30, 0.18);
}

.inner-detail::before {
  background:
    linear-gradient(180deg, rgba(255, 252, 242, 0.18), rgba(255, 252, 242, 0.72)),
    radial-gradient(circle at 70% 14%, color-mix(in srgb, var(--inner-tone), transparent 42%), transparent 32%);
}

.inner-detail h2,
.worldview h2,
.world-card h3,
.inner-card strong {
  color: #302719;
}

.inner-detail dl {
  border-color: rgba(151, 120, 67, 0.18);
  background: rgba(151, 120, 67, 0.18);
}

.inner-detail dl div,
.lining-panel-text {
  background: rgba(255, 252, 242, 0.62);
}

.inner-detail dd,
.inner-detail p:last-of-type {
  color: rgba(47, 42, 32, 0.74);
}

.inner-original p,
.inner-original dd,
.inner-original blockquote {
  color: rgba(47, 42, 32, 0.76);
}

.detail-mask-plate {
  background:
    linear-gradient(135deg, rgba(255, 252, 240, 0.68), rgba(255, 252, 240, 0.22)),
    var(--lining-image);
  background-size: cover, 520px 520px;
}

.lining-panel {
  background-color: rgba(255, 252, 242, 0.56);
}

.lining-panel-text strong {
  color: #302719;
}

.inner-card {
  color: #302719;
  border-color: rgba(151, 120, 67, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 252, 242, 0.54), rgba(255, 252, 242, 0.34)),
    rgba(255, 252, 242, 0.72);
  box-shadow: 0 16px 36px rgba(93, 64, 30, 0.14);
}

.card-lining {
  opacity: 0.68;
}

.card-lining::after {
  background: linear-gradient(180deg, rgba(255, 252, 242, 0.06), rgba(255, 252, 242, 0.76));
}

.inner-card em {
  color: rgba(47, 42, 32, 0.62);
}

.worldview {
  border-color: rgba(151, 120, 67, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 252, 242, 0.86), rgba(255, 252, 242, 0.54)),
    var(--lining-image);
  background-size: cover, min(900px, 100vw);
  box-shadow: 0 20px 56px rgba(93, 64, 30, 0.16);
}

.worldview-grid {
  background: rgba(151, 120, 67, 0.16);
}

.world-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--world-tone), transparent 66%), rgba(255, 252, 242, 0.62)),
    rgba(255, 252, 242, 0.72);
}

.world-card p {
  color: rgba(47, 42, 32, 0.68);
}

@media (max-width: 1100px) {
  .realm-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .inner-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .intro,
  .atlas-layout,
  .worldview {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
  }

  .inner-detail {
    position: static;
    min-height: auto;
  }

  .worldview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    width: 100%;
  }

  main {
    width: min(calc(100vw - 18px), 372px);
    margin: 14px auto 56px 9px;
    overflow: hidden;
  }

  .intro {
    padding: 20px;
    width: 100%;
    overflow: hidden;
  }

  .intro-specimen {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    overflow: hidden;
  }

  .realm-strip,
  .inner-grid,
  .worldview,
  .atlas-layout {
    width: 100%;
    max-width: 100%;
  }

  .intro-specimen::before,
  .intro-specimen::after {
    width: 34%;
  }

  .intro-copy h2 {
    font-size: clamp(30px, 9vw, 34px);
  }

  .realm-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-grid,
  .worldview-grid {
    grid-template-columns: 1fr;
  }
}
