/* Poker Feud: shared stylesheet for the privacy and support site.
   No external fonts, no scripts, no inline styles (the CSP only allows this file). */

:root {
  --bg: #0b0806;
  --bg-glow: #24170e;
  --surface: #16100b;
  --line: #3b2d20;
  --line-strong: #6a5238;
  --text: #efe3cf;
  --muted: #bcab90;
  --gold: #d4a24c;
  --gold-hi: #e8bf6a;
  --red: #8e1b1b;
  --red-hi: #b8372c; /* decorative only; never used for text */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 70ch;
  --gutter: 16px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 90% 520px at 50% -120px, var(--bg-glow), var(--bg));
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

[id] {
  scroll-margin-top: 1rem;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  padding-block: 2rem 1rem;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--gold);
}

h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.3rem 0;
}

li::marker {
  color: var(--gold);
}

strong {
  color: #f7eddc;
}

a {
  color: var(--gold-hi);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
  text-decoration-color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.lede {
  font-size: 1.15rem;
}

hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background-image: linear-gradient(to right, transparent, var(--line-strong), transparent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.skip:focus {
  top: 0.5rem;
  color: var(--bg);
}

/* ---------- Wordmark ---------- */

.w-poker,
.w-feud {
  display: inline-block;
  text-transform: uppercase;
}

.w-feud {
  padding: 0 0.16em;
  background: var(--red);
  color: var(--gold-hi);
  border: 1px solid var(--gold);
  border-radius: 0.08em;
}

.wordmark {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2.2rem, 9.5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 0.05em 0 var(--red), 0 0.1em 0.35em rgba(0, 0, 0, 0.6);
}

.wordmark .w-feud {
  border-width: 2px;
  text-shadow: 0 0.04em 0 rgba(0, 0, 0, 0.55);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.75rem;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  padding-block: 0.25rem;
}

.brand:hover {
  color: var(--gold-hi);
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li,
.footer-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0.1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--gold);
}

.site-nav a[aria-current="page"] {
  color: var(--gold-hi);
  border-bottom-color: var(--red-hi);
}

.site-footer {
  margin-top: 3rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  display: inline-block;
  padding-block: 0.2rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* ---------- Home ---------- */

.hero {
  padding-block: 2.5rem 1rem;
  text-align: center;
}

.hero .lede {
  text-align: left;
}

.suits {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.6em;
  padding-left: 0.6em; /* balances the trailing letter-spacing */
  color: var(--gold);
}

.suits .red {
  color: var(--red-hi);
}

.tagline {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.facts li {
  margin: 0;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0 0.5rem;
  padding: 0;
  list-style: none;
}

.stores li {
  margin: 0;
}

.store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 11rem;
  padding: 0.55rem 1.1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  cursor: not-allowed;
}

.store-name {
  font-weight: 600;
  color: var(--text);
}

.store-status {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
}

.card {
  display: block;
  height: 100%;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.card:hover {
  border-color: var(--gold);
  color: var(--text);
}

.card-title {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-hi);
}

.card-text {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Boxes ---------- */

.notice,
.summary,
.toc {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice {
  border-left: 4px solid var(--red);
}

.summary {
  border-left: 4px solid var(--gold);
}

.notice h2,
.summary h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.notice p:last-child,
.summary p:last-child,
.summary ul:last-child {
  margin-bottom: 0;
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  columns: 2 16rem;
  column-gap: 2rem;
}

.toc li {
  margin: 0.15rem 0;
  break-inside: avoid;
}

.help-list li {
  margin: 0.5rem 0;
}

.address {
  font-style: normal;
}

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

.faq h3 {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.faq h3:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 1.75rem;
  }

  .store {
    min-width: 0;
    flex: 1 1 9rem;
  }

  .stores li {
    display: flex;
    flex: 1 1 9rem;
  }
}

/* ---------- Print ---------- */

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --line: #999;
    --line-strong: #666;
    --text: #000;
    --muted: #333;
    --gold: #000;
    --gold-hi: #000;
    --red: #000;
    --red-hi: #000;
    color-scheme: light;
  }

  @page {
    margin: 18mm;
  }

  body {
    display: block;
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.45;
  }

  strong {
    color: #000;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .skip,
  .site-nav,
  .footer-nav,
  .stores,
  .suits {
    display: none;
  }

  .wordmark,
  .wordmark .w-feud {
    text-shadow: none;
  }

  .w-feud {
    background: none;
    color: #000;
    border-color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  main a[href^="http"]:not(.bare)::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  .notice,
  .summary,
  .toc,
  .card {
    border-color: #999;
    break-inside: avoid;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  .toc ol {
    columns: 1;
  }
}
