/* Pripyat Nomads — server page
   Layout follows the home page (/css/styles.css); palette and type follow the Zone:
   rust-amber skies, oxidized Soviet red, charcoal concrete, bone-white paper. */

:root {
  --bg:        #0c0a09;
  --surface:   #15110e;
  --surface-2: #1c1612;
  --line:      rgba(214, 160, 120, 0.13);
  --line-hot:  rgba(217, 128, 63, 0.55);

  --bone:      #ede0cf;   /* headings, strong text */
  --text:      #c4b3a2;   /* body */
  --dim:       #8c7b6b;   /* labels, notes */

  --amber:     #e39a5b;   /* sky highlight: links, icons */
  --rust:      #c8662f;   /* primary accent */
  --rust-deep: #9a4322;
  --red:       #a33a2a;   /* Soviet letters */
  --olive:     #7d8a4e;   /* foliage: "online" */

  --font: 'Stylish', Georgia, serif;                     /* body */
  --font-display: 'Lacquer', Impact, sans-serif;          /* headings */
}

/* Display font for headings (NOMADS + footer brand keep Orbitron) */
.section-title,
.card h3,
.camp-name,
.lawbreaker-title {
  font-family: var(--font-display);
}

/* Body font inside display headings */
.section-title span { font-family: var(--font-display); }


.footer-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

/* Faint film grain over everything — the "faded" part */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.85 0 0 0 0 0.7 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--amber); }

/* ---------- Hero (same stage as the home page) ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.scrim { position: absolute; inset: 0; }

.scrim-radial {
  background: radial-gradient(125% 95% at 50% 38%,
    rgba(12, 10, 9, 0.40) 0%,
    rgba(12, 10, 9, 0.60) 62%,
    rgba(12, 10, 9, 0.88) 100%);
}

.scrim-linear {
  background: linear-gradient(180deg,
    rgba(12, 10, 9, 0.55) 0%,
    rgba(12, 10, 9, 0) 28%,
    rgba(12, 10, 9, 0) 60%,
    rgba(12, 10, 9, 1) 100%);
}

/* Glass chip — same shape as the home page's .sidequest */
.chip {
  position: absolute;
  top: 28px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 0;
  background: rgba(12, 10, 9, 0.35);
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s ease, transform 0.18s ease;
}

.chip i { font-size: 13px; color: var(--amber); }

.chip:hover {
  background: rgba(12, 10, 9, 0.75);
  transform: translateY(-1px);
}

.chip-back { left: 32px; }

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--bone);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.65);
}

.wordmark-the {
  font-size: clamp(20px, 2.4vw, 38px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* The one place Orbitron stays */
.wordmark-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 8vw, 124px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -0.06em;
  color: var(--rust);
  background: linear-gradient(180deg, #eaa161 0%, #cf6d33 55%, #a84a24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
}

.slogan {
  margin: 16px 0 0;
  font-size: clamp(22px, 2.6vw, 38px);
  color: var(--bone);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 7px 14px;
  border-radius: 0;
  background: rgba(12, 10, 9, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 15px;
  color: var(--text);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--olive);
  animation: nm-dot 2s ease-out infinite;
}

@keyframes nm-dot {
  0%   { box-shadow: 0 0 0 0 rgba(125, 138, 78, 0.7); }
  100% { box-shadow: 0 0 0 10px rgba(125, 138, 78, 0); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
}

/* Primary CTA — home page shape, rust instead of Discord blue */
.discord {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 40px;
  border-radius: 0;
  background: linear-gradient(180deg, var(--rust) 0%, var(--rust-deep) 100%);
  color: #fff4e8;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-decoration: none;
  animation: nm-pulse 3.2s ease-in-out infinite;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.discord i { font-size: 28px; }

.discord:hover {
  filter: brightness(1.12);
  transform: translateY(-2px) scale(1.02);
}

@keyframes nm-pulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(200, 102, 47, 0.35), 0 0 0 0 rgba(200, 102, 47, 0); }
  50%      { box-shadow: 0 12px 48px rgba(200, 102, 47, 0.5), 0 0 0 6px rgba(200, 102, 47, 0.08); }
}

/* Secondary CTA */
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-radius: 0;
  border: 2px solid var(--line-hot);
  background: rgba(12, 10, 9, 0.4);
  color: var(--bone);
  font-size: 20px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.16s ease, transform 0.16s ease;
}

.ghost i { color: var(--amber); }

.ghost:hover {
  background: rgba(200, 102, 47, 0.18);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  color: rgba(237, 224, 207, 0.6);
  font-size: 22px;
  animation: nm-bob 2.4s ease-in-out infinite;
}

@keyframes nm-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ---------- Content ---------- */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 8px;
  border-radius: 0;
  overflow: hidden;
  background: var(--line);
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 10px;
  background: var(--surface);
  text-align: center;
}

.fact i { color: var(--amber); font-size: 18px; margin-bottom: 4px; }

.fact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.fact-value {
  font-size: 17px;
  color: var(--bone);
}

.section {
  padding: 88px 0 0;
  scroll-margin-top: 24px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  font-weight: 400;
  font-size: clamp(45px, 6.3vw, 69px);   /* owner 2026-10-21: 1.5x (was 30-46px) */
  letter-spacing: 0.02em;
  color: var(--bone);
}

.section-title span {
  font-size: 0.6em;   /* owner 2026-10-21: number 2x its old size (0.45em of 46px ~ 21px -> ~41px) */
  color: #d0574a;
  letter-spacing: 0.1em;
}

.lede {
  max-width: 780px;
  margin: 0 0 36px;
  font-size: 20px;
  line-height: 1.7;
}

.lede strong {
  color: var(--bone);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  display: block;
  padding: 24px 24px 22px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--line-hot);
  transform: translateY(-2px);
}

.card i { font-size: 22px; color: var(--amber); }

.card h3 {
  margin: 14px 0 8px;
  font-weight: 400;
  font-size: 21px;
  color: var(--bone);
}

.card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

/* Featured card (survivor camps) */
.card-featured {
  background:
    linear-gradient(150deg, rgba(200, 102, 47, 0.20), rgba(163, 58, 42, 0.05) 65%),
    var(--surface);
  border-color: rgba(200, 102, 47, 0.35);
}

/* Safe zones */
.camps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.camp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 0;
  background:
    linear-gradient(160deg, rgba(200, 102, 47, 0.16), rgba(200, 102, 47, 0.02) 70%),
    var(--surface);
  border: 1px solid rgba(200, 102, 47, 0.35);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.camp:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
}

.camp-name {
  font-size: 21px;
  color: var(--bone);
}

.camp-meta {
  font-size: 14px;
  color: var(--amber);
}

.camp-meta i { font-size: 11px; margin-left: 4px; }

/* Lawbreakers */
.lawbreaker {
  margin-top: 28px;
  padding: 26px 28px 28px;
  border-radius: 0;
  background:
    linear-gradient(160deg, rgba(163, 58, 42, 0.18), rgba(163, 58, 42, 0.03) 60%),
    var(--surface);
  border: 1px solid rgba(163, 58, 42, 0.45);
}

.lawbreaker-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.lawbreaker-title i { color: #d0574a; font-size: 20px; }

.lawbreaker-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.lawbreaker h4 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.lawbreaker ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lawbreaker li {
  position: relative;
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.6;
}

.lawbreaker li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: #d0574a;
  transform: rotate(45deg);
}

.lawbreaker a { text-decoration: none; }
.lawbreaker a:hover { text-decoration: underline; }

/* Rules + join steps */
.rules,
.steps {
  list-style: none;
  counter-reset: item;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.rules li,
.steps li {
  counter-increment: item;
  position: relative;
  padding: 22px 24px 22px 76px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.rules li::before,
.steps li::before {
  content: counter(item);
  position: absolute;
  left: 24px;
  top: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: rgba(163, 58, 42, 0.22);
  border: 1px solid rgba(163, 58, 42, 0.5);
  color: var(--amber);
  font-size: 17px;
}

.rules h3,
.steps h3 {
  margin: 4px 0 6px;
  font-weight: 400;
  font-size: 21px;
  color: var(--bone);
}

.rules p,
.steps p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.steps a { text-decoration: none; }
.steps a:hover { text-decoration: underline; }
.steps strong { color: var(--bone); font-weight: 400; }

kbd {
  padding: 2px 7px;
  border-radius: 0;
  border: 1px solid rgba(237, 224, 207, 0.25);
  background: rgba(237, 224, 207, 0.06);
  font-family: var(--font);
  font-size: 14px;
  color: var(--bone);
}

/* Copyable server address */
.ip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 14px 12px 18px;
  border-radius: 0;
  border: 1px solid var(--line-hot);
  background: rgba(200, 102, 47, 0.08);
  color: var(--bone);
  cursor: pointer;
  font: inherit;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ip:hover { background: rgba(200, 102, 47, 0.16); border-color: var(--rust); }

.ip code {
  font-family: var(--font);
  font-size: 19px;
  letter-spacing: 0.04em;
}

.ip-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
  font-size: 13px;
  color: var(--amber);
}

.ip.copied .ip-action { background: var(--rust); color: #fff4e8; }

.note {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dim);
}

.note i { color: var(--amber); }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 110px;
  padding: 36px 16px 44px;
  border-top: 1px dashed var(--line);
}

.footer-brand {
  font-size: 19px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rust);
}

.footer-brand span { color: var(--bone); font-size: 0.75em; letter-spacing: 0.2em; }

.footer-slogan { color: var(--dim); }

.footer-discord { color: var(--text); text-decoration: none; }
.footer-discord:hover { color: var(--bone); }
.footer-discord i { color: var(--amber); }

/* Server news (latest 10 + archive modal) */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  grid-template-areas: "meta title" "meta body";
  column-gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.news-meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: var(--dim);
}

.news-tag {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid currentColor;
}

.news-tag-announcement { color: var(--amber); }
.news-tag-change { color: #a3b169; }
.news-tag-notice { color: #d0574a; }

.news-item h3 {
  grid-area: title;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--bone);
}

.news-body { grid-area: body; font-size: 18px; line-height: 1.65; min-width: 0; }
.news-body p { margin: 0 0 10px; }
.news-body p:last-child { margin-bottom: 0; }
.news-body ul { margin: 0 0 10px; padding-left: 20px; }
.news-body li { margin: 2px 0; }
.news-body li::marker { color: var(--rust); }
.news-body strong { color: var(--bone); font-weight: 400; }
.news-body a { color: var(--amber); }

.news-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 22px;
}

.news-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font: inherit;
  font-size: 18px;
  color: var(--bone);
  background: rgba(200, 102, 47, 0.08);
  border: 1px solid var(--line-hot);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.news-all i { color: var(--amber); }
.news-all:hover { background: rgba(200, 102, 47, 0.16); border-color: var(--rust); }
.news-count { color: var(--dim); }

.news-rss { color: var(--dim); text-decoration: none; font-size: 16px; }
.news-rss i { color: var(--amber); margin-right: 8px; }
.news-rss:hover { color: var(--bone); }

.news-all:focus-visible, .news-rss:focus-visible, .news-close:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.news-modal {
  width: min(880px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-hot);
  border-radius: 0;
  overflow: hidden;
}

.news-modal[open] { display: flex; flex-direction: column; }
.news-modal::backdrop { background: rgba(8, 6, 5, 0.78); }

.news-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px dashed var(--line);
}

.news-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.news-close {
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}

.news-close:hover { color: var(--bone); border-color: var(--line-hot); }

.news-modal .news-list { overflow-y: auto; padding: 0 24px; border-top: 0; }
.news-modal .news-item:last-child { border-bottom: 0; }

body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .lawbreaker-cols { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  .chip-back { top: 16px; left: 16px; }
  main { padding: 0 16px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cards, .camps { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
  .cta-row { margin-top: 40px; gap: 14px; }
  .discord { padding: 16px 28px; font-size: 20px; }
  .discord i { font-size: 24px; }
  .ghost { padding: 14px 24px; font-size: 18px; }
  .lawbreaker { padding: 22px 18px 24px; }
  .rules li, .steps li { padding: 20px 18px 20px 64px; }
  .rules li::before, .steps li::before { left: 16px; }
  .ip { gap: 10px; }
  .ip code { font-size: 16px; }
  .news-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "title" "body"; }
  .news-meta { flex-direction: row; align-items: center; margin-bottom: 8px; }
  .news-modal-head { padding: 14px 16px; }
  .news-modal .news-list { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .discord, .status-dot, .scroll-hint { animation: none; }
  .bg { transition: none; }
}
