/* JoJoSnow — shared styles for all pages. */

:root {
  --ink:      #16212e;
  --ink-soft: #4a5b6e;
  --frost:    #eef4fa;
  --line:     #d5e2ee;
  --accent:   #1d6fb8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

/* ---------- Header + menu ---------- */

.site-header {
  background: linear-gradient(160deg, var(--frost) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--accent); }

/* The checkbox drives the mobile menu with no JavaScript. It stays in the
   accessibility tree and keyboard-focusable, so it is offset rather than
   display:none — hiding it outright would make the menu unreachable by keyboard. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.nav-burger { display: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--accent); }

.site-nav a.is-current {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .nav-burger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
  }

  .nav-burger::before {
    content: "\2630";           /* ☰ */
    font-size: 1.25rem;
    line-height: 1;
  }

  .nav-toggle:focus-visible ~ .nav-burger {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .nav-toggle:checked ~ .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .site-nav a.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
  }
}

/* ---------- Page structure ---------- */

.hero {
  text-align: center;
  padding: clamp(2.2rem, 7vw, 4rem) 1.25rem clamp(0.5rem, 2vw, 1rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 2.5rem) 1.25rem clamp(2rem, 6vw, 3.5rem);
}

.page-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Body copy. One <p> per paragraph. */
.copy p { margin: 0 0 1.15em; }
.copy p:last-child { margin-bottom: 0; }
.copy a { color: var(--accent); }

/* Temporary marker on pages with no content yet. Delete with the stub text. */
.stub {
  color: var(--ink-soft);
  background: var(--frost);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 1.25rem;
}

/* Instagram embeds size themselves; keep them centred and capped. */
.social {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  padding-top: clamp(2rem, 6vw, 3rem);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.social .instagram-media { margin: 0 auto !important; }

footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 1.25rem;
}
