/* Stylesheet for the content pages on tapwick.app (privacy, terms, support, tags).
   Design tokens mirror styles.css (the landing page) and tag-site/public/site.css
   (the /nfc fallback page on tag.tapwick.app); the Firebase sites cannot share a file. */
:root {
  --bg: #F7F2E6;
  --bg-alt: #EFE8D6;
  --card: #FFFFFF;
  --ink: #16302B;
  --muted: #4A5E58;
  --accent: #2C685E;
  --accent-2: #3A897E;
  --line: #D9D2BE;
  --shadow: 0 1px 2px rgba(22, 48, 43, .06), 0 12px 32px rgba(22, 48, 43, .10);
  --hero-bg: radial-gradient(120% 90% at 50% 0%, #1B3932 0%, #16302B 70%);
  --btn-bg: #16302B;
  --btn-ink: #F7F2E6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F211D;
    --bg-alt: #13292A;
    --card: #1B3932;
    --ink: #F7F2E6;
    --muted: #B9C7C1;
    --accent: #7CC4B8;
    --accent-2: #3A897E;
    --line: #2C4A43;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --hero-bg: radial-gradient(120% 90% at 50% 0%, #1B3932 0%, #0F211D 75%);
    --btn-bg: #F7F2E6;
    --btn-ink: #16302B;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, p, ul { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .skip:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}
strong { font-weight: 700; }
.wrap { width: min(100% - 40px, 760px); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Header and nav */
.site-head { background: var(--hero-bg); color: #F7F2E6; padding: 14px 0; }
.head-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #F7F2E6; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; text-decoration: none; }
.brand img { border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(247, 242, 230, .12); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-head nav a { color: #E4DFD0; }
.site-head a[aria-current="page"], .site-foot a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }
.site-head a[aria-current="page"] { color: #fff; }
.site-head a:focus-visible { outline-color: #F7F2E6; }

/* Content card */
main.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 5vw, 40px);
  margin-block: clamp(20px, 5vw, 48px);
  flex: 1 0 auto;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 4px; }
.meta { color: var(--muted); font-size: .95rem; margin-bottom: 32px; }
h2 { font-size: 1.2rem; line-height: 1.3; margin-top: 32px; margin-bottom: 12px; }
p { margin-bottom: 16px; }

/* Tables (privacy, tags) */
table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 480px) {
  th, td { padding: 8px 6px; }
}

/* In-page note footer (contact / retailer note) */
main footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* Site footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--ink); }
