/*
Theme Name: DesignTheory
Author: Art Williams
Author URI: https://fearthewild.com
Description: Custom theme built for DesignTheory
Requires at least: 6.1
Tested up to: 6.5
Requires PHP: 5.6
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: designtheory
*/

/* Fonts */
@font-face {
    font-family: 'Founders Grotesk';
    src: url('assets/fonts/founders-grotesk-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Founders Grotesk';
    src: url('assets/fonts/founders-grotesk-regular-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Founders Grotesk';
    src: url('assets/fonts/founders-grotesk-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Founders Grotesk';
    src: url('assets/fonts/founders-grotesk-medium-italic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Founders Grotesk Mono';
    src: url('assets/fonts/founders-grotesk-mono-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
    font-family: 'Founders Grotesk', sans-serif;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

blockquote, q {
    quotes: none;
}

blockquote:after, blockquote:before, q:after, q:before {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Basic */
:root {
    --gutter: clamp(16px, 2.917vw, 42px);
}

body, html {
    font-family: 'Founders Grotesk', sans-serif;
    background: #101010;
    color: #fff;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.screen-reader-text:focus {
    z-index: 100;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    clip: auto;
    background: #fff;
    color: #101010;
}

a {
    color: #fff;
    text-decoration: none;
}

::-webkit-scrollbar {
    margin-left: 10px;
    width: 2px;
    background: 0 0;
}

::-webkit-scrollbar-track {
    background-color: #222;
}

::-webkit-scrollbar-thumb {
    background-color: #fff;
}

/* Landing */
.landing {
    padding: 0 var(--gutter);
}

.landing__media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1358 / 764;
    object-fit: cover;
    background: #1c1c1c;
}

@media (max-width: 599px) {
    .landing__media {
        aspect-ratio: 1 / 1;
    }
}

.landing__heading {
    margin: clamp(28px, 4.444vw, 64px) 0 0;
    font-weight: 400;
    font-size: clamp(44px, 8.333vw, 120px);
    line-height: .75;
    letter-spacing: .03em;
    text-transform: uppercase;
}

@media (max-width: 599px) {
    .landing__heading {
        line-height: .9;
    }
}

.landing__intro {
    max-width: 21em;
    margin: clamp(20px, 3.472vw, 50px) 0 0;
    font-weight: 400;
    font-size: clamp(22px, 2.778vw, 40px);
    line-height: 1.1;
}

@media (min-width: 768px) {
    .landing__intro {
        line-height: 1;
    }
}

/* Custom cursor */
#cursor {
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    pointer-events: none;
    will-change: transform;
    mix-blend-mode: difference;
}

@media (hover:hover) and (pointer:fine) {
    .cursor__circle {
        width: 24px;
        height: 24px;
        margin-top: -50%;
        margin-left: -50%;
        border-radius: 50%;
        background-color: #fff;
        transition: opacity .3s cubic-bezier(.25,  1,  .5,  1), background-color .3s cubic-bezier(.25,  1,  .5,  1), border-color .3s cubic-bezier(.25,  1,  .5,  1), width .3s cubic-bezier(.25,  1,  .5,  1), height .3s cubic-bezier(.25,  1,  .5,  1);
    }

    #cursor.view .cursor__circle {
        width: 64px;
        height: 64px;
    }
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(20px, 3.264vw, 47px) var(--gutter) clamp(24px, 4.514vw, 65px);
}

.site-logo {
    display: block;
    width: clamp(150px, 22.292vw, 321px);
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-contact {
    font-size: clamp(16px, 1.667vw, 24px);
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.site-contact:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Footer */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: clamp(96px, 20.833vw, 300px) var(--gutter) var(--gutter);
}

.site-footer p {
    margin: 0;
}

.site-footer__intro {
    font-family: 'Founders Grotesk Mono', monospace;
    font-size: clamp(14px, 1.667vw, 24px);
    line-height: 1;
}

.site-footer__contact,
.site-footer__contact a {
    font-size: clamp(26px, 4.167vw, 60px);
    line-height: 1;
}

.site-footer__email {
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    text-underline-offset: .1em;
    text-decoration-thickness: from-font;
}

.site-footer__email:hover {
    text-decoration: none;
}

.site-footer__phone:hover {
    text-decoration: underline;
    text-underline-offset: .1em;
    text-decoration-thickness: from-font;
}

@media (min-width: 768px) {
    .site-footer {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 40px 24px;
    }

    .site-footer__intro {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1280px) {
    .site-footer {
        grid-template-columns: 34% 1fr auto;
        gap: 0;
    }

    .site-footer__intro {
        grid-column: auto;
        align-self: start;
        padding-top: .5em;
    }
}

/* Sizes */
h1, h2, h3,
h1 strong, h2 strong, h3 strong {
    font-family: 'Founders Grotesk', sans-serif;
    font-weight: 500;
}

h1 {
    font-weight: 500;
    font-size: 24px;
    text-transform: uppercase;
    margin-block-end: 1.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 32px;
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: 46px;
    }
}

h2 {
    font-weight: 500;
    font-size: 20px;
    text-transform: uppercase;
    margin-block-end: 1.5rem;
}

@media (min-width: 768px) {
    h2 {
        font-size: 26px;
    }
}

@media (min-width: 1200px) {
    h2 {
        font-size: 32px;
    }
}

h3 {
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    margin-block-end: 1.5rem;
}

@media (min-width: 768px) {
    h3 {
        font-size: 22px;
    }
}

@media (min-width: 1200px) {
    h3 {
        font-size: 26px;
    }
}

ul,ol,p {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    margin-block: 1.5rem;
}

ul strong, ol strong, p strong {
    font-weight: 500;
}

@media (min-width: 768px) {
    p {
        font-size: 18px;
    }
}

ul, ol {
    padding-left: 1rem;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

ul li, ol li {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    margin-block: 1rem;
}

@media (min-width: 768px) {
    ul li, ol li {
        font-size: 18px;
    }
}

.wp-block-group p a, .wp-block-group ul li a, .wp-block-group ol li a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.wp-block-group p a:hover, .wp-block-group ul li a:hover, .wp-block-group ol li a:hover {
    text-decoration: none;
}

/* Block groups */
.wp-block-group .is-layout-constrained {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 768px) {
    .wp-block-group .is-layout-constrained {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 1200px) {
    .wp-block-group .is-layout-constrained {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: clamp(36px, 2.926vw, 42px);
    height: clamp(36px, 2.926vw, 42px);
    border: 1.5px solid #fff;
    border-radius: 50%;
    transition: background-color .3s cubic-bezier(.25, 1, .5, 1);
}

.social-icons svg {
    display: block;
    width: 45%;
    height: 45%;
}

.social-icons svg path {
    fill: #fff;
    transition: fill .3s cubic-bezier(.25, 1, .5, 1);
}

.social-icons a:hover {
    background-color: #fff;
}

.social-icons a:hover svg path {
    fill: #101010;
}
