/* ==========================================================================
   Eurolance design tokens
   Signature idea: the platform verifies and files professional credentials
   across three languages. The whole system borrows the vernacular of an
   official document -- a stamped, ledger-like paper trail -- rendered in a
   modern, quiet palette rather than a literal bureaucratic pastiche.
   ========================================================================== */

:root {
  /* Light theme (default) */
  --bg: #E8EAE2;              /* cool paper, not the default warm cream */
  --surface: #F5F6F1;         /* card / raised surface */
  --surface-raised: #FFFFFF;
  --ink: #1C2B3A;             /* primary text, deep slate-navy */
  --ink-soft: #4B5C6B;        /* secondary text */
  --ink-muted: #7C8B93;       /* tertiary / hints */
  --hairline: rgba(28, 43, 58, 0.14);
  --hairline-strong: rgba(28, 43, 58, 0.28);

  --brass: #9C7A31;           /* seal / stamp ink -- primary accent */
  --brass-strong: #7C5F24;
  --brass-tint: #EFE6D0;

  --petrol: #1F5C5C;          /* secondary accent -- links, recruiter mode */
  --petrol-tint: #DDEAE8;

  --verified: #3C6E4F;        /* verification green */
  --verified-tint: #E1EBDF;

  --danger: #9C3B34;
  --danger-tint: #F3DEDB;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-card: 4px;
  --shadow-card: 0 1px 2px rgba(28, 43, 58, 0.06);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #12181F;
  --surface: #182231;
  --surface-raised: #1D2839;
  --ink: #E9EAE2;
  --ink-soft: #B7C1C9;
  --ink-muted: #7F8C96;
  --hairline: rgba(233, 234, 226, 0.14);
  --hairline-strong: rgba(233, 234, 226, 0.26);

  --brass: #D3A855;
  --brass-strong: #E7C077;
  --brass-tint: #2C2416;

  --petrol: #63B3B0;
  --petrol-tint: #17292B;

  --verified: #77B98F;
  --verified-tint: #17271C;

  --danger: #D98A83;
  --danger-tint: #2C1917;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

a { color: var(--petrol); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Registration-mark rule: a hairline with corner ticks, echoing print
   production marks -- used between major sections since the content really
   is a sequence of checkpoints (find, verify, hire). -------------------- */
.reg-rule {
  position: relative;
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.reg-rule::before, .reg-rule::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--hairline-strong);
}
.reg-rule::before { left: 24px; }
.reg-rule::after { right: 24px; }

/* -- Buttons -------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
[data-theme="dark"] .btn-primary { background: var(--brass); color: #12181F; }
.btn-primary:hover { background: var(--brass-strong); color: #fff; }
[data-theme="dark"] .btn-primary:hover { background: var(--brass); opacity: 0.9; }

.btn-ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

/* -- Theme toggle ----------------------------------------------------------*/
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 6px;
  cursor: pointer;
  color: var(--ink-soft);
}
.theme-toggle span {
  padding: 4px 10px;
  border-radius: 999px;
}
.theme-toggle span[data-active="true"] {
  background: var(--ink);
  color: var(--bg);
}
[data-theme="dark"] .theme-toggle span[data-active="true"] {
  background: var(--brass);
  color: #12181F;
}

/* -- Language switcher: real trilingual chrome, not decoration ------------*/
.lang-switch {
  display: inline-flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.lang-switch a {
  padding: 4px 8px;
  color: var(--ink-muted);
}
.lang-switch a.is-active { color: var(--ink); font-weight: 600; }

/* -- Eyebrow / kicker text -------------------------------------------------*/
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 12px;
}

/* -- Card ------------------------------------------------------------------*/
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
}

/* -- Skill/tag pill ----------------------------------------------------------*/
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  margin: 0 6px 6px 0;
}
