/*
Theme Name: Sandrift Studio
Theme URI: https://sandriftgames.com/
Author: Sandrift Games
Description: The approved one-page Sandrift Games mobile studio design, with self-hosted artwork and fonts. Independent classic theme; no page builder required for the homepage.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: sandrift-studio
Tags: one-column, custom-background, featured-images
*/

/* The bundled font files cover the Latin character set used by this site. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --sg-navy: #07111f;
  --sg-navy-soft: #0d1b2b;
  --sg-cream: #fbf6ec;
  --sg-paper: #fffdf8;
  --sg-ink: #191816;
  --sg-muted: #66645f;
  --sg-orange: #f26322;
  --sg-orange-dark: #d8480b;
  --sg-cyan: #23badb;
  --sg-line-dark: rgba(255, 255, 255, .11);
  --sg-line-light: rgba(25, 24, 22, .12);
  --sg-shadow: 0 28px 80px rgba(1, 8, 17, .22);
  --sg-radius-lg: 36px;
  --sg-radius-md: 24px;
}

.sandrift-site * { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.sandrift-theme {
  margin: 0;
  color: var(--sg-ink);
  background: var(--sg-cream);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sandrift-site a { color: inherit; text-decoration: none; }
.sandrift-site img { display: block; max-width: 100%; }

.sandrift-site .sg-wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.sandrift-site .sg-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 19px 0;
}

.sandrift-site .sg-nav .sg-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sandrift-site .sg-brand {
  display: flex;
  align-items: center;
  min-height: 58px;
}

.sandrift-site .sg-brand img {
  width: 142px;
  height: 74px;
  object-fit: contain;
  object-position: center;
}

.sandrift-site .sg-nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  font-weight: 600;
}

.sandrift-site .sg-nav-links a { transition: color .2s ease; }
.sandrift-site .sg-nav-links a:hover { color: white; }

.sandrift-site .sg-nav-links .sg-nav-contact {
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: white;
}

.sandrift-site .sg-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 83% 20%, rgba(35, 186, 219, .19), transparent 27%),
    radial-gradient(circle at 16% 80%, rgba(242, 99, 34, .18), transparent 32%),
    var(--sg-navy);
}

.sandrift-site .sg-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -180px;
  height: 330px;
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  background: var(--sg-cream);
  transform: rotate(-3deg);
  transform-origin: center;
}

.sandrift-site .sg-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 78px;
  min-height: 700px;
  padding: 122px 0 105px;
}

.sandrift-site .sg-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  color: #8ae5f8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sandrift-site h1, .sandrift-site h2, .sandrift-site h3, .sandrift-site p { margin-top: 0; }

.sandrift-site h1, .sandrift-site h2, .sandrift-site h3 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -.04em;
}

.sandrift-site h1 {
  max-width: 710px;
  margin-bottom: 24px;
  font-size: clamp(52px, 5.7vw, 76px);
  line-height: .99;
}

.sandrift-site h1 span { color: var(--sg-orange); }

.sandrift-site .sg-hero-copy > p {
  max-width: 600px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .70);
  font-size: 18px;
  line-height: 1.7;
}

.sandrift-site .sg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.sandrift-site .sg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.sandrift-site .sg-button:hover { transform: translateY(-2px); }

.sandrift-site .sg-button-primary {
  color: white;
  background: var(--sg-orange);
  box-shadow: 0 12px 30px rgba(242, 99, 34, .24);
}

.sandrift-site .sg-button-primary:hover { background: #ff7433; }

.sandrift-site .sg-button-quiet {
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--sg-line-dark);
}

.sandrift-site .sg-art-stage {
  position: relative;
  width: min(100%, 470px);
  justify-self: end;
}

.sandrift-site .sg-art-stage::before, .sandrift-site .sg-art-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.sandrift-site .sg-art-stage::before {
  width: 92px;
  height: 92px;
  top: -28px;
  right: -25px;
  background: var(--sg-cyan);
  opacity: .24;
}

.sandrift-site .sg-art-stage::after {
  width: 66px;
  height: 66px;
  bottom: 32px;
  left: -28px;
  background: var(--sg-orange);
  opacity: .28;
}

.sandrift-site .sg-art-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 40px;
  background: rgba(255, 255, 255, .06);
  box-shadow: var(--sg-shadow);
  transform: rotate(2deg);
}

.sandrift-site .sg-art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 29px;
}

.sandrift-site .sg-status-note {
  position: absolute;
  z-index: 3;
  right: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 999px;
  color: var(--sg-ink);
  background: white;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .22);
  font-size: 13px;
  font-weight: 700;
  transform: rotate(-3deg);
}

.sandrift-site .sg-status-note i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ccc78;
  box-shadow: 0 0 0 4px rgba(76, 204, 120, .16);
}

.sandrift-site .sg-proof-strip {
  position: relative;
  z-index: 3;
  margin-top: -18px;
}

.sandrift-site .sg-proof-strip .sg-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--sg-line-light);
  border-radius: 24px;
  background: var(--sg-paper);
  box-shadow: 0 18px 48px rgba(49, 38, 22, .08);
}

.sandrift-site .sg-proof {
  padding: 23px 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.sandrift-site .sg-proof + .sg-proof { border-left: 1px solid var(--sg-line-light); }
.sandrift-site .sg-proof span { color: var(--sg-orange-dark); }

.sandrift-site section { position: relative; }

.sandrift-site .sg-games {
  padding: 118px 0 124px;
  background: var(--sg-cream);
}

.sandrift-site .sg-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.sandrift-site .sg-eyebrow {
  margin-bottom: 12px;
  color: var(--sg-orange-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.sandrift-site h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.06;
}

.sandrift-site .sg-section-heading > p {
  max-width: 390px;
  margin: 0 0 5px;
  color: var(--sg-muted);
  line-height: 1.7;
}

.sandrift-site .sg-game-card {
  display: grid;
  grid-template-columns: 1fr .92fr;
  overflow: hidden;
  min-height: 530px;
  border-radius: var(--sg-radius-lg);
  color: white;
  background: var(--sg-navy-soft);
  box-shadow: 0 30px 80px rgba(8, 17, 31, .16);
}

.sandrift-site .sg-game-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 68px;
}

.sandrift-site .sg-game-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin-bottom: 30px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #9ce9f8;
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sandrift-site .sg-game-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sg-orange);
}

.sandrift-site .sg-game-copy h3 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
}

.sandrift-site .sg-game-copy > p {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .69);
  font-size: 17px;
  line-height: 1.75;
}

.sandrift-site .sg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sandrift-site .sg-tag {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .075);
  font-size: 12px;
  font-weight: 600;
}

.sandrift-site .sg-game-art {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #1d0907;
}

.sandrift-site .sg-game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sg-navy-soft) 0%, transparent 21%);
}

.sandrift-site .sg-game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sandrift-site .sg-studio {
  overflow: hidden;
  padding: 128px 0;
  color: white;
  background:
    radial-gradient(circle at 85% 10%, rgba(35, 186, 219, .13), transparent 30%),
    var(--sg-navy);
}

.sandrift-site .sg-studio-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 95px;
  align-items: center;
}

.sandrift-site .sg-studio h2 { margin-bottom: 27px; }

.sandrift-site .sg-studio-copy > p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 18px;
  line-height: 1.8;
}

.sandrift-site .sg-studio .sg-eyebrow { color: #8ae5f8; }

.sandrift-site .sg-facts {
  overflow: hidden;
  border: 1px solid var(--sg-line-dark);
  border-radius: var(--sg-radius-md);
  background: rgba(255, 255, 255, .045);
}

.sandrift-site .sg-fact {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 25px;
}

.sandrift-site .sg-fact + .sg-fact { border-top: 1px solid var(--sg-line-dark); }

.sandrift-site .sg-fact small {
  color: rgba(255, 255, 255, .42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sandrift-site .sg-fact strong { font-size: 15px; }

.sandrift-site .sg-contact {
  padding: 94px 0;
  background: var(--sg-orange);
}

.sandrift-site .sg-contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}

.sandrift-site .sg-contact .sg-eyebrow { color: rgba(25, 24, 22, .62); }

.sandrift-site .sg-contact h2 {
  max-width: 780px;
  margin-bottom: 18px;
}

.sandrift-site .sg-contact p {
  max-width: 650px;
  margin: 0;
  color: rgba(25, 24, 22, .69);
  font-size: 17px;
  line-height: 1.65;
}

.sandrift-site .sg-email-button {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 25px;
  border-radius: 999px;
  color: white;
  background: var(--sg-navy);
  box-shadow: 0 16px 34px rgba(7, 17, 31, .18);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s ease;
}

.sandrift-site .sg-email-button:hover { transform: translateY(-2px); }

.sandrift-site .sg-footer {
  color: rgba(255, 255, 255, .55);
  background: var(--sg-navy);
}

.sandrift-site .sg-footer .sg-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  font-size: 12px;
}

.sandrift-site .sg-footer strong { color: rgba(255, 255, 255, .82); }

@media (max-width: 920px) {
  .sandrift-site .sg-hero-grid, .sandrift-site .sg-studio-grid { grid-template-columns: 1fr; }

  .sandrift-site .sg-hero-grid {
    gap: 35px;
    padding-top: 150px;
    text-align: center;
  }

  .sandrift-site .sg-hero-copy { display: grid; justify-items: center; }
  .sandrift-site .sg-hero-copy > p { max-width: 650px; }
  .sandrift-site .sg-art-stage { width: min(76vw, 440px); justify-self: center; }

  .sandrift-site .sg-game-card { grid-template-columns: 1fr; }
  .sandrift-site .sg-game-copy { padding: 54px; }
  .sandrift-site .sg-game-art { min-height: 440px; }
  .sandrift-site .sg-game-art::after { background: linear-gradient(180deg, var(--sg-navy-soft) 0%, transparent 18%); }

  .sandrift-site .sg-studio-grid { gap: 52px; }
  .sandrift-site .sg-contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .sandrift-site .sg-email-button { justify-self: start; }
}

@media (max-width: 680px) {
  .sandrift-site .sg-wrap { width: min(100% - 30px, 1160px); }
  .sandrift-site .sg-nav { padding-top: 9px; }
  .sandrift-site .sg-brand img { width: 116px; }
  .sandrift-site .sg-nav-links a:not(.sg-nav-contact) { display: none; }
  .sandrift-site .sg-nav-links .sg-nav-contact { padding: 9px 15px; }

  .sandrift-site .sg-hero { min-height: auto; }
  .sandrift-site .sg-hero-grid { min-height: auto; padding: 132px 0 115px; }
  .sandrift-site h1 { font-size: clamp(44px, 13vw, 58px); }
  .sandrift-site .sg-hero-copy > p { font-size: 16px; }
  .sandrift-site .sg-actions { justify-content: center; }
  .sandrift-site .sg-art-stage { width: min(86vw, 390px); }
  .sandrift-site .sg-status-note { right: -5px; bottom: 15px; }

  .sandrift-site .sg-proof-strip .sg-wrap { grid-template-columns: 1fr; }
  .sandrift-site .sg-proof { padding: 17px 20px; }
  .sandrift-site .sg-proof + .sg-proof { border-top: 1px solid var(--sg-line-light); border-left: 0; }

  .sandrift-site .sg-games { padding: 86px 0 90px; }
  .sandrift-site .sg-section-heading { display: block; margin-bottom: 32px; }
  .sandrift-site .sg-section-heading > p { margin-top: 19px; }
  .sandrift-site .sg-game-card { border-radius: 27px; }
  .sandrift-site .sg-game-copy { padding: 39px 28px 44px; }
  .sandrift-site .sg-game-art { min-height: 360px; }

  .sandrift-site .sg-studio { padding: 90px 0; }
  .sandrift-site .sg-studio-copy > p { font-size: 16px; }
  .sandrift-site .sg-fact { grid-template-columns: 82px 1fr; padding: 19px 18px; }

  .sandrift-site .sg-contact { padding: 74px 0; }
  .sandrift-site .sg-email-button { width: 100%; justify-content: center; }

  .sandrift-site .sg-footer .sg-wrap {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 0;
  }
}

/* WordPress integration and keyboard accessibility. */
.sandrift-site {
  position: relative;
  isolation: isolate;
  font-size: 16px;
  line-height: normal;
}

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

.sandrift-site h1,
.sandrift-site h2,
.sandrift-site h3 {
  color: inherit;
  font-weight: 700;
  font-style: normal;
  text-transform: none;
}

.sandrift-site a:focus-visible {
  outline: 3px solid var(--sg-cyan);
  outline-offset: 5px;
}

.sandrift-site .sg-skip-link {
  position: absolute;
  inset: 12px auto auto 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--sg-navy);
  background: var(--sg-paper);
  font-weight: 700;
  transform: translateY(-180%);
}

.sandrift-site .sg-skip-link:focus {
  transform: translateY(0);
}

/* Keep previous WordPress pages reachable, without changing their content. */
body.sandrift-theme:not(.home) .sg-nav {
  position: relative;
  background: var(--sg-navy);
}

.sandrift-site .sg-content-page {
  min-height: 60vh;
  padding-block: 76px;
}

.sandrift-site .sg-content-page h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 28px;
}

.sandrift-site .sg-content-entry {
  margin-bottom: 48px;
}

.sandrift-site .sg-content-entry h2 {
  margin-bottom: 24px;
}

.sandrift-site .sg-entry-content {
  overflow-wrap: anywhere;
  line-height: 1.75;
}

.sandrift-site .sg-entry-content a:not(.elementor-button) {
  color: var(--sg-orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sandrift-site .sg-entry-content img {
  height: auto;
}

.sandrift-site .sg-entry-content iframe,
.sandrift-site .sg-entry-content video {
  max-width: 100%;
}

.sandrift-site .sg-content-page p,
.sandrift-site .sg-entry-content p {
  margin-bottom: 1.25em;
}

.sandrift-site .pagination a,
.sandrift-site .pagination span {
  display: inline-block;
  padding: 10px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sandrift-site *,
  .sandrift-site *::before,
  .sandrift-site *::after {
    transition: none;
    animation: none;
  }
}

@media (max-width: 360px) {
  .sandrift-site .sg-status-note {
    right: 0;
    padding-inline: 13px;
    font-size: 12px;
  }
}
