/* Flossworks website — shared styles
   Plain CSS, no dependencies. Edit colors via the :root variables below. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2b2a28;
  --muted: #6b675f;
  --accent: #b5485d;      /* cross-stitch floss red */
  --accent-dark: #8f3548;
  --line: #e7e0d6;
  --max-width: 760px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 24px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; overflow-y: scroll; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent); }

/* Visually hidden but available to screen readers / SEO */
.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;
}

/* Hero */
.hero {
  padding: 40px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero-banner {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto 22px;
}
.hero p.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn.secondary:hover { background: rgba(181, 72, 93, 0.08); color: var(--accent-dark); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Official Google Play badge (artwork unmodified per Google brand guidelines) */
.store-cta { margin: 0 0 22px; text-align: center; }
.play-badge { display: inline-block; }
.play-badge img { height: 60px; width: auto; display: block; }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 48px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Marketing sections */
.section-title { text-align: center; font-size: 1.5rem; letter-spacing: -0.01em; margin: 8px 0 16px; }
/* Unified gallery + lightbox */
.gallery-section { margin: 40px auto; }
.gallery { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery li { margin: 0; }
.gthumb { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; }
.gthumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .2s ease; }
.gthumb:hover img, .gthumb:focus-visible img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; background: rgba(20, 18, 16, .88); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; text-align: center; }
.lb-img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 12px; background: #fff; }
.lb-cap { color: #f3eee6; margin: 10px 0 0; font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: none; border-radius: 50%; cursor: pointer; line-height: 1; }
.lb-btn:hover { background: var(--accent); }
.lb-close { top: 16px; right: 18px; width: 44px; height: 44px; font-size: 1.9rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* Featured auto-rotating strip */
.featured-section { margin: 36px auto 8px; }
.featured { position: relative; max-width: 680px; margin: 0 auto; }
.featured-viewport { overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.featured-track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .5s ease; }
.fslide { min-width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; height: 340px; }
.fslide img { max-width: 100%; max-height: 340px; width: auto; height: auto; object-fit: contain; display: block; }
.featured-btn { position: absolute; top: 50%; transform: translateY(-50%); border: none; background: rgba(43, 42, 40, .5); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.featured-btn.prev { left: 8px; }
.featured-btn.next { right: 8px; }
.featured-btn:hover { background: var(--accent); }
.featured-dots { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.featured-dots button { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: var(--line); cursor: pointer; }
.featured-dots button[aria-current="true"] { background: var(--accent); }
@media (max-width: 600px) { .fslide { height: 240px; } .fslide img { max-height: 240px; } }

.badge { display: block; width: 150px; height: auto; margin: 16px auto 0; }

/* FAQ */
.faq { margin: 8px auto 40px; }
.faq h2 { text-align: center; font-size: 1.5rem; margin: 8px 0 4px; letter-spacing: -0.01em; }
.faq h3 { font-size: 1.05rem; margin: 22px 0 4px; }
.faq p { margin: 0; color: var(--muted); }

/* Content pages */
main.page { padding: 40px 0 64px; }
main.page h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 4px; }
main.page h2 { font-size: 1.25rem; margin: 36px 0 8px; }
main.page h3 { font-size: 1.05rem; margin: 24px 0 4px; }
.effective { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.lead { font-size: 1.05rem; color: var(--ink); }
main.page ul { padding-left: 22px; }
main.page li { margin: 4px 0; }

.callout {
  background: #fbf3e9;
  border: 1px solid #efd9bf;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 48px;
}
.site-footer .wrap {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}
.site-footer .footer-badge { display: inline-block; margin: 0; }
.site-footer .footer-badge img { height: 46px; width: auto; display: block; }
.site-footer a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--accent); }

/* 404 */
.center-screen {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 1.7rem; }
  .features { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; gap: 8px; }
  .site-footer a { margin-left: 0; margin-right: 16px; }
}
