/* Inkwelo — shared styles for the standalone legal/contact pages.
   Design tokens and type lifted from the landing page so these pages
   read as part of the same site. No external requests: fonts are local. */

/* ---------- Fonts (IBM Plex, SIL Open Font License) ---------- */

@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-mono-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-mono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plex-mono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plex-mono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/plex-mono-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/plex-mono-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/plex-mono-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/plex-mono-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/plex-sans-var-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/plex-sans-var-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens (from the landing page) ---------- */

:root {
  --canvas:#1A1A1C; --ink:#D9D9DE; --accent:#58C99A; --accent-text:#58C99A;
  --markup:#5C5C63; --code:#242429; --selection:#274A3B; --rule:#333338;
  --flag:#F5B54A; --on-accent:#1A1A1C; --nav-bg:rgba(26,26,28,.86);
}

/* System preference wins when the reader has not chosen explicitly. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --canvas:#FFFFFF; --ink:#17171A; --accent:#0E8A5F; --accent-text:#0B6F4E;
    --markup:#A9A9AF; --code:#F2F2F5; --selection:#CFEBDD; --rule:#E0E0E6;
    --flag:#A9670B; --on-accent:#FFFFFF; --nav-bg:rgba(255,255,255,.88);
  }
}

/* An explicit choice always wins. */
[data-theme="light"] {
  --canvas:#FFFFFF; --ink:#17171A; --accent:#0E8A5F; --accent-text:#0B6F4E;
  --markup:#A9A9AF; --code:#F2F2F5; --selection:#CFEBDD; --rule:#E0E0E6;
  --flag:#A9670B; --on-accent:#FFFFFF; --nav-bg:rgba(255,255,255,.88);
}
[data-theme="dark"] {
  --canvas:#1A1A1C; --ink:#D9D9DE; --accent:#58C99A; --accent-text:#58C99A;
  --markup:#5C5C63; --code:#242429; --selection:#274A3B; --rule:#333338;
  --flag:#F5B54A; --on-accent:#1A1A1C; --nav-bg:rgba(26,26,28,.86);
}

/* ---------- Base ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--selection); }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
header.site .bar {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand span {
  font-family: 'IBM Plex Mono', monospace; font-weight: 600;
  font-size: 17px; letter-spacing: -0.01em;
}
header.site nav {
  display: flex; gap: 22px; font-size: 13.5px; flex: 1;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
header.site nav::-webkit-scrollbar { display: none; }
header.site nav a { color: var(--ink); text-decoration: none; }
header.site nav a:hover { color: var(--accent-text); }

.theme-toggle {
  background: none; border: 1px solid var(--rule); color: var(--ink);
  border-radius: 6px; width: 34px; height: 34px; flex: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
/* The inline head script always resolves data-theme, so these two rules
   decide which glyph shows. Sun = "switch to light", moon = "switch to dark". */
[data-theme="dark"] .t-moon { display: none; }
[data-theme="light"] .t-sun { display: none; }

/* ---------- Document body ---------- */

main { flex: 1; max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; width: 100%; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--markup);
  margin: 0 0 14px;
}

h1 {
  font-family: 'IBM Plex Mono', monospace; font-weight: 700;
  font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--accent-text);
  text-wrap: balance;
}

.dateline {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px;
  color: var(--markup); margin: 18px 0 0;
}

.lede { font-size: 18px; margin: 28px 0 0; text-wrap: pretty; }

h2 {
  font-family: 'IBM Plex Mono', monospace; font-weight: 600;
  font-size: 20px; letter-spacing: -0.01em; line-height: 1.3;
  margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--rule);
  text-wrap: balance;
}
h3 {
  font-family: 'IBM Plex Mono', monospace; font-weight: 600;
  font-size: 15.5px; margin: 32px 0 0; color: var(--ink);
}

p, ul, ol, dl { margin: 16px 0 0; text-wrap: pretty; }
ul, ol { padding-left: 22px; }
li { margin: 7px 0 0; }
li::marker { color: var(--markup); }

strong { font-weight: 600; }
code {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.88em;
  background: var(--code); padding: 2px 6px; border-radius: 4px;
}

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

/* Callout for the points that matter most. */
.note {
  margin: 32px 0 0; padding: 20px 22px;
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 8px; background: var(--code);
}
.note p:first-child { margin-top: 0; }
.note.warn { border-left-color: var(--flag); }

/* Summary list of "what we don't do" */
.plain { list-style: none; padding-left: 0; }
.plain li { position: relative; padding-left: 26px; margin-top: 10px; }
.plain li::before {
  content: "—"; position: absolute; left: 0;
  color: var(--accent-text); font-family: 'IBM Plex Mono', monospace;
}

/* Contact cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 32px 0 0; }
.card {
  border: 1px solid var(--rule); border-radius: 10px; padding: 22px;
  background: var(--code);
}
.card h3 { margin: 0; }
.card p { font-size: 15px; }

.mail {
  display: inline-block; margin: 24px 0 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 17px; font-weight: 500;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 22px; border-radius: 8px; text-decoration: none;
}
.mail:hover { opacity: .9; text-decoration: none; }

table { border-collapse: collapse; width: 100%; margin: 20px 0 0; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 12.5px; color: var(--markup); }
.scroll-x { overflow-x: auto; }

/* ---------- Footer ---------- */

/* Mirrors the landing page's footer exactly — same grid, same columns. */
footer.site { border-top: 1px solid var(--rule); }
footer.site .inner {
  max-width: 1200px; margin: 0 auto; padding: 64px 24px 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
}
footer.site .fbrand { display: flex; align-items: center; gap: 10px; }
footer.site .fbrand span { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 15px; }
footer.site .made {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--markup); margin-top: 16px;
}
footer.site nav { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
footer.site .h { font-weight: 600; font-size: 12px; color: var(--markup); letter-spacing: .06em; }
footer.site nav a { color: var(--ink); text-decoration: none; }
footer.site nav a:hover { color: var(--accent-text); }

@media (max-width: 600px) {
  main { padding: 48px 20px 72px; }
  header.site .bar { gap: 14px; padding: 0 16px; }
}

@media print {
  header.site, footer.site, .theme-toggle, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main { max-width: none; padding: 0; }
  h1, h2, h3 { color: #000; }
  .note, .card { border-color: #ccc; background: none; }
  a { color: #000; }
}
