/* Photo Signals — design system.
 *
 * The job the visitor arrives with is "get this mark off my picture", and the
 * job they leave with is "I did not know my file said all that". So the page is
 * built to be read in that order: the tool first, then what else was in there,
 * then what we cannot do. Nothing here is decoration — every panel answers one
 * of those three.
 *
 * Light by default, because the previous dark surface made a privacy tool feel
 * like a hacking tool. Dark is honoured when the visitor's system asks for it.
 */

:root {
  color-scheme: light dark;

  --ink: #0f172a;
  --ink-soft: #475569;
  /* 4.47:1 against the tinted band failed AA — the quiet paragraphs and the
     footer headings sit on it. 6.47:1 at this value, on both surfaces. */
  --ink-faint: #4f5b6d;
  --ground: #ffffff;
  --ground-tint: #f6f8fa;
  --raised: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --brand: #0d7a6c;
  --brand-deep: #0a5f54;
  --brand-wash: #e6f4f1;
  --removed: #0d7a6c;
  --reduced: #b45309;
  --reduced-wash: #fdf3e7;
  --stop: #b42318;
  --stop-wash: #fdecea;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 3px rgb(15 23 42 / 0.04);
  --shadow-md: 0 4px 12px rgb(15 23 42 / 0.06), 0 2px 4px rgb(15 23 42 / 0.04);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --measure: 46rem;
  --wide: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf4;
    --ink-soft: #a9b6c6;
    --ink-faint: #8695a8;
    --ground: #0d1117;
    --ground-tint: #131a22;
    --raised: #161d26;
    --line: #26313d;
    --line-strong: #35424f;
    --brand: #5eccbc;
    --brand-deep: #8ee0d3;
    --brand-wash: #12312c;
    --removed: #5eccbc;
    --reduced: #e0a458;
    --reduced-wash: #2e2317;
    --stop: #ef8377;
    --stop-wash: #331d1a;
    --shadow-sm: none;
    --shadow-md: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1rem/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  min-height: 44px;
  line-height: 44px;
}
.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  background: var(--raised);
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

a { color: var(--brand-deep); text-underline-offset: 0.16em; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible, label:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------- header --- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead > .row {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-weight: 640;
  letter-spacing: -0.015em;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand svg { flex: none; }
.brand-role {
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--brand-deep);
  border-left: 1px solid var(--line-strong);
  padding-left: 0.55rem;
  margin-left: 0.15rem;
}
@media (max-width: 26rem) { .brand-role { display: none; } }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.masthead nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* ------------------------------------------------------------------ page --- */

main { padding-bottom: 4rem; }
.band { padding: 2.5rem 1.25rem; }
.band-tint { background: var(--ground-tint); border-block: 1px solid var(--line); }
.hold { max-width: var(--measure); margin: 0 auto; }
.hold-wide { max-width: var(--wide); margin: 0 auto; }

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h3 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 0.35rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); color: var(--ink-soft); max-width: 38rem; }
.quiet { color: var(--ink-faint); font-size: 0.9375rem; }
.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------ hero --- */

.hero { padding: 2.75rem 1.25rem 2rem; }
.hero .hold-wide { display: grid; gap: 2rem; }
@media (min-width: 60rem) {
  .hero .hold-wide { grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 3rem; }
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raised);
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.chip svg { flex: none; color: var(--brand); }

/* ------------------------------------------------------------------ tool --- */

.tool {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--raised);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}
.tool > h2 { font-size: 1.0625rem; letter-spacing: -0.01em; }

.drop {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 2rem 1rem;
  text-align: center;
  background: var(--ground-tint);
  transition: border-color 120ms ease, background 120ms ease;
}
.drop.over { border-color: var(--brand); background: var(--brand-wash); }
.drop p { margin: 0.35rem 0; }
.drop .icon { color: var(--brand); margin-bottom: 0.5rem; }

.pick {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

button {
  font: inherit;
  font-weight: 560;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
button:hover { border-color: var(--brand); }
button[data-primary] {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  font-weight: 620;
}
@media (prefers-color-scheme: dark) { button[data-primary] { color: #06201c; } }
button[disabled] { opacity: 0.5; cursor: not-allowed; }
.tool .panel > * + * { margin-top: 0.75rem; }
.tool .panel > div > button { margin-right: 0.5rem; margin-top: 0.5rem; }

/* --------------------------------------------------------------- results --- */

.findings { list-style: none; padding: 0; margin: 1rem 0 0; }
.findings li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.findings .mark {
  grid-row: span 2;
  align-self: start;
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
/* State is a WORD first and a colour second — never colour alone. */
.findings .removed .mark { color: var(--removed); background: var(--brand-wash); }
.findings .reduced .mark { color: var(--reduced); background: var(--reduced-wash); }
.findings .kept .mark { color: var(--ink-faint); background: var(--ground-tint); }
.findings .cannot .mark { color: var(--stop); background: var(--stop-wash); }
.findings .title { font-weight: 600; }
.findings .what { grid-column: 2; color: var(--ink-soft); font-size: 0.9375rem; }

/* ----------------------------------------------------------------- cards --- */

.grid { display: grid; gap: 1rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
@media (min-width: 34rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { display: flex; align-items: center; gap: 0.5rem; }
.card h3 svg { flex: none; color: var(--brand); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.card ul { margin: 0.6rem 0 0; padding-left: 1.05rem; color: var(--ink-soft); font-size: 0.9375rem; }
.card li { margin: 0.25rem 0; }
.card .tagline { font-size: 0.8125rem; font-weight: 640; letter-spacing: 0.03em; text-transform: uppercase; }
.card.is-removed { border-left: 3px solid var(--removed); }
.card.is-reduced { border-left: 3px solid var(--reduced); }
.card.is-cannot { border-left: 3px solid var(--stop); }
.card.is-removed .tagline { color: var(--removed); }
.card.is-reduced .tagline { color: var(--reduced); }
.card.is-cannot .tagline { color: var(--stop); }

/* ------------------------------------------------------------ layer list --- */

.layers { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: layer; }
.layers > li {
  counter-increment: layer;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.35rem 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.layers > li::before {
  content: counter(layer);
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.9375rem;
}
.layers h3 { margin: 0; align-self: center; }
.layers .examples { grid-column: 2; margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.layers .verdict {
  grid-column: 2;
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-weight: 640;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.layers .v-removed { color: var(--removed); }
.layers .v-reduced { color: var(--reduced); }
.layers .v-cannot { color: var(--stop); }

/* ---------------------------------------------------------------- ladder --- */

.ladder { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; }
.ladder li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.15rem 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--raised);
}
.ladder .step {
  grid-row: span 2;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-deep);
  background: var(--brand-wash);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 0.35rem 0;
}
.ladder strong { font-weight: 620; }
.ladder .cost { grid-column: 2; font-size: 0.875rem; color: var(--ink-faint); }

/* ----------------------------------------------------------------- steps --- */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding-top: 2.5rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #06201c; } }
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }

/* ------------------------------------------------------------- infographic --- */

/* The anatomy diagram carries eight labelled blocks. Squeezed into a 320px
   phone it becomes unreadable, and Firefox additionally reports its inner group
   overflowing the parent by two pixels. Both are answered the same way: give it
   a floor and let the figure scroll, which is the documented pattern for wide
   content and also the legible one. */
figure { margin: 1.5rem 0 0; overflow-x: auto; overflow-y: hidden; }
figure svg { width: 100%; min-width: 34rem; height: auto; display: block; }
figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--ink-faint); }

.note {
  border-left: 3px solid var(--reduced);
  background: var(--reduced-wash);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  margin: 1rem 0 0;
}

.chooser {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem 0.75rem;
  margin: 0 0 1rem;
  background: var(--ground-tint);
}
.chooser legend { font-size: 0.8125rem; font-weight: 680; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); padding: 0 0.35rem; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.6rem;
  align-items: baseline;
  padding: 0.5rem 0;
  min-height: 44px;
  cursor: pointer;
}
.choice input { margin: 0; align-self: center; }
.choice-label { font-weight: 600; }
.choice-why { grid-column: 2; color: var(--ink-soft); font-size: 0.9375rem; }

.spaced { margin-top: 2rem; }
.spaced-sm { margin-top: 0.6rem; }

ul.plain { padding-left: 1.1rem; }
ul.plain li { margin: 0.4rem 0; }

canvas { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); touch-action: none; border: 1px solid var(--line); }

/* ---------------------------------------------------------------- footer --- */

.colophon {
  border-top: 1px solid var(--line);
  background: var(--ground-tint);
  padding: 2.25rem 1.25rem;
}
.colophon .hold-wide { display: grid; gap: 1.75rem; }
@media (min-width: 44rem) { .colophon .hold-wide { grid-template-columns: 1.4fr 1fr 1fr; } }
.colophon h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 0.6rem; }
.colophon ul { list-style: none; padding: 0; margin: 0; }
.colophon li { margin: 0; }
.colophon a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
}
.colophon a:hover { color: var(--brand-deep); text-decoration: underline; }
.colophon .say { color: var(--ink-soft); font-size: 0.9375rem; max-width: 24rem; }
.colophon .say strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
