:root {
  --bg1: #fdfbf8; --bg2: #f1eefb;
  --card: rgba(255,255,255,0.72); --border: rgba(80,70,120,0.08);
  --text: #2e2c3f; --muted: #615f78; --accent: #b3a1f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif; font-weight: 300;
  color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 70%) fixed;
  overflow-x: hidden;
}
/* soft ambient glows, like Oura's background gradients */
.glow { position: fixed; border-radius: 50%; filter: blur(110px); opacity: .7; z-index: -1; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: #ffd6e5; top: -180px; right: -120px; }
.g2 { width: 420px; height: 420px; background: #c9e4ff; bottom: -160px; left: -140px; opacity: .7; }

header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; max-width: 1040px; width: 100%; margin: 0 auto; }
.logo { color: var(--text); text-decoration: none; letter-spacing: .35em; font-size: .85rem; font-weight: 500; }
.tabs { display: flex; gap: .25rem; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: .3rem; backdrop-filter: blur(12px); }
.tabs a { color: var(--muted); text-decoration: none; font-size: .85rem; padding: .45rem 1rem; border-radius: 999px; transition: all .25s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: #fff; box-shadow: 0 2px 10px rgba(80,70,120,.08); color: var(--text); }

main { flex: 1; max-width: 1040px; width: 100%; margin: 0 auto; padding: 2.5rem 2rem 4rem; }
@media (max-width: 720px) { main { padding-bottom: 7rem; } }
.tab { display: none; }
.tab.active { display: block; animation: rise .5s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--muted); margin-bottom: .75rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 200; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 2.2rem; font-weight: 200; margin-bottom: 2rem; letter-spacing: -.01em; }
h3 { font-weight: 400; font-size: 1.05rem; margin-bottom: .35rem; }
p { color: var(--muted); }
.lede { font-size: 1.1rem; margin-top: 1rem; max-width: 520px; }

/* Rings */
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 3rem 0 2rem; }
.ring-card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.75rem 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 24px; text-decoration: none; color: var(--text); transition: transform .3s, background .3s; }
.ring-card:hover { transform: translateY(-4px); background: #fff; }
.ring { width: 140px; height: 140px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: rgba(80,70,120,0.07); }
.ring .bar { stroke: var(--c); stroke-linecap: round; filter: drop-shadow(0 2px 6px var(--c)); transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }
.ring-center { position: absolute; top: 1.75rem; height: 140px; display: flex; align-items: center; justify-content: center; }
.score { font-size: 2.4rem; font-weight: 200; }
.ring-label { margin-top: 1rem; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--muted); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem; backdrop-filter: blur(12px); box-shadow: 0 4px 24px rgba(80,70,120,.05); }
.insight { display: flex; gap: 1rem; align-items: flex-start; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); margin-top: .5rem; flex-shrink: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.project { transition: transform .3s; }
.project:hover { transform: translateY(-4px); }
.mini { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--c); box-shadow: 0 0 14px -2px var(--c); margin-bottom: 1.25rem; }
.tag { display: inline-block; margin-top: 1rem; font-size: .75rem; color: var(--muted); letter-spacing: .05em; }

/* Journal timeline */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.post { position: relative; margin-bottom: 1rem; cursor: pointer; transition: background .3s; }
.post:hover { background: #fff; }
.post::before { content: ''; position: absolute; left: -1.75rem; top: 1.8rem; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.post .date { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: #7a64c9; font-weight: 500; }
.post .body { display: none; margin-top: 1rem; color: var(--text); }
.post.open .body { display: block; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.stat { text-align: center; }
.num { display: block; font-size: 2.2rem; font-weight: 200; }
.lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }

.btn { display: inline-block; margin-top: 1.25rem; padding: .75rem 1.5rem; border-radius: 999px; background: #2e2c3f; color: #fff; text-decoration: none; font-weight: 400; font-size: .9rem; transition: opacity .2s; }
.btn:hover { opacity: .85; }

footer { text-align: center; padding: 2rem; color: var(--muted); font-size: .8rem; letter-spacing: .05em; }

/* Mobile: Oura-style bottom tab bar */
@media (max-width: 720px) {
  header { justify-content: center; }
  .tabs { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 10; background: rgba(255,255,255,0.9); }
  .tabs a { padding: .5rem .75rem; font-size: .8rem; }
  .rings { grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
  .ring { width: 84px; height: 84px; }
  .ring-center { height: 84px; }
  .score { font-size: 1.5rem; }
  .ring-card { padding: 1.25rem .5rem 1rem; border-radius: 18px; }
  .ring-center { top: 1.25rem; }
  .stats { grid-template-columns: 1fr; }
  footer { padding-bottom: 6rem; }
}
