/* ISCC C2PA Demo landing page, built on the ISCC identity tokens (same values as src/style.css). */

@font-face { font-family: "Readex Pro"; font-weight: 300; font-display: swap; src: url("assets/fonts/readex-pro-300.woff2") format("woff2"); }
@font-face { font-family: "Readex Pro"; font-weight: 400; font-display: swap; src: url("assets/fonts/readex-pro-400.woff2") format("woff2"); }
@font-face { font-family: "Readex Pro"; font-weight: 500; font-display: swap; src: url("assets/fonts/readex-pro-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2"); }

:root {
  --ink: #212529;
  --paper: #F8F9FA;
  --white: #FFFFFF;
  --coral: #F56169;
  --muted: #636B71;
  --rule: #D2D6D9;
  --blue: #0054B2;
  --unit-meta: #7AC2F7;
  --unit-content: #0054B2;
  --unit-data: #123663;
  --unit-instance: #A6DB50;
  --font-body: "Readex Pro", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --motion: 160ms;
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) { :root { --motion: 0ms; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/28px var(--font-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--unit-meta); color: var(--ink); }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: var(--font-mono); font-size: 0.85em; }
b { font-weight: 500; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.label { font: 400 12px/16px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.small { font-size: 14px; line-height: 20px; color: var(--muted); }
.note { color: var(--muted); font-size: 16px; line-height: 24px; }

h1 { font-weight: 300; font-size: 64px; line-height: 72px; letter-spacing: -0.01em; margin: 0 0 24px; max-width: 14em; }
h2 { font-weight: 500; font-size: 32px; line-height: 40px; margin: 0 0 24px; max-width: 22em; }
h3 { font-weight: 500; font-size: 20px; line-height: 28px; margin: 0 0 8px; }
p { margin: 0 0 16px; max-width: 40em; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.brand img { height: 40px; width: auto; }
.top nav { display: flex; gap: 24px; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--blue); }

/* Buttons: coral only for the primary action */
.button { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 16px; line-height: 24px; font-weight: 500; transition: background var(--motion) ease-out, transform var(--motion) ease-out; }
.button:hover { background: var(--white); transform: translateY(-1px); }
.button.primary { background: var(--coral); border-color: var(--coral); }
.button.primary:hover { background: #F4757C; }
.button span { font: 400 12px/16px var(--font-mono); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Sections */
/* Thin rule between sections, on the same left edge as the text */
main > section, footer { padding-block: 64px; background: linear-gradient(var(--rule), var(--rule)) 24px 0 / calc(100% - 48px) 1px no-repeat; }
main > section.hero { background: none; padding-top: 48px; }
.lead { font-size: 22px; line-height: 32px; font-weight: 300; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 32px 0 48px; }
.actions .version { margin: 0; }

.shot { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 24px 48px -32px rgba(33, 37, 41, 0.35); }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid3 h3 { padding-top: 16px; border-top: 2px solid var(--ink); }
.grid3 p { font-size: 16px; line-height: 24px; }
.step { font: 400 14px/28px var(--font-mono); color: var(--coral); margin-right: 12px; }

/* Watermark versus fingerprint: two cards, the ISCC one marked with the coral rule */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.kinds article { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.kinds article.ours { border-top-color: var(--coral); }
.kinds .label { margin-bottom: 8px; }
.kinds p:last-child { margin: 0; font-size: 16px; line-height: 24px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }

/* ISCC units: a fixed colour per unit, always with its name */
.units { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 8px; }
.units li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px; background: var(--white); border: 1px solid var(--rule); border-left: 8px solid; border-radius: var(--radius); font-size: 16px; line-height: 24px; }
.units b { font-family: var(--font-mono); font-weight: 400; font-size: 14px; }
.units .meta { border-left-color: var(--unit-meta); }
.units .content { border-left-color: var(--unit-content); }
.units .data { border-left-color: var(--unit-data); }
.units .instance { border-left-color: var(--unit-instance); }

/* Formats table */
.table { overflow-x: auto; margin-top: 24px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 24px; }
th { font: 400 12px/16px var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); text-align: left; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--ink); }
td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:first-child { font-weight: 500; white-space: nowrap; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 24px; }
.downloads article { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; font-size: 16px; line-height: 24px; }
.downloads article.yours { border-color: var(--ink); }
.downloads .label { margin-bottom: 24px; }
.downloads .file { font: 400 12px/16px var(--font-mono); color: var(--muted); margin: 8px 0 16px; overflow-wrap: anywhere; }
.downloads pre { margin: 0 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
button.button { font-family: inherit; cursor: pointer; }

pre { background: var(--ink); color: var(--paper); padding: 16px; border-radius: var(--radius); overflow-x: auto; line-height: 1.6; }
code { overflow-wrap: anywhere; }
:not(pre) > code { background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; }

.notes { margin: 0; padding-left: 20px; display: grid; gap: 12px; max-width: 48em; }

footer { padding-block: 48px 64px; font-size: 16px; line-height: 24px; }

@media (max-width: 960px) {
  h1 { font-size: 44px; line-height: 52px; }
  .grid3, .split, .downloads { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 24px; }
  h1 { font-size: 36px; line-height: 44px; }
  h2 { font-size: 26px; line-height: 32px; }
  .lead { font-size: 18px; line-height: 28px; }
  .top nav { display: none; }
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .units li { grid-template-columns: 1fr; gap: 4px; }
  main > section { padding-block: 48px; }
}

/* Caption under the hero screenshot */
.caption { font-size: 16px; line-height: 24px; color: var(--muted); margin: 16px 0 0; max-width: 48em; }
