/* Social landing pages (/links, /subscribe) via Pages/Shared/_BioLayout.cshtml. Standalone: does not use the site theme (style.css).
   Colors follow docs/brand/BRAND_BIBLE.md. Amber is a fill color only, never text. */

:root {
    --bio-navy: #0B4275;
    --bio-blue: #3b82f6;
    --bio-blue-strong: #2563eb;  /* blue-600: white text passes AA on it, #3b82f6 doesn't */
    --bio-blue-deep: #1d4ed8;
    --bio-amber: #f59e0b;

    --bio-bg: #FBF8F3;
    --bio-surface: #ffffff;
    --bio-surface-hover: #f8fafc;
    --bio-border: #e5e1d8;
    --bio-text: #1f2937;
    --bio-muted: #4b5563;
    --bio-icon: var(--bio-blue-strong);
    --bio-icon-bg: #eff6ff;
    --bio-hero-from: #0B4275;
    --bio-hero-to: #1e40af;
    --bio-pinned-bg: #fffbeb;
    --bio-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
    --bio-shadow-hover: 0 2px 4px rgba(15, 23, 42, .08), 0 10px 24px rgba(15, 23, 42, .10);
    --bio-focus: #1d4ed8;

    color-scheme: light;
}

[data-theme="dark"] {
    --bio-bg: #0b1220;
    --bio-surface: #131c2e;
    --bio-surface-hover: #182338;
    --bio-border: #24314a;
    --bio-text: #e5e7eb;
    --bio-muted: #a3acb9;
    --bio-icon: #60a5fa;
    --bio-icon-bg: rgba(96, 165, 250, .12);
    --bio-hero-from: #08305a;
    --bio-hero-to: #0f1d3a;
    --bio-pinned-bg: rgba(245, 158, 11, .10);
    --bio-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --bio-shadow-hover: 0 8px 24px rgba(0, 0, 0, .45);
    --bio-focus: #93c5fd;

    color-scheme: dark;
}

html {
    background: var(--bio-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bio-bg);
    color: var(--bio-text);
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s ease, color .2s ease;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--bio-focus);
    outline-offset: 3px;
}

.bio {
    max-width: 440px;
    margin: 0 auto;
    padding: 0 16px calc(32px + env(safe-area-inset-bottom));
}

/* ---- Hero ------------------------------------------------------------------------------- */

.bio-hero {
    position: relative;
    height: 168px;
    margin: 0 -16px;
    background: linear-gradient(135deg, var(--bio-hero-from), var(--bio-hero-to));
    color: #fff;
    overflow: visible;
}

@media (min-width: 472px) {
    /* Once the column is narrower than the screen, round the hero so it reads as a card */
    .bio-hero {
        margin: 16px 0 0;
        border-radius: 24px;
    }
}

.bio-hero-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, .55);
    border-radius: inherit;
}

.bio-theme-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background-color .15s ease;
}

.bio-theme-toggle:hover {
    background: rgba(255, 255, 255, .22);
}

.bio-icon-light { display: none; }
[data-theme="dark"] .bio-icon-light { display: inline; }
[data-theme="dark"] .bio-icon-dark { display: none; }

.bio-logo {
    position: absolute;
    left: 50%;
    bottom: -56px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--bio-bg);
    box-shadow: 0 8px 24px rgba(11, 66, 117, .25);
}

.bio-logo img {
    width: 84px;
    height: 84px;
}

/* ---- Intro ------------------------------------------------------------------------------ */

.bio-intro {
    padding-top: 68px;
    text-align: center;
}

.bio-name {
    margin: 0;
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 6.4vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--bio-text);
}

.bio-title {
    margin: 12px 0 0;
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 7vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--bio-text);
    text-wrap: balance;
}

.bio-tagline {
    display: inline-block;
    margin: 8px 0 0;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--bio-amber);
    color: #1f2937;
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-weight: 700;
    font-size: .95rem;
}

.bio-blurb {
    max-width: 30ch;
    margin: 12px auto 0;
    color: var(--bio-muted);
    font-size: 1rem;
}

/* ---- Sections and buttons --------------------------------------------------------------- */

.bio-section {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.bio-promos {
    margin-top: 24px;
}

.bio-section-heading {
    margin: 0 0 2px 4px;
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bio-muted);
}

.bio-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 16px 10px 10px;
    border: 1px solid var(--bio-border);
    border-radius: 14px;
    background: var(--bio-surface);
    box-shadow: var(--bio-shadow);
    color: var(--bio-text);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.bio-link:hover,
.bio-link:focus-visible {
    color: var(--bio-text);
    background: var(--bio-surface-hover);
    box-shadow: var(--bio-shadow-hover);
    transform: translateY(-2px);
}

.bio-link:active {
    transform: translateY(0);
}

.bio-link-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bio-icon-bg);
    color: var(--bio-icon);
    font-size: 20px;
}

.bio-link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bio-link-title {
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.25;
}

.bio-link-subtitle {
    margin-top: 2px;
    font-size: .85rem;
    line-height: 1.3;
    color: var(--bio-muted);
}

.bio-link-arrow {
    flex: none;
    font-size: 15px;
    color: var(--bio-muted);
    transition: transform .15s ease;
}

.bio-link:hover .bio-link-arrow {
    transform: translateX(3px);
}

/* Primary: the first everyday link */
.bio-link-primary {
    min-height: 72px;
    border-color: transparent;
    background: linear-gradient(135deg, var(--bio-blue-strong), var(--bio-blue-deep));
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
}

.bio-link-primary:hover,
.bio-link-primary:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, var(--bio-blue-strong), var(--bio-blue-deep));
    box-shadow: 0 10px 26px rgba(37, 99, 235, .45);
}

.bio-link-primary .bio-link-icon {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.bio-link-primary .bio-link-title {
    font-size: 1.2rem;
}

.bio-link-primary .bio-link-subtitle,
.bio-link-primary .bio-link-arrow {
    color: rgba(255, 255, 255, .9);
}

/* Pinned promo: amber edge and tint */
.bio-link-pinned {
    border-color: var(--bio-amber);
    border-left-width: 5px;
    background: var(--bio-pinned-bg);
}

.bio-link-pinned:hover,
.bio-link-pinned:focus-visible {
    background: var(--bio-pinned-bg);
}

.bio-link-pinned .bio-link-icon {
    background: var(--bio-amber);
    color: #1f2937;
}

/* ---- Subscribe page --------------------------------------------------------------------- */

.bio-perks {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bio-perks li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px 10px 10px;
    border: 1px solid var(--bio-border);
    border-radius: 14px;
    background: var(--bio-surface);
    box-shadow: var(--bio-shadow);
    line-height: 1.35;
}

.bio-perks strong {
    font-family: "Source Sans Pro", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

/* The SendPulse embed brings its own light styling, so its card stays light in both themes */
.bio-form-card {
    min-height: 120px;
    padding: 8px;
    border: 1px solid var(--bio-border);
    border-radius: 16px;
    background: #fff;
    color: #1f2937;
    box-shadow: var(--bio-shadow);
    overflow: hidden;
}

.bio-form-fallback {
    margin: 2px 0 0;
    text-align: center;
    font-size: .875rem;
    color: var(--bio-muted);
}

.bio-form-fallback a {
    color: var(--bio-icon);
    font-weight: 500;
}

.bio-promises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bio-promises li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bio-icon-bg);
    color: var(--bio-text);
    font-size: .85rem;
}

.bio-promises i {
    color: var(--bio-icon);
}

/* ---- Footer ----------------------------------------------------------------------------- */

.bio-footer {
    margin-top: 36px;
    text-align: center;
}

.bio-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.bio-social a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--bio-border);
    border-radius: 50%;
    background: var(--bio-surface);
    color: var(--bio-text);
    font-size: 20px;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.bio-social a:hover,
.bio-social a:focus-visible {
    color: var(--bio-icon);
    border-color: var(--bio-icon);
    transform: translateY(-2px);
}

.bio-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin: 20px 0 0;
    font-size: .875rem;
}

.bio-footer-links a {
    display: inline-block;
    padding: 6px 0;
    color: var(--bio-muted);
    text-decoration: none;
}

.bio-footer-links a:hover,
.bio-footer-links a:focus-visible {
    color: var(--bio-text);
    text-decoration: underline;
}

.bio-copyright {
    margin: 8px 0 0;
    font-size: .8rem;
    color: var(--bio-muted);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }

    .bio-link:hover,
    .bio-link:focus-visible,
    .bio-social a:hover,
    .bio-social a:focus-visible,
    .bio-link:hover .bio-link-arrow {
        transform: none;
    }
}
