/* TAG Lens — public site stylesheet.
   Tokyo-minimal: restraint, whitespace, one accent. No framework, no build step. */

:root {
  --bg: #fdfdfc;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #E06A3E; /* coral — the one brand red (#1699); maroon #7C1A24 is the dark anchor, never an accent */
  --accent-text: #B0431F; /* coral high-contrast token for text on light — AA */
  --rule: #e6e4e0;
  --card: #f6f5f3;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #e8e6e3;
    --muted: #9a9791;
    --accent: #F08C63;
    --accent-text: #FF9E78;
    --rule: #2a2a2a;
    --card: #1c1c1c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

/* Header / nav */
header.site {
  padding: 2.5rem 0 0;
}
header.site nav {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}
.brand .lens { color: var(--accent); }
header.site nav a:not(.brand) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
header.site nav a:not(.brand):hover,
header.site nav a[aria-current="page"] {
  color: var(--fg);
}
header.site nav a[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

/* Type */
h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 3.5rem 0 0.75rem;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  margin: 2.75rem 0 0.5rem;
}
h3 {
  font-size: 1rem;
  margin: 2rem 0 0.4rem;
}
p { margin: 0.65rem 0; }
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0.25rem 0 2rem;
}
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong { font-weight: 600; }
small, .fine { color: var(--muted); font-size: 0.88rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
ul { padding-left: 1.2rem; }
li { margin: 0.35rem 0; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.1em 0.4em;
  background: var(--card);
}

/* Landing */
.hero { padding-top: 2rem; }
.hero h1 { font-size: 2.5rem; margin-top: 2.5rem; }
.screenshot {
  margin: 2.5rem 0;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.screenshot img { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.loop {
  margin: 2.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.6rem;
  row-gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--fg);
}
.loop span + span::before {
  content: "→";
  color: var(--muted);
  margin-right: 0.6rem;
}
.loop .loop-end { color: var(--accent); font-weight: 600; }
.store-badge {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

/* Cards / facts */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.facts li {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.95rem;
}
.facts b { display: block; margin-bottom: 0.25rem; font-weight: 600; }

/* FAQ / definition lists */
dt { font-weight: 600; margin-top: 1.75rem; }
dd { margin: 0.35rem 0 0; }

/* Footer */
footer.site {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}
footer.site nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
footer.site a { color: var(--muted); }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
