/*
 * Linktree page ("Link in Bio") — replaces the abandoned EXT:wwlinks.
 *
 * ponytail: plain CSS, not SCSS. This page is standalone and loads none of
 * the site bundle, so routing 70 lines through Vite would buy nothing.
 * Colours match the original wwlinks theme, the hover red is the Outlaw
 * brand colour that used to live in /fileadmin/it/linkliste.css.
 */

/* Ubuntu is the site's display face — used here instead of the "Share"
   webfont wwlinks shipped, so the page stays on brand without new assets. */
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../Fonts/ubuntu-v15-latin-regular.woff2') format('woff2'),
         url('../Fonts/ubuntu-v15-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../Fonts/ubuntu-v15-latin-700.woff2') format('woff2'),
         url('../Fonts/ubuntu-v15-latin-700.woff') format('woff');
}

:root {
    --linktree-text: #eee;
    --linktree-hover: #b41923;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 1.5rem 1rem 3rem;
    min-height: 100%;
    /* solid colour first: the fixed gradient does not paint below the first
       viewport in some rendering paths, this keeps the text readable */
    background-color: #1f1f25;
    background-image: linear-gradient(180deg, #667, #1f1f25);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--linktree-text);
    font-family: 'Ubuntu', Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

a,
a:hover,
a:focus,
a:visited {
    color: var(--linktree-text);
    text-decoration: none;
}

.linktree {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.linktree__logo {
    width: 120px;
    height: auto;
    margin: 0 auto;
}

.linktree__name {
    margin: .75rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* --- social icons ------------------------------------------------------- */

.linktree__social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.linktree__social .socialIcon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-repeat: no-repeat;
    background-size: 100%;
    opacity: .75;
    transition: opacity .15s ease-in-out;
}

.linktree__social .socialIcon:hover,
.linktree__social .socialIcon:focus {
    opacity: 1;
}

.linktree__social .socialIcon#facebook {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg%3E%3Cpath fill='%23FFF' d='M18 0c9.941 0 18 8.059 18 18s-8.059 18-18 18S0 27.941 0 18 8.059 0 18 0zm2.359 8c-2.614 0-4.403 1.657-4.403 4.7v2.622H13v3.555h2.956V28h3.535v-9.123h2.948l.442-3.555h-3.39v-2.27c0-1.03.275-1.731 1.696-1.731L23 11.32V8.14c-.314-.043-1.39-.14-2.641-.14z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.linktree__social .socialIcon#instagram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='36' height='36' viewBox='0 0 36 36'%3E%3Cdefs%3E%3Cpath id='tmldywxlha' d='M0 0L36 0 36 36 0 36z'/%3E%3C/defs%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg%3E%3Cg%3E%3Cpath fill='%23FEFEFE' d='M21.445 18c0 1.903-1.542 3.445-3.445 3.445-1.903 0-3.445-1.542-3.445-3.445 0-1.903 1.542-3.445 3.445-3.445 1.903 0 3.445 1.542 3.445 3.445'/%3E%3Cpath fill='%23FEFEFE' d='M23.517 13.723c-.685 0-1.24-.555-1.24-1.24 0-.685.555-1.24 1.24-1.24.685 0 1.24.555 1.24 1.24 0 .685-.555 1.24-1.24 1.24M18 23.307c-2.931 0-5.308-2.376-5.308-5.307 0-2.931 2.377-5.307 5.308-5.307s5.308 2.376 5.308 5.307c0 2.931-2.377 5.307-5.308 5.307m8.057-11.403c-.165-.449-.43-.855-.773-1.188-.333-.344-.74-.608-1.188-.773-.364-.142-.912-.31-1.92-.356-1.09-.05-1.416-.06-4.176-.06-2.76 0-3.087.01-4.177.06-1.007.046-1.555.214-1.919.356-.449.165-.855.43-1.188.773-.344.333-.608.74-.774 1.188-.141.364-.31.912-.355 1.92-.05 1.09-.06 1.416-.06 4.176 0 2.76.01 3.087.06 4.177.046 1.008.214 1.555.355 1.919.166.45.43.855.773 1.189.334.343.74.607 1.189.773.364.141.912.31 1.92.356 1.09.05 1.416.06 4.176.06 2.76 0 3.087-.01 4.176-.06 1.008-.046 1.556-.215 1.92-.356.901-.348 1.614-1.06 1.961-1.962.142-.364.31-.911.356-1.919.05-1.09.06-1.417.06-4.177s-.01-3.087-.06-4.176c-.046-1.008-.214-1.556-.356-1.92'/%3E%3Cg%3E%3Cmask id='5ncdz9w5sb' fill='%23fff'%3E%3Cuse xlink:href='%23tmldywxlha'/%3E%3C/mask%3E%3Cpath fill='%23FEFEFE' d='M28.274 22.261c-.05 1.1-.225 1.852-.48 2.51-.538 1.388-1.635 2.485-3.024 3.022-.657.256-1.408.43-2.508.48-1.103.05-1.455.063-4.262.063-2.807 0-3.159-.012-4.261-.062-1.1-.05-1.852-.225-2.509-.48-.69-.26-1.315-.667-1.83-1.193-.527-.516-.933-1.141-1.193-1.83-.255-.658-.43-1.41-.48-2.51-.051-1.102-.063-1.454-.063-4.261 0-2.807.012-3.16.062-4.261.05-1.1.225-1.852.48-2.51.26-.69.667-1.314 1.193-1.83.516-.526 1.141-.933 1.83-1.192.658-.256 1.41-.43 2.51-.48 1.102-.05 1.454-.063 4.261-.063 2.807 0 3.16.012 4.261.063 1.1.05 1.852.224 2.51.48.689.259 1.314.666 1.83 1.192.526.517.933 1.14 1.192 1.83.256.658.43 1.41.48 2.51.051 1.102.063 1.454.063 4.261 0 2.807-.012 3.16-.062 4.261M18 0C8.06 0 0 8.06 0 18s8.06 18 18 18 18-8.06 18-18S27.94 0 18 0' mask='url(%235ncdz9w5sb)'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.linktree__social .socialIcon#youtube {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg%3E%3Cpath fill='%23FFF' d='M18 0c9.941 0 18 8.059 18 18s-8.059 18-18 18S0 27.941 0 18 8.059 0 18 0zm0 11h-.247c-1.176.006-6.193.05-7.567.42-.86.232-1.538.914-1.768 1.78-.362 1.36-.41 4.002-.417 4.683v.325c.006.68.055 3.322.417 4.683.23.866.908 1.548 1.768 1.78 1.374.37 6.391.414 7.567.42h.494c1.176-.006 6.193-.05 7.567-.42.86-.232 1.538-.914 1.768-1.78.362-1.361.41-4.002.417-4.683l.001-.152V18.035l-.001-.152c-.006-.68-.055-3.322-.417-4.683-.23-.866-.908-1.548-1.768-1.78-1.374-.37-6.391-.414-7.567-.42H18zm-2.045 4.072l5.227 2.974-5.227 2.973v-5.947z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
}

/* LinkedIn has no icon in the site bundle — drawn to match the others. */
.linktree__social .socialIcon#linkedin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath fill='%23FFF' fill-rule='evenodd' d='M18 0C8.059 0 0 8.059 0 18s8.059 18 18 18 18-8.059 18-18S27.941 0 18 0zm-6.4 27.5h4V14.9h-4v12.6zm2-14.3c-1.3 0-2.2-.9-2.2-2s.9-2 2.2-2 2.2.9 2.2 2-.9 2-2.2 2zM28 27.5h-4v-6.7c0-1.7-.6-2.8-2.1-2.8-1.1 0-1.8.8-2.1 1.5-.1.3-.1.7-.1 1v7h-4s.1-11.4 0-12.6h4v1.8c.5-.8 1.5-2 3.6-2 2.6 0 4.6 1.7 4.6 5.4v7.4z'/%3E%3C/svg%3E");
}

/* --- link tiles --------------------------------------------------------- */

/* One "header" content element = one tile (enforced via page.tsconfig). */
.linktree__links .frame-type-header {
    border: 1px solid var(--linktree-text);
    padding: 0;
    margin: 1rem 0;
    transition: background-color .15s ease-in-out;
}

.linktree__links .frame-type-header h1,
.linktree__links .frame-type-header h2,
.linktree__links .frame-type-header h3,
.linktree__links .frame-type-header h4,
.linktree__links .frame-type-header h5,
.linktree__links .frame-type-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.linktree__links .frame-type-header a {
    display: block;
    padding: 1rem;
}

.linktree__links .frame-type-header:hover,
.linktree__links .frame-type-header:focus-within {
    background-color: var(--linktree-hover);
}

/* Tiles without a link stay readable but must not look clickable. */
.linktree__links .frame-type-header:not(:has(a)) {
    padding: 1rem;
    opacity: .8;
}

.linktree__links .frame-type-header:not(:has(a)):hover {
    background-color: transparent;
}

/* --- a11y --------------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
