:root {
  color-scheme: dark;
  font-family: system-ui, "PingFang SC", sans-serif;
  color: #f5e7d6;
  background: #1b1423;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #ffdd98; outline-offset: 3px; }
.nav-page {
  position: relative;
  isolation: isolate;
  --art-width: min(100vw, 177.7778svh);
  min-height: 100svh;
  padding: clamp(110px,16vh,180px) 0 5vh calc(var(--art-width) * .078);
}
.nav-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #1b1423 url('../assets/nav-portal/scene.webp') center 80% / cover no-repeat;
}
.nav-panel { width: min(calc(var(--art-width) * .44),850px); }
.nav-hero img { display: block; width: 54%; height: auto; margin-bottom: clamp(15px,2.5vh,32px); }
.nav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(10px,1vw,20px); }
.nav-card {
  background: linear-gradient(110deg,#382534,#211b28);
  border: 1px solid #765b69;
  border-radius: 8px;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.nav-card { gap: .6em; padding: clamp(10px,1vw,20px); min-height: clamp(68px,8vh,88px); }
.nav-card:hover { border-color: #e6b990; background: #493042; }
.moon { color: #edc68b; font: bold 1.3em Georgia,serif; }
.card-copy { min-width: 0; overflow-wrap: anywhere; }
.card-copy strong { font-size: clamp(15px,1.16vw,23px); }
.card-copy small { display: block; margin-top: 3px; color: #d4bdc7; font-size: clamp(11px,.79vw,15px); }
.arrow { margin-left: auto; border: 1px solid #927683; border-radius: 50%; width: 1.15em; text-align: center; line-height: 1; }
.featured {
  order: -1; grid-column: 1/-1; justify-content: center; position: relative;
  min-height: clamp(76px,10vh,112px); text-align: center; border: 4px double #b79083;
  background: linear-gradient(100deg,#322039,#643144 50%,#342235);
  clip-path: polygon(2% 0,98% 0,100% 17%,100% 83%,98% 100%,2% 100%,0 83%,0 17%);
}
.featured .moon { font-size: clamp(30px,3vw,58px); }
.featured strong { font-size: clamp(22px,2.2vw,44px); }
.featured .arrow { display: none; }
.featured:focus-visible { box-shadow: inset 0 0 0 4px #ffdd98; }
.nav-services {
  position: absolute; right: 5.3%; top: calc(var(--art-width) * .029);
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  width: clamp(244px,calc(var(--art-width) * .252),484px); gap: 2.4%;
}
.nav-services > * {
  display: grid; align-items: center; min-height: 44px; padding: 0;
  background: none; border: 0;
}
.nav-services img { width: 100%; height: auto; display: block; border-radius: 7px; }
.nav-services > :hover img { filter: brightness(1.2); }
footer { margin-top: 2em; color: #ddc9cf; font-size: 12px; }
.nav-empty { grid-column: 1/-1; padding: 1.5em; background: #291f2d; }
dialog { color: inherit; background: #302231; border: 1px solid #af8f82; border-radius: 12px; padding: 24px; width: min(88vw,420px); }
dialog::backdrop, .notice-backdrop { background: #130d19b8; }
.notice-backdrop { position: fixed; inset: 0; z-index: 10; }
.notice-fallback[open] { position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 11; }
.notice-open { overflow: hidden; }
.notice-close { float: right; border: 0; background: transparent; font-size: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .nav-page { width: 100%; padding: 0 5% 24px; }
  .nav-page::before { background-size: auto 55vh; background-position: 78% top; }
  .nav-panel { width: 100%; }
  .nav-hero { min-height: 33vh; display: flex; align-items: end; }
  .nav-hero img { width: min(54%,270px); }
  .nav-links { gap: 10px; }
  .nav-services { top: 8px; right: 5%; width: min(90%,360px); }
  .nav-card { padding: 10px; }
  footer { text-align: center; }
}
@media (max-width: 360px) {
  .nav-links { grid-template-columns: minmax(0,1fr); }
}
