/*
Theme Name: Most Secret Club Landing Page
Theme URI: https://mostsecretclub.com/
Author: Most Secret Club
Description: A lightweight, responsive single-page WordPress theme for Most Secret Club. Designed to keep the complete landing-page content visible within the browser viewport on desktop and mobile.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: most-secret-club
*/

:root {
  --msc-bg: #020202;
  --msc-gold: #e2bd69;
  --msc-gold-soft: #b9954b;
  --msc-text: #f5eddc;
  --msc-muted: #cfc3aa;
  --msc-pad-x: clamp(18px, 4vw, 64px);
  --msc-pad-y: clamp(14px, 3.5vh, 42px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--msc-bg);
}

html {
  background: var(--msc-bg);
}

body {
  color: var(--msc-text);
  font-family: Georgia, "Times New Roman", Times, serif;
  overflow-x: hidden;
}

body.msc-landing-page {
  background:
    radial-gradient(circle at 50% 42%, rgba(205, 162, 74, 0.075), transparent 35%),
    var(--msc-bg);
}

.msc-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--msc-pad-y) var(--msc-pad-x);
  overflow: hidden;
}

body.admin-bar .msc-page {
  min-height: calc(100svh - 32px);
  height: calc(100dvh - 32px);
}

.msc-stage {
  width: min(100%, 980px);
  height: 100%;
  max-height: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.7vh, 18px);
  text-align: center;
}

.msc-logo-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
}

.msc-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(78vw, 680px);
  max-height: min(58svh, 610px);
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 54px rgba(212, 170, 82, 0.04);
}

.msc-copy {
  flex: 0 0 auto;
  width: min(100%, 820px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.15vh, 12px);
}

.msc-title {
  margin: 0;
  color: var(--msc-gold);
  font-size: clamp(1.65rem, min(4.5vw, 4.2vh), 3rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(225, 188, 105, 0.12);
}

.msc-intro {
  margin: 0;
  max-width: 760px;
  color: var(--msc-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.88rem, min(2.15vw, 2.05vh), 1.08rem);
  line-height: 1.45;
  font-weight: 400;
  text-wrap: balance;
}

.msc-status {
  margin: 0;
  color: var(--msc-gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.78rem, min(1.85vw, 1.8vh), 0.98rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.msc-status::before,
.msc-status::after {
  content: "";
  display: inline-block;
  width: clamp(16px, 3vw, 34px);
  height: 1px;
  margin: 0 0.8em 0.25em;
  background: linear-gradient(90deg, transparent, var(--msc-gold-soft));
  vertical-align: middle;
  opacity: 0.75;
}

.msc-status::after {
  margin-right: 0;
  margin-left: 0.8em;
  background: linear-gradient(90deg, var(--msc-gold-soft), transparent);
}

/* Keep everything inside shorter laptop and tablet viewports. */
@media (max-height: 720px) {
  :root {
    --msc-pad-y: clamp(10px, 2vh, 18px);
  }

  .msc-stage {
    gap: clamp(5px, 1.2vh, 10px);
  }

  .msc-logo {
    max-height: min(53svh, 470px);
  }

  .msc-copy {
    gap: 5px;
  }
}

/* Portrait phones: let width drive the image size while reserving room for text. */
@media (max-width: 640px) {
  :root {
    --msc-pad-x: clamp(14px, 5vw, 24px);
    --msc-pad-y: clamp(12px, 2.6vh, 22px);
  }

  .msc-stage {
    width: 100%;
    gap: clamp(7px, 1.35vh, 12px);
  }

  .msc-logo {
    max-width: min(91vw, 520px);
    max-height: min(51svh, 500px);
  }

  .msc-title {
    font-size: clamp(1.4rem, 7vw, 2.15rem);
    letter-spacing: 0.07em;
  }

  .msc-intro {
    max-width: 34rem;
    font-size: clamp(0.82rem, 3.6vw, 0.98rem);
    line-height: 1.38;
  }

  .msc-status {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
  }
}

/* Landscape phones and very short browser windows. */
@media (max-height: 520px) {
  .msc-page {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .msc-stage {
    flex-direction: row;
    width: min(100%, 1080px);
    max-height: none;
    gap: clamp(16px, 4vw, 54px);
    text-align: left;
  }

  .msc-logo-wrap {
    flex: 1 1 54%;
    width: auto;
    height: 100%;
  }

  .msc-logo {
    max-width: 48vw;
    max-height: calc(100dvh - 24px);
  }

  .msc-copy {
    flex: 1 1 46%;
    width: auto;
    align-items: flex-start;
    gap: clamp(4px, 1.4vh, 8px);
  }

  .msc-title,
  .msc-intro {
    text-align: left;
    text-wrap: pretty;
  }

  .msc-title {
    font-size: clamp(1.15rem, 5.5vh, 2rem);
  }

  .msc-intro {
    font-size: clamp(0.72rem, 3.2vh, 0.92rem);
    line-height: 1.32;
  }

  .msc-status {
    font-size: clamp(0.68rem, 2.8vh, 0.82rem);
  }

  .msc-status::before {
    display: none;
  }
}

@media (max-width: 520px) and (max-height: 520px) {
  .msc-stage {
    gap: 12px;
  }

  .msc-logo {
    max-width: 43vw;
  }

  .msc-title {
    letter-spacing: 0.04em;
  }

  .msc-status::after {
    display: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .msc-page {
    min-height: calc(100svh - 46px);
    height: calc(100dvh - 46px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .msc-logo,
  .msc-copy {
    animation: msc-fade-in 700ms ease-out both;
  }

  .msc-copy {
    animation-delay: 110ms;
  }
}

@keyframes msc-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WordPress utility classes. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
