/* AnYu Designs "launching soon" page. Tokens mirror resources/css/app.css (--color-brand-*). */

@font-face {
    font-family: "Alegreya SC";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/alegreya-sc-400-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Alegreya SC";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/alegreya-sc-700-latin.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --brand-text: #6c5546;
    --brand-text-soft: #7a6658;
    --brand-bg: #f3ecda;
    --brand-accent: #c885d1;
    --brand-border: #e1c4e5;
    --brand-secondary: #bee5b0;
    --surface: #fffdf8;
    --font-heading: "Alegreya SC", Georgia, serif;
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--brand-bg);
    background-image: radial-gradient(
        circle at 1px 1px,
        color-mix(in srgb, var(--brand-border) 70%, transparent) 1px,
        transparent 0
    );
    background-size: 20px 20px;
    color: var(--brand-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* Butterfly dots (assets/butterflies.js): redraws the body's dot grid, behind the content. */
.butterfly-field {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding-block: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-bottom));
    padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

.card {
    position: relative;
    width: 100%;
    max-width: 34rem;
    padding: 1.5rem 1.25rem 1.75rem;
    background: var(--surface);
    border: 2px solid var(--brand-border);
    border-radius: 1rem;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-text) 10%, transparent);
    text-align: center;
    animation: rise 600ms ease-out both;
}

/* Stitched inner seam, as on the storefront's .stitched-border */
.card::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1.5px dashed var(--brand-accent);
    border-radius: 0.7rem;
    pointer-events: none;
}

.logo {
    display: block;
    width: min(15rem, 70%);
    height: auto;
    margin: -0.5rem auto -0.75rem;
}

h1,
h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

.lang p {
    margin: 0 auto;
    max-width: 28rem;
}

.lang + .lang,
.stitch + .lang {
    margin-top: 0;
}

.stitch {
    position: relative;
    height: 2px;
    margin: 1.5rem auto;
    max-width: 16rem;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--brand-border) 20%,
        var(--brand-text) 50%,
        var(--brand-border) 80%,
        transparent 100%
    );
}

.stitch span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.75rem;
    height: 0.75rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(45deg, var(--brand-border), var(--brand-secondary));
    border: 1px solid var(--brand-text);
}

/* Vinted shop link: stitched pill in the brand colours */
.vinted {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin: 1.75rem auto 0;
    padding: 0.75rem 1.25rem 0.75rem 1rem;
    color: var(--brand-text);
    text-align: left;
    text-decoration: none;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-border) 55%, var(--surface)), color-mix(in srgb, var(--brand-secondary) 45%, var(--surface)));
    border: 2px solid var(--brand-border);
    border-radius: 999px;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-accent) 22%, transparent);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.vinted::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1.5px dashed color-mix(in srgb, var(--brand-accent) 70%, transparent);
    border-radius: 999px;
    pointer-events: none;
}

.vinted:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-accent) 32%, transparent);
}

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

.vinted-icon {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    color: var(--brand-text);
    background: var(--surface);
    border: 1.5px solid var(--brand-border);
    border-radius: 50%;
}

.vinted-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.vinted-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.vinted-sub {
    font-size: 0.85rem;
    color: var(--brand-text-soft);
}

.vinted-arrow {
    flex: none;
    transition: transform 200ms ease;
}

.vinted:hover .vinted-arrow {
    transform: translate(2px, -2px);
}

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

.contact {
    margin: 1.75rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.contact-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.5rem;
    color: var(--brand-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--brand-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
    border-radius: 0.5rem;
}

.contact a:hover {
    text-decoration-color: var(--brand-text);
}

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

.footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--brand-text-soft);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 40rem) {
    .card {
        padding: 2rem 2.5rem 2.25rem;
    }

    h1 {
        font-size: 2.125rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .lang p {
        font-size: 1.0625rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card {
        animation: none;
    }

    .vinted,
    .vinted-arrow {
        transition: none;
    }

    .vinted:hover,
    .vinted:hover .vinted-arrow {
        transform: none;
    }
}
