/* Backgammon Duo — knipsoft.com/backgammon
   One stylesheet for every page and every language.
   Dark is the default look; light is supported and readable. */

:root {
  color-scheme: dark light;

  --bg:        #1b1b1e;
  --bg-2:      #17171a;
  --surface:   #212126;
  --surface-2: #26262c;
  --text:      #ece5d8;
  --text-dim:  #a49d92;
  --brass:     #c9a15c;
  --brass-dim: #9a7a41;
  --hairline:  rgba(236, 229, 216, 0.13);
  --hairline-2:rgba(236, 229, 216, 0.07);
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);

  --measure: 34rem;
  --page: 68rem;

  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f5f2ec;
    --bg-2:      #efebe3;
    --surface:   #fffdf8;
    --surface-2: #f7f3ea;
    --text:      #22222a;
    --text-dim:  #58524a;
    --brass:     #8a6524;
    --brass-dim: #a07f42;
    --hairline:  rgba(34, 34, 42, 0.16);
    --hairline-2:rgba(34, 34, 42, 0.08);
    --shadow:    0 1px 2px rgba(60,50,30,.10), 0 12px 32px rgba(60,50,30,.10);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) { body { font-size: 18px; } }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text); text-decoration-color: var(--brass-dim); text-underline-offset: 0.25em; }
a:hover { color: var(--brass); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: 0; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.2em; }
li { margin-bottom: 0.45em; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin: 0 0 0.9rem;
}

.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 38rem; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--hairline-2);
  background: var(--bg-2);
}
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  margin-right: auto;
}
.brand span { color: var(--brass); }

.site-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.9rem; }
.site-nav a { color: var(--text-dim); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass); }

.langs { display: flex; gap: 0.55rem; font-size: 0.82rem; letter-spacing: 0.06em; }
.langs a { color: var(--text-dim); text-decoration: none; text-transform: uppercase; }
.langs a:hover { color: var(--brass); }
.langs a[aria-current="true"] { color: var(--text); border-bottom: 1px solid var(--brass); }

/* ---------- placeholder block ---------- */

.placeholders {
  border-bottom: 1px dashed var(--brass-dim);
  background: var(--surface-2);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.placeholders .wrap { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.placeholders p { margin: 0; max-width: none; }
.placeholders code { color: var(--brass); }

a[data-placeholder] {
  border-bottom: 1px dashed var(--brass-dim);
}

/* ---------- sections ---------- */

section { padding: 3rem 0; border-top: 1px solid var(--hairline-2); }
section:first-of-type { border-top: 0; }
@media (min-width: 48rem) { section { padding: 4.5rem 0; } }

.hero { padding-top: 2.5rem; }
.hero h1 { max-width: 22ch; }
.hero .lead { margin-bottom: 1.8rem; }

.figure { margin: 2rem 0 0; }
.figure img {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- store buttons ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 0.9rem; }
.btn {
  display: inline-block;
  padding: 0.62rem 1.15rem;
  border: 1px solid var(--brass-dim);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 400;
  background: transparent;
}
.btn:hover { border-color: var(--brass); color: var(--brass); }
.btn-primary { background: var(--brass); border-color: var(--brass); color: #1b1b1e; font-weight: 500; }
.btn-primary:hover { background: var(--brass-dim); border-color: var(--brass-dim); color: #1b1b1e; }
.store-note { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- fact strip ---------- */

.facts {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  max-width: none;
  display: grid;
  gap: 1px;
  background: var(--hairline-2);
  border: 1px solid var(--hairline-2);
  border-radius: 10px;
  overflow: hidden;
}
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { margin: 0; padding: 1.1rem 1.2rem; background: var(--surface); }
.facts b { display: block; font-size: 1.5rem; font-weight: 500; color: var(--brass); letter-spacing: -0.01em; }
.facts span { font-size: 0.86rem; color: var(--text-dim); line-height: 1.45; display: block; margin-top: 0.15rem; }

/* ---------- generic cards ---------- */

.cards { display: grid; gap: 1.4rem; margin-top: 2rem; }
@media (min-width: 44rem) { .cards { grid-template-columns: 1fr 1fr; gap: 1.6rem 2.5rem; } }
.card { border-top: 1px solid var(--hairline); padding-top: 1.1rem; }
.card h3 { color: var(--brass); margin-bottom: 0.4rem; }
.card p { margin-bottom: 0; font-size: 0.97rem; color: var(--text-dim); max-width: none; }

/* ---------- price panels ---------- */

.plans { display: grid; gap: 1.2rem; margin-top: 2rem; }
@media (min-width: 44rem) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.4rem 1.3rem;
  background: var(--surface);
}
.plan h3 { margin-bottom: 0.3rem; }
.plan .price { font-size: 1.5rem; color: var(--brass); font-weight: 500; display: block; margin-bottom: 0.6rem; }
.plan p { font-size: 0.94rem; color: var(--text-dim); margin-bottom: 0; max-width: none; }
.plan ul { font-size: 0.94rem; color: var(--text-dim); margin: 0; max-width: none; }

/* ---------- gallery ---------- */

.gallery { display: grid; gap: 1.6rem; margin-top: 2rem; }
@media (min-width: 44rem) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.gallery figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--text-dim); }

/* ---------- FAQ ---------- */

.faq-toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; max-width: none; }
.faq-toc li { margin: 0; }
.faq-toc a { font-size: 0.92rem; color: var(--text-dim); text-decoration: none; }
.faq-toc a:hover { color: var(--brass); }

details.qa {
  border-top: 1px solid var(--hairline-2);
  padding: 0.2rem 0;
}
details.qa:last-of-type { border-bottom: 1px solid var(--hairline-2); }
details.qa > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 2rem 0.95rem 0;
  font-weight: 400;
  font-size: 1.03rem;
  position: relative;
}
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.85rem;
  color: var(--brass);
  font-size: 1.15rem;
  line-height: 1;
}
details.qa[open] > summary::after { content: "\2212"; }
details.qa > summary:hover { color: var(--brass); }
details.qa .a { padding: 0 0 1rem; }
details.qa .a p { color: var(--text-dim); font-size: 0.97rem; }
details.qa .a p:last-child { margin-bottom: 0; }
details.qa .a ul { color: var(--text-dim); font-size: 0.97rem; }

/* ---------- legal documents ---------- */

.doc h2 { font-size: 1.25rem; margin-top: 2.4rem; }
.doc h2:first-of-type { margin-top: 1.6rem; }
.doc p, .doc li { color: var(--text-dim); font-size: 1rem; }
.doc .meta { font-size: 0.9rem; }
.notice {
  border: 1px solid var(--brass-dim);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--text-dim);
  max-width: var(--measure);
  margin-bottom: 1.6rem;
}
.notice p { margin: 0; font-size: 0.92rem; }

/* ---------- table ---------- */

.tbl-scroll { overflow-x: auto; margin: 1.4rem 0; }
table { border-collapse: collapse; font-size: 0.94rem; min-width: 26rem; }
th, td { text-align: left; padding: 0.6rem 1.2rem 0.6rem 0; border-bottom: 1px solid var(--hairline-2); vertical-align: top; }
th { font-weight: 500; color: var(--text); }
td { color: var(--text-dim); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--hairline-2);
  background: var(--bg-2);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.site-foot p { max-width: 44rem; margin-bottom: 0.8rem; }
.site-foot .foot-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: 1.2rem; }
.site-foot .foot-nav a { color: var(--text-dim); text-decoration: none; }
.site-foot .foot-nav a:hover { color: var(--brass); }
.site-foot .fine { font-size: 0.82rem; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 0.5rem; top: 0.5rem;
  position: fixed;
  z-index: 10;
  background: var(--brass);
  color: #1b1b1e;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
