/* ArtiShare's public pages (GitHub Pages, served from docs/). Same tokens as the popup. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --line: #e6e8ec;
  --text: #14161a;
  --muted: #5b616e;
  --accent: #12b886;
  --accent-ink: #0c8a63;
  --accent-soft: #e6f8f1;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 1px 3px rgb(16 24 40 / 0.04);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #181b21;
    --line: #2a2f37;
    --text: #edeff2;
    --muted: #9aa1ad;
    --accent: #2fd9a0;
    --accent-ink: #3ee0aa;
    --accent-soft: #12352a;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 2px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
}
.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--text);
}

/* Type */
h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}
p,
ul,
ol {
  margin: 0 0 14px;
}
ul,
ol {
  padding-left: 22px;
}
li + li {
  margin-top: 6px;
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}

/* Sections */
main section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
main section:last-child {
  border-bottom: 0;
}
.hero {
  padding-top: 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 16px;
}

/* Screenshots: tall popup captures, cropped from the top */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.shots li {
  margin: 0;
}
.shots figure {
  margin: 0;
}
.shots img {
  display: block;
  width: 100%;
  height: auto; /* the HTML height attribute would otherwise override aspect-ratio */
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shots figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.card > :last-child {
  margin-bottom: 0;
}
.after-card {
  margin-top: 16px;
}

/* Long-form pages (privacy) */
.prose {
  max-width: 68ch;
}
.updated {
  color: var(--muted);
  font-size: 15px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 640px) {
  .shots {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
  }
  .site-header nav {
    gap: 14px;
  }
  main section {
    padding: 36px 0;
  }
}
