/* ==========================================================================
   ARC GAMES — Base
   Design System
   ========================================================================== */


/* --------------------------------------------------------------------------
   Box sizing
   -------------------------------------------------------------------------- */

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}


/* --------------------------------------------------------------------------
   Document
   -------------------------------------------------------------------------- */

body {
    min-height: 100vh;
    margin: 0;

    display: flex;
    flex-direction: column;

    background-color: var(--arc-bg);
    color: var(--arc-text);

    font-family: var(--arc-font-main);
    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--arc-space-md);
    color: var(--arc-text);
    font-family: var(--arc-font-heading);
    font-weight: 400;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: var(--arc-space-md);
}

strong,
b {
    font-weight: 700;
}


/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

a {
    color: var(--arc-primary);
    text-decoration: none;
}

a:hover {
    color: var(--arc-primary-light);
}

a:focus-visible {
    outline: 2px solid var(--arc-primary);
    outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   Images / media
   -------------------------------------------------------------------------- */

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}


/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

ul,
ol {
    margin-top: 0;
    margin-bottom: var(--arc-space-md);
}


/* --------------------------------------------------------------------------
   Forms — base only
   -------------------------------------------------------------------------- */

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    max-width: 100%;
}

textarea {
    resize: vertical;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    cursor: pointer;
}


/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--arc-primary);
    outline-offset: 3px;
}

::selection {
    background-color: var(--arc-primary);
    color: var(--arc-bg-dark);
}


/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
}


/* --------------------------------------------------------------------------
   WordPress
   -------------------------------------------------------------------------- */

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    margin-top: var(--arc-space-xs);
    color: var(--arc-text-muted);
    font-size: 0.875rem;
}


/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}