:root {
    color-scheme: light;
    --paper: #f5f4ee;
    --paper-deep: #ebe9df;
    --ink: #171b18;
    --muted: #73776e;
    --line: #d9d8cf;
    --lime: #d4f45b;
    --lime-dark: #b6d943;
    --violet: #7359e8;
    --error: #a53d33;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    margin: 0;
    padding: 0 5.2vw;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(#222820 0.55px, transparent 0.55px);
    background-size: 8px 8px;
    content: "";
    opacity: 0.045;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--violet);
}

a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 4px;
}

button,
input {
    font: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 1240px);
    min-height: 98px;
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.07em;
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand img {
    display: block;
    border-radius: 12px;
}

.brand-dot {
    color: var(--violet);
}

.site-header nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
}

.site-header nav a,
.footer-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.site-header nav a:not(.button):hover,
.footer-links a:hover {
    text-decoration: underline;
    text-underline-offset: 0.35em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    min-height: 54px;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: var(--lime);
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--lime-dark);
    color: var(--ink);
}

.button-small {
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    gap: 0.55rem;
    font-size: 0.86rem;
}

main {
    width: min(100%, 1240px);
    margin: 0 auto;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 2rem;
    min-height: min(690px, 74vw);
    padding: 5.4rem 0 5.8rem;
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.3rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.status-dot,
.window-dots i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #79b447;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    letter-spacing: -0.055em;
}

h1 {
    max-width: 700px;
    margin-bottom: 1.35rem;
    font-size: clamp(4rem, 7.6vw, 7.15rem);
    font-weight: 600;
    line-height: 0.96;
}

h1 span {
    position: relative;
    display: inline-block;
    z-index: 0;
    white-space: nowrap;
}

h1 span::after {
    position: absolute;
    z-index: -1;
    right: -0.08em;
    bottom: 0.05em;
    left: -0.06em;
    height: 0.32em;
    background: var(--lime);
    content: "";
    transform: rotate(-1.6deg);
}

.hero-description {
    max-width: 510px;
    margin-bottom: 1.65rem;
    color: #555b53;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.75;
}

code {
    padding: 0.12em 0.35em;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #eeede6;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.88em;
}

.hero-note {
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: 0.81rem;
}

.hero-note span {
    padding: 0 0.4rem;
    color: var(--violet);
}

.hero-art {
    position: relative;
    display: grid;
    min-height: 390px;
    place-items: center;
    isolation: isolate;
}

.orbit {
    position: absolute;
    z-index: -1;
    width: min(34vw, 430px);
    aspect-ratio: 1;
    border: 1px solid #d5d3c8;
    border-radius: 50%;
}

.orbit-one {
    transform: rotate(-18deg) scaleY(0.7);
}

.orbit-two {
    transform: rotate(38deg) scaleY(0.7);
}

.link-card {
    width: min(100%, 460px);
    border: 1px solid var(--ink);
    border-radius: 10px;
    background: #fffef9;
    box-shadow: 10px 12px 0 var(--ink);
    transform: rotate(2.2deg);
}

.link-card-top,
.link-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.2rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.link-card-top {
    border-bottom: 1px solid var(--line);
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots i {
    width: 7px;
    height: 7px;
    background: #d2d1c7;
}

.window-dots i:first-child {
    background: #ec8270;
}

.window-dots i:nth-child(2) {
    background: #e7c84d;
}

.window-dots i:nth-child(3) {
    background: #8cbe68;
}

.link-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.65rem 1.3rem;
}

.link-card-content img {
    border-radius: 14px;
    box-shadow: 0 5px 16px rgb(23 27 24 / 12%);
}

.link-card-content p {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 1.5vw, 1.16rem);
}

.link-card-content strong {
    font-weight: 500;
}

.link-card-content p span {
    color: var(--muted);
}

.card-arrow {
    display: grid;
    width: 38px;
    height: 38px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--lime);
    font-size: 1.2rem;
    place-items: center;
}

.link-card-bottom {
    border-top: 1px solid var(--line);
    color: #777a72;
    font-size: 0.55rem;
}

.orbit-label {
    position: absolute;
    color: #777a72;
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.08em;
}

.label-top {
    top: 8%;
    right: 3%;
    transform: rotate(8deg);
}

.label-bottom {
    bottom: 7%;
    left: 2%;
    transform: rotate(-7deg);
}

.section-panel {
    padding: 5.8rem 0;
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 2.1rem;
}

.section-heading .eyebrow {
    margin-bottom: 0.8rem;
    color: var(--violet);
}

h2 {
    margin-bottom: 0.55rem;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.08;
}

.section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.search-box {
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 0 1.2rem;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: #fffef9;
    box-shadow: 4px 4px 0 var(--ink);
    font-family: var(--font-mono);
    font-size: clamp(0.88rem, 1.8vw, 1.1rem);
}

.search-prefix {
    color: #a0a197;
}

.search-box input {
    min-width: 40px;
    flex: 1;
    padding: 0.8rem 0.25rem 0.8rem 0.5rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: inherit;
}

.search-box input:focus-visible {
    outline: 0;
}

.search-box:focus-within {
    outline: 3px solid var(--violet);
    outline-offset: 4px;
}

.search-box input::placeholder {
    color: #b0b0a7;
}

.search-suffix {
    color: #777a72;
}

.search-mark {
    display: grid;
    width: 32px;
    height: 32px;
    margin-left: 1rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: #8b8d84;
    place-items: center;
}

.search-hint {
    margin: 0.95rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.search-results:empty {
    display: none;
}

.result-card,
.result-message {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 100%;
    margin: 1.25rem 0 0;
    padding: 1rem 1.15rem;
    border: 1px solid #b5ce76;
    border-radius: 5px;
    background: #edf5d5;
    color: var(--ink);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--paper-deep);
}

.result-card p {
    margin: 0;
}

.result-card a,
.result-available a {
    color: #4331a6;
    font-weight: 700;
}

.result-indicator {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--lime);
    font-weight: 700;
    place-items: center;
}

.result-error {
    border-color: #e0b3ad;
    background: #f8e9e6;
}

.result-error .result-indicator {
    background: #efc8c2;
}

.hidden {
    display: none !important;
}

.how {
    padding-bottom: 6.2rem;
}

.how .section-heading {
    max-width: 800px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 2.5rem;
}

.step {
    min-height: 235px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgb(255 254 249 / 64%);
}

.step-number {
    display: inline-block;
    margin-bottom: 1.9rem;
    color: var(--violet);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.step h3 {
    margin-bottom: 0.6rem;
    font-size: 1.45rem;
    font-weight: 600;
}

.step p {
    margin: 0;
    color: #666b63;
    font-size: 0.93rem;
}

.step p a {
    text-decoration-color: var(--violet);
    text-decoration-thickness: 2px;
}

.closing-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    margin: 5.5rem 0;
    padding: clamp(2rem, 5vw, 4.5rem);
    border-radius: 9px;
    background: var(--ink);
    color: var(--paper);
}

.closing-banner .eyebrow {
    color: #bdc0b7;
}

.closing-banner h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5rem);
}

.button-light {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    border-color: var(--lime);
}

.banner-mark {
    position: absolute;
    right: 19%;
    bottom: -0.82em;
    color: rgb(212 244 91 / 9%);
    font-family: var(--font-display);
    font-size: clamp(12rem, 28vw, 29rem);
    font-weight: 500;
    line-height: 1;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(100%, 1240px);
    min-height: 110px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.footer-brand {
    font-size: 1.05rem;
}

.site-footer > p {
    margin: 0;
    color: #52574f;
    font-size: 0.84rem;
}

.site-footer > p span {
    margin-left: 0.75rem;
    color: var(--muted);
}

.footer-links {
    gap: 1.25rem;
}

.footer-links a {
    font-size: 0.83rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

::selection {
    background: var(--lime);
    color: var(--ink);
}

@media (max-width: 900px) {
    body {
        padding: 0 4vw;
    }

    .hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
        padding: 4.5rem 0;
    }

    h1 {
        font-size: clamp(3.6rem, 8vw, 5.6rem);
    }

    .hero-art {
        min-height: 320px;
    }

    .steps {
        gap: 0.75rem;
    }

    .step {
        padding: 1.1rem;
    }

    .closing-banner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0 1.2rem;
    }

    .site-header {
        min-height: 76px;
    }

    .brand {
        gap: 0.5rem;
        font-size: 1.08rem;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .site-header nav {
        gap: 0.9rem;
    }

    .site-header nav a:not(.button) {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 4.3rem 0 3.2rem;
    }

    .hero-art {
        min-height: 300px;
        margin: 0 0.4rem;
    }

    .orbit {
        width: min(74vw, 370px);
    }

    .link-card {
        width: min(91%, 420px);
        box-shadow: 7px 8px 0 var(--ink);
    }

    .section-panel {
        padding: 4.2rem 0;
    }

    .search-box {
        min-height: 66px;
        padding: 0 0.8rem;
        font-size: 0.83rem;
    }

    .search-mark {
        display: none;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        min-height: 0;
        padding: 1.25rem;
    }

    .step-number {
        margin-bottom: 0.9rem;
    }

    .closing-banner {
        gap: 1.75rem;
        margin: 3.8rem 0;
    }

    .site-footer {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 1.5rem 0;
    }

    .site-footer > p {
        order: 3;
        width: 100%;
    }

    .footer-links {
        gap: 0.75rem;
    }
}

@media (max-width: 390px) {
    .search-prefix {
        display: none;
    }

    .search-box input {
        padding-left: 0;
    }

    .search-suffix {
        font-size: 0.76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
