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

@font-face {
    font-family: 'InterVariable';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/InterVariable-Italic.woff2') format('woff2');
}

:root {
    --ink: #1D1D1F;
    --saffron: #C9963F;
    --saffron-ink: #1A1200;
    --lime: #F5F5F7;
    --grey: #86868B;
    --border: #E5E5EA;
    --white: #FFFFFF;

    --saffron-bright: #DCAB53;
    --saffron-deep: #A87A2C;
    --saffron-soft: rgba(201, 150, 63, 0.12);
    --ink-deep: #0A0A0B;
    --ink-raised: #161618;
    --ink-line: rgba(255, 255, 255, 0.09);
    --ink-line-strong: rgba(255, 255, 255, 0.16);
    --ink-muted: #A1A1A6;

    --success: #2E7D5B;
    --danger: #B3261E;
    --warning: #A66A00;
    --info: #2B5FA8;

    --font: 'InterVariable', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-feature: 'cv05' 1, 'cv08' 1, 'ss03' 1, 'tnum' 0;

    --step--2: clamp(0.694rem, 0.68rem + 0.07vw, 0.75rem);
    --step--1: clamp(0.833rem, 0.81rem + 0.11vw, 0.9rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.2rem, 1.15rem + 0.25vw, 1.35rem);
    --step-2: clamp(1.44rem, 1.35rem + 0.45vw, 1.75rem);
    --step-3: clamp(1.75rem, 1.58rem + 0.85vw, 2.35rem);
    --step-4: clamp(2.1rem, 1.8rem + 1.5vw, 3.2rem);
    --step-5: clamp(2.6rem, 2rem + 3vw, 4.6rem);
    --step-6: clamp(3rem, 2.1rem + 4.5vw, 6rem);

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 32px 80px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 24px 64px rgba(0, 0, 0, 0.55);

    --shell: 1200px;
    --shell-wide: 1320px;
    --shell-narrow: 720px;
    --nav-height: 56px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration: 0.42s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.011em;
    font-feature-settings: var(--font-feature);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

img, svg, video, canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--space-6) 0;
}

::selection {
    background: var(--saffron);
    color: var(--saffron-ink);
}

:focus-visible {
    outline: 2px solid var(--saffron);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 12px 20px;
    background: var(--ink);
    color: var(--white);
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

.shell-wide {
    max-width: var(--shell-wide);
}

.shell-narrow {
    max-width: var(--shell-narrow);
}

.section {
    padding-block: clamp(64px, 9vw, 128px);
}

.section-tight {
    padding-block: clamp(48px, 6vw, 88px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--grey);
}

.eyebrow::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--saffron);
    flex: none;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 13px;
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-pill);
    font-size: var(--step--1);
    font-weight: 400;
    letter-spacing: -0.005em;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.eyebrow-pill::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--saffron);
    flex: none;
}

.display-1 {
    font-size: var(--step-6);
    letter-spacing: -0.042em;
    line-height: 0.98;
}

.display-2 {
    font-size: var(--step-5);
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.title-1 {
    font-size: var(--step-4);
    letter-spacing: -0.038em;
}

.title-2 {
    font-size: var(--step-3);
    letter-spacing: -0.034em;
}

.title-3 {
    font-size: var(--step-2);
    letter-spacing: -0.03em;
}

.title-4 {
    font-size: var(--step-1);
    letter-spacing: -0.026em;
}

.lede {
    font-size: var(--step-1);
    line-height: 1.45;
    letter-spacing: -0.018em;
    color: var(--grey);
    max-width: 34ch;
}

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

.text-saffron {
    color: var(--saffron);
}

.text-center {
    text-align: center;
}

.mono-num {
    font-variant-numeric: tabular-nums;
}

.btn {
    --btn-bg: var(--ink);
    --btn-color: var(--white);
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    height: 46px;
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-color);
    border: 1px solid var(--btn-border);
    font-size: var(--step-0);
    font-weight: 500;
    letter-spacing: -0.015em;
    white-space: nowrap;
    transition: transform 0.24s var(--ease), background-color 0.24s var(--ease-out), color 0.24s var(--ease-out), border-color 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

.btn[disabled],
.btn[aria-disabled='true'] {
    opacity: 0.45;
    pointer-events: none;
}

.btn-primary {
    --btn-bg: var(--saffron);
    --btn-color: var(--saffron-ink);
}

.btn-primary:hover {
    --btn-bg: var(--saffron-bright);
    box-shadow: 0 8px 28px rgba(201, 150, 63, 0.28);
}

.btn-ink {
    --btn-bg: var(--ink);
    --btn-color: var(--white);
}

.btn-ink:hover {
    --btn-bg: #2E2E31;
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-color: var(--ink);
    --btn-border: var(--border);
}

.btn-ghost:hover {
    --btn-bg: var(--lime);
    --btn-border: #D5D5DC;
}

.btn-ghost-dark {
    --btn-bg: rgba(255, 255, 255, 0.04);
    --btn-color: var(--white);
    --btn-border: var(--ink-line-strong);
}

.btn-ghost-dark:hover {
    --btn-bg: rgba(255, 255, 255, 0.09);
}

.btn-quiet {
    --btn-bg: var(--lime);
    --btn-color: var(--ink);
}

.btn-quiet:hover {
    --btn-bg: #EBEBEF;
}

.btn-danger {
    --btn-bg: transparent;
    --btn-color: var(--danger);
    --btn-border: rgba(179, 38, 30, 0.28);
}

.btn-danger:hover {
    --btn-bg: rgba(179, 38, 30, 0.07);
}

.btn-lg {
    height: 54px;
    padding-inline: 30px;
    font-size: var(--step-1);
}

.btn-sm {
    height: 38px;
    padding-inline: 16px;
    font-size: var(--step--1);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--saffron);
    font-weight: 500;
    font-size: var(--step-0);
}

.link-arrow::after {
    content: '›';
    font-size: 1.25em;
    line-height: 0.8;
    transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-label {
    font-size: var(--step--1);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.field-label .optional {
    color: var(--grey);
    font-weight: 400;
}

.field-hint {
    font-size: var(--step--1);
    color: var(--grey);
    line-height: 1.4;
}

.field-error {
    font-size: var(--step--1);
    color: var(--danger);
    line-height: 1.4;
}

.input,
.select,
.textarea {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    font-size: var(--step-0);
    letter-spacing: -0.012em;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}

.textarea {
    height: auto;
    min-height: 120px;
    padding: 13px 15px;
    line-height: 1.5;
    resize: vertical;
}

.select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2386868B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.input:hover,
.select:hover,
.textarea:hover {
    border-color: #D0D0D8;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px var(--saffron-soft);
}

.input::placeholder,
.textarea::placeholder {
    color: #B4B4BB;
}

.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
    border-color: var(--danger);
}

.input-dark,
.select-dark,
.textarea-dark {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ink-line-strong);
    color: var(--white);
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.input-dark:hover,
.select-dark:hover {
    border-color: rgba(255, 255, 255, 0.26);
}

.input-dark:focus,
.select-dark:focus,
.textarea-dark:focus {
    border-color: var(--saffron);
    background: rgba(255, 255, 255, 0.06);
}

.checkbox,
.radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: var(--step--1);
    line-height: 1.45;
}

.checkbox input,
.radio input {
    flex: none;
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: var(--saffron);
    cursor: pointer;
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: var(--step-0);
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    position: relative;
    flex: none;
    width: 46px;
    height: 27px;
    border-radius: var(--radius-pill);
    background: #D8D8DE;
    transition: background-color 0.25s var(--ease-out);
}

.switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s var(--ease);
}

.switch input:checked + .switch-track {
    background: var(--saffron);
}

.switch input:checked + .switch-track::after {
    transform: translateX(19px);
}

.switch input:focus-visible + .switch-track {
    outline: 2px solid var(--saffron);
    outline-offset: 3px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 30px);
}

.card-flat {
    background: var(--lime);
    border-color: transparent;
}

.card-dark {
    background: var(--ink-raised);
    border-color: var(--ink-line);
    color: var(--lime);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: var(--step--2);
    font-weight: 500;
    letter-spacing: 0.005em;
    background: var(--lime);
    color: var(--grey);
    white-space: nowrap;
}

.badge-saffron {
    background: var(--saffron-soft);
    color: var(--saffron-deep);
}

.badge-success {
    background: rgba(46, 125, 91, 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(179, 38, 30, 0.1);
    color: var(--danger);
}

.badge-warning {
    background: rgba(166, 106, 0, 0.1);
    color: var(--warning);
}

.badge-info {
    background: rgba(43, 95, 168, 0.1);
    color: var(--info);
}

.badge-ink {
    background: var(--ink);
    color: var(--white);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: var(--step--1);
    line-height: 1.45;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(46, 125, 91, 0.08);
    border-color: rgba(46, 125, 91, 0.18);
    color: #1E5C41;
}

.alert-error {
    background: rgba(179, 38, 30, 0.07);
    border-color: rgba(179, 38, 30, 0.16);
    color: #8C1E17;
}

.alert-info {
    background: rgba(43, 95, 168, 0.07);
    border-color: rgba(43, 95, 168, 0.16);
    color: #234C85;
}

.alert-warning {
    background: rgba(201, 150, 63, 0.1);
    border-color: rgba(201, 150, 63, 0.22);
    color: #7A5A22;
}

.flash-stack {
    position: fixed;
    top: calc(var(--nav-height) + 14px);
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 40px));
    pointer-events: none;
}

.flash-stack .alert {
    pointer-events: auto;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    animation: flash-in 0.5s var(--ease) both;
}

.flash-stack .alert-success {
    border-left: 3px solid var(--success);
}

.flash-stack .alert-error {
    border-left: 3px solid var(--danger);
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.grid {
    display: grid;
    gap: clamp(16px, 2.2vw, 28px);
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.stack-sm {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stack-lg {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.row-between {
    justify-content: space-between;
}

.row-wrap {
    flex-wrap: wrap;
}

.divider {
    height: 1px;
    background: var(--border);
    border: 0;
    margin: 0;
}

.divider-dark {
    background: var(--ink-line);
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.data-table {
    min-width: 620px;
    font-size: var(--step--1);
}

.data-table th {
    text-align: start;
    font-weight: 500;
    color: var(--grey);
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--lime);
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr {
    transition: background-color 0.15s var(--ease-out);
}

.data-table tbody tr:hover {
    background: rgba(245, 245, 247, 0.6);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: clamp(40px, 7vw, 72px) 24px;
    text-align: center;
    color: var(--grey);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: var(--space-6);
}

.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 12px;
    border-radius: var(--radius-sm);
    font-size: var(--step--1);
    color: var(--grey);
    border: 1px solid transparent;
}

.pagination a:hover {
    background: var(--lime);
    color: var(--ink);
}

.pagination .is-current {
    background: var(--ink);
    color: var(--white);
}

@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    :root {
        --nav-height: 52px;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }
    .flash-stack {
        right: 12px;
        left: 12px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-nav,
    .site-footer,
    .flash-stack,
    .no-print {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
}
