/* =========================================================
   King's Lynne — style.css (rewritten + cleaned)
   Fixes:
   - Tighten logo → title spacing (no conflicting rules)
   - Stronger mod link visibility + distinct visited state
   - Cleaner cascade (no duplicate selectors fighting)
   ========================================================= */

:root{
  --bg0:#020617;
  --bg1:#050b1f;
  --border: rgba(148,163,184,0.18);
  --text:#e5e7eb;
  --muted:#cbd5f5;
  --muted2:#94a3b8;
  --accent:#38bdf8;

  /* Link colors (mods) */
  --link:#9d7bff;
  --link-visited:#6f63c6;
  --link-hover:#c9b8ff;
}

* { box-sizing: border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(56,189,248,0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(167,139,250,0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(34,211,238,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  min-height: 100vh;
  padding: 3rem 1rem;
}

/* subtle vignette */
body:before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  background: radial-gradient(circle at 50% 20%, transparent 0%, rgba(0,0,0,0.55) 75%);
}

.wrap{
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* -------------------------
   HERO
   ------------------------- */

.hero{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  text-align: center;

  /* slightly tighter vertical rhythm */
  padding: 2.1rem 2rem 1.25rem;
}

/* logo → title spacing is controlled here ONLY */
.hero .logo{
  display: block;
  width: min(520px, 85vw);
  height: auto;
  margin: 0 auto 0.25rem; /* tighter gap below logo */
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.7));
}

.hero h1{
  margin: 0;                 /* remove default h1 margin */
  margin-top: 0.05rem;       /* tiny breathing room */
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  letter-spacing: -0.02em;
}

.subtitle{
  margin: 0 0 0.85rem 0;
  color: var(--muted);
  font-size: 1rem;
  display:flex;
  gap: .6rem;
  justify-content:center;
  align-items:center;
}

.dot{
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(203,213,245,0.65);
  display:inline-block;
}

.actions{
  margin-top: 0.75rem;
  display:flex;
  justify-content:center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chip{
  border: 1px solid var(--border);
  background: rgba(2,6,23,0.35);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display:flex;
  align-items:center;
  gap: 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.chip strong{ color: white; font-weight: 700; }

button.copy{
  border: 1px solid rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.12);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
button.copy:hover{
  background: rgba(56,189,248,0.18);
  border-color: rgba(56,189,248,0.55);
}
button.copy:active{ transform: translateY(1px); }

/* -------------------------
   GRID / PANELS
   ------------------------- */

.grid{
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.panel{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(10px);
}

.panel h2{
  margin: 0 0 0.8rem 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* -------------------------
   MOD LIST
   ------------------------- */

.mods{
  list-style: none;
  padding: 0;
  margin: 0;
}

.mods li{
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid rgba(148,163,184,0.14);
}
.mods li:last-child{ border-bottom: none; }

.tag{
  color: var(--muted2);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* links: visible + distinct visited state */
.mods a{
  color: var(--link);
  text-decoration: none;
  font-weight: 550;
  transition: color 0.15s ease, text-shadow 0.15s ease, opacity 0.15s ease;
}

.mods a:visited{
  color: var(--link-visited);
  opacity: 0.92;
}

.mods a:hover,
.mods a:focus-visible{
  color: var(--link-hover);
  text-shadow: 0 0 6px rgba(157, 123, 255, 0.4);
  text-decoration: underline;
  outline: none;
}

.mods a:active{
  color: #ffffff;
}

/* optional: subtle row hover to reinforce clickability */
.mods li:hover{
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

/* -------------------------
   FOOTER
   ------------------------- */

footer{
  text-align:center;
  margin-top: 1.2rem;
  color: rgba(203,213,245,0.55);
  font-size: 0.9rem;
}

/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 520px){
  body{ padding: 2.25rem 1rem; }
  .hero{ padding: 1.6rem 1.1rem 1rem; }
  .chip{ width: 100%; justify-content: center; }
  button.copy{ width: 100%; }
  .mods li{ flex-direction: column; align-items:flex-start; }
  .tag{ white-space: normal; }
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #5865F2; /* Discord blurple */
  transition: background 0.2s ease, transform 0.1s ease;
}

.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 10px;

  font-weight: 600;
  text-decoration: none;

  color: #cfd6ff;
  border: 1px solid rgba(140, 160, 255, 0.35);
  background: rgba(140, 160, 255, 0.08);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

.discord-link:hover {
  background: rgba(140, 160, 255, 0.18);
  border-color: rgba(140, 160, 255, 0.65);
  color: #ffffff;
  transform: translateY(-1px);
}


