/* Shared style for the Fireside Solitaire information pages
   (How to Play, Tips, Why Play Solitaire, About).
   Calm, warm and easy to read on a phone. */

:root {
  --bg: #17110d;
  --panel: #fbf6ee;
  --text: #2a211b;
  --muted: #5c4d42;
  --accent: #a8431c;
  --accent-dark: #7c2f12;
  --line: #e6d9c6;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(23, 17, 13, 0.82), rgba(23, 17, 13, 0.92)),
    url("/videos/fire2_preview.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-dark); }

.site-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 8px;
  text-align: center;
}

.site-name {
  display: inline-block;
  color: #f6e7d2;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-name:hover, .site-name:focus { color: #fff; }

.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}
.page-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: #f6e7d2;
  text-decoration: none;
  border: 1px solid rgba(246, 231, 210, 0.35);
}
.page-nav a:hover, .page-nav a:focus { background: rgba(246, 231, 210, 0.12); color: #fff; }
.page-nav a[aria-current="page"] { background: #f6e7d2; color: var(--bg); border-color: #f6e7d2; }

main {
  max-width: 760px;
  margin: 12px auto 0;
  padding: 0 12px;
}

.panel {
  background: var(--panel);
  border-radius: 14px;
  padding: 28px 22px 32px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--accent-dark);
}

h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 32px 0 8px;
  color: var(--accent-dark);
}

p { margin: 0 0 16px; }

.intro { font-size: 20px; color: var(--muted); }

ul, ol { padding-left: 24px; margin: 0 0 16px; }
li { margin-bottom: 10px; }

.tips li { margin-bottom: 16px; }

.play-box {
  margin: 32px 0 0;
  padding: 22px 18px;
  border-top: 2px solid var(--line);
  text-align: center;
}
.play-box p { margin-bottom: 14px; color: var(--muted); }

.play-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(168, 67, 28, 0.35);
}
.play-button:hover, .play-button:focus { background: var(--accent-dark); color: #fff; }

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: rgba(246, 231, 210, 0.6);
}
.site-footer a { color: rgba(246, 231, 210, 0.8); }
.site-footer a:hover, .site-footer a:focus { color: #fff; }
.site-footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }

@media (min-width: 640px) {
  .panel { padding: 40px 48px 44px; }
  h1 { font-size: 36px; }
}
