/* ========== BASE GLOBAL ========== */
:root {
  --bg-dark: #050507;
  --bg-card-dark: #0d0d12;
  --border-dark: #1a1a22;
  --text-dark: #e8e8ed;
  --text-dim-dark: #8a8a96;

  --bg-light: #fafafa;
  --bg-card-light: #ffffff;
  --border-light: #e8e8ed;
  --text-light: #0a0a0f;
  --text-dim-light: #5a5a66;
}

* { box-sizing: border-box; }
body { margin: 0; background: #0a0a0f; }

/* Placeholder image — usado em todas variações */
.ph-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}
.ph-img .ph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: overlay;
}
.ph-img .ph-glyph {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 64px);
  letter-spacing: -0.04em;
  z-index: 2;
  text-shadow: 0 0 30px currentColor;
  opacity: 0.85;
}
.ph-img .ph-corner {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 8px; }
.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-family: 'Inter', sans-serif;
}

/* Insta top banner */
.insta-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: #000;
  color: #d8d8df;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  border-bottom: 1px solid;
  cursor: pointer;
  transition: opacity 0.2s;
}
.insta-top:hover { opacity: 0.85; }
.insta-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
.insta-arrow { opacity: 0.7; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Subscribe button — base */
.subscribe-btn {
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
  transition: transform 0.15s, filter 0.15s;
  white-space: nowrap;
}
.subscribe-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Modal */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  font-family: 'Inter', sans-serif;
}
.modal {
  background: #0a0a0f;
  border: 1px solid;
  border-radius: 8px;
  padding: 36px;
  max-width: 460px;
  width: 100%;
  position: relative;
  color: #fff;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #8a8a96;
  font-size: 18px;
  cursor: pointer;
}
.modal-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.modal-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.2;
}
.modal-dek {
  color: #a8a8b4;
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.5;
}
.modal-input {
  width: 100%;
  background: #15151c;
  border: 1px solid #2a2a35;
  color: #fff;
  padding: 12px 14px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 10px;
}
.modal-input:focus { outline: none; border-color: #5a5a66; }
.modal-cta {
  width: 100%;
  border: none;
  color: #000;
  font-weight: 600;
  padding: 13px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
}
.modal-fine {
  font-size: 11px;
  color: #6a6a76;
  margin-top: 14px;
  text-align: center;
}

/* Insta card (compartilhado) */
.insta-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 18px;
  font-family: 'Inter', sans-serif;
}
.insta-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.insta-handle { font-size: 14px; font-weight: 600; color: #fff; }
.insta-sub { font-size: 11px; color: #8a8a96; margin-top: 2px; }
.insta-follow {
  border: 1px solid;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.insta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.insta-post {
  aspect-ratio: 1;
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s;
  border: 1px solid rgba(255,255,255,0.06);
}
.insta-post:hover { transform: scale(1.02); }
.insta-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.insta-cap {
  font-size: 11px;
  color: #fff;
  line-height: 1.3;
  font-weight: 500;
}
.insta-likes {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
}

/* Archive timeline (compartilhado) */
.archive {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 18px;
  font-family: 'Inter', sans-serif;
}
.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.archive-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.archive-all {
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.archive-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-dark);
}
.archive-item:last-child { border-bottom: none; padding-bottom: 0; }
.archive-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.archive-label { font-size: 11px; color: #8a8a96; margin-bottom: 4px; }
.archive-headline {
  font-size: 13px;
  color: #d8d8df;
  line-height: 1.35;
  font-weight: 500;
}
