/*
 * KahLua Mods
 * Copyright 2008-2026 Kean Johnston
 */

:root {
  --bg: #0b0806;
  --page: #140e09;
  --panel-top: #22170e;
  --panel-bottom: #170f09;
  --edge: #5c4422;
  --edge-bright: #a07a3a;
  --gold: #e0b45a;
  --gold-bright: #f6d98e;
  --text: #e9ddc7;
  --muted: #b3a387;
  --gutter: 2rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #2a1a0c 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: "Alegreya", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--page);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
}

.banner {
  display: block;
  width: 100%;
  height: auto;
}

/* Site navigation, under the banner */

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #2b1d0f, #1a1109);
  border-top: 1px solid var(--edge-bright);
  border-bottom: 1px solid var(--edge);
}

.site-nav a {
  padding: 0.8rem 1.4rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--gold-bright);
}

.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

main {
  padding: 2.5rem var(--gutter) 3rem;
}

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-bright);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--gold-bright);
}

.lede {
  font-size: 1.25rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

/* A framed panel, the site's one container */

.panel {
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08), 0 8px 24px rgba(0, 0, 0, 0.55);
}

.section-title {
  margin-top: 3rem;
  text-align: center;
}

.section-intro {
  max-width: 46rem;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--muted);
}

.divider {
  height: 1px;
  margin: 3rem auto;
  max-width: 40rem;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--edge-bright), transparent);
}

.button {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1006;
  text-decoration: none;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #b5852f);
  border: 1px solid #f9e3a6;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.button:hover {
  color: #000;
  filter: brightness(1.08);
}

.button.secondary {
  color: var(--gold-bright);
  background: transparent;
  border-color: var(--edge-bright);
}

.button.secondary:hover {
  color: var(--gold-bright);
  background: rgba(224, 180, 90, 0.1);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.command {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--edge);
  border-radius: 3px;
}

/* An icon beside its text, as in the landing page's mod cards and Konfer's own introduction */

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.feature .icon {
  display: block;
  width: 220px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.7);
}

.feature.small .icon {
  width: 130px;
  border-radius: 10px;
}

.tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The landing page's mods */

.mods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.mods .wide {
  grid-column: 1 / -1;
}

.mods .feature.small {
  align-items: start;
}

.to-come {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.to-come .icon {
  opacity: 0.55;
  filter: grayscale(0.4);
}

/* Konfer's general features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.features .panel {
  padding: 1.25rem 1.4rem;
}

.features h3 {
  font-size: 1.1rem;
}

.features p {
  font-size: 1rem;
}

/* One section per loot policy */

.policies {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.policy {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  overflow: hidden;
  padding: 0;
}

/* The whole logo is always shown; the artwork fades to black on its right, so the black around it reads as part of it */
.policy .art {
  display: flex;
  align-items: center;
  background: #000;
}

.policy .logo {
  display: block;
  width: 100%;
  height: auto;
}

.policy .body {
  padding: 1.75rem 2rem;
  border-left: 1px solid var(--edge);
}

.policy .body p,
.policy .body li {
  font-size: 1.05rem;
}

.policy ul {
  margin: 0 0 1em;
  padding-left: 1.3rem;
}

.policy h3 {
  margin-bottom: 0.3rem;
}

.policy .command {
  margin-bottom: 1rem;
}

footer {
  padding: 1.5rem var(--gutter) 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--edge);
}

footer p {
  margin: 0.25rem 0;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .policy {
    grid-template-columns: 1fr;
  }

  .policy .body {
    border-left: 0;
    border-top: 1px solid var(--edge);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .panel,
  .policy .body {
    padding: 1.25rem;
  }

  .panel.policy {
    padding: 0;
  }

  .mods,
  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    justify-items: center;
    text-align: center;
  }

  .feature .icon {
    width: 160px;
  }

  .feature.small .icon {
    width: 110px;
  }

  .buttons {
    justify-content: center;
  }

  .site-nav a {
    padding: 0.7rem 0.9rem;
  }
}
