/* MyLynx retirement page. Tokens borrowed from the hack.tez design system. */

@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/space-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/space-mono-latin-700-normal.woff2") format("woff2");
}

:root {
    --font: "Space Mono", "Courier New", monospace;
    --bg: #000000;
    --bg-2: #0d0d0d;
    --fg: #ffffff;
    --fg-2: rgba(255, 255, 255, 0.8);
    --fg-3: #aaaaaa;
    --border: rgba(255, 255, 255, 0.1);
    --border-2: rgba(255, 255, 255, 0.32);
    --warn: #ffd166;
    --warn-bg: rgba(255, 209, 102, 0.08);
    --err: #ff6b6b;
    --accent: #00ffc8;
    --scan: rgba(255, 255, 255, 0.025);
    color-scheme: dark;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f5f5f0;
        --bg-2: #ebebeb;
        --fg: #000000;
        --fg-2: rgba(0, 0, 0, 0.7);
        --fg-3: #636363;
        --border: rgba(0, 0, 0, 0.1);
        --border-2: rgba(0, 0, 0, 0.3);
        --warn: #92400e;
        --warn-bg: rgba(146, 64, 14, 0.07);
        --err: #b91c1c;
        --accent: #0b6b5d; /* darker than hack.tez so it clears 4.5:1 on --bg-2 */
        --scan: rgba(0, 0, 0, 0.03);
        color-scheme: light;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    font-weight: 700;
    background-image: repeating-linear-gradient(to bottom, var(--scan) 0 1px, transparent 1px 4px);
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.dim {
    color: var(--fg-3);
}

/* --- bar ---------------------------------------------------- */
.bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem clamp(1rem, 5vw, 3rem);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bar {
    border-bottom: 1px solid var(--border);
}

.wordmark {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.bar-link {
    text-decoration: none;
    border: 1px solid var(--border-2);
    padding: 0.4rem 0.75rem;
}

.bar-link:hover {
    border-color: var(--fg);
}

/* --- hero -------------------------------------------------- */
.hero {
    flex: 1;
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;
    padding: clamp(3rem, 10vh, 6rem) 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--warn);
    background: var(--warn-bg);
    color: var(--warn);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tag-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: currentColor;
}

.title {
    margin-top: 2rem;
    font-size: clamp(3rem, 15vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-weight: 700;
    display: inline-flex;
    align-items: flex-start;
}

.title s {
    position: relative;
    text-decoration: none;
}

.title s::after {
    content: "";
    position: absolute;
    left: -0.04em;
    right: -0.04em;
    top: 50%;
    height: 0.08em;
    background: var(--err);
    transform: translateY(-50%);
}

.star {
    color: var(--fg-3);
    font-size: 0.6em;
    line-height: 1;
    margin-right: 0.05em;
}

.rule {
    width: 8rem;
    border: 0;
    border-top: 1px solid var(--border-2);
    margin: 2rem 0;
}

.lead {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.copy {
    margin-top: 1rem;
    color: var(--fg-2);
    font-weight: 400;
}

/* --- next -------------------------------------------------- */
.next {
    margin-top: 3.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.next-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.cta {
    margin-top: 1.25rem;
    display: inline-block;
    max-width: 100%;
    padding: 1rem 1.5rem;
    background: var(--fg);
    color: var(--bg);
    border: 1px solid var(--fg);
    text-decoration: none;
    font-size: clamp(0.9rem, 3.2vw, 1.15rem);
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

.cta:hover {
    background: transparent;
    color: var(--fg);
}

.cta-name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.perks {
    list-style: none;
    margin-top: 2.5rem;
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg-2);
    text-align: left;
    font-size: 0.85rem;
    font-weight: 400;
}

.perks li {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--fg-2);
}

.perks li + li {
    border-top: 1px solid var(--border);
}

.k {
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    padding-top: 0.1rem;
}

.k::before {
    content: "> ";
    color: var(--fg-3);
}

@media (max-width: 30rem) {
    .perks li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* --- footer (hack.tez style) --------------------------------- */
.foot {
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: var(--fg-3);
}

.fafolab {
    color: var(--fg-3);
    text-decoration: none;
    transition: color 0.15s;
}

.fafolab del {
    text-decoration-color: var(--fg-2);
    text-decoration-thickness: 1px;
}

.fafolab:hover {
    color: var(--fg);
}
