/* PORTAL VOICE (main-site preview, 10-27). Clement: "apply the aesthetic changes we did in the preview on everything within
   the preview site, including the portal, sign up, everywhere. So we can see how it'll all look before deployment."

   The voice the homepage took after the OT tech call of 10-26 (Granola aaf1d50b). Jacob: "stick to our font"; "make sure
   our fonts match all the way down as well as our buttons"; "we have to be careful on the gold we use". site-discipline.css
   sections 28 to 30 give it to the public pages; this file gives the same to the portal and its sign-in pages:

   1. Titles in Helvetica Neue, the accent word in Newsreader italic (bronze on light, champagne in the dark theme).
   2. Labels in the homepage's Helvetica label voice instead of mono. Numbers and instrument readings keep their type.
   3. Jacob's palette in place of the brand yellow (#FEBB00): honey for fills, champagne for light gold, bronze for deep.

   Loaded last by portal/layout.blade.php and the three sign-in pages. Every title selector below is one the portal's own
   files set to Fraunces (listed 10-27 from od.css, ot-type.css and twelve portal-assets files), so nothing else moves.
   :not(#ot-0) lifts a rule past the page rules that carry an id, without an id in the markup. */

/* html:root outranks a page's own :root block, wherever it sits */
html:root,
html body .portal-setup:not(#ot-0) {
    --ot-ink: #17130e;
    --ot-cream: #f7f1e6;
    --ot-champagne: #ebddb8;
    --ot-honey: #d8bc7e;
    --ot-bronze: #7a5e2c;
    --gold: #d8bc7e;
    --gold-light: #ebddb8;
    --deep: #7a5e2c;
    --p-gold: #d8bc7e;
    --p-gold-light: #ebddb8;
    --p-deep: #7a5e2c;
    --p-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* the sign-in pages carry their own copies */
html body.portal-entry:not(#ot-0) {
    --gold: #d8bc7e;
    --deep: #7a5e2c;
}

/* 1. Titles */
html
    body
    :is(
        h1,
        h2,
        .h1,
        .h2,
        .display,
        .page-title,
        .sec-title,
        .cal-h,
        .p-h1,
        .p-kicker:not(.ps-qlabel),
        .pi-page__h,
        .pe-title,
        .hh-card__title,
        .hh-ed__title,
        .lh-title,
        .la-title,
        .draw-overview-title,
        .draw-order-title,
        .booking-heading,
        .booking-time-date,
        .ps-sheet__title,
        .pdp-title,
        .ty-title,
        .serif-close,
        .idea-location-review h3,
        .idea-other-records > summary,
        #ps-draw-saved-when
    ):not(#ot-0) {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-optical-sizing: auto;
}
/* the page title as the homepage hero sets its headline: light, tight */
html body :is(.page-title, .p-h1, .portal-entry h1):not(#ot-0) {
    font-weight: 300 !important;
    letter-spacing: -0.03em !important;
}
/* section titles as the homepage sets its section heads */
html body :is(.sec-title, .cal-h, main h2):not(#ot-0) {
    letter-spacing: -0.015em !important;
}

/* the accent word: Newsreader italic, as in "Own Your Health." */
html
    body
    :is(
        h1,
        h2,
        .h1,
        .h2,
        .page-title,
        .sec-title,
        .p-h1,
        .pi-page__h,
        .pdp-title,
        .ty-title,
        .lh-title,
        .la-title
    )
    :is(em, i):not(#ot-0) {
    font-family: "Newsreader", Georgia, serif !important;
    font-style: italic !important;
    font-weight: 300 !important;
    font-size: 1.06em;
    letter-spacing: -0.02em !important;
    color: var(--ot-bronze) !important;
}
:root[data-theme="dark"]
    body
    :is(
        h1,
        h2,
        .h1,
        .h2,
        .page-title,
        .sec-title,
        .p-h1,
        .pi-page__h,
        .pdp-title,
        .ty-title,
        .lh-title,
        .la-title
    )
    :is(em, i):not(#ot-0) {
    color: var(--ot-champagne) !important;
}

/* 2. Labels: the homepage's label voice (Helvetica 500, wide tracking, capitals). Colour stays each page's own. The list
   is every capitalised mono label found on 23 portal pages on 10-27; readings (values, units, counts, ranks) stay mono,
   and so does the printed type on the membership pass, which is drawn as a card. */
html
    body
    :is(
        .eyebrow,
        .lh-eyebrow,
        .mito__kicker,
        .p-kicker.ps-qlabel,
        .count-lab,
        .tt-optag,
        .tt-day,
        .labs-count__cadence,
        .last-draw,
        .sys-sum,
        .m-raw,
        .mx-label,
        .tp-tag,
        .ben-used,
        .pm-count,
        .price-alt,
        .mb-next,
        .pp-name,
        .pp-chip,
        .pf-k--label,
        .pf-badge,
        .nd-bar__lab,
        .cp-call__k,
        .portal-day-wd,
        .ad-soon,
        .sc-flag,
        .sc-brand,
        .vs-price__per,
        .vs-anchor__lab, .portal-entry .kick, .tdy-tag, .nd-bar__due, .idea-history-detail h3, .sc-f legend, .prow-more > summary, .gen-points li,
        .per):not(#ot-0):not(.mpass *) {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.18em !important;
}

/* the tier name on the membership pass: the homepage's plan name voice instead of Fraunces */
html body .mpass__name b:not(#ot-0) {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 500 !important;
}
