/*
WRYEDGE DIRECT StoreFront
Shared Visual Foundation

Version 1.0.0-alpha4B
*/

:root {
    --surface: #fff;
    --surface-soft: #f5f6f7;
    --surface-cool: #e9edf0;

    --ink: #121a21;
    --ink-2: #26323b;
    --muted: #64717b;

    --line: #dce2e6;
    --dark: #101820;

    --red: #c9202f;
    --red-hover: #a81724;

    --green: #267457;
    --amber: #9a6712;

    --radius: 11px;

    --shadow:
        0 16px 38px
        rgba(18, 26, 33, .09);

    --max: 1440px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    color: var(--ink);
    background: var(--surface);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    -webkit-font-smoothing:
        antialiased;
}


button,
input,
textarea {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color:
        transparent;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    color: inherit;
}


svg {
    display: block;
}


.svg-library {
    position: absolute;

    width: 0;
    height: 0;

    overflow: hidden;
}


.container {
    width:
        min(
            calc(100% - 64px),
            var(--max)
        );

    margin-inline: auto;
}


.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;
}


.skip-link {
    position: fixed;

    z-index: 1000000;

    top: 12px;
    left: 12px;

    padding:
        12px 18px;

    background: white;

    border:
        2px solid
        var(--red);

    transform:
        translateY(-180%);
}


.skip-link:focus {
    transform: none;
}


:focus-visible {
    outline:
        3px solid
        rgba(201, 32, 47, .42);

    outline-offset:
        3px;
}


/*
Shared WRYEDGE DIRECT wordmark.
Used by Header and Footer.
*/

.official-logo {
    min-width: 172px;

    display: inline-flex;
    align-items: baseline;

    gap: 7px;

    line-height: 1;

    white-space: nowrap;
}


.official-logo > span {
    color: var(--ink);

    font-size: 22px;
    font-weight: 900;

    letter-spacing: -.035em;
}


.official-logo > strong {
    color: var(--red);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .28em;
}


/*
Shared content helpers.
*/

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;

    color: var(--red);

    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.text-link {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: var(--ink);

    font-size: 12px;
    font-weight: 800;
}


.text-link svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: var(--red);
    stroke-width: 1.8;
}


.form-status {
    position: absolute;

    top: 46px;
    left: 4px;

    margin: 0;

    color: var(--red);

    font-size: 11px;
    font-weight: 650;
}


.toast {
    position: fixed;

    z-index: 1000;

    right: 24px;
    bottom: 24px;

    max-width: 390px;

    padding:
        14px 18px;

    border-left:
        3px solid
        var(--red);

    border-radius: 7px;

    background: var(--ink);

    box-shadow:
        0 14px 40px
        rgba(0,0,0,.25);

    color: white;

    font-size: 12px;
}


@media (max-width: 1199px) {

    .container {
        width:
            min(
                calc(100% - 48px),
                var(--max)
            );
    }


    .official-logo {
        min-width: 158px;
    }
}


@media (max-width: 920px) {

    .official-logo {
        justify-self: start;
    }
}


@media (max-width: 767px) {

    .container {
        width:
            min(
                calc(100% - 32px),
                var(--max)
            );
    }


    .official-logo {
        min-width: 0;
    }


    .official-logo > span {
        font-size: 17px;
    }


    .official-logo > strong {
        font-size: 8px;
        letter-spacing: .2em;
    }


    .form-status {
        top: 44px;
    }


    .toast {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }
}


@media (max-width: 430px) {

    .drawer-logo > strong,
    .footer-logo > strong {
        display: inline;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;

        transition-duration:
            .01ms !important;
    }
}
