/*
 * The Nedbase design system, as far as this application needs it. Everything above the tool tier
 * is lifted verbatim from the design system's colors_and_type.css — if a value is missing here it
 * is missing from the brand, and it belongs in Figma before it belongs in this file.
 */

@font-face { font-family: 'Unytour'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Unytour-SemiBold-bHBuYdE.otf") format('opentype'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/HankenGrotesk-Light-5MGUtKu.ttf") format('truetype'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/HankenGrotesk-Medium-DBwt78j.ttf") format('truetype'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/HankenGrotesk-SemiBold-5H1OFSw.ttf") format('truetype'); }

:root {
    /* Colour — the eight distinct values behind the thirteen Figma variables. */
    --nb-salmon: #E47463;
    --nb-ink: #2F322F;
    --nb-white: #FFFFFF;
    --nb-beige: #F0EAE4;
    --nb-beige-50: #F7F4F1;
    --nb-border: #DCD2C8;
    --nb-border-25: #5A5A55;
    --nb-shortyellow: #FCDD64;

    --fg-1: var(--nb-ink);
    --fg-2: var(--nb-border-25);
    --fg-accent: var(--nb-salmon);
    --fg-on-dark: var(--nb-white);
    --bg-1: var(--nb-white);
    --bg-2: var(--nb-beige);
    --bg-3: var(--nb-beige-50);
    --border-1: var(--nb-border);

    --font-display: 'Unytour', 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;

    --fs-15: 15px;
    --fs-18: 18px;
    --fs-20: 20px;
    --fs-22: 22px;
    --fs-24: 24px;
    --fs-40: 40px;
    --lh-flat: 1;
    --lh-snug: 1.4;
    --lh-body: 1.6;
    --lh-loose: 1.8;
    --tr-tight: 0.02em;
    --tr-wide: 0.03em;

    --sp-20: 20px;
    --sp-24: 24px;
    --sp-60: 60px;

    --r-xs: 6px;
    --r-lg: 20px;
    --r-pill: 100px;

    /* No blur shadows in the brand: a card separates from beige with a white ring. */
    --ring-white: 0 0 0 4px var(--nb-white);

    --dur-base: 200ms;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* ================= TOOL TIER — NOT IN FIGMA YET =================
       A planning board needs two things the brand does not carry: type below the 15px floor, and
       a way to say "look here". This is the smallest set that makes the board work; nothing else
       in the application may use it, and it should be proposed to Figma before it spreads.
       ---------------------------------------------------------------------------------- */

    /* Dense type. Hanken only — Unytour stays at 18px and up, as the brand requires. */
    --tool-fs-11: 11px;
    --tool-fs-12: 12px;
    --tool-fs-13: 13px;

    /* One alert pair: salmon at 12% on white, and the same hue darkened far enough to read on it. */
    --tool-alert-bg: #FCEEEC;
    --tool-alert-fg: #8D483D;

    /* And its opposite, for a toggle that has to say "on" without words: the same two steps at a
       green hue. The brand carries no green — this belongs in Figma before it spreads further. */
    --tool-on-bg: #E7F1E8;
    --tool-on-fg: #2F6B41;

    /* Five project hues at salmon's own lightness and chroma, hue rotated away from it so the
       accent keeps meaning "attention" and nothing else. Projects without a colour of their own
       fall back to the first. */
    --tool-project-1: oklch(0.685 0.117 250);
    --tool-project-2: oklch(0.685 0.117 165);
    --tool-project-3: oklch(0.685 0.117 100);
    --tool-project-4: oklch(0.685 0.117 310);
    --tool-project-5: oklch(0.685 0.117 200);

    --tool-control-h: 36px;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-1);
    color: var(--fg-1);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-15);
    line-height: var(--lh-snug);
    letter-spacing: var(--tr-tight);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--fg-1);
    text-decoration-color: var(--fg-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color var(--dur-base) var(--ease-out);
}

a:hover { color: var(--fg-accent); }

/*
 * A document page scrolls; the board does not. Where the board is on the page, the window is the
 * frame and the scrolling happens inside it, so the week bar and the side stay where they are.
 */
body:has(.board-page) {
    height: 100vh;
    overflow: hidden;
}

/* The Nedbase dot. */
.dot {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    background: var(--nb-salmon);
    vertical-align: baseline;
    margin-left: 0.06em;
}
