/* Piggybow site. Palette from the BurrowSoft brand kit. */
:root {
  --peach: #f2a07b;
  --rose: #e27d9a;
  --deep-rose: #a8456a; /* accent text on light backgrounds (passes contrast) */
  --lavender: #9b84d6;
  --ink: #2b2438;
  --cream: #fbf6f1;

  --bg: var(--cream);
  --text: var(--ink);
  --link: var(--deep-rose);
  --muted: #5a5266;
  --banner-bg: #fff1c2;
  --banner-text: var(--ink);

  --measure: 40rem;
  --space: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --text: var(--cream);
    --link: var(--rose);
    --muted: #cfc6da;
    --banner-bg: #5c4a00;
    --banner-text: var(--cream);
  }
}

*,
*::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: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Thai", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  /* Never break a word in the middle. */
  overflow-wrap: normal;
  hyphens: manual;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

.draft-banner {
  margin: 0;
  padding: 0.75rem var(--space);
  background: var(--banner-bg);
  color: var(--banner-text);
  font-weight: 600;
  text-align: center;
}

.site-header {
  padding: var(--space) var(--space) 0.75rem;
}

.brand {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.rainbow {
  height: 0.375rem;
  background: linear-gradient(90deg, var(--peach), var(--rose), var(--lavender));
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--space));
  margin: 0 auto;
  padding: var(--space);
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.2;
  margin: 1rem 0;
  text-wrap: balance;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.lead {
  font-size: 1.125rem;
}

/* The happy pig above the home heading: decorative (alt=""), sized so it never crowds 320 px. */
.pig {
  display: block;
  width: clamp(7rem, 32vw, 10rem);
  height: auto;
  margin: 0.5rem 0 0;
}

.tagline {
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.soon {
  color: var(--muted);
}

/* Store badges: the official artwork at a fixed height (Apple asks for at least 40 px), all the
   same height, wrapping onto a new line on narrow screens. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store img {
  display: block;
  height: 48px;
  width: auto;
}

/* Previews only: where a badge goes until its official artwork and link are added. */
.store-placeholder {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 1rem;
  border: 2px dashed var(--muted);
  border-radius: 8px;
  font-size: 0.875rem;
}

.faq h2 {
  margin-top: 1.75rem;
}

.faq p {
  margin-top: 0.25rem;
}

.site-footer {
  padding: var(--space);
  color: var(--muted);
  font-size: 0.875rem;
}

/* "© 2026 BurrowSoft · Support · Privacy" on one line, wrapping whole items on narrow screens. */
.footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
}

.footer-line a {
  /* A comfortable touch target without changing the line. */
  padding: 0.25rem 0;
}
