/* CodenWorkday base: Coden brand tokens, reset, buttons, forms. */
@font-face { font-family: 'Outfit'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/outfit-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/outfit-latin-600-normal.woff2') format('woff2'); }

:root, :root[data-theme="dark"] {
    --accent: #de6117;
    --accent-soft: rgba(222, 97, 23, .12);
    --bg: #0a0a0b;
    --side: #0d0d0f;
    --raise: #131316;
    --line: #1a1a1e;
    --line-2: #26262b;
    --text: #ececef;
    --body: #cfcfd5;
    --muted: #7a7a84;
    --faint: #45454c;
    --strong: #ffffff;
    --input: #0f0f12;
    --danger: #e2445c;
    --shadow: 0 18px 50px rgba(0, 0, 0, .55);
    color-scheme: dark;
}
:root[data-theme="light"] {
    --accent-soft: rgba(222, 97, 23, .10);
    --bg: #ffffff;
    --side: #f7f7f8;
    --raise: #efeff2;
    --line: #ebebee;
    --line-2: #dcdce1;
    --text: #17171a;
    --body: #34343a;
    --muted: #6e6e78;
    --faint: #a4a4ad;
    --strong: #0a0a0b;
    --input: #ffffff;
    --shadow: 0 18px 50px rgba(20, 20, 30, .16);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(222, 97, 23, .3); }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
h1, h2, h3, h4 { color: var(--strong); margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
.muted { color: var(--muted); }
.ic { flex: none; vertical-align: middle; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Logo: trishul mark + spaced wordmark, same as CodenNotes */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { display: block; flex: none; width: auto; }
.logo-text {
    font-size: calc(var(--ls, 28px) * .62); font-weight: 500; letter-spacing: .2em; line-height: 1;
    background: linear-gradient(90deg, #e0661d, #f08a4b 50%, #e0661d);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
a.btn, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 11px; border: 1px solid transparent;
    font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; line-height: 1.2;
    transition: filter .15s, transform .05s, background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--raise); }
.btn-danger { background: transparent; color: var(--accent); border-color: rgba(222, 97, 23, .5); }
.btn-danger:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; padding: 14px 18px; font-size: 16px; }
button { cursor: pointer; }
.icon-btn {
    display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
    background: transparent; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer;
    transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--raise); color: var(--strong); }
.theme-toggle .ic:last-child { display: none; }
:root[data-theme="light"] .theme-toggle .ic:first-child { display: none; }
:root[data-theme="light"] .theme-toggle .ic:last-child { display: inline; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label, .field { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
    width: 100%; padding: 11px 13px; background: var(--input); color: var(--text);
    border: 1px solid var(--line-2); border-radius: 11px; outline: none; font-size: 15px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(222, 97, 23, .14); }
::placeholder { color: var(--faint); }
.form-error { background: rgba(226, 68, 92, .12); border: 1px solid rgba(226, 68, 92, .4); color: #ff8da0; padding: 10px 12px; border-radius: 9px; margin: 14px 0; font-size: .92rem; }
:root[data-theme="light"] .form-error { color: #b3182f; }
