/*
Theme Name: Supernifty
Theme URI: https://supernifty.com
Author: Supernifty
Author URI: https://supernifty.com
Description: A single-page theme for supernifty.com
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
License URI: https://supernifty.com
Text Domain: supernifty
*/

/* ============================================================
   @font-face — Self-hosted Inter
   ============================================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/inter-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/inter-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/oswald-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   CSS Custom Properties
   ============================================================ */

:root {
    --color-bg: #ffffff;
    --color-text: #000000;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #000000;
        --color-text: #ffffff;
    }
}

/* ============================================================
   Reset / Base
   ============================================================ */

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.fonts-loaded {
    opacity: 1;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   Layout
   ============================================================ */

.site-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
}

.site-main > * {
    max-width: 40rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Logo
   ============================================================ */

.site-logo {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 2em;
}

.site-logo svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    fill: #3b82f6;
}

.site-logo-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 54px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 7px;
}

/* ============================================================
   Typography
   ============================================================ */

.site-main p {
    font-size: clamp(1rem, 1.1rem + 0.2vw, 1.2rem);
    font-weight: 400;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 1.5em;
}

.site-main p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Links
   ============================================================ */

.site-main a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    transition: all 250ms ease-in-out;
}

.site-main a:hover {
    color: #ef4444;
    text-decoration: underline;
}
