/* ═══════════════════════════════════════════════════
   akanksha.co — stylesheet
   ═══════════════════════════════════════════════════ */

:root {
  --accent: #c4653a;
  --bg: #0c0c0c;
  --paper: #f5f0e8;
  --paper-dark: #e8e0d2;
  --ink: #2a2420;
  --pencil: #9c8e80;
  --font-body: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hand: 'Caveat', cursive;
}

/* ── Night Sky Mode ── */
body.night-sky { --bg: #060810; --paper: #f0ebe3; --paper-dark: #e2dace; }
body.night-sky .grain { opacity: 0.015; }
body.night-sky::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(1px 1px at 70% 45%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.13) 0%, transparent 50%),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.07) 0%, transparent 50%),
    radial-gradient(1px 1px at 45% 40%, rgba(255,255,255,0.11) 0%, transparent 50%),
    radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,0.09) 0%, transparent 50%),
    radial-gradient(1px 1px at 90% 25%, rgba(255,255,255,0.14) 0%, transparent 50%),
    radial-gradient(1px 1px at 75% 10%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%; overflow: hidden; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased;
  transition: background 1.5s ease;
}

/* ── Scrollbar ── */
.spine-scroll::-webkit-scrollbar, .notebook-content::-webkit-scrollbar { width: 4px; }
.spine-scroll::-webkit-scrollbar-track { background: transparent; }
.spine-scroll::-webkit-scrollbar-thumb { background: rgba(156,142,128,0.15); border-radius: 4px; }
.notebook-content::-webkit-scrollbar-thumb { background: rgba(156,142,128,0.12); border-radius: 4px; }

/* ── Layout ── */
.site-wrapper { height: 100vh; display: flex; position: relative; z-index: 2; }
.grain {
  position: fixed; inset: 0; opacity: 0.025; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ════════════════════════
   LEFT SPINE
   ════════════════════════ */
.spine {
  width: 240px; flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateX(-14px);
  transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}
.spine.loaded { opacity: 1; transform: translateX(0); }
.spine-header { padding: 48px 0 0 32px; flex-shrink: 0; }
.site-name {
  font-family: var(--font-mono); font-size: 14px; font-weight: 300;
  letter-spacing: 4px; text-transform: lowercase; color: var(--pencil);
  margin: 0 0 6px 0; line-height: 1; cursor: pointer; transition: color 0.3s;
}
.site-name:hover { color: var(--accent); }
.site-name-line { width: 28px; height: 1px; background: rgba(196,101,58,0.31); margin-bottom: 32px; }

.spine-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-left: 32px; padding-bottom: 16px; position: relative; }
.spine-thread {
  position: absolute; left: 35px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(rgba(156,142,128,0.15), rgba(156,142,128,0.15) 70%, rgba(156,142,128,0.03));
}

/* Named entries */
.named-entry { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; padding: 7px 12px 7px 0; }
.named-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; transition: all 0.4s ease; background: rgba(156,142,128,0.16); }
.named-dot.visible { background: rgba(156,142,128,0.33); }
.named-dot.active { background: var(--accent); box-shadow: 0 0 10px rgba(196,101,58,0.2); }
.named-title { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: rgba(156,142,128,0.4); line-height: 1.35; transition: color 0.3s; margin-bottom: 2px; }
.named-title.visible { color: rgba(156,142,128,0.67); }
.named-title.active { color: #e8e0d2; font-weight: 500; }
.named-type { font-family: var(--font-hand); font-size: 11.5px; color: rgba(156,142,128,0.27); transition: color 0.3s; }
.named-type.active { color: rgba(196,101,58,0.53); }

/* Separator */
.spine-separator { margin: 12px 0 16px; display: flex; align-items: center; gap: 8px; padding-right: 20px; }
.spine-separator-dot { width: 7px; display: flex; justify-content: center; flex-shrink: 0; }
.spine-separator-dot::after { content: ''; display: block; width: 3px; height: 3px; border-radius: 50%; background: rgba(156,142,128,0.13); }
.spine-separator-line { flex: 1; height: 1px; background: rgba(156,142,128,0.08); margin-left: 5px; }

/* Timeline entries */
.timeline-entry { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; padding: 5px 12px 5px 0; }
.timeline-dot-wrap { width: 7px; display: flex; justify-content: center; flex-shrink: 0; padding-top: 5px; }
.timeline-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(156,142,128,0.16); transition: all 0.3s; }
.timeline-dot.active { width: 5px; height: 5px; background: var(--accent); box-shadow: 0 0 8px rgba(196,101,58,0.2); }
.timeline-month { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.5px; color: rgba(156,142,128,0.33); transition: color 0.3s; display: block; margin-bottom: 1px; }
.timeline-month.active { color: rgba(196,101,58,0.8); }
.timeline-tags { font-family: var(--font-hand); font-size: 11px; color: rgba(156,142,128,0.2); transition: color 0.3s; line-height: 1.3; display: block; }
.timeline-tags.active { color: rgba(156,142,128,0.53); }

/* ── Currently ── ENHANCED VISIBILITY */
.currently-wrap { padding: 0 16px 0 32px; flex-shrink: 0; }
.currently {
  border-top: 1px solid rgba(196,101,58,0.12);
  padding: 16px 0 10px 0;
}
.currently-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(196,101,58,0.7); margin-bottom: 10px;
}
.currently-item {
  font-family: var(--font-hand); font-size: 16px;
  color: rgba(196,178,158,0.85); line-height: 1.55; padding: 2px 0;
}
.currently-key {
  color: rgba(196,101,58,0.55); font-size: 13px;
}

/* ── The li'l one says ── ENHANCED VISIBILITY */
.littleone-wrap { padding: 0 16px 0 32px; flex-shrink: 0; }
.littleone {
  border-top: 1px solid rgba(196,101,58,0.08);
  padding: 14px 0 12px 0;
}
.littleone-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px;
  text-transform: lowercase; color: rgba(196,101,58,0.65); margin-bottom: 8px;
}
.littleone-quote {
  font-family: var(--font-hand); font-size: 17px;
  color: rgba(196,178,158,0.8)); line-height: 1.5; font-style: italic;
}

/* ── Nav ── */
.spine-nav { padding: 14px 0 36px 32px; flex-shrink: 0; border-top: 1px solid rgba(156,142,128,0.05); }
.nav-link {
  display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(156,142,128,0.25); cursor: pointer;
  transition: color 0.3s; padding: 6px 0 6px 21px; text-decoration: none;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }

/* ════════════════════════
   NOTEBOOK
   ════════════════════════ */
.notebook-area {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 48px 48px 24px; opacity: 0; transform: translateY(14px);
  transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.35s;
}
.notebook-area.loaded { opacity: 1; transform: translateY(0); }
.notebook {
  background: var(--paper); width: 100%; max-width: 580px; height: calc(100vh - 96px);
  border-radius: 1px 3px 3px 1px; position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.2), 0 24px 48px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.35);
  border-left: 3px solid var(--paper-dark); display: flex; flex-direction: column; overflow: hidden;
  transition: background 1.5s ease;
}
.notebook-lines {
  position: absolute; top: 0; left: 72px; right: 44px; bottom: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(232,224,210,0.27) 31px, rgba(232,224,210,0.27) 32px);
  background-position-y: 44px;
}
.notebook-margin { position: absolute; top: 0; bottom: 0; left: 60px; width: 1px; background: rgba(196,101,58,0.08); z-index: 0; }
.notebook-content {
  flex: 1; overflow-y: auto; padding: 48px 48px 64px 76px; position: relative; z-index: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.notebook-content.transitioning { opacity: 0; transform: translateY(8px); }
.notebook-fade {
  position: absolute; bottom: 0; left: 3px; right: 0; height: 48px;
  background: linear-gradient(transparent, var(--paper)); pointer-events: none; z-index: 2;
}

/* ════════════════════════
   PAGE CONTENT
   ════════════════════════ */
.page-type { font-family: var(--font-hand); font-size: 15px; color: var(--accent); display: block; margin-bottom: 8px; }
.page-title { font-family: var(--font-body); font-size: 26px; font-weight: 500; color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -0.3px; }
.page-divider { width: 36px; height: 1px; background: rgba(196,101,58,0.2); margin: 28px 0 32px; }
.page-body { font-family: var(--font-body); font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.page-body p { margin: 0 0 20px 0; }
.page-body.poem { font-size: 15px; line-height: 1.9; }
.page-body.poem p { margin: 0 0 16px 0; }
.page-body.poem p:last-child { margin-bottom: 0; }

/* Locked */
.locked-type { font-family: var(--font-hand); font-size: 15px; color: rgba(196,101,58,0.4); display: block; margin-bottom: 8px; }
.locked-title { font-family: var(--font-body); font-size: 26px; font-weight: 500; color: rgba(42,36,32,0.47); margin: 0; line-height: 1.25; }
.locked-divider { width: 36px; height: 1px; background: rgba(196,101,58,0.1); margin: 24px 0 20px; }
.timeline-page-month { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: rgba(156,142,128,0.53); display: block; margin-bottom: 10px; }
.timeline-page-tags { font-family: var(--font-hand); font-size: 15px; color: rgba(196,101,58,0.47); }
.timeline-page-tags .tag-separator { color: rgba(156,142,128,0.2); margin: 0 4px 0 8px; font-size: 12px; }
.timeline-page-divider { width: 36px; height: 1px; background: rgba(196,101,58,0.1); margin: 16px 0 20px; }

/* Ghost */
.ghost-area { position: relative; overflow: hidden; min-height: 280px; }
.ghost-text { filter: blur(2.5px); opacity: 0.14; user-select: none; pointer-events: none; }
.ghost-line { font-family: var(--font-hand); font-size: 18px; line-height: 1.65; color: var(--ink); }
.ghost-break { height: 18px; }
.margin-note-wrap { position: absolute; top: 36%; left: 0; right: 0; z-index: 10; }
.margin-note { transform: rotate(-1.5deg); background: rgba(245,240,232,0.73); padding: 8px 20px 8px 0; border-radius: 2px; display: inline-block; }
.margin-note span { font-family: var(--font-hand); font-size: 22px; font-weight: 500; color: rgba(156,142,128,0.6); }
.margin-note.timeline span { font-size: 21px; font-weight: 400; color: rgba(156,142,128,0.53); }

/* Crosslinks */
.crosslinks { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(156,142,128,0.1); }
.crosslinks-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(156,142,128,0.3); margin-right: 12px; }
.crosslink-item { font-family: var(--font-hand); font-size: 16px; color: var(--accent); cursor: pointer; text-decoration: none; transition: color 0.2s; }
.crosslink-item:hover { color: rgba(196,101,58,0.7); }
.crosslinks-sep { color: rgba(156,142,128,0.2); margin: 0 8px; }

/* ════════════════════════
   CORKBOARD ABOUT PAGE
   ════════════════════════ */
.corkboard { padding-bottom: 40px; }

.cork-bio {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px;
  color: rgba(42,36,32,0.5); line-height: 1.6; margin-bottom: 28px;
}

.cork-surface {
  display: flex; flex-wrap: wrap; gap: 16px; padding: 8px 0;
  align-items: flex-start;
}

/* ── Sticky notes ── */
.cork-note {
  position: relative; padding: 20px 16px 16px; width: calc(50% - 8px);
  transition: box-shadow 0.2s, transform 0.15s; cursor: grab;
  min-height: 80px;
}
.cork-note.dragging { cursor: grabbing; z-index: 100; }
.cork-note:hover { z-index: 10; }

.cork-note-text {
  font-family: var(--font-hand); font-size: 16px; line-height: 1.5;
  color: rgba(42,36,32,0.8); position: relative; z-index: 2;
}

/* Yellow sticky */
.sticky-yellow {
  background: linear-gradient(135deg, #fef9a7 0%, #fdf590 40%, #f7ee83 100%);
  box-shadow: 2px 3px 8px rgba(0,0,0,0.12), inset 0 -2px 4px rgba(0,0,0,0.03);
}
.sticky-yellow::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 24px; height: 24px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.04) 50%);
  border-radius: 0 0 2px 0;
}

/* Pink sticky */
.sticky-pink {
  background: linear-gradient(135deg, #fcc8d1 0%, #f8b4c0 40%, #f5a0b0 100%);
  box-shadow: 2px 3px 8px rgba(0,0,0,0.1), inset 0 -2px 4px rgba(0,0,0,0.03);
}
.sticky-pink::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 24px; height: 24px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.04) 50%);
}

/* Blue sticky */
.sticky-blue {
  background: linear-gradient(135deg, #b8d4e8 0%, #a3c7df 40%, #93bdd8 100%);
  box-shadow: 2px 3px 8px rgba(0,0,0,0.1), inset 0 -2px 4px rgba(0,0,0,0.03);
}
.sticky-blue::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 24px; height: 24px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.04) 50%);
}

/* Green sticky */
.sticky-green {
  background: linear-gradient(135deg, #c8e6c9 0%, #b5ddb7 40%, #a5d4a7 100%);
  box-shadow: 2px 3px 8px rgba(0,0,0,0.1), inset 0 -2px 4px rgba(0,0,0,0.03);
}
.sticky-green::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 24px; height: 24px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.04) 50%);
}

/* Torn paper */
.torn-paper {
  background: #faf8f4;
  box-shadow: 1px 2px 6px rgba(0,0,0,0.1);
  border-top: 3px solid transparent;
  border-image: repeating-linear-gradient(
    90deg, transparent 0px, transparent 3px, rgba(200,190,175,0.3) 3px, rgba(200,190,175,0.3) 6px
  ) 3;
  clip-path: polygon(
    0% 2%, 5% 0%, 12% 3%, 20% 1%, 28% 2%, 35% 0%, 45% 3%, 52% 1%, 60% 2%, 68% 0%, 78% 2%, 85% 1%, 92% 3%, 100% 1%,
    100% 100%, 0% 100%
  );
  padding-top: 24px;
}

/* Parchment */
.parchment {
  background: linear-gradient(170deg, #f5ecd7 0%, #efe4c8 50%, #e8dabb 100%);
  box-shadow: 1px 2px 6px rgba(0,0,0,0.08);
  border: 1px solid rgba(180,160,120,0.15);
}

/* ── Pushpin ── */
.pushpin {
  width: 14px; height: 14px; border-radius: 50%; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%); z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 2px rgba(255,255,255,0.3);
}
.pushpin::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: rgba(255,255,255,0.35); transform: translate(-50%, -60%);
}

/* ── Masking tape ── */
.tape-strip {
  width: 64px; height: 18px; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  background: rgba(210, 195, 160, 0.55); z-index: 5;
  border-top: 1px solid rgba(200,185,150,0.3); border-bottom: 1px solid rgba(200,185,150,0.2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ── Photo frame on about ── */
.cork-photo-frame {
  position: relative; width: calc(50% - 8px); padding: 8px;
  background: #fff; box-shadow: 1px 2px 8px rgba(0,0,0,0.1);
}
.cork-photo-placeholder {
  width: 100%; aspect-ratio: 4/3; background: rgba(232,224,210,0.4);
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(156,142,128,0.2);
}
.cork-photo-placeholder img {
  width: 100%; height: 100%; object-fit: cover;
}
.cork-photo-label {
  font-family: var(--font-hand); font-size: 14px; color: rgba(156,142,128,0.3);
}

/* ── Cork links ── */
.cork-links {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(156,142,128,0.08);
}
.cork-link {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px;
  text-transform: lowercase; color: rgba(156,142,128,0.4); text-decoration: none;
  transition: color 0.3s;
}
.cork-link:hover { color: var(--accent); }
.cork-link-sep { color: rgba(156,142,128,0.15); margin: 0 10px; }

/* ════════════════════════
   SKETCHBOOK — ORGANIC WALL
   ════════════════════════ */
.sketchbook-page { padding-bottom: 40px; }
.sketchbook-title { font-family: var(--font-hand); font-size: 28px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.sketchbook-subtitle { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: rgba(156,142,128,0.4); margin-bottom: 32px; }

.sketchbook-wall {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding: 8px 0;
}

.sketch-wall-item {
  position: relative; width: calc(50% - 12px);
  transition: transform 0.2s;
}
.sketch-wall-item:hover { z-index: 5; }

.sketch-entry { position: relative; }
.sketch-image { width: 100%; border-radius: 1px; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.sketch-caption { font-family: var(--font-hand); font-size: 14px; color: rgba(156,142,128,0.5); margin-top: 8px; }
.sketch-locked { opacity: 0.4; }
.sketch-placeholder {
  width: 100%; aspect-ratio: 3/4; background: rgba(232,224,210,0.5);
  border: 1px dashed rgba(156,142,128,0.15); border-radius: 1px;
}
.sketch-title-locked { font-family: var(--font-hand); font-size: 15px; color: rgba(156,142,128,0.4); margin-top: 8px; }
.sketch-type { font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.5px; color: rgba(156,142,128,0.25); text-transform: uppercase; }

.sketch-tape { top: -6px; left: 30%; transform: translateX(-30%); }
.sketch-pin { top: -5px; left: 50%; transform: translateX(-50%); }

.sketch-add-note {
  font-family: var(--font-mono); font-size: 9px; color: rgba(156,142,128,0.2);
  margin-top: 32px; letter-spacing: 0.5px;
}

/* ════════════════════════
   RESPONSIVE
   ════════════════════════ */
@media (max-width: 860px) {
  .spine { width: 200px; }
  .notebook-area { padding: 48px 24px 48px 16px; }
}

@media (max-width: 680px) {
  .site-wrapper { flex-direction: column; height: auto; overflow: auto; }
  html, body { overflow: auto; }
  .spine { width: 100%; max-height: none; overflow: visible; }
  .spine-header { padding: 32px 24px 0; }
  .spine-scroll { padding-left: 24px; max-height: 280px; overflow-y: auto; }
  .spine-thread { left: 27px; }
  .currently-wrap, .littleone-wrap { padding-left: 24px; }
  .spine-nav { padding: 16px 24px 24px; display: flex; flex-wrap: wrap; }
  .nav-link { padding: 6px 12px 6px 0; }
  .notebook-area { padding: 16px 16px 48px; }
  .notebook { height: auto; min-height: 500px; max-height: none; }
  .notebook-content { padding: 36px 28px 48px 52px; }
  .notebook-lines { left: 48px; right: 24px; }
  .notebook-margin { left: 40px; }
  .cork-note { width: 100%; }
  .cork-photo-frame { width: 100%; }
  .sketch-wall-item { width: 100%; }
  .sketchbook-wall { gap: 20px; }
}
