/*
 * AnotherSuper LinkStack Theme
 * Editorial dark theme inspired by anothersupersite.com.
 */

:root {
    --as-bg: #09090a;
    --as-panel: rgba(12, 12, 13, 0.42);
    --as-panel-strong: rgba(8, 8, 9, 0.96);
    --as-card: rgba(24, 24, 25, 0.43);
    --as-card-hover: rgba(32, 29, 27, 0.52);
    --as-line: rgba(255, 255, 255, 0.15);
    --as-line-strong: rgba(255, 255, 255, 0.28);
    --as-text: #f4f1ed;
    --as-muted: #bbb6af;
    --as-accent: #e4934e;
    --as-accent-bright: #ffc07b;
    --as-shadow: rgba(0, 0, 0, 0.62);
    --as-focus: rgba(255, 192, 123, 0.42);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 100%;
    background: var(--as-bg);
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--as-text) !important;
    background: var(--as-bg) !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    z-index: -2;
    inset: 0;
    background-color: #111;
    background-image: var(--anothersuper-background);
    background-repeat: no-repeat;
    background-position: 42% center;
    background-size: cover;
    transform: scale(1.01);
}

body::after {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.70) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.36) 100%),
        radial-gradient(circle at 42% 24%, transparent 0 24%, rgba(0, 0, 0, 0.34) 78%, rgba(0, 0, 0, 0.62) 100%);
}

::selection {
    color: #100c09;
    background: var(--as-accent-bright);
}

html body > div.container {
    position: relative !important;
    z-index: 1;
    width: min(620px, calc(100vw - 48px)) !important;
    max-width: 620px !important;
    min-height: 100vh;
    inset-inline: auto !important;
    margin-top: 0 !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    padding: clamp(58px, 7vh, 92px) clamp(30px, 4vw, 54px) 48px !important;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(18, 18, 19, 0.43), rgba(8, 8, 9, 0.48)),
        var(--as-panel);
    border-right: 1px solid var(--as-line);
    border-left: 1px solid var(--as-line);
    box-shadow: 0 0 72px var(--as-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(13px) saturate(0.88);
    -webkit-backdrop-filter: blur(13px) saturate(0.88);
}

html body > div.container::before {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    left: -1px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--as-accent) 24%, var(--as-accent-bright) 52%, var(--as-accent) 76%, transparent 100%);
    box-shadow: 0 0 22px rgba(228, 147, 78, 0.34);
}

/* LinkStack can render utility/footer containers inside the page container.
   They must not inherit the full-screen editorial panel treatment. */
html body > div.container .container {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html body > div.container .container::before,
html body > div.container .container::after {
    content: none !important;
    display: none !important;
}

html body > div.container .container:empty {
    display: none !important;
}

.column,
.columns,
.row {
    width: 100%;
    margin-left: 0;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--as-text);
    font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    text-wrap: balance;
}

h1 {
    position: relative;
    margin: 19px 0 34px;
    padding-bottom: 20px;
    font-size: clamp(2.25rem, 6vw, 3.45rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 68px;
    height: 3px;
    transform: translateX(-50%);
    background: var(--as-accent);
    box-shadow: 0 0 14px rgba(228, 147, 78, 0.38);
}

h2,
h3 {
    margin: 2.25rem 0 1rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

p {
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--as-muted);
}

h1 + p,
html body > div.container > p,
.column > p {
    max-width: 540px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.98rem;
    line-height: 1.65;
}

a {
    color: var(--as-accent-bright);
    text-decoration-color: rgba(255, 192, 123, 0.42);
    text-underline-offset: 0.18em;
}

a:hover {
    color: #ffd19d;
}

.rounded-avatar,
img[alt="avatar"] {
    width: clamp(94px, 18vw, 126px) !important;
    height: clamp(94px, 18vw, 126px) !important;
    max-width: 126px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px !important;
    outline: 7px solid rgba(0, 0, 0, 0.24);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(228, 147, 78, 0.16);
}

.spacing {
    padding: 0 10px;
}

.social-icon-div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 5px 0 27px;
}

.social-icon {
    display: inline-grid !important;
    width: 46px;
    height: 46px;
    padding: 0 !important;
    place-items: center;
    color: #e8e4de !important;
    font-size: 24px !important;
    line-height: 1;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--as-line);
    border-radius: 3px;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.social-icon:hover,
.social-icon:focus-visible {
    color: var(--as-accent-bright) !important;
    background: rgba(228, 147, 78, 0.09);
    border-color: rgba(255, 192, 123, 0.58);
    transform: translateY(-2px);
}

hr {
    width: min(100%, 560px);
    margin: 2.6rem auto;
    border: 0;
    border-top: 1px solid var(--as-line);
}

code {
    padding: 0.18rem 0.42rem;
    color: #ffe1c0;
    background: rgba(228, 147, 78, 0.1);
    border: 1px solid rgba(228, 147, 78, 0.2);
    border-radius: 2px;
}

pre > code {
    display: block;
    overflow-x: auto;
    padding: 1rem 1.2rem;
    white-space: pre;
}

.u-full-width {
    width: 100%;
}

.u-max-full-width {
    max-width: 100%;
}

.u-pull-right {
    float: right;
}

.u-pull-left {
    float: left;
}

.credit-footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.credit-txt,
.credit-txt-clr {
    color: #9e9991 !important;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.credit-icon {
    opacity: 0.62;
    filter: grayscale(1);
}

*:focus-visible {
    outline: 3px solid var(--as-focus) !important;
    outline-offset: 3px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #6f4a2c #171719;
}

*::-webkit-scrollbar {
    width: 9px;
}

*::-webkit-scrollbar-track {
    background: #171719;
}

*::-webkit-scrollbar-thumb {
    background: #6f4a2c;
    border: 2px solid #171719;
    border-radius: 10px;
}

@media (max-width: 900px) {
    body::before {
        background-position: 46% center;
    }

    body::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.66));
    }

    html body > div.container {
        width: min(640px, calc(100% - 30px));
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

@media (max-width: 560px) {
    body::before {
        background-position: 38% center;
    }

    html body > div.container {
        width: 100% !important;
        max-width: none !important;
        min-height: 100svh;
        padding: 50px 18px 36px !important;
        border: 0;
        background: linear-gradient(180deg, rgba(13, 13, 14, 0.80), rgba(7, 7, 8, 0.88));
        box-shadow: none;
        backdrop-filter: blur(11px) saturate(0.84);
        -webkit-backdrop-filter: blur(11px) saturate(0.84);
    }

    h1 {
        margin-top: 17px;
        margin-bottom: 28px;
    }

    h1 + p,
    html body > div.container > p,
    .column > p {
        font-size: 0.94rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
