/* provenmachine.com
   Palette: paper / surface / ink / graphite / rule, plus one "pass" green for
   answers that protect the user and an amber "note" for answers that need reading. */
:root {
  --paper: #F2F4F6;
  --surface: #FFFFFF;
  --ink: #16202C;
  --graphite: #56616F;
  --rule: #D3D9E0;
  --pass: #0B6E52;
  --pass-tint: #DDEFE7;
  --note: #8A5300;
  --note-tint: #F6EAD3;
  --link: #1D4ED8;
  --focus: #1D4ED8;
  --measure: 68ch;
  --radius-icon: 22.4%;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131B23;
    --surface: #1B2530;
    --ink: #E6EBF0;
    --graphite: #9AA6B4;
    --rule: #2E3A47;
    --pass: #5CCBA4;
    --pass-tint: #173A30;
    --note: #F0B65C;
    --note-tint: #3A2C14;
    --link: #8DB4FF;
    --focus: #8DB4FF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
code { font-size: 0.92em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---------- header / footer ---------- */
header.site { border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark {
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.035em;
  color: var(--ink); text-decoration: none;
}
.wordmark span { font-weight: 800; }
.bar nav, .foot nav, .appnav { display: flex; gap: 20px; flex-wrap: wrap; }
.bar nav a, .foot nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.bar nav a:hover, .foot nav a:hover { text-decoration: underline; }

footer.site { border-top: 1px solid var(--rule); margin-top: 96px; color: var(--graphite); font-size: 0.9375rem; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; padding-bottom: 40px; }
.foot p { margin: 0; }
.foot nav a { color: var(--graphite); }

/* ---------- app sub-header ---------- */
.apphead { background: var(--surface); border-bottom: 1px solid var(--rule); }
.apphead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 0; }
.appid { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; padding-bottom: 12px; }
.appnav { gap: 4px; }
.appnav a {
  color: var(--graphite); text-decoration: none; font-weight: 500;
  padding: 10px 12px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.appnav a:hover { color: var(--ink); }
.appnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- icons ---------- */
.icon { width: 56px; height: 56px; border-radius: var(--radius-icon); flex: none; box-shadow: 0 0 0 1px rgb(22 32 44 / 0.08); }
.icon.sm { width: 32px; height: 32px; }
.icon.lg { width: 112px; height: 112px; }
.icon-letter {
  display: inline-grid; place-items: center; background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 1.5rem;
}
.icon-letter.sm { font-size: 1rem; }
.icon-letter.lg { font-size: 3rem; }

/* ---------- home ---------- */
.hero { padding: 72px 0 56px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.25rem);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 750;
  max-width: 17ch; margin: 0 0 28px;
  text-wrap: balance;
}
.lede { font-size: 1.1875rem; color: var(--graphite); max-width: 56ch; margin: 0; }
.section-h { font-size: 1.0625rem; font-weight: 700; margin: 0 0 8px; color: var(--graphite); }

.apps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.app {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px;
  border-bottom: 1px solid var(--rule); padding: 16px 0;
}
.app-main { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); min-width: 0; }
.app-text { display: flex; flex-direction: column; min-width: 0; }
.app-name { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.app-main:hover .app-name { text-decoration: underline; text-underline-offset: 0.18em; }
.app-tag { color: var(--graphite); font-size: 0.975rem; line-height: 1.45; }
.app-links { display: flex; gap: 18px; font-size: 0.9375rem; }
@media (max-width: 640px) {
  .app { grid-template-columns: 1fr; }
  .app-links { padding-left: 72px; }
}

/* ---------- app overview ---------- */
.overview { padding: 56px 0 8px; max-width: var(--measure); }
.overview h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.05; margin: 24px 0 12px; }
.overview .lede { margin-bottom: 20px; color: var(--ink); }
.overview p, .overview ul { max-width: var(--measure); }
.overview ul { padding-left: 1.2em; }
.overview li { margin: 4px 0; }
.button {
  display: inline-block; margin-top: 16px; background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 999px;
}
.button:hover { opacity: 0.88; }
.soon { color: var(--graphite); font-weight: 500; }
.more { max-width: var(--measure); color: var(--graphite); }

/* ---------- ledger: the one bold element ---------- */
.ledger {
  margin: 40px 0;
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
  border-radius: 2px 2px 14px 14px;
  padding: 28px 24px 8px;
}
.ledger h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 750;
  margin: 0 0 20px; max-width: 22ch; text-wrap: balance;
}
.ledger dl { margin: 0; }
.ledger .row {
  display: grid; grid-template-columns: 12rem 1fr; gap: 6px 24px;
  border-top: 1px solid var(--rule); padding: 16px 0;
}
.ledger dt { font-weight: 600; }
.ledger dd { margin: 0; display: grid; grid-template-columns: 10.5rem 1fr; gap: 8px 14px; align-items: baseline; }
.ledger dd .mark { justify-self: start; }
.mark {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.875rem; line-height: 1;
  padding: 6px 10px 6px 8px; border-radius: 999px; white-space: nowrap;
}
.mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mark.pass { color: var(--pass); background: var(--pass-tint); }
.mark.note { color: var(--note); background: var(--note-tint); }
.mark.note::before { border-radius: 1px; transform: rotate(45deg); }
.why { color: var(--graphite); }
@media (max-width: 640px) {
  .ledger { padding: 22px 16px 4px; }
  .ledger .row { grid-template-columns: 1fr; }
  .ledger dd { grid-template-columns: 1fr; }
}

/* ---------- documents ---------- */
.doc { max-width: var(--measure); padding-top: 48px; }
.doc h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 8px; text-wrap: balance; }
.doc .meta { color: var(--graphite); margin: 0 0 8px; }
.doc .ledger { margin: 32px 0 40px; }
.doc section { margin-top: 36px; }
.doc section:not(.ledger) > h2 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 8px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }

.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.975rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.875rem; color: var(--graphite); font-weight: 600; }
tbody th { font-weight: 600; min-width: 10rem; }
tbody tr:last-child > * { border-bottom: 0; }

.contact-card {
  margin: 24px 0 8px; padding: 20px 22px; background: var(--surface);
  border: 1px solid var(--rule); border-left: 4px solid var(--pass); border-radius: 4px 12px 12px 4px;
}
.contact-card p { margin: 0; }
.contact-card .hint { margin-top: 8px; color: var(--graphite); font-size: 0.95rem; }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; padding: 16px 36px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite);
  transform: rotate(45deg); transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > p { margin: 0 0 16px; color: var(--ink); }
.faq details > p + p { margin-top: -6px; }

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

@media (max-width: 640px) {
  .apphead .wrap { padding-left: 8px; padding-right: 8px; }
  .appid { padding-left: 8px; }
  .appnav { gap: 0; flex-wrap: nowrap; width: 100%; }
  .appnav a { padding: 10px 8px 12px; }
}
