/* ============================================================
   Coming Soon — yashrajput.com
   Rebuilt from scratch (no Qode theme framework / no external
   images). Colours & type sizes were pulled from the source
   page's *computed* styles for a faithful match.
   ------------------------------------------------------------
   Palette
     background        #EDD4B9  (warm sand)
     body / labels     #3D3D3D
     headings / digits #000000
   Type: Syne (Google Fonts)
   ============================================================ */

:root {
  /* ---- Light theme (default) ---- */
  --bg:        #ffffff;
  --ink:       #000000;
  --muted:     #3d3d3d;
  --arrow:     #2b2b2b;   /* hero motif stroke */
  --accent:    #000000;   /* monochrome in light mode */
  --logo-filter: none;

  --edge:      2.2rem;    /* page gutter */
  --edge-y:    2rem;
}

/* ---- Dark theme — inspired by maggieappleton.com: warm ink + ochre ---- */
:root[data-theme="dark"] {
  --bg:        #1a1915;   /* warm near-black */
  --ink:       #ece6d8;   /* warm cream */
  --muted:     #9c968a;   /* muted warm grey */
  --arrow:     #8f897b;   /* soft warm stroke */
  --accent:    #d9a441;   /* ochre pop */
  /* TEMP: invert the current (dark) logo so it reads on dark until a
     dedicated dark-mode logo is supplied. Replace when the new logo lands. */
  --logo-filter: invert(1) brightness(1.9);
}

/* No-JS fallback: honour the OS setting when no explicit choice is stored */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:        #1a1915;
    --ink:       #ece6d8;
    --muted:     #9c968a;
    --arrow:     #8f897b;
    --accent:    #d9a441;
    --logo-filter: invert(1) brightness(1.9);
  }
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--muted);
  font-family: "Syne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Subtle warm depth in dark mode (no flat black) */
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(120% 85% at 25% 12%, #23211a 0%, rgba(26, 25, 21, 0) 55%);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body {
    background-image:
      radial-gradient(120% 85% at 25% 12%, #23211a 0%, rgba(26, 25, 21, 0) 55%);
    background-attachment: fixed;
  }
}

a { color: inherit; }

/* ---------- Page shell ---------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--edge-y) var(--edge);
  overflow: hidden;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.logo__img {
  display: block;
  height: 88px;
  width: auto;
  filter: var(--logo-filter);
}

/* Theme toggle (sun / moon) */
.theme-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
  line-height: 0;
  border-radius: 50%;
  transition: color 0.2s ease, opacity 0.2s ease;
  align-self: flex-start;
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle__icon { width: 22px; height: 22px; display: none; }
:root:not([data-theme="dark"]) .theme-toggle__moon { display: block; }
:root[data-theme="dark"]        .theme-toggle__sun  { display: block; }

/* ---------- Main ---------- */
.main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.content {
  max-width: 780px;
}

/* Eyebrow "○ COMING SOON" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 2.2rem;
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

/* Headline */
.headline {
  margin: 0 0 3rem;
  font-size: 39px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--ink);
}
.headline__link {
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.headline__link:hover { opacity: 0.6; }

/* ---------- Hero graphic ---------- */
.hero-graphic {
  justify-self: center;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-graphic__svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Gentle, calm rotation — original used GSAP; this is a lightweight CSS stand-in */
.hero-graphic__rays {
  stroke: var(--arrow);   /* overrides the SVG's hard-coded stroke, per theme */
  transform-origin: 350px 350px;
  animation: spin 140s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet / small desktop — graphic sits behind the content as a
   faint backdrop so the copy keeps full width. */
@media (max-width: 1024px) {
  .main {
    display: block;
    padding: 2rem 0;
  }
  .content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin-top: 2rem;
  }
  .hero-graphic {
    position: absolute;
    top: 50%;
    right: -12%;
    transform: translateY(-50%);
    width: 70vw;
    max-width: 560px;
    opacity: 0.28;
    z-index: 1;
    pointer-events: none;
  }
}

@media (max-width: 680px) {
  :root { --edge: 1.4rem; }
  .headline { font-size: 30px; }
  .hero-graphic { right: -25%; width: 90vw; opacity: 0.2; }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .hero-graphic__rays { animation: none; }
  * { transition: none !important; }
}
