@font-face {
  font-family: Nemises Futura;
  src: url(FuturaPT-Book.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Nemises Futura;
  src: url(FuturaPT-Bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root { --winter-type: "Nemises Futura", Arial, sans-serif; --winter-night: #192827; --winter-ember: #ff9a5d; }
body:has(#island) :is(h1,h2,h3,header nav), body:has(.topbar) :is(h1,h2,h3),
body:has(.mast) :is(h1,h2,h3,.mast nav,.brand),
html[data-app="public"] body :is(.p-title-value,.nr-forumTitle,.block-header,.p-nav-list) {
  font-family: var(--winter-type);
  letter-spacing: -.015em;
}
#island.hero { background-color:var(--winter-night); }
#island.hero .art, body .cover .cover-art, body .passport::before {
  background-image:url(altis.webp);
}
#island .actions a:first-child, body .cover .action {
  background:var(--winter-ember); color:#231e19;
}
body .cover .action span {color:inherit}
body .cover {background:#192827;color:#fff5e5}
body .cover .cover-copy :is(p,small) {color:#e3dfd3}
body:has(.mast) .mast, html[data-app="public"] body .p-nav {background:#192221;border-bottom:1px solid #5d4c37}
body .passport {border-top-color:var(--winter-ember)}
html[data-app="public"][data-template="forum_list"] .p-body-header::before {
  background-image:linear-gradient(90deg,#f9efda,transparent 50%),url(altis.webp);
  background-size:cover;background-position:center,center 38%;
}
html[data-app="public"]:has(.nr-closed) .p-body-header, body #guide > .hero {
  padding:clamp(22px,5vw,72px); border-radius:6px;
  background:linear-gradient(90deg,#182a29 12%,#182a29ed 44%,#182a2926 100%),url(altis.webp) right 36% /cover;
  color:#fff4e2;
}
html[data-app="public"]:has(.nr-closed) .p-title-value, body #guide > .hero :is(h1,p) {color:#fff4e2}
body #guide > .hero a:not(.download) {color:#ffbf95}
@media (min-width:760px) {
  body:has(#island) > header, body .mast, html[data-app="public"] .p-nav {position:relative}
  body:has(#island) > header::after, body .mast::after, html[data-app="public"] .p-nav::after {
    content:"";position:absolute;pointer-events:none;bottom:-1px;left:9%;width:110px;height:4px;
    background:radial-gradient(ellipse at center,#ffce8d 0 1px,transparent 2.4px) 0 0 /22px 4px repeat-x;
    filter:drop-shadow(0 0 3px #fc9d49);
  }
}
@media (prefers-reduced-motion:no-preference) {
  body:has(#island) > header::after, body .mast::after, html[data-app="public"] .p-nav::after {
    animation:nemises-warm-light 5s ease-in-out infinite alternate;
  }
  @keyframes nemises-warm-light {from{opacity:.55}to{opacity:1}}
}
@media (max-width:700px) {
  #island.hero .art::after {background:linear-gradient(90deg,#192827 2%,#192827c9 27%,transparent 76%)}
}
@media screen {
  #island.hero, body .cover, body #guide > .hero,
  html[data-app="public"] .p-body-header, body .passport {position:relative}
  #island.hero::after, body .cover::after, body #guide > .hero::after,
  html[data-app="public"] .p-body-header::after, body .passport::after {
    content:"";display:block;position:absolute;inset:0 2% auto auto;z-index:1;
    width:clamp(100px,16vw,220px);height:30px;
    background:url(garland.svg) top right / contain no-repeat;pointer-events:none;
  }
  html[data-app="public"]:has(.nr-closed) .p-body-header {
    min-height:clamp(145px,17vw,235px);display:grid;align-content:end;
    background-position:center,right 29%;
  }
}

/* One reading column for the masthead, island and content sections. */
body:has(#island) {--page-inset:max(clamp(20px,5vw,72px),calc((100vw - 1320px)/2))}
body:has(#island) > header, #island.hero {padding-inline:var(--page-inset)}
body:has(#island) :is(#roles,#join) {margin-inline:var(--page-inset)}
#island .actions {align-items:center}
#island h1 {max-width:14ch;line-height:1.01}
#island .actions a {min-height:44px;display:inline-flex;align-items:center}
@media(min-width:701px) {
  #island.hero {grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);padding-block:clamp(48px,5vw,80px)}
  #island .hero p {max-width:40ch}
}
@media(max-width:500px) {
  #island .actions {align-items:flex-start}
}

/* The guest notice and its title share one edge, including in the light theme. */
html[data-app="public"]:has(.nr-closed) {
  --forum-gutter:clamp(20px,4vw,56px);
}
html[data-app="public"]:has(.nr-closed) :is(.p-nav-inner,.p-body-inner,.p-footer-inner,.p-sectionLinks-inner) {
  box-sizing:border-box;width:min(1320px,calc(100% - 2 * var(--forum-gutter)));margin-inline:auto;padding-inline:0;
}
html[data-app="public"]:has(.nr-closed) .p-body-header {
  margin:0;border:0;border-radius:12px 12px 0 0;
  padding:clamp(24px,4vw,56px);min-height:clamp(175px,20vw,270px);
  background-position:center,right 32%;
}
html[data-app="public"]:has(.nr-closed) .p-title {margin:0;padding:0}
html[data-app="public"]:has(.nr-closed) .nr-closed {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:12px 24px;padding:20px clamp(24px,4vw,56px);background:#203330;color:#fff2db;
  border-radius:0 0 12px 12px;
}
html[data-app="public"] .nr-closed p {margin:0}
html[data-app="public"] .nr-closed a {color:#ffbc8d}
html[data-app="public"]:not(:has(.nr-closed)):not([data-template="forum_list"]) .p-body-header::after {content:none}

/* Two depths of snow, drifting over the illustration rather than over the controls. */
#island .art::before,body .cover-art::before,body .passport::after,body #guide > .hero::before {
  content:"";position:absolute;inset:0;pointer-events:none;
  width:auto;height:auto;
  background-image:
    radial-gradient(circle at 21px 27px,#fff9ec 0 1.5px,transparent 2.5px),
    radial-gradient(circle at 87px 49px,#f0f7f3b8 0 1px,transparent 2px),
    radial-gradient(circle at 44px 83px,#fff9ec9e 0 2px,transparent 3px);
  background-size:143px 127px,109px 93px,231px 197px;
  background-repeat:repeat;opacity:.8;
  mask-image:linear-gradient(90deg,transparent,#000 35%);
}
body .passport::after,body #guide > .hero::before {left:48%;z-index:0}
body .passport > *,body #guide > .hero > * {position:relative;z-index:1}
@media(prefers-reduced-motion:no-preference) {
  #island .art::before,body .cover-art::before,body .passport::after,body #guide > .hero::before {
    animation:nemises-snowfall 15s linear infinite;
  }
  @keyframes nemises-snowfall {
    from {background-position:0 0,0 0,0 0}
    to {background-position:143px 254px,-109px 93px,0 394px}
  }
}
