/* Beacon web styles.
   Palette + type mirror the Beacon app (BeaconUI): #0C0C0C background,
   ITC Garamond Narrow Light display, PP Neue Montreal body, Geist Mono labels.
   Layout restraint follows the Ascend Studio site: quiet fixed wordmark,
   centered narrow measures, minimal ornamentation. */

@font-face {
    font-family: 'Garamond Narrow ITC';
    src: url('/fonts/GaramondNarrowITC-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Garamond Narrow ITC';
    src: url('/fonts/GaramondNarrowITC-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('/fonts/PPNeueMontreal-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('/fonts/PPNeueMontreal-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('/fonts/GeistMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* BeaconUI tokens */
    --bg-primary: #0C0C0C;
    --bg-secondary: #121212;
    --bg-tertiary: #1C1C1C;
    --bg-inverse: #EDEDED;
    --fg-primary: #F1F1F1;
    --fg-secondary: #A0A0A0;
    --fg-tertiary: #878787;
    --fg-inverse: #0B0B0B;
    --border-primary: #343434;
    --light-100: rgba(255, 255, 255, 0.08);
    --light-200: rgba(255, 255, 255, 0.16);

    --font-serif: 'Garamond Narrow ITC', 'Iowan Old Style', Georgia, serif;
    --font-sans: 'PP Neue Montreal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--fg-primary);
    min-height: 100vh;
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
}

::selection { background-color: rgba(255, 255, 255, 0.2); }

/* Wordmark, fixed top-left like the Ascend site */
.wordmark {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 28px;
    line-height: 1.2;
    color: var(--fg-tertiary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.wordmark:hover { color: var(--fg-primary); }

/* App-style inverse pill button */
.btn {
    display: inline-block;
    background: var(--bg-inverse);
    color: var(--fg-inverse);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 9999px;
    transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.9; }

/* App icon image */
.app-icon {
    border-radius: 22.5%;
    box-shadow: 0 0 0 1px var(--light-100);
    display: block;
}

/* Article pages (privacy / terms / support): centered narrow column */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 112px 20px 128px;
}

.article { max-width: 576px; width: 100%; }

.article h1 {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 300;
    line-height: 1.15;
    color: var(--fg-primary);
    margin-bottom: 8px;
}

.article .meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-tertiary);
    margin-bottom: 48px;
}

.article .body {
    font-size: 16px;
    color: var(--fg-secondary);
    line-height: 1.625;
}

.article .body > * + * { margin-top: 32px; }

.article section > * + * { margin-top: 16px; }

.article h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 300;
    color: var(--fg-primary);
    margin-bottom: 16px;
}

.article h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--fg-primary);
    margin-bottom: 8px;
}

.article strong, .article .lead-in { font-weight: 500; color: var(--fg-primary); }

.article a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s ease; }
.article a:hover { color: var(--fg-primary); }

.article ul { padding-left: 20px; }
.article li + li { margin-top: 8px; }

/* Card surface matching the app's tertiary background + hairline stroke */
.article .notice {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 24px;
    font-size: 14px;
    color: var(--fg-secondary);
    line-height: 1.625;
}

.article .notice .notice-title { font-weight: 500; color: var(--fg-primary); margin-bottom: 8px; }

.article .legal-caps { text-transform: uppercase; font-size: 14px; line-height: 1.625; }

.article .footnote {
    padding-top: 16px;
    border-top: 1px solid var(--light-100);
    font-size: 14px;
    color: var(--fg-tertiary);
}

.article .footnote a:hover { color: var(--fg-secondary); }
