/* ── AREA42 — about.css ── */
/* Page-specific styles for about.html */

body {
  overflow-x: hidden;
}

/* ── Desk layout ── */
.desk {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 100px);
  padding: 0 2.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Notebook row ── */
.notebooks-row {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

/* ── Notebook ── */
.notebook {
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notebook:hover { transform: translateY(-6px); }

.notebook-cover {
  width: 220px;
  height: 285px;
  position: relative;
  filter: drop-shadow(3px 4px 10px rgba(0,0,0,0.2));
}

.notebook-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.notebook-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  padding-bottom: 10px;
  z-index: 2;
}

.notebook-caption {
  margin-top: 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.45;
  text-align: center;
}

/* ── Overlay — expanded notebook ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(240, 237, 229, 0.0);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: background 0.35s ease, opacity 0.35s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(240, 237, 229, 0.92);
}

.notebook-expanded {
  position: relative;
  width: min(760px, 92vw);
  height: min(520px, 85vh);
  background: #F8F5EE;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: flex;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.overlay.active .notebook-expanded {
  transform: scale(1);
}

.nb-spine {
  width: 28px;
  background: #1a1a18;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-spine-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}

.nb-spine::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 10px,
    rgba(255,255,255,0.15) 10px,
    rgba(255,255,255,0.15) 14px
  );
}

.nb-page {
  flex: 1;
  padding: 2.5rem 2.5rem 2rem;
  overflow-y: auto;
  background-image: radial-gradient(circle, rgba(0,25,255,0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

.nb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(0,0,0,0.2);
  background: var(--paper);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.15s;
  z-index: 10;
  line-height: 1;
}
.nb-close:hover { opacity: 1; }

.nb-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.nb-content {
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink);
}

.nb-content p { margin-bottom: 1rem; }
.nb-content strong { font-weight: 700; }
