/*
  Fantinnovation corporate site — distinct palette from plainlog.app's
  "Paper" theme (product identity vs. publisher identity should read as
  two different things, not a reskin), but the same technical discipline:
  no web fonts, no CDN, no external request of any kind. System fonts only.
*/

:root {
  --background: #FAFAFA;
  --surface: #F0F1F3;
  --border: #D6D9DE;
  --border-strong: #8D939C;
  --text: #16181D;
  --text-muted: #565C66;
  --accent: #1F4B99;
  --accent-text: #FFFFFF;
  --motion-fast: 180ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111317;
    --surface: #1A1D22;
    --border: #363B44;
    --border-strong: #6C7280;
    --text: #F0F1F3;
    --text-muted: #A7ACB6;
    --accent: #7EA6F2;
    --accent-text: #0E1116;
  }
}

@media (prefers-contrast: more) {
  :root { --border: var(--border-strong); }
  a { text-decoration-thickness: 2px; }
  .card { border-width: 2px; }
}

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

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 17px/1.6 -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top var(--motion-fast) var(--motion-ease);
  z-index: 10;
}

.skip-link:focus-visible {
  top: 1rem;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

h1, h2 {
  font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  margin: 0 0 0.35rem;
}

h2 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  margin: 2.5rem 0 0.75rem;
}

.tagline {
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  transition: color var(--motion-fast) var(--motion-ease),
              text-decoration-thickness var(--motion-fast) var(--motion-ease);
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.muted { color: var(--text-muted); }

nav.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.95rem;
}

nav.top a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.25rem;
  letter-spacing: 0.01em;
}

nav.top a:hover { color: var(--text); }

nav.top strong {
  color: var(--text);
  font-weight: 700;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  transition: border-color var(--motion-fast) var(--motion-ease);
}

.card:hover { border-color: var(--border-strong); }

.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.standing {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-left: 3px solid var(--border-strong);
  padding-left: 1rem;
  margin: 3rem 0 0;
}

footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

footer a { color: var(--text-muted); }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

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