/* ============================================================
   luseen.co — Writing page styles
   ============================================================ */


/* ───────────── PAGE HEADER ───────────── */
.writing-header {
  padding: 100px 48px 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* ───────────── GEOMETRIC FORMS ───────────── */
.writing-geo {
  position: absolute;
  top: 0; right: 0;
  width: 48%;
  height: 100%;
  pointer-events: none;
}

.geo-circle-lg {
  position: absolute;
  top: 15%; right: 12%;
  width: 260px; height: 260px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  animation: geoFloat 9s ease-in-out infinite;
}
.geo-circle-sm {
  position: absolute;
  top: 40%; right: 34%;
  width: 90px; height: 90px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  animation: geoFloat 7s ease-in-out infinite reverse;
}
.geo-square {
  position: absolute;
  top: 20%; right: 22%;
  width: 72px; height: 72px;
  background: var(--blue);
  opacity: 0.85;
  animation: geoSpin 22s linear infinite;
}
.geo-square-outline {
  position: absolute;
  bottom: 20%; right: 16%;
  width: 120px; height: 120px;
  border: 1.5px solid var(--ink);
  animation: geoFloat 11s ease-in-out infinite;
  animation-delay: -3s;
}
.geo-cross {
  position: absolute;
  top: 55%; right: 38%;
  width: 36px; height: 36px;
  color: var(--red);
  animation: geoSpin 18s linear infinite reverse;
}
.geo-line-h {
  position: absolute;
  top: 62%; right: 8%;
  width: 140px; height: 1px;
  background: var(--ink);
  opacity: 0.2;
  animation: geoFade 6s ease-in-out infinite;
}
.geo-line-v {
  position: absolute;
  top: 10%; right: 42%;
  width: 1px; height: 100px;
  background: var(--red);
  opacity: 0.3;
  animation: geoFade 8s ease-in-out infinite reverse;
}
.geo-dot-red {
  position: absolute;
  bottom: 30%; right: 28%;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: geoFloat 5s ease-in-out infinite;
}
.geo-dot-blue {
  position: absolute;
  top: 30%; right: 8%;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: geoFloat 7s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(3deg); }
  66%       { transform: translateY(10px) rotate(-2deg); }
}
@keyframes geoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes geoFade {
  0%, 100% { opacity: 0.15; transform: scaleX(1); }
  50%       { opacity: 0.4;  transform: scaleX(1.15); }
}

@media (max-width: 900px) {
  .writing-geo { display: none; }
}

.writing-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s ease forwards;
}
.writing-eyebrow .line {
  width: 60px;
  height: 1px;
  background: currentColor;
}

.writing-title {
  font-family: var(--display);
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 400;
  opacity: 0;
  overflow: visible;
  animation: fadeUp 1s 0.3s var(--ease-out-quart) forwards;
}
.writing-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--red);
}

.writing-intro {
  max-width: 560px;
  margin-top: 48px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeUp 0.8s 0.6s ease forwards;
}


/* ───────────── POST GRID ───────────── */
.writing-grid {
  padding: 80px 48px 120px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.post-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 48px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.post-row:first-child { border-top: 1px solid var(--line); }
.post-row:hover { background: var(--paper-warm); padding-left: 16px; padding-right: 16px; margin: 0 -16px; }

.post-row .post-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.post-row .post-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.post-row .post-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--red);
}
.post-row .post-title em.blue { color: var(--blue); }

.post-row .post-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-row .post-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.15em;
}
.post-row .post-tag.red  { background: var(--red);  color: var(--paper); }
.post-row .post-tag.blue { background: var(--blue); color: var(--paper); }
.post-row .post-tag.ink  { background: var(--ink);  color: var(--paper); }


/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 900px) {
  .writing-header { padding: 60px 24px 40px; }
  .writing-grid { padding: 40px 24px 80px; }
  .post-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .post-row:hover { padding-left: 0; padding-right: 0; margin: 0; }
  .post-row .post-meta { flex-wrap: wrap; }
}
