/* Styles for the static pages (landing, how to play, rules, strategy). The Flutter app doesn't use this file. */

:root {
  --felt: #1b6b45;
  --felt-dark: #0e3b2b;
  --night: #061f16;
  --ink: #1d2420;
  --muted: #56635b;
  --paper: #f6f4ee;
  --card: #ffffff;
  --line: #dcd8cc;
  --accent: #e5484d;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--felt); }
a:hover { color: var(--felt-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 720px; }

/* Header */
.site-header {
  background: var(--felt-dark);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: #fff; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a { color: #d9eee3; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.button:hover { background: #cf3a3f; color: #fff; }
.button.small { padding: 6px 18px; }
.site-nav .button { color: #fff; }
.site-nav .button:hover { text-decoration: none; }
.button.quiet { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.button.quiet:hover { background: rgba(255, 255, 255, 0.1); }

/* Landing hero */
.hero {
  background: linear-gradient(180deg, var(--felt-dark), var(--night));
  color: #eef7f2;
  padding: 56px 0 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; margin: 0 0 16px; color: #fff; }
.hero .lead { font-size: 20px; margin: 0 0 28px; color: #cfe6da; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .board { width: 100%; max-width: 420px; justify-self: center; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }

/* Page heading for the content pages */
.page-head {
  background: linear-gradient(180deg, var(--felt-dark), var(--night));
  color: #eef7f2;
  padding: 40px 0 44px;
}
.page-head h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; color: #fff; }
.page-head p { margin: 0; color: #cfe6da; font-size: 19px; max-width: 720px; }

main section { padding: 48px 0; }
main section + section { border-top: 1px solid var(--line); }
h2 { font-size: 28px; line-height: 1.25; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 28px 0 8px; }
.cards h3 { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card p { margin: 0; color: var(--muted); }

ol.steps { padding-left: 1.4em; }
ol.steps > li { margin-bottom: 14px; }
ol.steps > li::marker { font-weight: 700; color: var(--felt); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 24px 0; }
figure { margin: 0; }
figure .board { width: 100%; max-width: 340px; display: block; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; max-width: 340px; }

.board .coord { font: 600 13px system-ui, sans-serif; fill: #e9d9c4; text-anchor: middle; }
.board .zone-label { font: 700 16px system-ui, sans-serif; fill: #fff; text-anchor: middle; }

.note {
  background: #eaf3ee;
  border-left: 4px solid var(--felt);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.cta { text-align: center; }
.cta p { color: var(--muted); }

dl.faq dt { font-weight: 700; margin-top: 18px; }
dl.faq dd { margin: 4px 0 0; }

/* Footer */
.site-footer { background: var(--night); color: #a9c2b5; padding: 28px 0; font-size: 15px; }
.site-footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #d9eee3; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero .board { max-width: 320px; }
  .site-nav { margin-left: 0; gap: 14px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
}
