/* Los Santos Roleplay: charte shared by the UCP and the ACP (colors, fonts, base components).
   Fonts served by the site (no call to Google), licence SIL OFL 1.1. */

@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("../fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("../fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("../fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("../fonts/figtree-700.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-display: swap; src: url("../fonts/figtree-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Arimo"; font-weight: 400; font-display: swap; src: url("../fonts/arimo-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
    /* Brand: to change in one place when the logo is chosen. */
    --navy-950: #0F1A2E;
    --navy-900: #16233B;
    --navy-800: #1E2F4D;
    --navy-700: #2A3F63;
    --accent: #B85A16;        /* buttons, links (white text: 6.4:1) */
    --accent-hover: #8E4310;
    --accent-bright: #E8893A; /* on dark backgrounds */
    --accent-soft: #FBEBDD;

    --paper: #F2F4F7;
    --surface: #FFFFFF;
    --surface-muted: #F7F8FA;
    --line: #DCE1E8;
    --line-soft: #EEF1F5;
    --ink: #1C2533;
    --ink-muted: #5A6578;
    --ink-on-dark: #C9D4E5;

    --ok: #1F6B3E;  --ok-soft: #E3F1E8;
    --warn: #8E4310; --warn-soft: #FBEBDD;
    --bad: #A1271E; --bad-soft: #FBE4E2;

    --font-text: "Figtree", system-ui, sans-serif;
    --font-title: "Barlow Condensed", "Figtree", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;

    --radius: 12px;
    --radius-small: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.5 var(--font-text);
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.2; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-muted); }
.title-doc { font-family: var(--font-title); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Logo (until the final logo is chosen). */
.logo { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
/* Validated logo (30/10/2026): the "LS" box with its reflection, then "roleplay" in Arimo (web/branding/logo). */
.logo-box {
    position: relative; overflow: hidden; flex: none;
    width: 40px; height: 40px; border-radius: 6px; background: #FFFFFF; color: #1D2B45;
    display: inline-flex; align-items: center; justify-content: center;
    font: 700 26px/1 var(--font-title);
}
.logo-box::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 38%, rgba(195, 209, 229, .75) 39%, rgba(220, 228, 240, .45) 72%, transparent 73%);
}
.logo-box > span { position: relative; }
.logo-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.logo-text strong { font: 400 26px/1 "Arimo", sans-serif; }
.logo-text span { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--accent-bright); }

/* Buttons. */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: var(--radius-small);
    border: 1px solid transparent; font: 600 15px var(--font-text); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: #C5CDD8; }
.btn-secondary:hover { background: var(--surface-muted); color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Badges. */
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-neutral { background: var(--line-soft); color: var(--ink-muted); }

/* Cards. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-body { padding: 20px; }

/* Forms. */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.input, select.input, textarea.input {
    min-height: 44px; padding: 0 12px; border: 1px solid #A9B4C4; border-radius: 6px;
    font: 400 16px var(--font-text); color: var(--ink); background: var(--surface);
}
textarea.input { padding: 12px; min-height: 120px; resize: vertical; }

.alert { padding: 12px 14px; border-radius: var(--radius-small); font-size: 15px; }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-info { background: var(--accent-soft); color: var(--warn); }

/* Tables. */
.table-box { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-muted); background: var(--surface-muted); padding: 10px 16px; }
.table td { padding: 11px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.signin-form { display: flex; flex-direction: column; gap: 16px; }
