/* Shared styles for Pebble Merge content / SEO pages.
   Reuses the game's design tokens for a consistent look. */

:root {
  --bg: #f4efe6;
  --panel: #ffffff;
  --ink: #3b3630;
  --ink-soft: #8a8078;
  --line: #e3dbcd;
  --accent: #8a9a7b;
  --accent-dark: #6f7f61;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next", "Nunito", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

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

/* ---------- top navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-nav .brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}
.site-nav .brand .dot {
  width: 18px; height: 18px; border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, #7fae5a, #2fae8f);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.14);
}
.site-nav .links {
  margin-left: auto;
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav .links::-webkit-scrollbar { display: none; }
.site-nav .links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.site-nav .links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}
.site-nav .links a[aria-current="page"] {
  color: #fff;
  background: var(--accent-dark);
}

/* ---------- page hero ---------- */
.page-hero {
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 18px 8px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.page-hero p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 620px;
}

/* ---------- content container ---------- */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 56px;
}
.content h2 {
  font-size: 24px;
  margin: 38px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.content h2:first-child { border-top: none; padding-top: 0; }
.content h3 {
  font-size: 18px;
  margin: 26px 0 8px;
  color: var(--accent-dark);
}
.content p { margin: 12px 0; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin: 8px 0; }
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(90, 78, 64, 0.10);
  display: block;
  margin: 18px auto;
}
.content blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--accent);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
}
.content code {
  background: #ece6da;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

/* ---------- call-to-action ---------- */
.cta {
  text-align: center;
  margin: 36px 0 8px;
  padding: 26px 20px;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(90, 78, 64, 0.08);
}
.cta h3 { margin: 0 0 8px; color: var(--ink); }
.cta p { margin: 0 0 16px; color: var(--ink-soft); }
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 26px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }

/* ---------- card grid (blog / feature lists) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(90, 78, 64, 0.07);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(90, 78, 64, 0.12);
}
.card .kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.card h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; }
.card .meta { margin-top: auto; font-size: 12px; color: var(--ink-soft); }

/* ---------- table (tier ladder / stats) ---------- */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.tbl th { color: var(--ink-soft); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.tbl tr:hover td { background: #faf7f1; }
.swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -2px;
  box-shadow: inset -2px -2px 3px rgba(0,0,0,0.2);
}

/* ---------- breadcrumb ---------- */
.crumb {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 0 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- site footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f1ece2, #ebe4d8);
  margin-top: 36px;
}
.site-footer .inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 30px 18px 20px;
}
.site-footer .brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.site-footer .brand-row .dot {
  width: 22px; height: 22px; border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, #7fae5a, #2fae8f);
  box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.12);
}
.site-footer .brand-row strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.site-footer .brand-row div span {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0 4px;
}
.site-footer h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-footer a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  margin: 6px 0;
  transition: color 0.15s ease;
}
.site-footer a:hover { color: var(--accent-dark); }
.site-footer .copy {
  width: 100%;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}
.site-footer .copy a {
  display: inline;
  font-size: inherit;
  margin: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .site-nav .inner { padding: 9px 14px; gap: 10px; }
  .site-nav .brand { font-size: 15px; }
  .site-nav .brand .dot { width: 16px; height: 16px; }
  .site-nav .links a { padding: 6px 11px; font-size: 13px; }
  .content { padding: 18px 16px 44px; }
  .page-hero { padding: 28px 16px 4px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 18px; }
  .site-footer .copy { justify-content: center; text-align: center; }
}

/* ---------- portal additions ---------- */
.content .lede,
.page-hero .lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 620px;
}

.btn.ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.principles {
  padding-left: 0;
  list-style: none;
}
.principles li {
  margin: 14px 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
th { color: var(--ink-soft); font-weight: 500; }

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  table { font-size: 13px; }
}

/* ---------- author bio (E-E-A-T) ---------- */
.author-bio {
  margin: 34px 0 6px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2, rgba(255, 255, 255, 0.35));
  border-radius: 0 6px 6px 0;
}
.author-bio p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.author-bio strong { color: var(--ink); }

/* Newsletter signup box — placed in the hero of index.html */
.subscribe-box {
  margin: 48px 0;
  padding: 28px 32px;
  background: #f4efe6;
  border: 1px solid #d8d0c4;
  border-radius: 6px;
}
.subscribe-box h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.subscribe-box p {
  margin: 0 0 16px;
  color: #5a5548;
}
.subscribe-box form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.subscribe-box input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #bbb3a5;
  border-radius: 4px;
  background: #fff;
  font-size: 1rem;
}
.subscribe-box button {
  padding: 8px 18px;
  background: #45a188;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.subscribe-box button:hover:not(:disabled) {
  background: #3a8f78;
}
.subscribe-box button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.subscribe-box #sub-status {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #4a4640;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
