/* ==========================================================================
   Learning Philosophy - long-form article.

   Reading-first layout. One column, generous measure, no sidebars and no
   related-posts rail. The only decoration is the hero artwork and the pull
   quotes, because everything else competes with the sentence you are on.
   ========================================================================== */

.pa {
    --pa-measure: 40rem;
    /* Local aliases only - the values are the site's brand tokens, so the
       articles cannot drift from the rest of the pages again. */
    --pa-ink: var(--uf-text, #f4f4f7);
    --pa-ink-soft: var(--uf-text-dim, rgba(206, 206, 215, 0.66));
    --pa-rule: var(--uf-hairline, rgba(206, 206, 215, 0.14));
    --pa-accent: var(--flow-accent-bright, #8b5cf6);
    background: var(--uf-ink, #0a0a0b);
    color: var(--pa-ink);
}

/* -- Hero ---------------------------------------------------------------- */

.pa-hero {
    position: relative;
    padding: 8rem 1.5rem 3.5rem;
    text-align: left;
    overflow: hidden;
}

.pa-hero__art {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.34;
    filter: saturate(0.75);
}

/* Keeps the type legible over whatever the artwork turns out to be. */
.pa-hero__art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.92) 78%, var(--uf-ink, #0a0a0b) 100%);
}

/* Back to the index — the navbar is gone, so this is the top-of-page way
   out. A bare arrow hanging in the gutter left of the title, centred on its
   first line; ems inherit the title size so it scales with the headline.
   The dock's arrow covers the bottom of the page. */
.pa-back {
    position: absolute;
    /* Centred on the first title line: half a 1.04em line minus half the
       circle. Ems inherit the title size, so it tracks the headline. */
    top: calc(0.52em - 1.375rem);
    left: -0.4em;
    translate: -100% 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #202027;
    color: #e6e6ea;
    text-decoration: none;
    transition: transform 0.35s var(--uf-ease, ease), background 0.35s;
}

.pa-back i { font-size: 1rem; }

.pa-back:hover {
    background: var(--flow-accent, #6c4cf1);
    color: #f4f2ff;
    transform: translateX(-4px);
}

/* No gutter to hang in on narrow screens — flow inline ahead of the first
   word instead. */
@media (max-width: 820px) {
    .pa-back {
        position: static;
        translate: none;
        margin-right: 0.45em;
        vertical-align: middle;
    }
}

.pa-hero__inner {
    position: relative;
    max-width: var(--pa-measure);
    margin: 0 auto;
}

.pa-eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    align-items: center;
    margin: 0 0 1.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--pa-ink-soft);
}

.pa-eyebrow a {
    color: var(--pa-accent);
    text-decoration: none;
}

.pa-eyebrow a:hover { text-decoration: underline; }

.pa-title {
    position: relative; /* anchors .pa-back to the title, not the hero */
    margin: 0 0 1.25rem;
    font-family: var(--flow-display);
    font-weight: 500;
    font-size: clamp(2.3rem, 6vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.pa-dek {
    margin: 0;
    max-width: 34rem;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    line-height: 1.55;
    color: var(--pa-ink-soft);
}

/* -- Body ---------------------------------------------------------------- */

.pa-body {
    max-width: var(--pa-measure);
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
    font-size: 1.12rem;
    line-height: 1.72;
}

.pa-body > p { margin: 0 0 1.5rem; }

.pa-body h2 {
    margin: 3.5rem 0 1.1rem;
    font-family: var(--flow-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pa-body h2 .pa-num {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--uf-sans);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--pa-accent);
}

.pa-body h3 {
    margin: 2.25rem 0 0.8rem;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.pa-body a { color: var(--pa-accent); }

.pa-body ul,
.pa-body ol {
    margin: 0 0 1.5rem;
    padding-left: 1.35rem;
}

.pa-body li { margin-bottom: 0.6rem; }

/* Standfirst paragraph, first thing after the hero. */
.pa-lede {
    font-size: 1.28rem;
    line-height: 1.62;
    color: #d8d7d2;
}

/* -- Pull quote and aside ------------------------------------------------ */

.pa-quote {
    margin: 2.75rem 0;
    padding: 0 0 0 1.4rem;
    border-left: 2px solid var(--pa-accent);
    font-family: var(--flow-display);
    font-weight: 500;
    font-size: clamp(1.25rem, 2.8vw, 1.6rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.pa-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--uf-sans);
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.02em;
    color: var(--pa-ink-soft);
}

/* Used for the concession boxes. The border is the whole signal, so it stays
   quiet rather than turning into a callout card. */
.pa-note {
    margin: 2.5rem 0;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--pa-rule);
    border-radius: var(--flow-radius-sm, 16px);
    background: rgba(255, 255, 255, 0.022);
    font-size: 1.02rem;
    line-height: 1.65;
}

.pa-note strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--pa-ink-soft);
}

.pa-note p:last-child { margin-bottom: 0; }

/* -- References ---------------------------------------------------------- */

.pa-refs {
    max-width: var(--pa-measure);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    border-top: 1px solid var(--pa-rule);
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--pa-ink-soft);
}

.pa-refs h2 {
    margin: 0 0 1.25rem;
    font-family: var(--uf-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pa-ink);
}

.pa-refs ol {
    margin: 0;
    padding-left: 1.2rem;
}

.pa-refs li { margin-bottom: 0.75rem; }

.pa-refs a { color: var(--pa-accent); }

/* The floating dock parks over the bottom of the page, so the footer needs
   enough clearance that the copyright line stays readable behind it. */
.pa .footer { padding-bottom: 7rem; }

/* -- Next ---------------------------------------------------------------- */

.pa-next {
    max-width: var(--pa-measure);
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
}

.pa-next__label {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pa-ink-soft);
}

.pa-next__link {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1.25rem;
    align-items: center;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--pa-rule);
    border-radius: var(--flow-radius-sm, 16px);
    color: var(--pa-ink);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.pa-next__title,
.pa-next__dek {
    grid-column: 1;
}

/* The site puts a circular arrow on every card, so this card gets one too. */
.pa-next__link::after {
    content: '\2192';
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #202027;
    color: #e6e6ea;
    font-size: 1rem;
    transition: transform 0.35s var(--uf-ease, ease), background 0.35s;
}

.pa-next__link:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.06);
}

.pa-next__link:hover::after {
    background: var(--flow-accent, #6c4cf1);
    color: #f4f2ff;
    transform: translateX(4px);
}

.pa-next__title {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--flow-display);
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.pa-next__dek {
    display: block;
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--pa-ink-soft);
}

@media (max-width: 640px) {
    .pa-hero { padding: 6rem 1.25rem 2.5rem; }
    .pa-body { padding: 0 1.25rem 4rem; font-size: 1.06rem; }
    .pa-refs,
    .pa-next { padding-left: 1.25rem; padding-right: 1.25rem; }
}
