/* Shared styles for the static content pages and the content section under the game. */
:root {
  --bg: #0b0e15;
  --panel: #121724;
  --panel-2: #1a2133;
  --line: #252d42;
  --line-strong: #34406a;
  --text: #e6e9f0;
  --muted: #8b94ad;
  --teal: #5eead4;
  --teal-dark: #0f766e;
  --teal-line: #14b8a6;
  --yellow: #facc15;
}

body.doc {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

body.doc a {
  color: var(--teal);
}

body.doc a:hover {
  color: #99f6e4;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  font-size: 15px;
}

.site-nav .brand,
body.doc .site-nav a.brand {
  color: var(--text);
  margin-right: auto;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
}

body.doc .site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

body.doc .site-nav a:hover,
body.doc .site-nav a[aria-current="page"] {
  color: var(--text);
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 34px 0 10px;
  letter-spacing: 0.3px;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 26px 0 8px;
  color: var(--teal);
}

body.doc p,
body.doc li,
.site-content p,
.site-content li {
  color: #c9d0e0;
}

.lead {
  font-size: 18px;
  color: #dbe1ee;
}

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

.fine {
  font-size: 13px;
  color: var(--muted);
}

kbd {
  display: inline-block;
  min-width: 12px;
  padding: 1px 7px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card {
  background: var(--panel);
  border: 1px solid #2c3552;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}

.notice-line {
  background: var(--panel);
  border: 1px solid #2c3552;
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  padding: 12px 16px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.btn {
  display: inline-block;
  background: var(--teal-dark);
  border: 1px solid var(--teal-line);
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
}

.btn:hover {
  background: #12897f;
  color: var(--text);
}

.btn.secondary {
  background: #1d2540;
  border-color: var(--line-strong);
}

.btn.secondary:hover {
  background: #263058;
}

.faq dt {
  font-weight: 700;
  margin-top: 16px;
}

.faq dd {
  margin: 4px 0 0;
  color: #c9d0e0;
}

/* Content section below the game on the homepage. */
.site-content {
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--line);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.site-content .wrap {
  max-width: 820px;
}

.site-content h2 {
  margin-top: 0;
}

.site-content p,
.site-content li,
.site-content dd {
  color: #c9d0e0;
  font-size: 16px;
  line-height: 1.7;
}

.site-content .faq dt {
  color: var(--text);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

body.doc .site-footer a,
.site-content .site-footer a {
  color: var(--muted);
  text-decoration: none;
}

body.doc .site-footer a:hover,
.site-content .site-footer a:hover {
  color: var(--text);
}

.site-footer .fine {
  margin-left: auto;
}

/* Mobile landing page shown instead of the game on touch-only devices. */
.mobile-landing {
  display: none;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(94, 234, 212, 0.12), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

body.mobile-only #app {
  display: none;
}

body.mobile-only .mobile-landing {
  display: block;
}

.mobile-landing .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
}

.eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

@media (max-width: 640px) {
  .wrap {
    padding: 20px 16px 48px;
  }

  .site-nav .brand {
    width: 100%;
    margin-bottom: 2px;
  }

  .site-footer .fine {
    width: 100%;
    margin-left: 0;
  }
}

/* Article figures and the guides hub. */
figure {
  margin: 22px 0;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
}

figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

a.guide-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel);
  border: 1px solid #2c3552;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 14px;
}

a.guide-card:hover {
  border-color: var(--teal-line);
  color: var(--text);
}

.guide-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: center 40%;
  border-bottom: 1px solid var(--line);
}

.guide-card .gc-title {
  padding: 4px 14px 0;
  font-weight: 700;
  font-size: 17px;
}

.guide-card .gc-desc {
  padding: 0 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.site-content a {
  color: var(--teal);
}

.site-content a.guide-card {
  color: var(--text);
}
