@font-face {
    font-family: Manrope;
    src: url('../fonts/Manrope-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #0b0b0c;
    --text: #e9e9e9;
    --muted: #969699;
    --surface: #19191b;
    --line: #29292c;
    --button: #2b2b2f;
    font-family: Manrope, Arial, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    min-width: 280px;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button, a, input, summary {
    -webkit-tap-highlight-color: transparent;
}

button, summary {
    cursor: pointer;
}

button {
    color: inherit;
}

button:disabled {
    cursor: not-allowed;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    padding: 12px;
    background: var(--text);
    color: var(--bg);
    z-index: 10;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    height: 72px;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1200px;
    padding: 0 40px;
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    font-size: 29px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.6px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 46px;
    padding: 12px 26px;
    border: 0;
    border-radius: 10px;
    background: var(--button);
    font-weight: 700;
    font-size: 14px;
    transition: background .15s;
}

.button:hover {
    background: #3b3b40;
}

.button-small {
    min-width: 120px;
    min-height: 40px;
    padding: 9px 22px;
}

.welcome {
    min-height: calc(100svh - 72px);
    display: grid;
    place-items: center;
    padding: 64px 24px;
}

.welcome h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(48px, 8.7vw, 120px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.065em;
}

.welcome-brand {
    display: block;
    color: var(--muted);
    margin-top: 8px;
}

.login-layout {
    min-height: calc(100svh - 72px);
    display: grid;
    place-items: center;
    padding: 64px 24px;
}

.login-panel {
    width: 100%;
    max-width: 420px;
}

.login-panel h1 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.15;
    margin: 0 0 14px;
}

.muted {
    color: var(--muted);
}

.login-intro {
    font-size: 15px;
    margin: 0 0 38px;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 23px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 10px;
}

.form-field input {
    width: 100%;
    min-height: 56px;
    border: 1px solid #353538;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    padding: 15px 17px;
    font-size: 15px;
}

.form-field input::placeholder {
    color: #85858b;
}

.form-field input[aria-invalid=true] {
    border-color: #aaa;
}

.button-primary {
    background: var(--text);
    color: var(--bg);
    min-height: 56px;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 15px;
}

.button-primary:hover {
    background: #fff;
}

.button-primary span {
    font-size: 22px;
}

.form-error, .field-errors {
    font-size: 13px;
    line-height: 1.6;
}

.form-error {
    padding: 14px 16px;
    background: var(--surface);
    border-left: 2px solid var(--text);
    border-radius: 4px;
}

.field-errors {
    margin-top: 8px;
}

.errorlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

.dashboard h1 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -.055em;
    line-height: 1.2;
    font-weight: 750;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    list-style: none;
}

.icon-button::-webkit-details-marker {
    display: none;
}

.icon-button:hover {
    background: var(--button);
}

.icon-button svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.add-button {
    background: var(--text);
    color: var(--bg);
    opacity: .65;
}

.account-menu {
    position: relative;
}

.menu-panel {
    position: absolute;
    top: 56px;
    right: 0;
    z-index: 2;
    min-width: 190px;
    padding: 7px;
    background: #202023;
    border: 1px solid #37373b;
    border-radius: 12px;
    box-shadow: 0 12px 40px #0006;
}

.menu-panel a, .menu-panel button {
    display: block;
    text-align: left;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 14px;
}

.menu-panel a:hover, .menu-panel button:hover {
    background: #303034;
}

.calendar-placeholder {
    min-height: 200px;
    height: 200px;
    border: 1px solid var(--line);
    background: #111113;
    border-radius: 18px;
}

@media (max-width: 600px) {
    .site-header {
        height: 64px;
    }

    .header-inner {
        padding: 0 24px;
    }

    .wordmark {
        font-size: 26px;
    }

    .button-small {
        min-width: 96px;
    }

    .welcome, .login-layout {
        min-height: calc(100svh - 64px);
    }

    .welcome h1 {
        font-size: clamp(42px, 10.5vw, 64px);
    }

    .dashboard {
        padding: 38px 24px;
    }

    .dashboard-heading {
        margin-bottom: 28px;
        gap: 12px;
    }

    .dashboard-actions {
        gap: 8px;
    }

    .icon-button {
        width: 40px;
        height: 40px;
    }

    .calendar-placeholder {
        min-height: 420px;
        border-radius: 14px;
    }

    .login-intro {
        margin-bottom: 32px;
    }
}

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