/* ==========================================================================
   Tech Duchess re-skin — loads after style.css and wins the cascade.
   Locked palette (sharpened 02):
     Violet   #28083E  brand spine        Magenta #B8005E  the single raised voice
     Charcoal #1A1525  secondary base     Cream   #F8F4FF  text on dark
     Lilac    #C77DFF  decorative only
   Supporting: violet-deep #190428, violet-darker #110319,
   cream alphas .65/.4/.18/.08, magenta glow rgba(184,0,94,.45)
   Faces: Playfair Display (display/wordmark), Inter (body), ui-monospace (labels)
   ========================================================================== */

:root {
    --td-violet: #28083E;
    --td-violet-deep: #190428;
    --td-violet-darker: #110319;
    --td-charcoal: #1A1525;
    --td-magenta: #B8005E;
    --td-cream: #F8F4FF;
    --td-lilac: #C77DFF;
    --td-cream-mute: rgba(248, 244, 255, 0.65);
    --td-cream-dim: rgba(248, 244, 255, 0.4);
    --td-cream-faint: rgba(248, 244, 255, 0.18);
    --td-line: rgba(248, 244, 255, 0.08);
    --td-magenta-glow: rgba(184, 0, 94, 0.45);
    --td-font-display: 'Playfair Display', Georgia, serif;
    --td-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --td-font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

    /* Template token overrides */
    --color-primary: var(--td-magenta);
    --color-primary-alt: rgba(184, 0, 94, 0.85);
    --color-primary-2nd: var(--td-magenta);
    --color-primary-3rd: var(--td-lilac);
    --color-primary-4th: var(--td-lilac);
    --color-secondary: var(--td-violet-darker);
    --color-gray: var(--td-cream-mute);
    --color-gray-2: var(--td-charcoal);
    --color-subtitle: var(--td-lilac);
    --background-color-1: rgba(40, 8, 62, 0.34);
    --background-color-2: var(--td-violet-darker);
    --background-color-3: var(--td-violet-deep);
    --background-color-4: var(--td-violet);
    --color-card: var(--td-violet-deep);
    --gradient-box: linear-gradient(to right, var(--td-violet), var(--td-magenta));
    --gradient-one: linear-gradient(to right bottom, var(--td-magenta), var(--td-violet));
    --gradient-two: linear-gradient(to right, var(--td-magenta), var(--td-violet));
    --gradient-three: linear-gradient(to right, var(--td-violet-darker), var(--td-violet));
    --text-gradient-one: linear-gradient(to right, var(--td-magenta), var(--td-lilac));
    --color-heading: var(--td-cream);
    --color-body: var(--td-cream-mute);
    --color-dark: var(--td-charcoal);
    --color-text-1: var(--td-cream);
    --color-border-white: var(--td-cream-faint);

    --font-primary: var(--td-font-display);
    --font-secondary: var(--td-font-body);
}

/* --------------------------------------------------------------------------
   Base surfaces & type
   -------------------------------------------------------------------------- */
body {
    background: var(--td-violet-darker);
    font-family: var(--td-font-body);
}

h1, h2, h3, h4, .title {
    font-family: var(--td-font-display);
    font-weight: 500;
}

/* Editorial register: no gamer-caps on big titles */
.section-head .title,
.edu-title,
.portfolio-card-title {
    text-transform: none;
    letter-spacing: 0;
}

/* Small section markers keep the mono-cap treatment: full-opacity, real weight */
.custom-title {
    font-family: var(--td-font-mono);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--td-lilac);
}

/* Magenta accents inside big titles */
.td-title-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--td-magenta);
}

/* --------------------------------------------------------------------------
   Wordmark (locked): "Tech" Playfair 500 roman cream, "Duchess" italic 400 magenta.
   Never underline, shadow, gradient or stretch.
   -------------------------------------------------------------------------- */
.td-banner-wordmark,
.td-card-wordmark,
.td-footer-wordmark a {
    font-family: var(--td-font-display);
    font-weight: 500;
    font-style: normal;
    color: var(--td-cream);
    text-decoration: none;
}

.td-banner-wordmark em,
.td-card-wordmark em,
.td-footer-wordmark a em {
    font-style: italic;
    font-weight: 400;
    color: var(--td-magenta);
}

/* --------------------------------------------------------------------------
   Banner: brand treatment (placeholder until a hero photo exists)
   -------------------------------------------------------------------------- */
.tmp-breadcrumb-image {
    height: 440px;
    overflow: hidden;
    /* template ships z-index:-1, which makes anything inside unclickable
       (the 404 page puts a button in the banner) */
    z-index: 0;
}

.bg_image--2 {
    background-image:
        radial-gradient(ellipse 65% 80% at 78% 30%, var(--td-magenta-glow), transparent 62%),
        radial-gradient(ellipse 50% 70% at 15% 85%, rgba(199, 125, 255, 0.16), transparent 60%),
        linear-gradient(160deg, var(--td-violet) 0%, var(--td-violet-deep) 55%, var(--td-violet-darker) 100%);
    background-size: cover;
}

.td-banner-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.td-banner-eyebrow {
    font-family: var(--td-font-mono);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--td-lilac);
    margin-bottom: 18px;
}

.td-banner-wordmark {
    font-size: clamp(52px, 8vw, 96px);
    line-height: 1.05;
    margin-bottom: 20px;
}

.td-banner-frame {
    font-family: var(--td-font-display);
    font-style: italic;
    font-size: 17px;
    color: var(--td-cream-mute);
    letter-spacing: 0.06em;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Profile card
   -------------------------------------------------------------------------- */
.td-card-wordmark {
    font-size: 30px;
}

.tmp-contact-about-inner .subtitle {
    font-family: var(--td-font-mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--td-lilac);
}

.tmp-contact-about-inner .info-box .phone,
.tmp-contact-about-inner .info-box .mail {
    font-family: var(--td-font-body);
    overflow-wrap: anywhere;
    font-size: 14px;
}

.tmp-contact-about-inner .button-area-banner-one .btn-text {
    white-space: nowrap;
}

/* Portrait tile: the photo, clean. No ring — the brand's magenta avatar ring
   is specced for platforms that crop avatars to a circle; on a square web tile
   it just draws a circle across her face (Duchess flagged it 2026-08-20).
   Violet base shows behind the photo while the image loads. */
.td-portrait-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--td-violet) 0%, var(--td-violet-darker) 100%);
    overflow: hidden;
}

.td-portrait-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* --------------------------------------------------------------------------
   Tabs, buttons, small components
   -------------------------------------------------------------------------- */
.tab-navigation-button .nav-link.tmp-nav {
    font-family: var(--td-font-mono);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

/* Theme tabs: Light / Dark / System segmented pill (21st.dev theme-tabs,
   ported to the brand). The track whispers; the sliding pill is violet;
   only the active icon gets full-opacity cream. */
.td-theme-tabs-item {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.td-theme-tabs {
    position: relative;
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--td-cream-faint);
    border-radius: 999px;
    background: rgba(26, 21, 37, 0.45);
}

.td-theme-tabs__pill {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--td-violet);
    border: 1px solid rgba(199, 125, 255, 0.35);
    pointer-events: none;
}

.td-theme-tabs.is-ready .td-theme-tabs__pill {
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.4, 1);
}

.td-theme-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--td-cream-dim);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.td-theme-tab:hover {
    color: var(--td-lilac);
}

.td-theme-tab[aria-checked="true"] {
    color: var(--td-cream);
}

.progress-charts .heading {
    font-family: var(--td-font-mono);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--td-cream);
}

.td-rotation-footnote {
    margin-top: 28px;
    font-family: var(--td-font-display);
    font-style: italic;
    font-size: 15px;
    color: var(--td-cream-dim);
}

.counter-para {
    color: var(--td-cream-mute);
}

/* --------------------------------------------------------------------------
   Platform tiles (Watch tab): brand tiles instead of stock imagery
   -------------------------------------------------------------------------- */
.td-platform-tile {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 26px 30px;
    background:
        radial-gradient(ellipse 75% 90% at 80% 15%, rgba(184, 0, 94, 0.28), transparent 58%),
        linear-gradient(150deg, var(--td-violet) 0%, var(--td-violet-deep) 60%, var(--td-charcoal) 100%);
    border: 1px solid var(--td-line);
}

.td-platform-tile i {
    font-size: 42px;
    color: var(--td-cream);
    opacity: 0.92;
}

.td-tile-twitch i { color: var(--td-lilac); }

.tmp-portfolio .portfoli-card-para {
    font-family: var(--td-font-mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--td-lilac);
    text-transform: none;
}

/* --------------------------------------------------------------------------
   Contact card
   -------------------------------------------------------------------------- */
.td-contact-card {
    background: var(--td-violet-deep);
    border: 1px solid var(--td-line);
    border-radius: 14px;
    padding: 40px;
}

.td-contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--td-line);
}

.td-contact-row:last-of-type {
    border-bottom: none;
}

.td-contact-label {
    flex: 0 0 140px;
    font-family: var(--td-font-mono);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--td-lilac);
}

.td-contact-value {
    font-size: 17px;
    color: var(--td-cream);
    text-decoration: none;
}

a.td-contact-value:hover {
    color: var(--td-lilac);
}

.td-contact-socials a {
    color: var(--td-cream-mute);
    font-size: 19px;
    margin-right: 16px;
    transition: color 0.2s;
}

.td-contact-socials a:hover {
    color: var(--td-lilac);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.td-footer-wordmark a {
    font-size: 34px;
}

.td-footer-tagline {
    margin-top: 14px;
    font-family: var(--td-font-display);
    font-style: italic;
    font-size: 16px;
    color: var(--td-cream-dim);
    letter-spacing: 0.04em;
}

.td-footer-tagline em {
    font-style: italic;
}

.tmp-footer-area .description {
    color: var(--td-cream-dim);
}

/* ==========================================================================
   Light mode — brand treatment 3: Violet + Magenta on Cream.
   Rides the template's own .tmp-white-version switch.
   ========================================================================== */
body.tmp-white-version {
    --color-heading: var(--td-violet);
    --color-body: #5c4a70;
    --color-card: #ffffff;
    --color-secondary: var(--td-cream);
    --background-color-2: var(--td-cream);
    --background-color-3: #f1eafc;
    --background-color-4: #ece2fa;
    --color-border-white: rgba(40, 8, 62, 0.14);
    --td-line: rgba(40, 8, 62, 0.1);
    --td-cream-mute: #5c4a70;
    --td-cream-dim: #8a7a9c;
    --td-cream-faint: rgba(40, 8, 62, 0.16);
    background: var(--td-cream);
}

body.tmp-white-version .td-banner-wordmark,
body.tmp-white-version .td-card-wordmark,
body.tmp-white-version .td-footer-wordmark a {
    color: var(--td-cream);            /* banner stays violet-dark in light mode */
}

body.tmp-white-version .td-card-wordmark {
    color: var(--td-violet);
}

body.tmp-white-version .td-footer-wordmark a {
    color: var(--td-violet);
}

body.tmp-white-version .custom-title {
    color: #8b40c9;                    /* lilac deepened for contrast on cream */
}

body.tmp-white-version .progress-charts .heading {
    color: var(--td-violet);
}

body.tmp-white-version .td-contact-card {
    background: #ffffff;
    border-color: rgba(40, 8, 62, 0.1);
}

body.tmp-white-version .td-contact-value {
    color: var(--td-violet);
}

body.tmp-white-version .td-theme-tabs {
    background: rgba(40, 8, 62, 0.05);
    border-color: rgba(40, 8, 62, 0.18);
}

body.tmp-white-version .td-theme-tab {
    color: rgba(40, 8, 62, 0.45);
}

body.tmp-white-version .td-theme-tab:hover {
    color: var(--td-violet);
}

body.tmp-white-version .td-theme-tab[aria-checked="true"] {
    color: var(--td-cream);
}

/* --------------------------------------------------------------------------
   Restraint pass: magenta is ONE voice per surface.
   Icon chips go violet with lilac icons; the CTA keeps the heat.
   -------------------------------------------------------------------------- */
.about-us-card .card-head .logo-img {
    background: linear-gradient(150deg, var(--td-violet) 0%, var(--td-violet-deep) 100%) !important;
    border: 1px solid var(--td-cream-faint);
}

.about-us-card .card-head .logo-img i {
    color: var(--td-lilac) !important;
}

/* Rotation bars: lilac by default; only the favourite raises its voice */
.progress-charts .progress-bar {
    background: var(--td-lilac);
}

.td-bar-favourite .progress-bar {
    background: var(--td-magenta);
}

/* Platform cards: the template reveals text on hover only; these are doors,
   so the label stays visible (and reachable on touch) */
.tmp-portfolio .portfolio-card-content-wrap {
    opacity: 1;
    pointer-events: inherit;
    bottom: 18px;
    background: rgba(17, 3, 25, 0.72);
    border: 1px solid var(--td-line);
    border-radius: 10px;
    padding: 10px 16px;
    backdrop-filter: blur(4px);
}

.tmp-portfolio .portfolio-card-title {
    font-size: 18px;
    margin-bottom: 0;
}

.tmp-portfolio .portfoli-card-para {
    margin-bottom: 2px;
}

body.tmp-white-version .tmp-portfolio .portfolio-card-content-wrap {
    background: rgba(248, 244, 255, 0.85);
}

/* Social marks keep their own brand colours so they are recognised at a
   glance. Deliberate exception to the palette discipline: these are other
   people's marks, not our decoration. Each network sets its own tokens;
   one rule spends them, so adding a network means adding one line.
   TikTok and Threads are black-brand, so on our dark surface their glyph
   stays cream (that IS their own dark-mode treatment). */
.td-social--twitch    { --td-net: #A970FF; --td-net-solid: #9146FF; --td-net-on: #fff;     --td-net-tint: rgba(145, 70, 255, 0.16); }
.td-social--youtube   { --td-net: #FF4E45; --td-net-solid: #FF0000; --td-net-on: #fff;     --td-net-tint: rgba(255, 0, 0, 0.16); }
.td-social--instagram { --td-net: #F35C8E; --td-net-solid: #D6249F; --td-net-on: #fff;     --td-net-tint: rgba(225, 48, 108, 0.16); }
.td-social--tiktok    { --td-net: #F8F4FF; --td-net-solid: #25F4EE; --td-net-on: #010101;  --td-net-tint: rgba(37, 244, 238, 0.14); }
.td-social--threads   { --td-net: #F8F4FF; --td-net-solid: #F8F4FF; --td-net-on: #110319;  --td-net-tint: rgba(248, 244, 255, 0.10); }
.td-social--facebook  { --td-net: #4E92F7; --td-net-solid: #1877F2; --td-net-on: #fff;     --td-net-tint: rgba(24, 119, 242, 0.16); }
.td-social--patreon   { --td-net: #FF6B73; --td-net-solid: #FF424D; --td-net-on: #fff;     --td-net-tint: rgba(255, 66, 77, 0.16); }

.social-link a.td-social,
.td-contact-socials a.td-social {
    color: var(--td-net) !important;
    background-color: var(--td-net-tint) !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* The template slides a magenta disc in on hover; the brand colour is the
   hover state here instead. */
.social-link a.td-social::after,
.td-contact-socials a.td-social::after {
    display: none;
}

.social-link a.td-social:hover,
.td-contact-socials a.td-social:hover {
    color: var(--td-net-on) !important;
    background-color: var(--td-net-solid) !important;
}

/* Instagram's mark is a gradient, not a flat colour. */
.social-link a.td-social--instagram:hover,
.td-contact-socials a.td-social--instagram:hover {
    background-image: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}

/* Light mode: pale-brand glyphs go to their true colour so they stay
   legible on cream, and the black-brand marks go properly black. */
body.tmp-white-version .td-social--twitch    { --td-net: #9146FF; }
body.tmp-white-version .td-social--youtube   { --td-net: #E60000; }
body.tmp-white-version .td-social--instagram { --td-net: #D6249F; }
body.tmp-white-version .td-social--facebook  { --td-net: #1877F2; }
body.tmp-white-version .td-social--patreon   { --td-net: #E8323C; }
body.tmp-white-version .td-social--tiktok    { --td-net: #121212; --td-net-tint: rgba(37, 244, 238, 0.22); }
body.tmp-white-version .td-social--threads   { --td-net: #121212; --td-net-tint: rgba(40, 8, 62, 0.08); }

/* Tablet and mobile: keep the template's tight banner so the profile card
   sits high (its photo is the hero on a phone, not the gradient). The
   wordmark scales down to fit the visible band above the card, and the
   schedule line drops on phones because the card repeats it anyway. */
@media (max-width: 1199px) {
    .tmp-breadcrumb-image {
        height: 400px;
    }

    .td-banner-inner {
        justify-content: flex-start;
        padding-top: 52px;
    }

    .td-banner-eyebrow {
        font-size: 11px;
        letter-spacing: 0.24em;
        margin-bottom: 12px;
    }
}

@media (max-width: 767px) {
    .tmp-breadcrumb-image {
        height: 300px;
    }

    .td-banner-inner {
        padding-top: 22px;
    }

    .td-banner-eyebrow {
        font-size: 10px;
        letter-spacing: 0.2em;
        margin-bottom: 8px;
    }

    .td-banner-wordmark {
        font-size: 34px;
        margin-bottom: 0;
    }

    .td-banner-frame {
        display: none;
    }

    .td-monogram {
        font-size: 84px;
    }

    .td-contact-label {
        flex-basis: 100%;
    }

    /* Seven marks on one row: a wrapped single chip reads as a mistake. */
    .social-link {
        gap: 6px;
    }

    .social-link a.td-social {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}
