/* ============================================================
   VINU.BLOG — Stylesheet
   ------------------------------------------------------------
   Want to change colours or fonts? Edit the variables just
   below (the lines starting with --). You usually don't need
   to touch anything else in this file.
   ============================================================ */

:root {
  /* ---- COLOURS YOU CAN CHANGE ---- */
  --accent: #CCEEFF;            /* light blue — your one accent colour */
  --accent-soft: #eaf8ff;       /* a pale wash of the accent (hover backgrounds) */
  --accent-ink: #0b5a7a;        /* a darker blue for accent-coloured text on the page */
  --on-accent: #0b3e52;         /* dark text that sits ON a light-blue chip (both themes) */

  /* ---- Light theme (defaults) ---- */
  --bg: #f4f1ee;               /* page background (behind the card) */
  --surface: #ffffff;          /* the big content card */
  --surface-2: #f7f5f3;        /* tip cards / hover */
  --text: #1a1a1a;             /* main text */
  --text-soft: #6b6b6b;        /* muted text */
  --border: #ececec;           /* hairlines */
  --sidebar-bg: #f4f1ee;

  /* ---- Type & spacing (rarely need changing) ---- */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --sidebar-w: 260px;
  --maxw: 1100px;
}

/* Dark theme — applied when <html data-theme="dark"> */
[data-theme="dark"] {
  --bg: #0f0f10;
  --surface: #1a1a1c;
  --surface-2: #242427;
  --text: #f2f2f2;
  --text-soft: #9a9a9a;
  --border: #2c2c2f;
  --sidebar-bg: #0f0f10;
  --accent-soft: #16303d;
  --accent-ink: #cceeff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.logo { margin-bottom: 36px; padding-left: 8px; }
.logo-cursive {
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", "Bradley Hand", cursive;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1;
  display: inline-block;
}

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-group-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  margin: 22px 0 8px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
[data-theme="dark"] .nav-item.active { box-shadow: none; }

.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .num {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface-2);
  border-radius: 6px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
}
.nav-item.active .num { background: var(--accent); color: var(--on-accent); }
.nav-item .ext { margin-left: auto; opacity: .5; width: 14px; height: 14px; }

.sidebar-spacer { flex: 1; }

/* Theme toggle */
.theme-toggle {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
  margin-top: 20px;
}
.theme-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  padding: 6px 4px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
}
.theme-toggle button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
[data-theme="dark"] .theme-toggle button.active { box-shadow: none; background: #35353a; }

/* ---------- Main content ---------- */
.main {
  flex: 1;
  padding: 24px;
  overflow-x: hidden;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  min-height: calc(100vh - 48px);
  padding: 64px 56px;
  max-width: var(--maxw);
  transition: background .25s ease;
}

.page { animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Big greeting */
.greeting {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 28px;
}
.intro { font-size: 17px; color: var(--text-soft); max-width: 620px; }

/* Section heading */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 64px 0 20px;
}
.section-head h2 { font-size: 22px; font-weight: 700; }
.section-head .view-all { font-size: 14px; color: var(--text-soft); cursor: pointer; }
.section-head .view-all:hover { color: var(--accent-ink); }

h1.page-title { font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }

/* Tip cards row */
.tips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.tip {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 18px;
  border-left: 2px solid var(--border);
}

/* Card grid (updates / blogs / interests) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.post-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
  min-height: 170px;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.post-card .tag {
  align-self: flex-start;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--on-accent);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.post-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; line-height: 1.3; }
.post-card p { font-size: 14px; color: var(--text-soft); flex: 1; }
.post-card .date { font-size: 13px; color: var(--text-soft); margin-top: 16px; }

/* Interests */
.interest-card .emoji { font-size: 32px; margin-bottom: 14px; }
.interest-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }

/* Prose (about + single blog) */
.prose { max-width: 680px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.prose h2 { font-size: 24px; font-weight: 650; margin: 36px 0 12px; }
.prose p { font-size: 17px; margin-bottom: 18px; color: var(--text); }
.prose strong { font-weight: 650; }
.prose .meta { color: var(--text-soft); font-size: 14px; margin-bottom: 36px; }
.prose .tag-inline {
  color: var(--on-accent); background: var(--accent);
  padding: 3px 10px; border-radius: 20px; font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em;
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-soft); font-size: 14px; cursor: pointer; margin-bottom: 32px;
}
.back-link:hover { color: var(--accent-ink); }

/* Contact */
.contact-links { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; max-width: 420px; }
.contact-links a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; background: var(--surface-2);
  border-radius: var(--radius); font-size: 15px;
  transition: transform .15s ease;
}
.contact-links a:hover { transform: translateX(4px); color: var(--accent-ink); }
.contact-links svg { width: 20px; height: 20px; }

/* ---------- Mobile ---------- */
.mobile-header { display: none; }

@media (max-width: 820px) {
  .layout { flex-direction: column; }
  .sidebar {
    position: static; width: 100%; height: auto;
    flex-direction: row; align-items: center;
    overflow-x: auto; padding: 14px 16px; gap: 6px;
    border-bottom: 1px solid var(--border);
  }
  .logo { margin-bottom: 0; margin-right: 8px; }
  .logo-cursive { font-size: 25px; }
  .nav { flex-direction: row; gap: 4px; }
  .nav-group-label, .nav-item .num, .sidebar-spacer { display: none; }
  .nav-item { padding: 8px 10px; white-space: nowrap; }
  .theme-toggle { margin-top: 0; margin-left: auto; }
  .theme-toggle button { padding: 6px 8px; font-size: 12px; }
  .card { padding: 36px 24px; min-height: auto; }
  .tips { grid-template-columns: 1fr; gap: 16px; }
  .main { padding: 14px; }
}

/* ---------- Top-right bar (accent picker + clock) ---------- */
.topbar {
  position: fixed; top: 16px; right: 22px; z-index: 45;
  display: flex; align-items: center; gap: 10px;
}
.accent-wrap { position: relative; display: flex; }
.accent-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform .15s ease;
}
.accent-btn:hover { transform: scale(1.08); }
.accent-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.clock {
  font-size: 12px; color: var(--text-soft); opacity: .65;
  font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap;
}
.accent-menu {
  position: absolute; top: 34px; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px; display: flex; gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14); z-index: 50;
}
.accent-menu[hidden] { display: none; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(0,0,0,.12); transition: transform .12s ease;
}
.swatch:hover { transform: scale(1.15); }
.swatch.selected { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }

.birthday-mode .topbar { display: none; }

@media (max-width: 820px) {
  .topbar { top: auto; bottom: 14px; right: 14px; }
  .accent-menu { top: auto; bottom: 34px; }
}

/* ---------- Hidden birthday section ---------- */
.bday-link { font-size: 13px; opacity: .55; margin-top: 2px; }
.bday-link:hover { opacity: 1; }

/* On the birthday section, hide the sidebar and let it fill the screen */
.birthday-mode .sidebar { display: none; }
.birthday-mode .main { padding: 0; }
.birthday-mode .card { padding: 0; border-radius: 0; min-height: 100vh; max-width: none; width: 100%; }

/* The birthday reveal goes full, edge-to-edge and dark */
.birthday {
  margin: 0;
  background: #0a0a0d;
  color: #fff;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
}
.bday-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.bday-close {
  position: fixed; top: 20px; right: 24px; z-index: 70;
  color: #8b95a0; font-size: 13px; cursor: pointer;
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px;
}
.bday-close:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.bday-scroll-hint {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  color: #6b7580; font-size: 13px; z-index: 10;
  animation: bdayBounce 1.6s infinite;
}
@keyframes bdayBounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

.bday-panel { min-height: 86vh; display: grid; place-items: center; padding: 48px 24px; text-align: center; }
.bday-line {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  max-width: 780px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.bday-line.show { opacity: 1; transform: none; }
.b-first { font-size: clamp(44px, 9vw, 104px); }
.b-mid   { font-size: clamp(30px, 6.5vw, 66px); }
.b-big   {
  font-size: clamp(44px, 9vw, 110px);
  background: linear-gradient(90deg, #ffffff, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.b-sub { font-size: clamp(18px, 3.2vw, 27px); font-weight: 500; color: #c7d6df; }

.bday-enter {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .2s ease;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px; background: var(--accent); color: #0b3e52;
  border-radius: 40px; font-size: 17px; font-weight: 650; cursor: pointer;
}
.bday-enter.show { opacity: 1; transform: none; }
.bday-enter:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 40px rgba(204,238,255,.3); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .bday-line, .bday-enter { opacity: 1 !important; transform: none !important; }
  .bday-scroll-hint { display: none; }
}
