/* The mods pages (/mods/, /mods/submit/, /mods/admin/): the homepage's
   palette and type, night-time tarmac with sodium amber for what you can
   click. */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/fira-sans-extra-condensed-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fira-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fira-sans-latin-500-normal.woff2') format('woff2');
}

:root {
  --ink: #0d1013;
  --tarmac: #13171b;
  --kerb: #323b43;
  --kerb-light: #4a555f;
  --fog: #e2e5e3;
  --fog-dim: #a3adb4;
  --fog-faint: #6f7b84;
  --sodium: #f5a33b;
  --sodium-glow: rgb(245 163 59 / 0.35);
  --dusk: #2b4a6b;
  --siren: #e5534b;
  --go: #57ab5a;

  --font-display: 'Fira Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Fira Sans', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  color-scheme: dark;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse 80% 50% at 85% -10%, rgb(43 74 107 / 0.45), transparent 70%),
    radial-gradient(ellipse 70% 40% at 0% 110%, rgb(245 163 59 / 0.1), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--tarmac) 100%);
  background-color: var(--ink);
  background-attachment: fixed;
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--sodium);
}

.wrap {
  width: min(100% - 2 * var(--gutter), 64rem);
  margin-inline: auto;
}

/* Header: the logo back to the homepage, and the mods' own links. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fog);
  text-decoration: none;
  font: 800 1.6rem / 1 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.logo svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  overflow: visible;
}
.logo .coat {
  color: var(--sodium);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--fog-dim);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--fog);
}
.site-nav a.button {
  color: var(--ink);
}

main {
  padding-bottom: 4rem;
}

.page-head {
  padding-block: clamp(2rem, 7vw, 4.5rem) 2rem;
}
.page-head h1 {
  margin: 0;
  font: 800 clamp(3.5rem, 12vw, 6.5rem) / 0.85 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.page-head h1 .coat {
  color: var(--sodium);
}
.lede {
  max-width: 52ch;
  margin: 1.25rem 0 0;
  color: var(--fog-dim);
  font-size: 1.15rem;
}

h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.muted {
  color: var(--fog-dim);
}
.faint {
  color: var(--fog-faint);
}

/* Buttons and fields */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--sodium);
  border-radius: 6px;
  background: var(--sodium);
  color: var(--ink);
  font: 500 0.95rem / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    box-shadow 0.25s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.button:hover {
  box-shadow: 0 0 30px -6px var(--sodium-glow);
}
.button.quiet {
  background: transparent;
  border-color: var(--kerb-light);
  color: var(--fog);
}
.button.quiet:hover {
  border-color: var(--sodium);
  box-shadow: none;
}
.button.danger {
  background: transparent;
  border-color: rgb(229 83 75 / 0.6);
  color: var(--siren);
}
.button.danger:hover {
  background: rgb(229 83 75 / 0.12);
  box-shadow: none;
}
.button.go {
  background: var(--go);
  border-color: var(--go);
  color: var(--ink);
}
.button:disabled {
  opacity: 0.5;
  cursor: progress;
}
.button svg {
  width: 1.05em;
  height: 1.05em;
}
:focus-visible {
  outline: 2px solid var(--sodium);
  outline-offset: 3px;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--kerb);
  border-radius: 6px;
  background: rgb(13 16 19 / 0.7);
  color: var(--fog);
  font: inherit;
  font-size: 1rem;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--kerb-light);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--sodium);
  outline: none;
}
textarea {
  min-height: 9rem;
  resize: vertical;
}
input[type='file'] {
  padding: 0.5rem;
}
input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  flex: none;
  accent-color: var(--sodium);
}

/* A small label: a game, or a version. */
.tag {
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--kerb-light);
  border-radius: 3px;
  color: var(--fog-dim);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.recommended {
  border-color: var(--sodium);
  background: var(--sodium);
  color: var(--ink);
}
.tag.version {
  border-color: rgb(245 163 59 / 0.5);
  color: var(--sodium);
  letter-spacing: 0.02em;
  text-transform: none;
}

.panel {
  border: 1px solid var(--kerb);
  border-radius: 10px;
  background: rgb(19 23 27 / 0.72);
  backdrop-filter: blur(6px);
}

.notice {
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--sodium);
  border-radius: 0 6px 6px 0;
  background: rgb(245 163 59 / 0.08);
  color: var(--fog);
}
.notice.error {
  border-color: var(--siren);
  background: rgb(229 83 75 / 0.1);
}

.site-footer {
  padding: 0 var(--gutter) 2rem;
  text-align: center;
  color: var(--fog-faint);
  font-size: 0.85rem;
}
.site-footer p {
  margin: 0.25rem 0;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
