/*
 * Camera Carbon site. Colours and type follow src/theme/tokens.ts. The app is
 * dark-only (app.json userInterfaceStyle "dark"; tokens define no light set),
 * so the site is too.
 */
:root {
  color-scheme: dark;
  --bg: #0a0a09;
  --surface: #111110;
  --surface-raised: #171715;
  --line: #242422;
  --line-strong: #3a3a36;
  --text: #edeae2;
  --text-dim: #a8a49b;
  --text-mute: #76736c;
  --accent: #d2ff3c;
  --accent-ink: #0a0a09;
  --amber: #ffb547;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header and footer ------------------------------------------------- */

.top {
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand .mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.app-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 28px;
  border-radius: 25px;
  border: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

.foot {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 13px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.foot a {
  color: var(--text-dim);
}

/* Document pages ---------------------------------------------------- */

.doc {
  padding-top: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 8vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

h2 {
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

li::marker {
  color: var(--text-mute);
}

strong {
  font-weight: 600;
}

.lede {
  color: var(--text-dim);
  font-size: 17px;
}

.meta {
  margin: 0 0 32px;
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 13px;
}

.note {
  margin: 24px 0;
  padding: 14px 16px;
  border-left: 2px solid var(--amber);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 14px;
}

.toc {
  margin: 0 0 8px;
  padding: 16px 16px 10px 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

/* Table of who processes what. Stacks on phones. */
.table {
  width: 100%;
  margin: 16px 0 20px;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 560px) {
  .table thead {
    display: none;
  }

  .table tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .table td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  .table td:first-child {
    font-weight: 600;
  }
}

/* FAQ --------------------------------------------------------------- */

details {
  border-bottom: 1px solid var(--line);
}

details:first-of-type {
  border-top: 1px solid var(--line);
}

summary {
  padding: 16px 28px 16px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 14px;
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 18px;
}

details[open] summary::after {
  content: '\2212';
}

details > :not(summary) {
  color: var(--text-dim);
}

details > :last-child {
  padding-bottom: 8px;
}

/* Landing ----------------------------------------------------------- */

.hero {
  padding-top: 72px;
  padding-bottom: 24px;
}

.hero h1 {
  font-size: clamp(44px, 13vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero .lede {
  max-width: 520px;
  margin-bottom: 32px;
}

.button {
  display: inline-block;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.small {
  color: var(--text-mute);
  font-size: 13px;
}

.links {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.links li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--text);
  text-decoration: none;
}

.links a span {
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 13px;
}

.links a:hover span {
  color: var(--accent);
}
