/* Generated by tools/seo from src/tokens.ts (docs/DESIGN.md, identity 1). Edit the tokens there. */
:root {
  color-scheme: light dark;
  --background: #F4F7F7;
  --surface: #FFFFFF;
  --surface-2: #E6EEEE;
  --text: #122021;
  --text-muted: #4A5A5B;
  --accent: #0E5E63;
  --filled: #0E5E63;
  --on-filled: #FFFFFF;
  --outline: #7E9091;
  --divider: #D3DEDE;
  --guide: #9ED8D6;
  --check: #865400;
  --check-bg: #FBEFD2;
  --type-display-size: 1.75rem;
  --type-display-line: 2.25rem;
  --type-display-weight: 600;
  --type-title-size: 1.25rem;
  --type-title-line: 1.75rem;
  --type-title-weight: 600;
  --type-body-size: 1rem;
  --type-body-line: 1.5rem;
  --type-body-weight: 400;
  --type-label-size: 0.875rem;
  --type-label-line: 1.25rem;
  --type-label-weight: 500;
  --type-caption-size: 0.75rem;
  --type-caption-line: 1rem;
  --type-caption-weight: 400;
  --space-xs: 0.25rem;
  --space-s: 0.5rem;
  --space-m: 0.75rem;
  --space-l: 1rem;
  --space-xl: 1.5rem;
  --space-xxl: 2rem;
  --radius-small: 0.5rem;
  --radius-medium: 0.75rem;
  --radius-large: 1.25rem;
  --radius-full: 999px;
  --content-max: 37.5rem;
  --button-height: 3.25rem;
  --target-min: 3rem;
  --label-column: 11rem;
  --art-max: 12rem;
  --stroke: 2px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0C1415;
    --surface: #142021;
    --surface-2: #1C2A2B;
    --text: #E5EDED;
    --text-muted: #A4B4B5;
    --accent: #7CC8C8;
    --filled: #0E5E63;
    --on-filled: #FFFFFF;
    --outline: #6F8384;
    --divider: #2C3C3D;
    --guide: #9ED8D6;
    --check: #F1C25A;
    --check-bg: #33280F;
  }
}
/* PassPic website. Identity 1 "Teal Frame" (docs/DESIGN.md): tokens only. Colours, type, spacing and radii come
   from the :root block above, generated from src/tokens.ts; nothing below writes a colour or a raw size of its own
   (test/site.test.ts checks it). Phone first: one column, 16 px gutters, at most 600 px of content. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
  font-optical-sizing: auto;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--space-l));
  margin: 0 auto;
  padding: 0 var(--space-l);
}

/* Type ---------------------------------------------------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--type-display-size);
  line-height: var(--type-display-line);
  font-weight: var(--type-display-weight);
  margin: var(--space-xl) 0 var(--space-m);
}

h2 {
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  font-weight: var(--type-title-weight);
  margin: var(--space-xxl) 0 var(--space-m);
}

h3 {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-title-weight);
  margin: var(--space-xl) 0 var(--space-s);
}

p,
ul,
ol,
dl,
blockquote {
  margin: 0 0 var(--space-l);
}

ul,
ol {
  padding-left: var(--space-xl);
}

li + li {
  margin-top: var(--space-s);
}

.lead {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}

.muted,
.small {
  color: var(--text-muted);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
}

code {
  font-family: ui-monospace, "Cascadia Mono", "Roboto Mono", monospace;
  font-size: var(--type-label-size);
  background: var(--surface-2);
  border-radius: var(--radius-small);
  padding: 0 var(--space-xs);
}

strong {
  font-weight: var(--type-title-weight);
}

.num,
table,
.requirements {
  font-variant-numeric: tabular-nums;
}

/* Links and focus ------------------------------------------------------------------------------------------------ */

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

a:hover {
  text-decoration-thickness: var(--stroke);
}

a:focus-visible {
  outline: var(--stroke) solid var(--accent);
  outline-offset: var(--stroke);
  border-radius: var(--radius-small);
}

.skip {
  position: absolute;
  left: var(--space-l);
  top: calc(-1 * var(--button-height) - var(--space-l));
  min-height: var(--target-min);
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-l);
  background: var(--filled);
  color: var(--on-filled);
  border-radius: var(--radius-medium);
  z-index: 1;
}

.skip:focus {
  top: var(--space-s);
}

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

.site-header {
  border-bottom: 1px solid var(--divider);
  background: var(--background);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  min-height: calc(var(--target-min) + var(--space-l));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  min-height: var(--target-min);
  color: var(--text);
  text-decoration: none;
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  font-weight: var(--type-title-weight);
}

.brand img {
  width: var(--space-xxl);
  height: var(--space-xxl);
  border-radius: var(--radius-small);
}

.site-header nav ul,
.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-l);
}

.site-header nav li + li,
.site-footer nav li + li {
  margin-top: 0;
}

.site-header nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-title-weight);
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  color: var(--text);
}

.site-footer {
  margin-top: var(--space-xxl);
  padding: var(--space-xl) 0 var(--space-xxl);
  border-top: 1px solid var(--divider);
  color: var(--text-muted);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
}

.site-footer p {
  margin-bottom: var(--space-s);
}

.affiliation {
  color: var(--text);
  font-weight: var(--type-label-weight);
}

/* Home ----------------------------------------------------------------------------------------------------------- */

.hero {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  padding-bottom: var(--space-s);
}

.hero-art {
  width: 100%;
  max-width: var(--art-max);
  justify-self: center;
}

.hero-art .card-bg {
  fill: var(--surface);
  stroke: var(--divider);
}

.hero-art .corner {
  fill: none;
  stroke: var(--accent);
  stroke-width: var(--stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-art .bust {
  fill: var(--surface-2);
}

.hero-art .guide {
  fill: none;
  stroke: var(--outline);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

@media (min-width: 40rem) {
  .hero {
    grid-template-columns: 1fr auto;
  }
}

.steps {
  padding-left: var(--space-xl);
}

.steps li::marker {
  color: var(--accent);
  font-weight: var(--type-title-weight);
}

.facts {
  padding-left: var(--space-l);
}

.facts li::marker {
  color: var(--accent);
}

/* Call to action ------------------------------------------------------------------------------------------------- */

.cta {
  margin: var(--space-l) 0;
}

.play-badge {
  display: inline-block;
  border-radius: var(--radius-medium);
}

.play-badge img {
  display: block;
  width: auto;
  height: calc(var(--button-height) + var(--space-l));
}

.cta-note {
  display: inline-block;
  margin: var(--space-s) 0 var(--space-l);
  padding: var(--space-m) var(--space-l);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-medium);
  font-weight: var(--type-label-weight);
}

/* Cards, notices and the crop-corner frame ---------------------------------------------------------------------- */

.promise {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-left: var(--space-xs) solid var(--accent);
  border-radius: var(--radius-medium);
  padding: var(--space-m) var(--space-l);
}

.notice {
  background: var(--check-bg);
  color: var(--text);
  border-radius: var(--radius-medium);
  padding: var(--space-m) var(--space-l);
}

.notice strong {
  color: var(--check);
}

/* The crop corner, PassPic's one graphic signature (DESIGN.md §0 and §9), drawn inside the card's corners so the
   rounded corners don't clip it. */
.framed {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-medium);
  padding: var(--space-xl);
  margin: var(--space-l) 0;
  background-image:
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size:
    var(--space-xl) var(--stroke), var(--stroke) var(--space-xl),
    var(--space-xl) var(--stroke), var(--stroke) var(--space-xl),
    var(--space-xl) var(--stroke), var(--stroke) var(--space-xl),
    var(--space-xl) var(--stroke), var(--stroke) var(--space-xl);
  background-position:
    left var(--space-s) top var(--space-s), left var(--space-s) top var(--space-s),
    right var(--space-s) top var(--space-s), right var(--space-s) top var(--space-s),
    left var(--space-s) bottom var(--space-s), left var(--space-s) bottom var(--space-s),
    right var(--space-s) bottom var(--space-s), right var(--space-s) bottom var(--space-s);
}

.requirements {
  margin: 0;
}

.requirements div {
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--divider);
}

.requirements div:first-child {
  padding-top: 0;
}

.requirements div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.requirements dt {
  color: var(--text-muted);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
}

.requirements dd {
  margin: 0;
}

@media (min-width: 30rem) {
  .requirements div {
    display: grid;
    grid-template-columns: var(--label-column) 1fr;
    gap: var(--space-l);
  }
}

blockquote {
  margin-left: 0;
  padding-left: var(--space-l);
  border-left: var(--stroke) solid var(--divider);
  color: var(--text-muted);
}

.source {
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
}

/* Lists of documents -------------------------------------------------------------------------------------------- */

.link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-l);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-medium);
}

.link-list li + li {
  margin-top: 0;
  border-top: 1px solid var(--divider);
}

.link-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--target-min);
  padding: var(--space-m) var(--space-l);
  text-decoration: none;
  color: var(--text);
}

.link-list a:hover .doc-name {
  text-decoration: underline;
}

.doc-name {
  color: var(--accent);
  font-weight: var(--type-title-weight);
}

.doc-spec {
  color: var(--text-muted);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
}

.pill {
  display: inline-block;
  align-self: flex-start;
  margin-top: var(--space-xs);
  padding: 0 var(--space-s);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
}

/* Tables (privacy) ---------------------------------------------------------------------------------------------- */

.table-wrap {
  margin: 0 0 var(--space-l);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-s) var(--space-s) var(--space-s) 0;
  border-bottom: 1px solid var(--divider);
}

th {
  color: var(--text-muted);
  font-weight: var(--type-title-weight);
}

/* On a phone each row becomes a small block, so no table ever scrolls sideways. */
@media (max-width: 39.99rem) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tr {
    padding: var(--space-m) 0;
    border-bottom: 1px solid var(--divider);
  }

  td {
    border: 0;
    padding: 0 0 var(--space-xs);
  }

  td:first-child {
    font-weight: var(--type-title-weight);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
