/* === TOSHI DESIGN SYSTEM === */

@font-face {
    font-family: 'toshifont';
    src: url('/assets/fonts/toshimedium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YOURFONTMEDIUM';
    src: url('/assets/fonts/MartinaPlantijn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #111111;
    --bg-dark: #0a0a0a;
    --text: rgba(240, 237, 232, 0.85);
    --dim: rgba(240, 237, 232, 0.35);
    --muted: rgba(240, 237, 232, 0.12);
    --ash: #8a8a8a;
    --line: rgba(138, 138, 138, 0.12);
    --white: #ffffff;
    --font: 'Inter', -apple-system, sans-serif;
    --fluo: #39ff14;
    --salmon: #E8927C;
    --brand: 'toshifont', Georgia, serif;
    --display: 'YOURFONTMEDIUM', Georgia, serif;
}

/* Daylight theme — static "ash" palette, applied when the sun is up in Brussels.
   Values pinned 2026-04-19 from the midday stop of the former solar interpolation
   engine (alt = 45°). Simpler: sun-up → daylight, sun-down → dark. No transitions. */
body[data-theme="daylight"] {
    --bg:       rgb(242, 240, 235);
    --bg-dark:  rgb(236, 233, 228);
    --text:     rgba(30, 28, 25, 0.85);
    --dim:      rgba(30, 28, 25, 0.36);
    --muted:    rgba(30, 28, 25, 0.06);
    --ash:      rgb(128, 123, 116);
    --line:     rgba(80, 75, 68, 0.12);
    --white:    #1a1816;
    --fluo:     #e07830;
    --salmon:   #d87b64;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    transition: background-color 1.5s ease, color 1.5s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === NAV === */
.tl-nav {
    background: transparent;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tl-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 2.5vw, 40px);
    height: 50px;
}

.tl-nav-brand {
    display: flex;
    align-items: center;
    font-family: var(--brand);
    font-size: 17px;
    color: var(--text);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
}

.toshi-char-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.toshi-char-inner {
    display: inline-block;
}

.toshi-reg {
    font-family: var(--font);
    font-size: 7px;
    vertical-align: super;
    letter-spacing: 0;
}

.tl-nav-links {
    display: flex;
    gap: 6px;
}

.tl-nav-links a {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 4px 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tl-nav-links a:hover {
    color: var(--text);
    background: var(--muted);
}

.tl-nav-links a.active {
    color: var(--text);
}

.tl-nav-links a.tl-nav-client {
    margin-left: 10px;
    border: 1px solid var(--line);
    border-radius: 100px;
}

.tl-nav-links a.tl-nav-client:hover {
    border-color: var(--ash);
}

body[data-theme="daylight"] .tl-nav {
    background: transparent;
}

/* === NAV AVAILABILITY WIDGET === */
.tl-nav-avail {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 14px;
    padding: 5px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}
.tl-nav-avail:hover {
    border-color: var(--ash);
}
.tl-nav-avail:focus {
    outline: none;
}
.tl-nav-avail.is-active {
    border-color: var(--ash);
}
.tl-nav-avail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dim);
    flex-shrink: 0;
    transition: background 0.3s;
}
.tl-nav-avail-dot.status-open,
.tl-nav-avail-dot.status-available { background: #39ff14; }
.tl-nav-avail-dot.status-limited { background: #e8a020; }
.tl-nav-avail-dot.status-busy { background: #E8927C; }
body[data-theme="daylight"] .tl-nav-avail-dot.status-open,
body[data-theme="daylight"] .tl-nav-avail-dot.status-available { background: #22a612; }
body[data-theme="daylight"] .tl-nav-avail-dot.status-limited { background: #e8a020; }
body[data-theme="daylight"] .tl-nav-avail-dot.status-busy { background: #d4644a; }

.tl-nav-avail-text {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--dim);
    white-space: nowrap;
}
/* Side panel (slides in from right, pushes page) */
.tl-sidepanel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    z-index: 10001;
    display: none;
    flex-direction: column;
    background: var(--bg, #111);
    border-left: 1px solid var(--line);
    transform: translateX(420px);
    overflow: hidden;
}
body[data-theme="daylight"] .tl-sidepanel {
    background: #f5f2ee;
    border-color: rgba(40,36,30,0.1);
}
.tl-sp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
/* Tabs */
.tl-sp-tabs {
    display: flex;
    gap: 4px;
    background: var(--muted, rgba(0,0,0,0.04));
    border-radius: 8px;
    padding: 3px;
}
.tl-sp-tab {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--dim);
    background: none;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    white-space: nowrap;
}
.tl-sp-tab:hover { color: var(--text); }
.tl-sp-tab.is-active {
    background: var(--bg, #111);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
body[data-theme="daylight"] .tl-sp-tab.is-active {
    background: #fff;
}

/* Tab content */
.tl-sp-tab-content { display: none; }
.tl-sp-tab-content.is-active { display: block; }
.tl-sp-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    transition: all 0.2s;
}
.tl-sp-close:hover { border-color: var(--ash); color: var(--text); }
.tl-sp-close:focus { outline: none; }

.tl-sp-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.tl-sp-step { }
.tl-sp-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 14px;
}

/* Call type buttons */
.tl-sp-types { display: flex; flex-direction: column; gap: 8px; }
.tl-sp-type {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    text-align: left;
    color: var(--text);
    width: 100%;
}
.tl-sp-type:hover { border-color: var(--ash); background: var(--muted); }
.tl-sp-type.is-active { border-color: var(--text); background: var(--muted); }
.tl-sp-type svg { flex-shrink: 0; opacity: 0.5; }
.tl-sp-type div { display: flex; flex-direction: column; gap: 2px; }
.tl-sp-type strong { font-size: 13px; font-weight: 500; }
.tl-sp-type span { font-size: 11px; color: var(--dim); }

/* Slot badge */
.tl-sp-slot-badge {
    font-size: 12px;
    color: var(--dim);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Form */
.tl-sp-form { display: flex; flex-direction: column; gap: 16px; }
.tl-sp-field { display: flex; flex-direction: column; gap: 5px; }
.tl-sp-field label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
}
.tl-sp-field input,
.tl-sp-field textarea {
    font-size: 14px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}
.tl-sp-field input:focus,
.tl-sp-field textarea:focus { border-color: var(--ash); }
.tl-sp-field input::placeholder,
.tl-sp-field textarea::placeholder { color: var(--dim); opacity: 0.5; }
.tl-sp-field textarea { resize: vertical; min-height: 64px; }
.tl-sp-select {
    font-size: 14px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    outline: none;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.tl-sp-select:focus { border-color: var(--ash); }

.tl-sp-submit {
    font-size: 13px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 8px;
    border: none;
    background: var(--text);
    color: var(--bg, #111);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    letter-spacing: 0.02em;
    margin-top: 4px;
}
body[data-theme="daylight"] .tl-sp-submit {
    background: #1a1a1a;
    color: #f5f2ee;
}
.tl-sp-submit:hover { opacity: 0.85; }
.tl-sp-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.tl-sp-note {
    font-size: 11px;
    color: var(--dim);
    text-align: center;
    opacity: 0.6;
}
.tl-sp-error {
    font-size: 12px;
    color: #c0392b;
    display: none;
    text-align: center;
}

/* Success */
.tl-sp-success {
    text-align: center;
    padding: 40px 20px;
    color: var(--text);
}
.tl-sp-success-icon { margin-bottom: 16px; opacity: 0.4; }
.tl-sp-success h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tl-sp-success p { font-size: 13px; color: var(--dim); }

/* Footer */
.tl-sp-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
}
.tl-sp-footer-link {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: all 0.2s;
}
.tl-sp-footer-link:hover {
    border-color: var(--ash);
    background: var(--muted);
}

/* === FOOTER === */
/* Refinement pass 2026-04-20: scale up from whisper (10px/9px/20px)
   to a calm editorial strip that balances the 50px header.           */
.tl-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: clamp(24px, 4vw, 64px);
    padding: 34px clamp(24px, 2.5vw, 44px);
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--dim);
}

.tl-footer-brand {
    display: inline-flex;
    align-items: center;
    color: var(--ash);
    transition: color 0.2s ease;
    justify-self: start;
}
.tl-footer-brand:hover { color: var(--text); }

.tl-logo-footer {
    height: 12px;
    width: auto;
    fill: currentColor;
    display: block;
}

.tl-footer-links {
    list-style: none;
    display: flex;
    gap: 6px;
    justify-self: center;
    margin: 0;
    padding: 0;
}

.tl-footer-links a {
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}
.tl-footer-links a:hover {
    color: var(--text);
    background: var(--muted);
}

.tl-footer-right {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    justify-self: end;
}

.tl-footer-copy {
    letter-spacing: 0.08em;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Hidden dashboard link — easter egg, still reachable, no longer shouting */
.tl-footer-dash {
    font-size: 14px;
    line-height: 1;
    color: var(--dim);
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.25s ease, color 0.25s ease;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
}
.tl-footer-dash:hover {
    opacity: 1;
    color: var(--ash);
}

@media (max-width: 640px) {
    .tl-footer {
        grid-template-columns: 1fr;
        row-gap: 18px;
        justify-items: center;
        padding: 28px 24px;
        text-align: center;
    }
    .tl-footer-brand,
    .tl-footer-links,
    .tl-footer-right {
        justify-self: center;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }
