/* Shared look for the Advanced Cribbage Board website.
   Same theme as the app: the real felt image as the table,
   a soft spotlight, and parchment cards with wood-tone edges. */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, 'Times New Roman', serif;
  background: #16301a url('felt.png') center / cover no-repeat fixed;
  color: #3a2a18;
  padding: 48px 20px 64px;
}

/* the spotlight: brighter in the middle, shadowed at the edges,
   just like the glow behind the board in the app */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 35%,
    rgba(255, 244, 200, 0.10) 0%,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

main {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.65;
  background: linear-gradient(175deg, #f6e7c6 0%, #eeddb4 55%, #e4cf9f 100%);
  border: 2px solid #7a5a33;
  outline: 6px solid #4c3618;
  border-radius: 14px;
  padding: 34px 34px 40px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

h1 {
  font-size: 30px;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
  color: #4c3618;
}

h2 {
  font-size: 19px;
  margin: 30px 0 8px;
  color: #5d431f;
  border-bottom: 1px solid rgba(122, 90, 51, 0.35);
  padding-bottom: 4px;
}

p { font-size: 16px; margin: 8px 0; }

.updated {
  color: rgba(76, 54, 24, 0.65);
  font-size: 14px;
  margin-bottom: 20px;
}

a { color: #8a5a1e; font-weight: bold; }
a:hover { color: #a96f26; }

/* the small nav row at the top of each inner page */
.crumbs {
  font-size: 14px;
  margin-bottom: 18px;
}

/* ---------- landing page ---------- */

.hero {
  text-align: center;
  padding-top: 8px;
}

.hero img {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  border: 2px solid #7a5a33;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.hero h1 { margin-top: 18px; }

.tagline {
  font-size: 17px;
  color: rgba(76, 54, 24, 0.85);
  margin-bottom: 26px;
}

.links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.links a {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(180deg, #d9a25c, #b97f3c);
  color: #2b1c0a;
  border: 1.5px solid #6e4d24;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.links a:hover { filter: brightness(1.06); color: #2b1c0a; }

@media (max-width: 480px) {
  main { padding: 24px 20px 32px; }
  h1 { font-size: 25px; }
}
