/* UNBOUND · The Raziel Fanlisting · glitterskies.org
   Moonlit slate, weathered stone and brushed gold. No external fonts or libraries. */
:root {
  --action-bg: #d3b373;
  --action-ink: #17232d;
  --action-border: #e1c38b;
  --action-hover: #e5c78c;
  --action-hover-border: #f1d8a6;
  --action-shadow: 0 2px 5px #0003;
  --action-secondary: #1c2a35;
  --action-secondary-ink: #e2d1ad;
  --action-secondary-border: #776d58;
  --action-secondary-hover: #2b3942;
  --action-secondary-hover-border: #c0a675;
  --action-focus: #e9bf63;
  color-scheme: dark;
  --outer: #0c131b;
  --surface: #18232d;
  --panel: #22313d;
  --border: #615744;
  --border-soft: #3a4851;
  --brass: #dfbc70;
  --brass-soft: #ab9466;
  --ink: #e5e9e9;
  --muted: #bac4c9;
  --links: #e6c47e;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--outer); }
body {
  margin: 0;
  min-height: 100vh;
  display: flow-root; /* Prevent collapsed margins from cutting off the page background. */
  min-width: 280px;
  color: var(--ink);
  font: 14px/1.75 var(--sans);
  background:
    radial-gradient(ellipse 720px 520px at 50% -145px, #263b4d 0%, #152534 48%, transparent 94%),
    linear-gradient(90deg, #0b131b, #111c27 48%, #0b131b);
  -webkit-font-smoothing: antialiased;
}
#container {
  width: min(710px, calc(100% - 32px));
  margin: 36px auto 42px;
  background: var(--surface);
  border: 1px solid #4c59625c;
  box-shadow: 0 16px 80px #0008, 0 2px 18px #0006;
}
.site-header { background: #111b25; }
.hero {
  position: relative;
  height: 342px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, #071522d9 0%, #10273e80 30%, #13273a00 76%),
    linear-gradient(0deg, #0b1724f5 0%, #112a3b59 43%, #091a2a00 81%),
    url('images/raziel-hero.webp');
  background-size: 820px auto;
  background-position: right 35%;
  border-bottom: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 105px #0613229c;
  z-index: -1;
}
.hero__caption { position: absolute; left: 36px; bottom: 26px; z-index: 1; }
.hero__overline {
  margin: 0 0 7px;
  color: #e9c474;
  font: 600 11px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: .25em;
  text-shadow: 0 1px 6px #000;
}
.hero__title {
  display: inline-block;
  font: 400 clamp(47px, 8.6vw, 66px)/.95 var(--serif);
  letter-spacing: .075em;
  text-decoration: none;
  text-shadow: 0 2px 12px #08121c, 0 0 30px #0a1a27;
  color: #f4f1e8;
}
.hero__title:hover { color: #fff9e9; }
.site-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  min-height: 49px;
  border-bottom: 1px solid #665c473b;
  background: linear-gradient(#293845, #202d38);
}
.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 79px;
  padding: 11px 12px 12px;
  color: #ccd5d7;
  font: 700 11px/1.3 var(--sans);
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .16s ease, background .16s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff0be; background: #ffffff06; }
.site-nav a[aria-current="page"] { color: #f5d187; }
.site-nav a[aria-current="page"]::after {
  position: absolute;
  content: '';
  bottom: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  background: var(--brass);
}
.content {
  min-height: 250px;
  padding: 36px 43px 35px;
  background: linear-gradient(135deg, #202d38 0%, #1b2832 56%, #18232d 100%);
  overflow-wrap: anywhere;
}
.content h1, .content h2, .content h3 {
  color: #f1e0bc;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.32;
}
.content h1 { font-size: 26px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #56616a70; }
.content h1:not(:first-child) { margin-top: 32px; }
.content h2 { font-size: 21px; margin: 27px 0 9px; }
.content h3 { font-size: 17px; margin: 22px 0 8px; }
.content p { margin: 0 0 17px; }
.content p:last-child { margin-bottom: 0; }
.content b, .content strong { color: #f1dfbc; font-weight: 700; }
.content em { color: #dce3e3; }
a { color: var(--links); text-underline-offset: 3px; }
a:hover { color: #fff0bd; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #e9bf63; outline-offset: 3px;
}
.content ul, .content ol { padding-left: 25px; margin: 0 0 18px; }
.content li { margin: 4px 0; }
/* Quote remains on every page, as in the Mordin and Legion fanlistings. */
.quote-band {
  padding: 14px 28px;
  background: #111e29;
  border-top: 1px solid #5d61534a;
  border-bottom: 1px solid #42525b45;
}
.random-quote {
  display: block;
  max-width: 590px;
  margin: 0 auto;
  text-align: center;
  justify-content: center;
  color: #dde3e4;
}
.quote-mark { display: inline; font: 27px/1 var(--serif); color: #b9a17a; vertical-align: -.15em; margin-right: 7px; }
.random-quote p { display: inline; margin: 0; font: italic 17px/1.5 var(--serif); }
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 49px;
  padding: 15px 26px 17px;
  background: #14202a;
  text-align: center;
  color: #a5b0b4;
  font: 11px/1.55 var(--sans);
}
.site-footer a { color: #d6b875; }
.footer-sep { color: #738087; }
.setup-message { color: #c1cbd0; padding: 13px 17px; border-left: 2px solid #d6ae61; background: #26333a; }
/* Enthusiast 3 forms, sortable members and statistics. */
.content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]),
.content textarea, .content select {
  max-width: 100%;
  min-height: 37px;
  padding: 8px 10px;
  background: #111f2b;
  border: 1px solid #52616b;
  border-radius: 2px;
  color: #e3e7e6;
  font: 13px var(--sans);
}
.content textarea { min-height: 100px; width: min(100%, 480px); }
.content input[type="checkbox"], .content input[type="radio"] { accent-color: var(--brass); }
.content .textbox { margin: 6px 0 15px; }
.content .label { margin-top: 10px; color: #dfd3ba; }
.content form { max-width: 100%; }
.content table { max-width: 100%; border-collapse: collapse; }
.content th, .content td { padding: 7px 10px; text-align: left; border-bottom: 1px solid #394954; }
.content img { max-width: 100%; height: auto; }
.content :is(table, pre, textarea) { max-width: 100%; }
.content pre { overflow-x: auto; }
.stats table { width: 100%; }
.stats td, .stats th { border-color: #3b4b55; }
.members-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 13px; margin: 18px 0 0; }
.members-results > :not(.member) { grid-column: 1 / -1; }
.members-results .member {
  min-width: 0;
  min-height: 135px;
  padding: 16px 16px 17px;
  background: #263540;
  border: 1px solid #59616987;
  border-top: 1px solid #aa986d;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.members-results .member:nth-of-type(even) { background: #22323e; }
.members-results .member__identity, .members-results .member__game { margin-bottom: 12px; }
.members-results .member__name { display: block; color: #f8e5bb; font-size: 15px; font-weight: 700; }
.members-results .member__country { display: block; margin-top: 3px; color: #b7c1c4; font-size: 11px; }
.members-results .member__label { display: block; color: #dcc07e; font: 700 10px/1.5 var(--sans); letter-spacing: .06em; }
.members-results .member__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.members-results .member__links a {
  display: inline-block; text-decoration: none; padding: 4px 8px;
  color: #edd7ac; border: 1px solid #5c645f; font-size: 11px;
}
.members-results .member__links a:hover { background: #34444b; }
.members-results :is(.show_members_no_website, .show_members_no_email) { display: inline-block; padding: 4px 8px; font-size: 11px; color: #9dabb0; border: 1px dashed #506068; text-decoration: line-through; }
#ff-fix { clear: both; }
.affiliates .affiliate { display: inline-block; margin: 5px; opacity: .88; }
.affiliates .affiliate:hover { opacity: 1; }
.affiliates img { vertical-align: middle; }
.site-links { display: flex; flex-wrap: wrap; gap: 8px 21px; margin-top: 22px !important; padding-top: 15px; border-top: 1px solid var(--border-soft); font-size: 12px; }
.code-row { margin: 25px 0; }
.code-size { color: #aab9bf; font: 700 11px/1.5 var(--sans); letter-spacing: .09em; margin-bottom: 10px !important; }
.code-gallery { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 15px; }
.code-gallery a { display: inline-block; line-height: 0; border: 1px solid #56646c8c; }
.code-gallery a:hover { border-color: #f2d180; }
.code-gallery img { display: block; max-width: none; height: auto; }
@media (max-width: 700px) {
  #container { width: min(100% - 20px, 710px); margin: 12px auto 20px; }
  .hero { height: 324px; background-size: auto 370px; background-position: 58% 30%; }
  .hero__caption { left: 31px; bottom: 27px; }
  .content { padding: 30px 29px 31px; }
  .site-nav a { min-width: 0; flex: 1 1 auto; padding-inline: 10px; }
  .quote-band { padding: 14px 23px; }
}
@media (max-width: 480px) {
  .hero { height: 290px; background-size: auto 335px; background-position: 58% 32%; }
  .hero__caption { left: 22px; bottom: 22px; }
  .hero__overline { font-size: 9px; letter-spacing: .22em; }
  .hero__title { font-size: clamp(38px, 12vw, 49px); }
  .site-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-nav a { min-height: 42px; padding: 10px 6px; font-size: 10px; }
  .site-nav a[aria-current="page"]::after { left: 20%; right: 20%; }
  .content { min-height: 225px; padding: 28px 22px 29px; font-size: 13px; }
  .content h1 { font-size: 23px; }
  .content h2 { font-size: 19px; }
  .quote-band { padding: 14px 17px; }
  .random-quote p { font-size: 15px; }
  .site-footer { padding: 15px 13px; font-size: 10px; }
  .site-links { display: block; }
  .site-links a { display: block; margin: 7px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Live Enthusiast member cards and CodeSort forms */
.members-results { display: flow-root; }
.members-results .member { float:left; box-sizing:border-box; display:flex; flex-direction:column; width:calc((100% - 24px)/3); margin:0 12px 12px 0; min-height:120px; border-top:2px solid #c9aa70; }
.members-results .member:nth-child(3n) { margin-right:0; }
.members-results .member__identity { margin-bottom:12px; }
.members-results .member__name { font-family:var(--serif); font-size:17px; line-height:1.35; }
.members-results .member__country { font-size:12px; }
.members-results .member__links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; padding-top:8px; }
.members-results .member__links > * { min-width:0; text-align:center; overflow-wrap:anywhere; }
.members-results .member__links > a { background:#263641; border:1px solid #6d695a; color:#f8e5bb; }
.members-results .member__links > a:focus-visible { outline:2px solid #c9aa70; }
.members-results .member__links > :is(.show_members_no_email,.show_members_no_website) { color:#b7c1c4; }
.members-results > :is(h1,h2,h3,p,form,table,br) { clear:both; }
.codesort { max-width:100%; overflow-wrap:anywhere; }
.codesort ul { padding:0; display:flex; flex-wrap:wrap; gap:6px 15px; list-style:none; }
.codesort li { margin:0; }
.codesort label { display:inline-block; min-width:min(12em,100%); margin:4px 8px 4px 0; }
.codesort input[type=file] { width:100%; }
.codesort img { vertical-align:middle; margin:3px; }
.codesort table { max-width:100%; }
@media(max-width:620px) { .members-results .member { width:calc((100% - 12px)/2); } .members-results .member:nth-child(3n) { margin-right:12px; } .members-results .member:nth-child(2n) { margin-right:0; } }
@media(max-width:390px) { .members-results .member { float:none; width:100%; margin:0 0 10px !important; } .codesort label { display:block; } }

/* Homepage statistics: paste the matching statistics template into Enthusiast. */
.stats {
  margin-top: 29px;
  padding: 20px;
  background: #16232d;
  border: 1px solid #53616a;
  border-top: 2px solid #c9aa70;
}
.stats__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 15px;
}
.content .stats__heading h2 { margin: 0; color: #f1e0bc; font-size: 21px; }
.content .stats__updated { margin: 0; font-size: 12px; color: #bac4c9; }
.stats__counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}
.stats__metric {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 5px;
  background: #22313d;
  border: 1px solid #53616a;
}
.stats__metric dt { font-size: 11px; line-height: 1.35; color: #bac4c9; }
.stats__metric dd {
  margin: 0;
  color: #f1dfbc;
  font: 400 clamp(22px, 5vw, 30px)/1.1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.content .stats__newest { margin: 0 0 12px; font-size: 13px; }
.content .stats__details {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #53616a;
  font-size: 12px;
  color: #bac4c9;
}
@media (max-width: 480px) {
  .stats { padding: 13px; }
  .stats__counts { gap: 5px; }
  .stats__metric { padding: 10px 3px; }
  .content .stats__heading h2 { font-size: 19px; }
}
@media (max-width: 350px) {
  .stats__counts { grid-template-columns: 1fr; }
  .stats__metric { flex-direction: row; justify-content: space-between; padding: 9px 10px; }
}

/* Form actions: override compact defaults supplied by Enthusiast / CodeSort.
   Keep submit and reset visually distinct without changing the form markup. */
#content :is(input[type="submit"], input[type="reset"], input[type="button"], button) {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 44px !important;
  height: auto !important;
  padding: 10px 18px !important;
  margin: 5px 8px 5px 0 !important;
  border: 1px solid var(--action-border) !important;
  border-radius: 5px !important;
  background: var(--action-bg) !important;
  color: var(--action-ink) !important;
  font: 600 13px/1.45 var(--sans) !important;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: var(--action-shadow);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
#content :is(input[type="submit"], input[type="reset"], input[type="button"], button):hover:not(:disabled) {
  background: var(--action-hover) !important;
  border-color: var(--action-hover-border) !important;
}
#content :is(input[type="reset"], input[type="button"], button[type="reset"], button[type="button"]) {
  background: var(--action-secondary) !important;
  border-color: var(--action-secondary-border) !important;
  color: var(--action-secondary-ink) !important;
  box-shadow: none;
}
#content :is(input[type="reset"], input[type="button"], button[type="reset"], button[type="button"]):hover:not(:disabled) {
  background: var(--action-secondary-hover) !important;
  border-color: var(--action-secondary-hover-border) !important;
}
#content :is(input[type="submit"], input[type="reset"], input[type="button"], button):focus-visible {
  outline: 2px solid var(--action-focus);
  outline-offset: 3px;
}
#content :is(input[type="submit"], input[type="reset"], input[type="button"], button):active:not(:disabled) { box-shadow: none; }
#content :is(input[type="submit"], input[type="reset"], input[type="button"], button):disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 480px) {
  #content :is(input[type="submit"], input[type="reset"], input[type="button"], button) { padding-inline: 14px !important; }
}
