@font-face
{
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvvYwYL8g.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ── Fountain+ Base Styles ── */

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

/* Reserve scrollbar space so layout doesn't shift between short and tall pages */
html
{
    scrollbar-gutter: stable;
}

/* ── Custom Properties ── */
:root
{
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --color-primary: #fe4f00;
    --color-text: #1a1a1a;
    --color-text-secondary: #555;
    --color-text-muted: #767676;
    --color-link: #0066cc;
    --color-bg: #fff;
    --color-border: #e8e8e8;
    --color-border-light: #ddd;
    --color-surface: #f5f5f5;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e9eaeb;
    --color-gray-300: #d5d7da;
    --color-gray-600: #535862;
    --color-gray-800: #252b37;
    --line-height: 1.6;
    --max-width: 1080px;
    --header-height: 56px;
    --color-green: #22c55e;
    --color-blue: #38bdf8;
    --color-red: #ef4444;
    --color-amber: #f59e0b;
    --color-success: var(--color-green);
    --color-danger: var(--color-red);
    --color-warning: var(--color-amber);
    --color-rejected: var(--color-red);
    --color-okay: var(--color-blue);
    --color-primary-light: color-mix(in srgb, var(--color-primary) 12%, white);
}

/* ── Base ── */
body
{
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: var(--line-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a
{
    color: var(--color-link);
    text-decoration: none;
}

a:hover
{
    text-decoration: underline;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="radio"]:focus-visible,
[tabindex]:focus-visible
{
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}

/* ── Skip-to-Content ── */
.skip-link
{
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-text);
    color: var(--color-bg);
    padding: 8px 16px;
    z-index: 200;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

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

/* ── Visually Hidden (for screen readers) ── */
.sr-only
{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Typography ── */
.content-width
{
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Shared Button Styles ── */

.btn
{
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover
{
    text-decoration: none;
}

.btn-primary
{
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover
{
    background: #e54600;
    box-shadow: 0 2px 8px rgba(254, 79, 0, 0.25);
}

.btn-secondary
{
    background: #fff;
    color: #1a1a1a;
    border: 1px solid var(--color-border);
}

.btn-secondary:hover
{
    background: var(--color-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
