/* PhraseFlip — shared base styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #1c1c1e;
  --bg2:    #2c2c2e;
  --bg3:    #3a3a3c;
  --accent: #ff9f0a;
  --text:   #f2f2f7;
  --muted:  #8e8e93;
}

html { background: var(--bg); color: var(--text); }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 16px;
  background: var(--bg);
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: padding 0.7s ease, background 0.7s ease;
}
nav.scrolled {
  padding: 12px 48px;
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  transition: font-size 0.7s ease;
}
nav.scrolled .nav-logo { font-size: 22px; }
.nav-logo span { color: var(--accent); text-decoration: underline; }
.nav-logo img {
  height: 1.1em;
  width: auto;
  margin-right: 0.15em;
  border-radius: 6px;
}
