/* ============================================================
   MURF — shared styles for murf.blog and BreakCycle pages
   ------------------------------------------------------------
   Most rules are shared by every page. A few values differ per
   page; those are scoped to a body class:
     .page-home  → homepage (index.html)
     .page-bc    → BreakCycle landing (breakcycle/index.html)
     .page-doc   → legal docs (privacy + terms)
   ============================================================ */

/* ---------- Self-hosted fonts (no external requests) ---------- */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/press-start-2p-regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-regular.woff2") format("woff2");
}

/* ---------- Palette ---------- */
:root {
  --bg:        #0d0f22;
  --bg-panel:  #14172e;
  --ink:       #f4f6ff;
  --peri:      #a6b9e6;
  --peri-dim:  #7e90c0;
  --outline:   #2c3358;
  --line:      #242a4a;
  --shadow:    #06070f;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  /* Faint pixel grid for atmosphere */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
  position: relative;
}

/* Vignette so the grid fades at the edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, var(--bg) 95%);
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}
.mark {
  font-family: "Press Start 2P", monospace;
  font-size: 15px;
  letter-spacing: 1px;
  text-decoration: none;
  /* Same two-tone split as the hero wordmark */
  background: linear-gradient(180deg,
    var(--ink) 0%, var(--ink) 50%,
    var(--peri) 50%, var(--peri) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 var(--outline));
}

nav { display: flex; gap: 22px; }
nav a {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--peri-dim);
  text-decoration: none;
  transition: color .15s;
}
nav a:hover { color: var(--peri); }

/* ---------- Footer ---------- */
footer {
  border-top: 2px solid var(--line);
  padding: 28px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--peri-dim);
  font-size: 13px;
}
footer a { color: var(--peri-dim); text-decoration: none; }
footer a:hover { color: var(--peri); }
.foot-links { display: flex; gap: 18px; }

/* ---------- Shared components (home + BreakCycle) ---------- */
.links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-panel);
  border: 2px solid var(--outline);
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .08s, box-shadow .08s, border-color .15s;
}
.btn:hover { border-color: var(--peri); color: var(--peri); }
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--shadow);
}
/* "Coming soon" — a dimmed, non-interactive version of .btn */
.btn-soon {
  color: var(--peri-dim);
  border-color: var(--line);
  cursor: default;
  white-space: nowrap;
}
.btn-soon:hover { color: var(--peri-dim); border-color: var(--line); }
.btn-soon:active { transform: none; box-shadow: 4px 4px 0 var(--shadow); }
.badge {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--peri);
  border: 1px solid var(--peri-dim);
  padding: 6px 8px;
  margin-bottom: 22px;
}

/* ============================================================
   Home page  (.page-home)
   ============================================================ */
.hero { text-align: center; }
.page-home .hero { padding: 72px 0 56px; }

.wordmark {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(48px, 13vw, 104px);
  line-height: 1;
  letter-spacing: 2px;
  /* Two-tone split: white over periwinkle, like the logo */
  background: linear-gradient(180deg,
    var(--ink) 0%, var(--ink) 50%,
    var(--peri) 50%, var(--peri) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Blocky 8-bit drop shadow */
  filter: drop-shadow(5px 5px 0 var(--outline)) drop-shadow(9px 9px 0 var(--shadow));
  display: inline-block;
  animation: pop .5s steps(3) both;
}
@keyframes pop {
  from { transform: translateY(8px) scale(.97); opacity: 0; }
  to   { transform: translateY(0)   scale(1);   opacity: 1; }
}

.tagline {
  margin: 34px auto 0;
  max-width: 460px;
  color: var(--peri);
  font-size: 15px;
}

.page-home .links { margin-top: 38px; }

/* Keep the two hero buttons the same width */
.hero-links .btn { min-width: 132px; text-align: center; }

.card {
  background: var(--bg-panel);
  border: 2px solid var(--outline);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 32px;
  margin: 24px 0 64px;
}
.card h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.card h2 .b { color: var(--peri); }
.card p { color: #cfd6ef; margin-bottom: 14px; }
.card p:last-of-type { margin-bottom: 24px; }

/* ============================================================
   BreakCycle landing  (.page-bc)
   ============================================================ */
.page-bc .hero { padding: 56px 0 40px; }

.title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(30px, 8vw, 56px);
  line-height: 1;
  letter-spacing: 2px;
  filter: drop-shadow(4px 4px 0 var(--outline)) drop-shadow(7px 7px 0 var(--shadow));
  display: inline-block;
}
.title .b { color: var(--peri); }
.title .w { color: var(--ink); }

.lead { margin: 30px auto 0; max-width: 520px; color: var(--peri); font-size: 15px; }

.page-bc .links { margin-top: 34px; }

.section-label {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--peri-dim);
  margin: 64px 0 18px;
  text-align: center;
}
.doc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 64px; }
.doc {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-panel);
  border: 2px solid var(--outline);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 24px;
  transition: transform .08s, box-shadow .08s, border-color .15s;
}
.doc:hover { border-color: var(--peri); transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--shadow); }
.doc h3 { font-family: "Press Start 2P", monospace; font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.doc p { color: var(--peri-dim); font-size: 13px; }
.doc .arrow { color: var(--peri); }

/* ============================================================
   Legal docs — privacy + terms  (.page-doc)
   ============================================================ */
body.page-doc { line-height: 1.8; }
.page-doc .wrap { max-width: 720px; }

.doc-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.4;
  letter-spacing: 1px;
  margin: 40px 0 10px;
  filter: drop-shadow(3px 3px 0 var(--outline));
}
.updated { color: var(--peri-dim); font-size: 13px; margin-bottom: 14px; }
.summary {
  background: var(--bg-panel);
  border: 2px solid var(--outline);
  border-left: 4px solid var(--peri);
  padding: 18px 20px;
  margin-bottom: 40px;
  color: var(--peri);
}

article { padding-bottom: 56px; }
article h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink);
  margin: 38px 0 14px;
  line-height: 1.5;
}
article p { color: #cfd6ef; margin-bottom: 16px; }
article ul { margin: 0 0 16px 22px; color: #cfd6ef; }
article li { margin-bottom: 8px; }
article a { color: var(--peri); }

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  nav { gap: 14px; }
  .card { padding: 24px; }              /* home */
  .doc-links { grid-template-columns: 1fr; }  /* BreakCycle */
}
