/* einvoice.global — base reset & typography (Inter sitewide) */

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

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.028em; font-weight: 700; }
h2 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.022em; }
h3 { font-size: 19px; }
h4 { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.12em; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p.lede { font-size: 17px; color: var(--ink-soft); max-width: 64ch; line-height: 1.65; }

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--brand-green-soft); }

ul, ol { padding-left: 1.2em; margin: 0 0 1em; color: var(--ink-soft); }
li { margin-bottom: 0.3em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

img, svg { max-width: 100%; display: block; }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
code {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 1em;
  font-size: 12.5px;
  line-height: 1.55;
}
pre code { background: transparent; border: 0; padding: 0; }

button { font-family: inherit; }
input, select, textarea { font-family: inherit; color: var(--ink); }

::selection { background: var(--brand-green); color: var(--ink-on-green); }

/* a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg-1); color: var(--ink);
  padding: 12px 16px; border-radius: var(--radius-md);
}
.skip-link:focus { left: 16px; top: 16px; outline: 2px solid var(--brand-green); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.muted { color: var(--ink-mute); }
.mono { font-family: var(--font-mono); }

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: var(--wrap-pad);
  padding-right: var(--wrap-pad);
}

:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
