* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #000000;
  background: #f7f8fb;
  background-image: none;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  transition: background 0.25s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}
.hero,
.content {
  /* shared card container */
  background: #eff6ff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color: #000000;
}

.hero {
  padding: 2.5rem 1.5rem 1rem;
}

/* Headline white-card styling (used by hero h1 and content h2) */
.hero h1,
.content h2 {
  margin: 0 0 1rem;
  line-height: 1.05;
  color: #000000;
  background: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.content h2 {
  font-size: 1.75rem;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content {
  margin-top: 2rem;
  padding: 1.5rem;
}

/* content blocks: blue background with white text */
.content-block {
  margin-bottom: 1.75rem;
  padding: 1.4rem 1.6rem;
  background: #1e3a8a; /* deep blue */
  color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.content-block h3,
.content-block p {
  color: inherit;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.options-panel {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  width: min(360px, calc(100% - 2rem));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 1rem;
  z-index: 150;
}

.options-panel,
.options-panel * {
  color: #000000 !important;
}

.options-panel-inner {
  display: grid;
  gap: 1rem;
}

.options-group h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.option-button {
  border: 1px solid rgba(55, 65, 81, 0.15);
  background: #f8fafc;
  color: #1f2937;
  border-radius: 9999px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.option-button:hover,
.option-button:focus-visible {
  transform: translateY(-1px);
  background: #eef2ff;
}

.hint {
  margin: 0.75rem 0 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.hero,
.content {
  background: #eff6ff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color: #000000;
}

.hero {
  padding: 2.5rem 1.5rem 1rem;
}

.hero h1,
.content h2 {
  margin: 0 0 1rem;
  line-height: 1.05;
  color: #000000;
  background: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.content h2 {
  font-size: 1.75rem;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content {
  margin-top: 2rem;
  padding: 1.5rem;
}

/* Underlying text color to match headings for readability */
.hero p,
.content p,
.content-block p,
.content-block h3 {
  color: #000000;
}

/* Specific Stand paragraph should be black (override any other rules) */
.stand {
  color: #000000 !important;
}

.content p {
  margin: 0 0 1.5rem;
  max-width: 760px;
  color: inherit;
  line-height: 1.8;
}

.content-block {
  margin-bottom: 1.75rem;
  padding: 1.4rem 1.6rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.content-block h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: inherit;
}

.content-block p {
  margin: 0.75rem 0 0;
  color: inherit;
}

.picture {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

.linework {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(34,34,34,0.2), rgba(34,34,34,0.6), rgba(34,34,34,0.2));
  margin: 1.5rem 0;
  border: none;
}

.site-footer {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #9ca3af;
}

.footer-link {
  border: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #6b7280;
  outline: none;
  text-decoration: underline;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 140;
  display: none;
}

.modal-overlay:not([hidden]) {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 150;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  color: #111827;
}

.modal-content p {
  margin: 0 0 1rem;
  color: #374151;
  line-height: 1.7;
}

.modal-content a {
  color: #0f766e;
  text-decoration: none;
}

.modal-content a:hover,
.modal-content a:focus-visible {
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #111827;
}

/* Layout and readability overrides */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 6rem 1rem 2rem;
  min-height: calc(100vh - 80px);
}

/* Ensure comfortable global line-height for readability */
body {
  line-height: 1.6;
}

/* Header logo smaller but visible */
.brand img {
  width: 40px;
  height: auto;
  display: block;
}

/* Centralize hero text and constrain paragraph width for readability */
.hero {
  text-align: center;
}

.hero p {
  margin: 0 auto;
}

.content p {
  margin: 0 auto 1.5rem;
  max-width: 680px;
}

/* Ensure content blocks stay blue with white text */
.content-block {
  background: #081a49 !important;
  color: #ffffff !important;
}

/* Ensure brand title/subtitle stack vertically beside the logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: #000000;
}


.brand-subtitle {
  font-size: 0.85rem;
  color: #4b5563;
}

/* Header layout overrides: ensure right-side nav (Discord) is vertically centered */
.site-header {
  padding: 0.5rem 1rem;
  min-height: 64px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  text-decoration: none;
}

.discord-logo {
  width: 35px;
  height: 35px;
  display: block;
}

