/* OwnHour partner portal — Golden Hour tokens (design handoff _ds tokens/*.css). */

@font-face {
    font-family: 'Newsreader';
    src: url('fonts/Newsreader.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('fonts/InstrumentSans.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: 'Spline Sans Mono';
    src: url('fonts/SplineSansMono.woff2') format('woff2');
    font-weight: 400 600;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    /* base — paper & ink */
    --paper: #F7F2E9;
    --paper-deep: #EFE8D9;
    --surface: #FFFFFF;
    --ink-1: #231E16;
    --ink-2: #5D5544;
    --ink-3: #8B826E;
    --ink-inverse: #F7F2E9;
    --line-1: #E6DECB;
    --line-2: #D5CBB2;
    /* hour gold */
    --gold-100: #F6E9C7;
    --gold-300: #E8C468;
    --gold-500: #C0891D;
    --gold-700: #7C5300;
    --gold-900: #4A3200;
    /* status */
    --green-100: #E4EDDA;
    --green-700: #3A6428;
    --rust-100: #F7E2D2;
    --rust-700: #8F4A1B;
    --red-100: #F6DDD7;
    --red-700: #993829;
    --teal-100: #DCEBE4;
    --teal-700: #1F5F4E;
    /* actions */
    --action-primary-bg: #231E16;
    --action-primary-text: #F9F4EA;
    --action-primary-pressed: #3A3325;
    /* type */
    --font-display: 'Newsreader', Georgia, serif;
    --font-ui: 'Instrument Sans', system-ui, sans-serif;
    --font-mono: 'Spline Sans Mono', ui-monospace, monospace;
    /* geometry */
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-e1: 0 1px 2px rgba(35, 30, 22, .06);
    --shadow-e2: 0 2px 10px rgba(35, 30, 22, .08);
    --dur-fast: 120ms;
    --ease-standard: cubic-bezier(.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #1B1712;
        --paper-deep: #131009;
        --surface: #251F17;
        --ink-1: #F2EADA;
        --ink-2: #BFB49C;
        --ink-3: #8F8570;
        --ink-inverse: #231E16;
        --line-1: #3B3427;
        --line-2: #4C4433;
        --gold-100: #3B2F14;
        --gold-300: #8A6512;
        --gold-500: #D9A83F;
        --gold-700: #E9C46A;
        --gold-900: #F6E1AC;
        --green-100: #25321C;
        --green-700: #A5CC8E;
        --rust-100: #3C2717;
        --rust-700: #E8AE7F;
        --red-100: #3E211B;
        --red-700: #E89C8C;
        --teal-100: #1D2F28;
        --teal-700: #92C7B2;
        --action-primary-bg: #F2EADA;
        --action-primary-text: #231E16;
        --action-primary-pressed: #D9CFBA;
        --shadow-e1: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow-e2: 0 2px 10px rgba(0, 0, 0, .36);
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --dur-fast: 0ms;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-1);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

header.oh-header {
    border-bottom: 1px solid var(--line-1);
    background: var(--paper);
}

.oh-header-inner,
main {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.oh-header-inner {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.oh-wordmark {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: var(--ink-1);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -.01em;
}

.oh-header-tag {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

main {
    padding-bottom: 3rem;
}

h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.75rem;
    letter-spacing: -.015em;
    line-height: 1.2;
    margin: 1rem 0 .5rem;
}

h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: -.01em;
    margin: 1.6rem 0 .5rem;
}

p {
    color: var(--ink-2);
    margin: .4rem 0;
}

a {
    color: var(--gold-700);
}

.oh-card {
    background: var(--surface);
    border: 1px solid var(--line-1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-e1);
    padding: 1.1rem 1.25rem;
    margin: .9rem 0;
}

.oh-card--sunken {
    background: var(--paper-deep);
    box-shadow: none;
}

.oh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: var(--action-primary-bg);
    color: var(--action-primary-text);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}

.oh-btn:hover {
    background: var(--action-primary-pressed);
}

.oh-btn:active {
    transform: scale(.98);
}

.oh-btn:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

.oh-btn[disabled] {
    opacity: .4;
    cursor: default;
}

.oh-btn--secondary {
    background: transparent;
    color: var(--ink-1);
    border: 1.5px solid var(--line-2);
}

.oh-btn--secondary:hover {
    background: var(--paper-deep);
}

.oh-btn--ghost {
    background: transparent;
    color: var(--ink-2);
}

.oh-btn--ghost:hover {
    background: var(--paper-deep);
}

.oh-btn--danger {
    background: var(--red-700);
    color: #FFF6F0;
}

.oh-field {
    display: block;
    margin: .9rem 0;
}

.oh-field > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.oh-input,
textarea.oh-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--line-2);
    background: var(--surface);
    color: var(--ink-1);
    font-family: var(--font-ui);
    font-size: 15px;
}

textarea.oh-input {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    min-height: 7rem;
    resize: vertical;
}

.oh-input:focus-visible {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px var(--gold-100);
}

.oh-banner {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    border-radius: var(--radius-md);
    padding: .9rem 1rem;
    margin: .9rem 0;
    font-size: 14px;
}

.oh-banner strong {
    display: block;
    font-size: 14px;
}

.oh-banner span {
    opacity: .92;
    font-size: 13px;
}

.oh-banner--protected {
    background: var(--green-100);
    color: var(--green-700);
}

.oh-banner--attention {
    background: var(--rust-100);
    color: var(--rust-700);
}

.oh-banner--broken {
    background: var(--red-100);
    color: var(--red-700);
}

.oh-banner--focus {
    background: var(--teal-100);
    color: var(--teal-700);
}

.oh-banner--neutral {
    background: var(--paper-deep);
    color: var(--ink-2);
}

.oh-code {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.55;
    word-break: break-all;
    background: var(--paper-deep);
    border-radius: var(--radius-md);
    padding: .8rem .9rem;
    user-select: all;
}

.oh-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.oh-badge--gold {
    background: var(--gold-100);
    color: var(--gold-700);
}

.oh-badge--green {
    background: var(--green-100);
    color: var(--green-700);
}

.oh-fact-list {
    list-style: none;
    margin: .4rem 0 0;
    padding: 0;
}

.oh-fact-list li {
    display: flex;
    gap: .6rem;
    padding: .35rem 0;
    color: var(--ink-2);
    font-size: 13.5px;
}

.oh-fact-list li::before {
    content: "✓";
    color: var(--green-700);
    font-weight: 700;
}

.oh-fact-list.oh-fact-list--not li::before {
    content: "—";
    color: var(--ink-3);
}

.oh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

.oh-actions .oh-btn {
    flex: 1 1 12rem;
}

.oh-footer-note {
    font-size: 12px;
    color: var(--ink-3);
    text-align: center;
    margin-top: 2.2rem;
}

@media (min-width: 700px) {
    h1 {
        font-size: 2rem;
    }
}
