:root {
  --bg: #14110f;
  --panel: #f1e5d2;
  --panel-dark: #211b17;
  --ink: #1f1a17;
  --muted: #74685c;
  --line: #cdbb9f;
  --red: #9b241e;
  --crimson: #c13a32;
  --green: #315f53;
  --gold: #c89538;
  --violet: #483452;
  --bone: #efe2cc;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--bone);
  background:
    linear-gradient(180deg, rgba(20, 17, 15, 0.65), rgba(20, 17, 15, 0.95)),
    radial-gradient(circle at 18% 8%, rgba(193, 58, 50, 0.22), transparent 32%),
    radial-gradient(circle at 92% 42%, rgba(47, 93, 80, 0.18), transparent 30%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--bone);
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: rgba(239, 226, 204, 0.72);
  text-decoration: none;
}

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

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  min-height: 620px;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(31, 26, 23, 0.16);
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(15, 12, 10, 0.9) 0%, rgba(15, 12, 10, 0.72) 43%, rgba(15, 12, 10, 0.2) 100%),
    linear-gradient(0deg, rgba(15, 12, 10, 0.28), rgba(15, 12, 10, 0.28)),
    url("images/gondia-karmazynowy-poglos.png") center / cover no-repeat;
}

.hero-content {
  width: min(760px, 100%);
  padding: clamp(32px, 7vw, 76px);
  color: #fffaf1;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  color: rgba(255, 250, 241, 0.86);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
}

.button.secondary {
  color: #fffaf1;
  border-color: rgba(255, 250, 241, 0.42);
}

.text-link {
  color: var(--gold);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.inline-link {
  color: var(--red);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.section h2,
.section-heading h2,
.feature-copy h2 {
  color: var(--bone);
}

.lore-section {
  padding-top: 86px;
}

.lore-teaser {
  margin-bottom: 18px;
  padding: clamp(26px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(33, 27, 23, 0.94), rgba(33, 27, 23, 0.82)),
    var(--panel-dark);
  border-color: rgba(193, 58, 50, 0.44);
  color: var(--bone);
}

.lore-teaser p {
  max-width: 920px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  font-weight: 400;
  line-height: 1.72;
}

.lore-teaser .teaser-lead,
.lore-teaser .teaser-end {
  color: var(--gold);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.28;
}

.lore-teaser .teaser-end {
  margin-bottom: 24px;
}

.teaser-button {
  margin-top: 4px;
}

.intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.intro-grid article,
.round,
.downloads a,
.tab-panel,
.lore-teaser,
.rules-grid article,
.info-board article {
  background: rgba(241, 229, 210, 0.95);
  border: 1px solid rgba(205, 187, 159, 0.84);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  color: var(--ink);
}

.intro-grid article {
  min-height: 230px;
  padding: 24px;
}

.intro-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-weight: 900;
}

.muted {
  color: rgba(239, 226, 204, 0.72);
}

.feature,
.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
}

.feature {
  align-items: stretch;
}

.feature-copy {
  padding-top: 10px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.tabs {
  display: grid;
  gap: 0;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-button {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  color: rgba(239, 226, 204, 0.74);
  background: rgba(33, 27, 23, 0.86);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab-button:hover,
.tab-button.active {
  color: #fffaf1;
  background: var(--red);
  border-color: rgba(193, 58, 50, 0.9);
}

.tab-panel {
  padding: clamp(22px, 4vw, 38px);
}

.tab-panel.order {
  border-top: 6px solid var(--gold);
}

.tab-panel.chaos {
  border-top: 6px solid var(--red);
}

.tab-panel.death {
  border-top: 6px solid var(--violet);
}

.faction-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.faction-count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  color: #fffaf1;
  background: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.faction-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
}

.faction-letter {
  min-height: 240px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(31, 26, 23, 0.9), rgba(31, 26, 23, 0.76)),
    var(--panel-dark);
  color: var(--bone);
}

.faction-letter p {
  color: rgba(239, 230, 216, 0.82);
}

.faction-letter-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px;
  color: #fffaf1;
  background: var(--green);
  border: 1px solid #5f9a88;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.faction-letter-link::before,
.lore-file-link::before {
  content: "";
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-right-radius: 5px;
  box-shadow: inset -4px 4px 0 rgba(255, 250, 241, 0.22);
}

.faction-letter-link:hover {
  background: #254c42;
}

.team-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  background: rgba(255, 247, 232, 0.72);
}

summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 15px 18px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.lore-file-link {
  display: inline-flex;
  margin: 0 18px 18px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  color: #fffaf1;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.lore-file-link:hover {
  background: #254c42;
  border-color: #254c42;
}

.schedule {
  display: grid;
  gap: 12px;
}

.round {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 20px 22px;
}

.round.active {
  border-left: 6px solid var(--red);
}

.round strong,
.round span {
  display: block;
}

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

.round time {
  white-space: nowrap;
  color: var(--green);
  font-weight: 900;
}

.downloads {
  display: grid;
  gap: 12px;
}

.material-grid {
  grid-template-columns: repeat(4, 1fr);
}

.downloads a {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  text-decoration: none;
}

.downloads a:hover {
  border-color: var(--red);
}

.downloads .highlight-download {
  background:
    linear-gradient(135deg, rgba(155, 36, 30, 0.18), rgba(194, 138, 45, 0.16)),
    var(--panel);
  border-color: rgba(193, 58, 50, 0.42);
}

.downloads span {
  font-weight: 900;
}

.downloads small {
  padding: 5px 9px;
  color: #fffaf1;
  background: var(--green);
  font-weight: 900;
  text-align: center;
}

.rules-grid,
.info-board {
  display: grid;
  gap: 14px;
}

.rules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-grid article,
.info-board article {
  padding: 22px;
}

.rules-grid h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.rules-grid p,
.info-board p {
  margin-bottom: 0;
  color: var(--muted);
}

.handout-downloads {
  margin-top: 16px;
}

.packing-list,
.rules-list,
.useful-links {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.packing-list li,
.rules-list li,
.useful-links li {
  margin-bottom: 10px;
}

.packing-list li:last-child,
.rules-list li:last-child,
.useful-links li:last-child {
  margin-bottom: 0;
}

.packing-list span,
.rules-list strong {
  color: var(--ink);
  font-weight: 900;
}

.useful-links {
  margin-top: 18px;
}

.useful-links a {
  color: var(--red);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.contact-person span {
  display: block;
  margin-top: 2px;
}

.info-board {
  grid-template-columns: repeat(2, 1fr);
}

.info-board strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.footer {
  padding: 28px 16px;
  color: rgba(255, 250, 241, 0.82);
  background: var(--ink);
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav,
  .section-heading,
  .faction-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    padding: 18px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 520px;
    margin-top: 18px;
    background-position: 62% center;
  }

  .feature,
  .split,
  .intro-grid,
  .faction-layout,
  .material-grid,
  .rules-grid,
  .info-board {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: auto;
  }

  .nav {
    width: min(100% - 24px, 1180px);
    min-height: auto;
    gap: 12px;
  }

  .brand {
    font-size: 1rem;
  }

  .nav-links {
    gap: 10px 14px;
    font-size: 0.88rem;
  }

  .hero {
    width: min(100% - 24px, 1180px);
    min-height: auto;
    margin-top: 4px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(15, 12, 10, 0.36) 0%, rgba(15, 12, 10, 0.78) 52%, rgba(15, 12, 10, 0.94) 100%),
      url("images/gondia-karmazynowy-poglos.png") 68% center / cover no-repeat;
  }

  .hero-content {
    padding: 140px 20px 24px;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-height: 44px;
  }

  .round,
  .downloads a {
    align-items: flex-start;
    flex-direction: column;
  }

  .round time {
    white-space: normal;
  }

  .tab-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab-button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
    line-height: 1.02;
  }
}
