/*
Theme Name: SpatioTemporal Research
Theme URI: https://research.spatiotemporal.ai/
Author: SpatioTemporal
Author URI: https://spatiotemporal.ai/
Description: Minimal research theme for SpatioTemporal long-form theses.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: spatiotemporal-research
*/

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

html,
body {
    margin: 0;
    min-height: 100%;
}

html,
body,
button,
input,
textarea,
select {
    font-family: "greycliff-cf", "roboto-sans", sans-serif;
    font-weight: 300;
    font-style: normal;
}

body {
    color: rgba(255, 255, 255, 0.88);
    background: #853a32;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
	background-image: url("https://spatiotemporal.ai/SpatioTemporal_Background_v2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

html.home,
body.home {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}



a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
}

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

.site-nav {
	position: fixed;
	top: 24px;
	right: 28px;
	z-index: 100;
	display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.site-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-nav a:hover {
    color: rgba(255, 255, 255, 0.96);
}

.site-nav span {
    color: rgba(255, 255, 255, 0.38);
}

.research-index {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: visible;
	margin-bottom: 300px;
}

.research-index::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
}

.research-index__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(100%, 1200px);
    min-height: 100svh;
    height: auto;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 64px);
}

.research-index__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(20px, 4vh, 42px);
    width: min(860px, 100%);
    margin: 0 auto;
    padding-top: 48px;
}

.research-index__header {
    text-align: center;
	margin-bottom: 100px;
}

.research-index__header h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.96);
}

.research-index__header p {
    width: min(760px, 100%);
    margin: 0 auto;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.research-list__image {
	width: min(100%, 420px);
    margin: 0 auto 18px;
}

.research-list__image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.research-list {
    max-height: min(45svh, 430px);
    overflow: visible;
}

.research-list__item {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.research-list__item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.research-list__item a {
    display: block;
	padding: clamp(36px, 2.2vh, 36px) 0;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.research-list__meta,
.research-post__meta {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.research-list__item h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.8vw, 2.35rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.94);
}

.research-list__item a:hover h2 {
    color: #fff;
}

.research-list__excerpt {
    margin: 0 auto;
    width: min(660px, 100%);
    font-size: clamp(14px, 1.7vw, 17px);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75);
}

.research-post {
    box-sizing: border-box;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 32px 24px 96px;
    font-size: 18px;
    line-height: 1.65;
}

.research-post .site-nav {
    margin-bottom: clamp(64px, 11vw, 112px);
}

.research-post__header {
    margin-bottom: 44px;
}

.research-post__header h1 {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.96);
}

.research-post__content > * {
    margin-top: 0;
    margin-bottom: 28px;
}

.research-post__content p,
.research-post__content li {
    color: rgba(255, 255, 255, 0.82);
}

.research-post__content h2,
.research-post__content h3,
.research-post__content h4 {
    margin-top: 56px;
    margin-bottom: 18px;
    font-weight: 700;
    line-height: 1;
2    letter-spacing: -0.025em;
    color: rgba(255, 255, 255, 0.94);
}

.research-post__content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
	margin-top: 150px;
}

.research-post__content h3 {
    font-size: clamp(1.45rem, 3.5vw, 2.2rem);
}

.research-post__content h4 {
    font-size: 1.2rem;
}

.research-post__content figure.alignwide img,
.research-post__content figure.alignfull img {
    display: block;
    width: 100%;
    height: auto;
}

.research-post__content .alignwide {
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.research-post__content .alignfull {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.research-post__content ul,
.research-post__content ol {
    padding-left: 1.25em;
}

.research-post__content li {
    margin-bottom: 10px;
}

.research-post__content blockquote {
    margin: 48px 0;
    padding-left: 28px;
    border-left: 2px solid rgba(255, 255, 255, 0.45);
}

.research-post__content blockquote p {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.94);
}

.research-post__content figure {
    margin-right: 0;
    margin-left: 0;
}

.research-post__content figcaption,
.wp-caption-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
	text-align: center;
}

.research-post__content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.research-post__content pre {
    overflow-x: auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    white-space: pre;
}

.research-post__content pre code {
    font-size: 15px;
    line-height: 1.55;
}

.research-post__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.research-post__content th,
.research-post__content td {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
}

.research-post__content hr {
    margin: 56px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.research-post__footer {
    margin-top: 72px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.66);
	margin-bottom: 200px;
}

.research-post__footer p {
    margin: 0 0 12px;
}

.research-post__footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.research-post__footer a:hover {
    color: #fff;
}

@media (max-width: 720px) {
    body.home {
        background-attachment: scroll;
    }

    .site-nav {
        justify-content: flex-start;
        font-size: 11px;
    }

    .research-index__content {
        padding: 22px 18px;
    }

    .research-index__body {
        gap: 18px;
        padding-top: 32px;
    }

    .research-list {
        max-height: 42svh;
    }

    .research-list__excerpt {
        display: none;
    }

    .research-list__meta {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .research-list__item h2 {
        margin-bottom: 0;
    }

    .research-post {
        padding: 24px 20px 80px;
        font-size: 17px;
        line-height: 1.62;
    }
}

@media (max-height: 720px) {
    .research-index__header p,
    .research-list__excerpt {
        display: none;
    }

    .research-index__body {
        gap: 16px;
    }
}
