/* ============================================================
   UNIFIED POLARITY — style.css
   Static homepage. Plain CSS, no build step, FTP-ready.

   The values you'll most likely want to tune are grouped in
   :root below and labelled. Change them there and everything
   follows.
   ============================================================ */

:root {

  /* ---- PALETTE ------------------------------------------------
     --color-bg is the charcoal field behind the texture; it is
     matched to the texture's tone so the fallback and image edges
     blend seamlessly. --color-nav is the quiet grey of the nav;
     --color-gold is the hover accent.                            */
  --color-bg:   #2b2b2c;               /* charcoal field           */
  --color-nav:  #8a8a8a;               /* nav links (quiet grey)   */
  --color-gold: rgb(206, 166, 102);    /* hover accent             */

  /* ---- TYPE --------------------------------------------------- */
  --font-stack: "Poppins", -apple-system, BlinkMacSystemFont,
                "Segoe UI", sans-serif;

  /* ---- MARK SIZING -------------------------------------------
     The mark is a wide horizontal lockup (~1.63:1). It's sized by
     width: ~54% of the viewport on desktop, clamped so it never
     gets absurd on ultrawide or too small on laptops. The mobile
     override is in the media query at the bottom.                */
  --mark-width: clamp(340px, 54vw, 1180px);

  /* ---- SPACING ----------------------------------------------- */
  --gap-mark-nav: clamp(1.6rem, 4vh, 3rem);   /* mark -> nav space */
}


/* ---- reset ------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: var(--font-stack);
  font-weight: 400;                    /* Poppins Regular (body)   */
  color: var(--color-nav);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* ============================================================
   HERO — layer 1: charcoal textured field
   ============================================================
   The texture fills the viewport (`cover`) at any width, with the
   matched charcoal as a fallback behind it. The mark on top is a
   separate element, so the two never composite.                  */
.hero {
  min-height: 100vh;
  min-height: 100svh;                  /* better on mobile browsers */
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--color-bg);
  background-image: url("/img/hero-texture.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-mark-nav);
  padding: 6vh 1.5rem;
}


/* ============================================================
   HERO — layer 2: the embossed mark
   ============================================================
   The relief (raised, lit-from-above, soft shadow, faded helix
   tips) is baked into the transparent PNG itself, so no CSS
   filter is needed here — just size and place it.                */
.hero__mark {
  width: var(--mark-width);
  max-width: 92vw;                     /* safety on small screens   */
  line-height: 0;                      /* kill inline-img gap        */
}

.hero__mark img {
  display: block;
  width: 100%;
  height: auto;
}


/* ============================================================
   HERO — navigation
   ============================================================
   Three nav items rendered as *barely-there* raised buttons, in
   the same embossed charcoal language as the mark:
     - the button is a faint raised charcoal pill (you can just
       tell it's a button; it's not a pronounced pill)
     - the label is embossed charcoal text, given a little extra
       edge so it stays readable
   Everything below is tunable. To make the BUTTON more/less
   pronounced, adjust --btn-bg and --btn-shadow. To make the
   WORDS more/less defined, adjust --btn-text + --btn-text-shadow. */
:root {
  --btn-bg:          #2e2e2f;          /* faint raised pill face     */
  --btn-shadow:      0 1px 3px rgba(0,0,0,0.30),
                     inset 0 1px 0 rgba(255,255,255,0.05),
                     inset 0 -1px 0 rgba(0,0,0,0.20);
  --btn-text:        #434343;          /* embossed label tone        */
  --btn-text-shadow: 0 -1px 0 rgba(240,240,240,0.24),
                     0  1px 2px rgba(0,0,0,0.72);
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1rem);
}

.hero__nav a {
  font-weight: 400;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);   /* matched to interior-page nav */
  letter-spacing: 0.24em;
  text-decoration: none;

  padding: 0.62em 1.25em;
  border-radius: 999px;

  color: var(--btn-text);
  text-shadow: var(--btn-text-shadow);
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);

  transition: color 200ms ease, box-shadow 250ms ease, transform 200ms ease;
}

/* lift + gold tint on hover/focus so the button feels alive */
.hero__nav a:hover,
.hero__nav a:focus-visible {
  color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: 0 3px 7px rgba(0,0,0,0.38),
              inset 0 1px 0 rgba(255,255,255,0.07);
}


/* ============================================================
   MOBILE  (<= 600px)
   The wide lockup needs more of the screen to stay legible.
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --mark-width: min(92vw, 460px);
  }
  /* MOBILE: lift the mark off the page so its relief reads at small size */
  .hero__mark img {
    filter: drop-shadow(0 2px 7px rgba(0,0,0,0.42));
  }
  /* MOBILE: quieter buttons so the hero reads uniform, mark-led */
  .hero__nav { gap: 0.55rem; }
  .hero__nav a {
    padding: 0.6em 1.05em;
    letter-spacing: 0.2em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.16),
                inset 0 1px 0 rgba(255,255,255,0.035);
  }
}


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


/* ============================================================
   ============================================================
   INTERIOR PAGES  (soliton / about / voxel)
   Shared header, footer, and typography. Charcoal palette,
   cream body text, gold accents — consistent with the hero.
   ============================================================
   ============================================================ */

:root {
  --color-cream: #efefef;              /* readable body text        */
  --color-muted: #9a968e;              /* secondary text            */
  --measure: 62ch;                     /* comfortable reading width */
}

.page {
  color: var(--color-cream);
  background-color: var(--color-bg);
  background-image: url("/img/hero-texture.jpg");
  background-size: 1600px auto;         /* fine tactile texture, tiled */
  background-position: center top;
  min-height: 100%;
}

/* ---- shared header ----------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.8rem) clamp(1.2rem, 5vw, 3.5rem);
  max-width: 1400px;
  margin: 0 auto;
}
.site-header__home {
  display: inline-flex; align-items: center;
  line-height: 0; opacity: 0.85;
  transition: opacity 200ms ease, transform 200ms ease;
}
/* embossed eye-spiral glyph — carries the tactile brand feel onto every page */
.site-header__home img { width: 46px; height: 46px; display: block; }
.site-header__home:hover { opacity: 1; transform: translateY(-1px); }

/* interior nav reuses the embossed-button look from the hero */
.site-nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.4vw, 1rem); }
.site-nav a {
  font-weight: 400;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  letter-spacing: 0.24em;
  text-decoration: none;
  padding: 0.62em 1.25em;
  border-radius: 999px;
  color: var(--btn-text);
  text-shadow: var(--btn-text-shadow);
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
  transition: color 200ms ease, box-shadow 250ms ease, transform 200ms ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: 0 3px 7px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.07);
}
/* current page: gold label, gently pressed-in */
.site-nav a[aria-current="page"] {
  color: var(--color-gold);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5), inset 0 -1px 0 rgba(255,255,255,0.04);
}

/* ---- shared footer -----------------------------------------
   Left: the nav LINKS (clickable, gold on hover).
   Right: the brand SIGNATURE — the embossed eye-spiral glyph +
   "UNIFIED POLARITY", deliberately styled unlike a link (fainter,
   wider-spaced, no hover) so it reads as a mark, not a button. */
.site-footer {
  max-width: 1400px;
  margin: clamp(3rem, 8vw, 7rem) auto 0;
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 2rem;
}
.site-footer__nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  font-size: 0.74rem; letter-spacing: 0.24em;
}
.site-footer__nav a { color: var(--color-muted); text-decoration: none; transition: color 200ms ease; }
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible { color: var(--color-gold); }

.site-footer__brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--color-muted); opacity: 0.55;
  user-select: none;
}
.site-footer__brand img { width: 22px; height: 22px; opacity: 0.85; }
.site-footer__brand span { font-size: 0.68rem; letter-spacing: 0.26em; }

@media (max-width: 600px) {
  .site-footer { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  /* keep the brand signature bottom-RIGHT on mobile, like desktop */
  .site-footer__brand { align-self: flex-end; }
}


/* ============================================================
   SOLITON PAGE
   ============================================================ */

/* ---- hero: cover + intro ----------------------------------- */
.book-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
/* faint spiral artwork woven behind the hero */
.book-hero__atmos {
  position: absolute; inset: 0;
  background: url("/img/soliton-atmos.jpg") center 30% / cover no-repeat;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 40%, #000 40%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 60% 40%, #000 40%, transparent 78%);
  pointer-events: none;
}
.book-hero > * { position: relative; z-index: 1; }
/* explicit placement so the absolutely-positioned atmos layer can't
   disturb the two real columns */
.book              { grid-column: 1; grid-row: 1; }
.book-hero__intro  { grid-column: 2; grid-row: 1; }

/* the book: cover shown flat (2D), with a soft cast shadow to lift it
   off the page. */
.book { position: relative; display: inline-block; align-self: center; justify-self: center; }
.book__cover {
  display: block;
  width: min(280px, 58vw);
  height: auto;
  border-radius: 3px;
  box-shadow:
    0 22px 45px rgba(0,0,0,0.55),
    0 8px 18px rgba(0,0,0,0.38);
}

.book-hero__intro { max-width: 34rem; }
.book-title {
  font-weight: 300;
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.8rem);
  letter-spacing: 0.14em;
  color: var(--color-cream);
  line-height: 1;
}
.book-rule {
  width: clamp(120px, 40%, 260px); height: 1px; margin: 1.1rem 0;
  background: linear-gradient(90deg, transparent, var(--color-gold) 18%, var(--color-gold) 82%, transparent);
  opacity: 0.8;
}
.book-subtitle {
  font-weight: 300;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  letter-spacing: 0.16em;
  color: var(--color-gold);
}
.book-epigraph {
  margin-top: clamp(1.2rem, 2.6vw, 2rem);
  font-style: italic;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.08rem);
  line-height: 1.5;
  color: #d7d2c8;
}
.book-lead {
  margin-top: 1.1rem;
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Amazon buy button — placeholder until the link is live */
.book-buy {
  display: inline-flex; align-items: baseline; gap: 0.6em;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  font-size: 0.9rem; letter-spacing: 0.18em;
  padding: 0.95em 1.8em; border-radius: 999px;
  color: var(--color-cream); text-decoration: none;
  background: var(--btn-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(206,166,102,0.30);
  transition: color .2s, box-shadow .25s, transform .2s, border-color .2s;
}
.book-buy small { font-size: 0.66em; letter-spacing: 0.14em; color: var(--color-muted); }
.book-buy.is-soon { cursor: default; }
.book-buy.is-soon:hover { border-color: rgba(206,166,102,0.55); color: var(--color-gold); }
.book-buy:not(.is-soon):hover {
  color: var(--color-gold); transform: translateY(-1px);
  border-color: rgba(206,166,102,0.7);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---- blurb ------------------------------------------------- */
.book-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 3.5rem);
}
.book-body p {
  font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  line-height: 1.75;
  color: #dcd7cd;
  margin-bottom: 1.4rem;
}
.book-body em { color: var(--color-cream); font-style: italic; }

/* ---- author ------------------------------------------------ */
.author {
  max-width: var(--measure);
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.5rem, 5vw, 2.6rem);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  background: rgba(255,255,255,0.015);
}
.author h2 {
  font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--color-gold); margin-bottom: 0.9rem;
}
.author p { line-height: 1.7; color: #dcd7cd; }
.author strong { color: var(--color-cream); font-weight: 400; }

/* ---- responsive: stack on narrow ---------------------------- */
@media (max-width: 820px) {
  .book-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 2.2rem; }
  /* reset the explicit desktop placement so the columns stack */
  .book,
  .book-hero__intro { grid-column: 1; grid-row: auto; }
  .book-rule { margin-left: auto; margin-right: auto; }
  .book-hero__intro { max-width: 40rem; }
  .book-buy { margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .site-header { padding: 1rem 1.2rem; }
  .site-nav a { padding: 0.55em 1em; letter-spacing: 0.18em; }
}


/* ============================================================
   ABOUT PAGE
   ============================================================
   The mark returns here as a large, faded embossed watermark —
   the symbol pressed into the surface the words are written on.
   Tunables: .about__watermark opacity (how present the mark is)
   and its mask (how it fades). */
.about {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}
/* The symbol (the double-helix) runs down the page as a tall, faded
   "spine" behind the words — the shared thread each idea hangs off. */
.about__watermark {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  opacity: 0.72;                 /* how present the symbol is (tune) */
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.about__watermark img { display: block; height: min(96%, 1200px); width: auto; }

.about__inner {
  position: relative;
  z-index: 1;
  max-width: 68ch;
  margin: 0 auto;
}
.about__eyebrow {
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-gold);
  margin-bottom: 0.9rem;
}
.about__title {
  font-weight: 300;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem);
  letter-spacing: 0.1em;
  color: var(--color-cream);
  line-height: 1;
}
.about__rule {
  width: clamp(120px, 30%, 240px);
  height: 1px;
  margin: 1.2rem 0 2.2rem;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  opacity: 0.85;
}
.about__copy p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  line-height: 1.8;
  color: #dcd7cd;
  margin-bottom: 1.5rem;
}
.about__copy em { color: var(--color-cream); font-style: italic; }

/* the cadence beat, set apart as a quiet gold aside */
.about__beat {
  display: block;
  margin: 2.2rem 0;
  padding-left: 1.2rem;
  border-left: 1px solid rgba(206,166,102,0.4);
  color: var(--color-gold);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.22rem);
  letter-spacing: 0.02em;
  font-style: italic;
}

@media (max-width: 600px) {
  .about__watermark { opacity: 0.16; }
}


/* ============================================================
   VOXEL PAGE  (coming-soon placeholder)
   ============================================================
   Two volumetric "cubes" placed on one diagonal (top-left +
   bottom-right); the text sits on the other diagonal. Each cube
   keeps its wireframe boundary — the defined volume, with the
   field + hotspots rendered inside. */
.voxel {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
}
/* single cube — sized so the title stays in view without scrolling */
.voxel__cube { width: min(440px, 64vw); line-height: 0; }
.voxel__cube img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 24px 70px rgba(110,170,150,0.13));   /* faint luminance */
}
.voxel__eyebrow {
  font-weight: 300; letter-spacing: 0.34em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--color-gold);
}
.voxel__title {
  font-weight: 300;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  letter-spacing: 0.12em;
  color: var(--color-cream);
  line-height: 1;
}
.voxel__rule {
  width: clamp(120px, 26%, 220px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.8;
}
.voxel__tag {
  font-weight: 300;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  letter-spacing: 0.04em;
  color: var(--color-gold);
}
.voxel__note {
  max-width: 46ch;
  font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  line-height: 1.75;
  color: #cfcabf;
}
/* coming-soon status chip */
.voxel__status {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-top: 0.4rem;
  padding: 0.6em 1.3em; border-radius: 999px;
  border: 1px solid rgba(206,166,102,0.35);
  color: var(--color-gold);
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  background: rgba(255,255,255,0.015);
}
.voxel__status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-gold); opacity: 0.9;
}
